You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/frontend/main.e477eb261763e96d.js

1 line
3.1 MiB

(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(We,q,m)=>{"use strict";m.d(q,{$2:()=>je,$A:()=>ye,$W:()=>me,BL:()=>K,BZ:()=>Xe,C5:()=>mt,CN:()=>d,CX:()=>M,EG:()=>B,EK:()=>S,El:()=>ie,HI:()=>a,HJ:()=>k,HW:()=>at,I8:()=>V,JK:()=>ut,JX:()=>Ie,Lu:()=>W,Ly:()=>ge,My:()=>ue,Ni:()=>g,Nr:()=>fe,OG:()=>F,QJ:()=>Ce,RX:()=>L,Rd:()=>Fe,SN:()=>w,Sf:()=>G,TM:()=>l,UH:()=>Ue,UR:()=>R,VD:()=>Re,WM:()=>Se,WO:()=>_,Wi:()=>he,X3:()=>ce,YP:()=>oe,YX:()=>v,Z8:()=>re,ZH:()=>ct,Zu:()=>rt,_9:()=>$e,_E:()=>X,aL:()=>ze,as:()=>C,bP:()=>Nt,cQ:()=>i,d7:()=>xt,dS:()=>Et,dh:()=>Qe,e9:()=>Me,eF:()=>N,eM:()=>Je,en:()=>Pe,g3:()=>Y,g6:()=>Oe,i9:()=>Gt,it:()=>Ne,kL:()=>O,ks:()=>J,n7:()=>Ee,oF:()=>Ht,oV:()=>u,oo:()=>s,p7:()=>Bt,pW:()=>n,pc:()=>$,pd:()=>h,u0:()=>qe,uT:()=>Ze,v_:()=>pe,wD:()=>x,xH:()=>T,xS:()=>Q,yl:()=>le,z:()=>Te});var t=m(9653),e=m(7731);const g=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),s=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),x=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),h=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),d=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_FEES_CLN),L=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),V=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),B=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),W=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),Y=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Q=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),me=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),re=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),ie=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),ce=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),Te=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),S=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),a=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),l=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),_=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),O=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),R=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),C=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),K=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),F=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),G=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),ye=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),Ee=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),pe=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),qe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),Ce=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),Se=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Fe=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),oe=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),ze=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),Oe=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),he=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),ge=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Ue=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),Je=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),Re=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),le=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),rt=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),Qe=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),ct=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),Gt=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Ze=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),xt=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),Me=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),$e=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.FETCH_PS_POLICY_CLN),mt=(0,t.PH)(e.AB.SET_PS_POLICY_CLN,(0,t.Ky)()),Et=(0,t.PH)(e.AB.FETCH_SWAPS_CLN),at=(0,t.PH)(e.AB.SET_SWAPS_CLN,(0,t.Ky)()),je=(0,t.PH)(e.AB.FETCH_SWAP_PEERS_CLN),Ht=(0,t.PH)(e.AB.SET_SWAP_PEERS_CLN,(0,t.Ky)()),Nt=((0,t.PH)(e.AB.FETCH_SWAP_REQUESTS_CLN),(0,t.PH)(e.AB.SET_SWAP_REQUESTS_CLN,(0,t.Ky)())),Bt=(0,t.PH)(e.AB.SWAPOUT_CLN,(0,t.Ky)()),Ne=(0,t.PH)(e.AB.ADD_SWAPOUT_CLN,(0,t.Ky)()),$=(0,t.PH)(e.AB.SWAPIN_CLN,(0,t.Ky)()),ue=(0,t.PH)(e.AB.ADD_SWAPIN_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.GET_SWAP_CLN,(0,t.Ky)()),Xe=(0,t.PH)(e.AB.UPDATE_SWAP_STATE_CLN,(0,t.Ky)())},4947:(We,q,m)=>{"use strict";m.d(q,{J:()=>ce});var t=m(493),e=m(7579),g=m(9646),T=m(5577),s=m(2722),x=m(4004),h=m(262),N=m(1786),d=m(5566),M=m(7731),w=m(7861),L=m(429),k=m(9828),V=m(1462),B=m(4650),W=m(529),Y=m(9653),Q=m(5986),X=m(62),ee=m(5043),me=m(9116),re=m(7998),ie=m(6895),se=m(9445);let ce=(()=>{var Te;class S{constructor(a,u,l,_,O,R,C,n,v,K,F,G,ye){this.actions=a,this.httpClient=u,this.store=l,this.sessionService=_,this.commonService=O,this.logger=R,this.router=C,this.wsService=n,this.location=v,this.swapStatePipe=K,this.titleCasePipe=F,this.decimalPipe=G,this.datePipe=ye,this.CHILD_API_URL=M.T5+"/cln",this.API_VERION="",this.NODE_VERISON="",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_INFO_CLN),(0,T.z)(Ee=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.Ni)({payload:{action:"FetchInfo",status:M.Bn.INITIATED}})),this.store.dispatch((0,w.ac)({payload:M.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+M.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(M.pg.SET_SELECTED_NODE))),(0,x.U)(pe=>(this.logger.info(pe),this.API_VERION=pe.api_version||"",this.NODE_VERISON=pe.version||"",pe.chains&&pe.chains.length&&pe.chains[0]&&"object"==typeof pe.chains[0]&&pe.chains[0].hasOwnProperty("chain")&&pe?.chains[0].chain&&pe?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&pe?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,L.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.GET_NODE_INFO})),this.store.dispatch((0,w.ts)()),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:M.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:M.pg.LOGOUT}):(this.initializeRemainingData(pe,Ee.payload.loadPage),this.store.dispatch((0,L.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.GET_NODE_INFO})),{type:M.AB.SET_INFO_CLN,payload:pe||{}}))),(0,h.K)(pe=>{const qe=this.commonService.extractErrorCode(pe),Ce="ETIMEDOUT"===qe?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(pe);return this.router.navigate(["/error"],{state:{errorCode:qe,errorMessage:Ce}}),this.handleErrorWithoutAlert("FetchInfo",M.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:qe,error:Ce}),(0,g.of)({type:M.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_FEES_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchFees",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.FEES_API))),(0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchFees",status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEES_CLN,payload:Ee||{}})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchFees",M.m6.NO_SPINNER,"Fetching Fees Failed.",Ee),(0,g.of)({type:M.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_FEE_RATES_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchFeeRates"+Ee.payload,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.NETWORK_API+"/feeRates/"+Ee.payload).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchFeeRates"+Ee.payload,status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEE_RATES_CLN,payload:pe||{}})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchFeeRates"+Ee.payload,M.m6.NO_SPINNER,"Fetching Fee Rates Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_BALANCE_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.BALANCE_API))),(0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_BALANCE_CLN,payload:Ee||{}})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",Ee),(0,g.of)({type:M.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.CHANNELS_API+"/localRemoteBalance"))),(0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:Ee||{}})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",Ee),(0,g.of)({type:M.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.GET_NEW_ADDRESS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+M.vv.ON_CHAIN_API+"?type="+Ee.payload.addressCode).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,w.uO)({payload:M.m6.GENERATE_NEW_ADDRESS})),{type:M.AB.SET_NEW_ADDRESS_CLN,payload:pe&&pe.address?pe.address:{}})),(0,h.K)(pe=>(this.handleErrorWithAlert("GenerateNewAddress",M.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+M.vv.ON_CHAIN_API+"?type="+Ee.payload.addressId,pe),(0,g.of)({type:M.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SET_NEW_ADDRESS_CLN),(0,x.U)(Ee=>(this.logger.info(Ee.payload),Ee.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_PEERS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PEERS_API).pipe((0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PEERS_CLN,payload:Ee||[]})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchPeers",M.m6.NO_SPINNER,"Fetching Peers Failed.",Ee),(0,g.of)({type:M.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SAVE_NEW_PEER_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.PEERS_API,{id:Ee.payload.id}).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:pe||[]})),{type:M.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:pe.find(qe=>0===Ee.payload.id.indexOf(qe.id?qe.id:""))}})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("SaveNewPeer",M.m6.CONNECT_PEER,"Peer Connection Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.DETACH_PEER_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+M.vv.PEERS_API+"/"+Ee.payload.id+"?force="+Ee.payload.force).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,w.uO)({payload:M.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Peer Disconnected Successfully!"})),{type:M.AB.REMOVE_PEER_CLN,payload:{id:Ee.payload.id}})),(0,h.K)(pe=>(this.handleErrorWithAlert("PeerDisconnect",M.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+M.vv.PEERS_API+"/"+Ee.payload.id,pe),(0,g.of)({type:M.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_CHANNELS_CLN),(0,T.z)(()=>{this.store.dispatch((0,L.Ni)({payload:{action:"FetchChannels",status:M.Bn.INITIATED}}));const Ee=this.commonService.isVersionCompatible(this.NODE_VERISON,"23.02")&&this.commonService.isVersionCompatible(this.API_VERION,"0.10.3")?"/listPeerChannels":"/listChannels";return this.httpClient.get(this.CHILD_API_URL+M.vv.CHANNELS_API+Ee)}),(0,x.U)(Ee=>{this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchChannels",status:M.Bn.COMPLETED}}));const pe={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return Ee.forEach(qe=>{qe.id&&(qe.peer_id=qe.id),qe.connected&&(qe.peer_connected=qe.connected),"CHANNELD_NORMAL"===qe.state?qe.peer_connected?pe.activeChannels.push(qe):pe.inactiveChannels.push(qe):pe.pendingChannels.push(qe)}),{type:M.AB.SET_CHANNELS_CLN,payload:pe}}),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchChannels",M.m6.NO_SPINNER,"Fetching Channels Failed.",Ee),(0,g.of)({type:M.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SAVE_NEW_CHANNEL_CLN),(0,T.z)(Ee=>{this.store.dispatch((0,w.ac)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.INITIATED}}));const pe={id:Ee.payload.peerId,satoshis:Ee.payload.satoshis,feeRate:Ee.payload.feeRate,announce:Ee.payload.announce};return Ee.payload.minconf&&(pe.minconf=Ee.payload.minconf),Ee.payload.utxos&&(pe.utxos=Ee.payload.utxos),Ee.payload.requestAmount&&(pe.request_amt=Ee.payload.requestAmount),Ee.payload.compactLease&&(pe.compact_lease=Ee.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+M.vv.CHANNELS_API,pe).pipe((0,x.U)(qe=>(this.logger.info(qe),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:M.AB.FETCH_CHANNELS_CLN})),(0,h.K)(qe=>(this.handleErrorWithoutAlert("SaveNewChannel",M.m6.OPEN_CHANNEL,"Opening Channel Failed.",qe),(0,g.of)({type:M.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.UPDATE_CHANNEL_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+M.vv.CHANNELS_API+"/setChannelFee",{id:Ee.payload.channelId,base:Ee.payload.baseFeeMsat,ppm:Ee.payload.feeRate}).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,w.uO)({payload:M.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)("all"===Ee.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:M.AB.FETCH_CHANNELS_CLN})),(0,h.K)(pe=>(this.handleErrorWithAlert("UpdateChannel",M.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+M.vv.CHANNELS_API,pe),(0,g.of)({type:M.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.CLOSE_CHANNEL_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:Ee.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+M.vv.CHANNELS_API+"/"+Ee.payload.channelId+(Ee.payload.force?"?force="+Ee.payload.force:"")).pipe((0,x.U)(qe=>(this.logger.info(qe),this.store.dispatch((0,w.uO)({payload:Ee.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,w.jW)({payload:"Channel Closed Successfully!"})),{type:M.AB.REMOVE_CHANNEL_CLN,payload:Ee.payload})),(0,h.K)(qe=>(this.handleErrorWithAlert("CloseChannel",Ee.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+M.vv.CHANNELS_API,qe),(0,g.of)({type:M.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_PAYMENTS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchPayments",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PAYMENTS_API))),(0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchPayments",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PAYMENTS_CLN,payload:Ee||[]})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchPayments",M.m6.NO_SPINNER,"Fetching Payments Failed.",Ee),(0,g.of)({type:M.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_OFFER_INVOICE_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.OFFERS_API+"/fetchOfferInvoice",Ee.payload).pipe((0,x.U)(pe=>{this.logger.info(pe),setTimeout(()=>{this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,L.VD)({payload:pe||{}}))},500)}),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchOfferInvoice",M.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",pe),(0,g.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SET_OFFER_INVOICE_CLN),(0,x.U)(Ee=>(this.logger.info(Ee.payload),Ee.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SEND_PAYMENT_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:Ee.payload.uiMessage})),this.store.dispatch((0,L.Ni)({payload:{action:"SendPayment",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.PAYMENTS_API,Ee.payload).pipe((0,x.U)(pe=>{this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"SendPayment",status:M.Bn.COMPLETED}}));let qe="Payment Sent Successfully!";pe.saveToDBError&&(qe="Payment Sent Successfully but Offer Saving to Database Failed."),pe.saveToDBResponse&&"NA"!==pe.saveToDBResponse&&(this.store.dispatch((0,L.e9)({payload:pe.saveToDBResponse})),qe="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.cQ)()),this.store.dispatch((0,w.uO)({payload:Ee.payload.uiMessage})),this.store.dispatch((0,w.jW)({payload:qe})),this.store.dispatch((0,L.TM)({payload:pe.paymentResponse}))},1e3)}),(0,h.K)(pe=>(this.logger.error("Error: "+JSON.stringify(pe)),Ee.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",Ee.payload.uiMessage,"Send Payment Failed.",pe):this.handleErrorWithAlert("SendPayment",Ee.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+M.vv.PAYMENTS_API,pe),(0,g.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.GET_QUERY_ROUTES_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.NETWORK_API+"/getRoute/"+Ee.payload.destPubkey+"/"+Ee.payload.amount).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.COMPLETED}})),{type:M.AB.SET_QUERY_ROUTES_CLN,payload:pe})),(0,h.K)(pe=>(this.store.dispatch((0,L.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",M.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+M.vv.NETWORK_API+"/getRoute/"+Ee.payload.destPubkey+"/"+Ee.payload.amount,pe),(0,g.of)({type:M.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SET_QUERY_ROUTES_CLN),(0,x.U)(Ee=>Ee.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.PEER_LOOKUP_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.SEARCHING_NODE})),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.NETWORK_API+"/listNode/"+Ee.payload).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.SEARCHING_NODE})),{type:M.AB.SET_LOOKUP_CLN,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithAlert("Lookup",M.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+M.vv.NETWORK_API+"/listNode/"+Ee.payload,pe),(0,g.of)({type:M.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.CHANNEL_LOOKUP_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:Ee.payload.uiMessage})),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.NETWORK_API+"/listChannel/"+Ee.payload.shortChannelID).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:Ee.payload.uiMessage})),{type:M.AB.SET_LOOKUP_CLN,payload:pe})),(0,h.K)(pe=>(Ee.payload.showError?this.handleErrorWithAlert("Lookup",Ee.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+M.vv.NETWORK_API+"/listChannel/"+Ee.payload.shortChannelID,pe):this.store.dispatch((0,w.uO)({payload:Ee.payload.uiMessage})),this.store.dispatch((0,L.v_)({payload:[]})),(0,g.of)({type:M.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.INVOICE_LOOKUP_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.INVOICES_API+"?label="+Ee.payload).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.SEARCHING_INVOICE})),pe.invoices&&pe.invoices.length&&pe.invoices.length>0&&this.store.dispatch((0,L.aL)({payload:pe.invoices[0]})),{type:M.AB.SET_LOOKUP_CLN,payload:pe.invoices&&pe.invoices.length&&pe.invoices.length>0?pe.invoices[0]:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("Lookup",M.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",pe),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,g.of)({type:M.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SET_LOOKUP_CLN),(0,x.U)(Ee=>(this.logger.info(Ee.payload),Ee.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.GET_FORWARDING_HISTORY_CLN),(0,T.z)(Ee=>{const pe=Ee.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,L.Ni)({payload:{action:"FetchForwardingHistory"+pe,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.CHANNELS_API+"/listForwards?status="+Ee.payload.status).pipe((0,x.U)(qe=>(this.logger.info(qe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchForwardingHistory"+pe,status:M.Bn.COMPLETED}})),Ee.payload.status===M.OO.FAILED?this.store.dispatch((0,L.QJ)({payload:{status:M.OO.FAILED,totalForwards:qe.length,listForwards:qe}})):Ee.payload.status===M.OO.LOCAL_FAILED?this.store.dispatch((0,L.QJ)({payload:{status:M.OO.LOCAL_FAILED,totalForwards:qe.length,listForwards:qe}})):Ee.payload.status===M.OO.SETTLED&&this.store.dispatch((0,L.QJ)({payload:{status:M.OO.SETTLED,totalForwards:qe.length,listForwards:qe}})),{type:M.pg.VOID})),(0,h.K)(qe=>(this.handleErrorWithAlert("FetchForwardingHistory"+pe,M.m6.NO_SPINNER,"Get "+Ee.payload.status+" Forwarding History Failed",this.CHILD_API_URL+M.vv.CHANNELS_API+"/listForwards?status="+Ee.payload.status,qe),(0,g.of)({type:M.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.DELETE_EXPIRED_INVOICE_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+M.vv.INVOICES_API+(Ee.payload?"?maxexpiry="+Ee.payload:"")).pipe((0,x.U)(qe=>(this.logger.info(qe),this.store.dispatch((0,w.uO)({payload:M.m6.DELETE_INVOICE})),this.store.dispatch((0,w.jW)({payload:"Invoices Deleted Successfully!"})),{type:M.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,h.K)(qe=>(this.handleErrorWithAlert("DeleteInvoices",M.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+M.vv.INVOICES_API,qe),(0,g.of)({type:M.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SAVE_NEW_INVOICE_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.ADD_INVOICE})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.INVOICES_API,{label:Ee.payload.label,amount:Ee.payload.amount,description:Ee.payload.description,expiry:Ee.payload.expiry,private:Ee.payload.private}).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.ADD_INVOICE})),pe.amount_msat=Ee.payload.amount,pe.label=Ee.payload.label,pe.expires_at=Math.round((new Date).getTime()/1e3+Ee.payload.expiry),pe.description=Ee.payload.description,pe.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:pe,newlyAdded:!0,component:d.y}}}))},200),{type:M.AB.ADD_INVOICE_CLN,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("SaveNewInvoice",M.m6.ADD_INVOICE,"Add Invoice Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SAVE_NEW_OFFER_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.CREATE_OFFER})),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.OFFERS_API,{amount:Ee.payload.amount,description:Ee.payload.description,issuer:Ee.payload.issuer}).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{offer:pe,newlyAdded:!0,component:V.k}}}))},100),{type:M.AB.ADD_OFFER_CLN,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("SaveNewOffer",M.m6.CREATE_OFFER,"Create Offer Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_INVOICES_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchInvoices",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.INVOICES_API+"?num_max_invoices="+(Ee.payload.num_max_invoices?Ee.payload.num_max_invoices:1e6)+"&index_offset="+(Ee.payload.index_offset?Ee.payload.index_offset:0)+"&reversed="+(!Ee.payload.reversed||Ee.payload.reversed)).pipe((0,x.U)(Se=>(this.logger.info(Se),this.store.dispatch((0,L.Ni)({payload:{action:"FetchInvoices",status:M.Bn.COMPLETED}})),{type:M.AB.SET_INVOICES_CLN,payload:Se})),(0,h.K)(Se=>(this.handleErrorWithoutAlert("FetchInvoices",M.m6.NO_SPINNER,"Fetching Invoices Failed.",Se),(0,g.of)({type:M.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_OFFERS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchOffers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.OFFERS_API).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchOffers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFERS_CLN,payload:pe.offers?pe.offers:[]})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchOffers",M.m6.NO_SPINNER,"Fetching Offers Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.DISABLE_OFFER_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,L.Ni)({payload:{action:"DisableOffer",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+M.vv.OFFERS_API+"/"+Ee.payload.offer_id).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"DisableOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,w.jW)({payload:"Offer Disabled Successfully!"})),{type:M.AB.UPDATE_OFFER_CLN,payload:{offer:pe}})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("DisableOffer",M.m6.DISABLE_OFFER,"Disabling Offer Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.OFFERS_API+"/offerbookmarks").pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFER_BOOKMARKS_CLN,payload:pe||[]})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",M.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.DELETE_OFFER_BOOKMARK_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,L.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+M.vv.OFFERS_API+"/offerbookmark/"+Ee.payload.bolt12).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,w.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:M.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:Ee.payload.bolt12}})),(0,h.K)(pe=>(this.handleErrorWithAlert("DeleteOfferBookmark",M.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+M.vv.OFFERS_API+"/offerbookmark/"+Ee.payload.bolt12,pe),(0,g.of)({type:M.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SET_CHANNEL_TRANSACTION_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,L.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.ON_CHAIN_API,Ee.payload).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:M.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("SetChannelTransaction",M.m6.SEND_FUNDS,"Sending Fund Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_UTXOS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.ON_CHAIN_API+"/utxos"))),(0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.COMPLETED}})),Ee.outputs.forEach(pe=>{pe.value&&(pe.amount_msat=pe.value)}),{type:M.AB.SET_UTXOS_CLN,payload:Ee.outputs||[]})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchUTXOs",M.m6.NO_SPINNER,"Fetching UTXOs Failed.",Ee),(0,g.of)({type:M.pg.VOID}))))),this.swapGetCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.GET_SWAP_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"GetSwap",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/swap/"+Ee.payload).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"GetSwap",status:M.Bn.COMPLETED}})),("State_ClaimedPreimage"===pe.current||"State_ClaimedCoop"===pe.current)&&(this.store.dispatch((0,L.Ly)()),this.store.dispatch((0,L.EG)())),{type:M.AB.UPDATE_SWAP_STATE_CLN,payload:{swapId:Ee.payload,state:pe.current,type:1===pe.type?M.hc.SWAP_IN:M.hc.SWAP_OUT}})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("GetSwap",M.m6.NO_SPINNER,"Getting Swap Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.swapsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_SWAPS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchSwaps",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/listSwaps").pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchSwaps",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAPS_CLN,payload:pe.swaps&&pe.swaps.length&&pe.swaps.length>0?pe.swaps:[]})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchSwaps",M.m6.NO_SPINNER,"Fetching Swaps Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.peerswapPolicyFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_PS_POLICY_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchPSPolicy",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/reloadPolicy").pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchPSPolicy",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PS_POLICY_CLN,payload:pe||{min_swap_amount_msat:1e8}})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchPSPolicy",M.m6.NO_SPINNER,"Fetching Peerswap Policy Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.swapPeersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_SWAP_PEERS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/listSwapPeers").pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_PEERS_CLN,payload:pe||[]})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchSwapPeers",M.m6.NO_SPINNER,"Fetching Swap Peers Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.swapRequestsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_SWAP_REQUESTS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/listSwapRequests").pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_REQUESTS_CLN,payload:pe||[]})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchSwapRequests",M.m6.NO_SPINNER,"Fetching Swap Requests Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.peerswapOutCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SWAPOUT_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,L.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/swapOut",{amountSats:Ee.payload.amountSats,shortChannelId:Ee.payload.shortChannelId,asset:Ee.payload.asset}).pipe((0,x.U)(pe=>(this.logger.info(pe),pe.alias=Ee.payload.alias,this.store.dispatch((0,w.uO)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,L.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapout Initiated",message:this.reorderedSwapResponse(pe)}}}))},100),{type:M.AB.ADD_SWAPOUT_CLN,message:[{key:"id",value:pe.id,title:"Swap Id",width:100,type:M.Gi.STRING}]})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("PeerswapSwapout",M.m6.PEERSWAP_SWAPOUT,"Swapout Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.FETCH_PAGE_SETTINGS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Ni)({payload:{action:"FetchPageSettings",status:M.Bn.INITIATED}})),this.httpClient.get(M.vv.PAGE_SETTINGS_API).pipe((0,x.U)(Ee=>(this.logger.info(Ee),this.store.dispatch((0,L.Ni)({payload:{action:"FetchPageSettings",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PAGE_SETTINGS_CLN,payload:Ee||[]})),(0,h.K)(Ee=>(this.handleErrorWithoutAlert("FetchPageSettings",M.m6.NO_SPINNER,"Fetching Page Settings Failed.",Ee),(0,g.of)({type:M.pg.VOID})))))))),this.peerswapInCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SWAPIN_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,L.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+M.vv.PEERSWAP_API+"/swapIn",{amountSats:Ee.payload.amountSats,shortChannelId:Ee.payload.shortChannelId,asset:Ee.payload.asset}).pipe((0,x.U)(pe=>(this.logger.info(pe),pe.alias=Ee.payload.alias,this.store.dispatch((0,w.uO)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,L.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapin Initiated",message:this.reorderedSwapResponse(pe)}}}))},100),{type:M.AB.ADD_SWAPIN_CLN,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("PeerswapSwapin",M.m6.PEERSWAP_SWAPIN,"Swapin Failed.",pe),(0,g.of)({type:M.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(M.AB.SAVE_PAGE_SETTINGS_CLN),(0,T.z)(Ee=>(this.store.dispatch((0,w.ac)({payload:M.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.Ni)({payload:{action:"SavePageSettings",status:M.Bn.INITIATED}})),this.httpClient.post(M.vv.PAGE_SETTINGS_API,Ee.payload).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,L.Ni)({payload:{action:"SavePageSettings",status:M.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:M.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.jW)({payload:"Page Layout Updated Successfully!"})),{type:M.AB.SET_PAGE_SETTINGS_CLN,payload:pe||[]})),(0,h.K)(pe=>(this.handleErrorWithAlert("SavePageSettings",M.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",M.vv.PAGE_SETTINGS_API,pe),(0,g.of)({type:M.pg.VOID})))))))),this.store.select(k.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(Ee=>{Ee.FetchInfo.status!==M.Bn.COMPLETED&&Ee.FetchInfo.status!==M.Bn.ERROR||Ee.FetchFees.status!==M.Bn.COMPLETED&&Ee.FetchFees.status!==M.Bn.ERROR||Ee.FetchChannels.status!==M.Bn.COMPLETED&&Ee.FetchChannels.status!==M.Bn.ERROR||Ee.FetchBalance.status!==M.Bn.COMPLETED&&Ee.FetchBalance.status!==M.Bn.ERROR||Ee.FetchLocalRemoteBalance.status!==M.Bn.COMPLETED&&Ee.FetchLocalRemoteBalance.status!==M.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:M.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(Ee=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(Ee)),Ee)switch(Ee.event){case M.nM.INVOICE:this.logger.info(Ee),Ee&&Ee.data&&Ee.data.label&&this.store.dispatch((0,L.aL)({payload:Ee.data}));break;case M.nM.SEND_PAYMENT:case M.nM.BLOCK_HEIGHT:this.logger.info(Ee);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(Ee))}})}reorderedSwapResponse(a){const u=[[{key:"id",value:a.id,title:"Swap Id",width:100,type:M.Gi.STRING}],[{key:"state",value:this.swapStatePipe.transform(a.state||""),title:"State",width:50,type:M.Gi.STRING},{key:"role",value:this.titleCasePipe.transform(a.role),title:"Role",width:50,type:M.Gi.STRING}],[{key:"alias",value:a.alias,title:"Alias",width:50,type:M.Gi.STRING},{key:"channel_id",value:a.channel_id,title:"Short Channel ID",width:50,type:M.Gi.STRING}],[{key:"amount",value:this.decimalPipe.transform(a.amount),title:"Amount (Sats)",width:50,type:M.Gi.STRING},{key:"created_at",value:this.datePipe.transform(new Date(a.created_at||""),"dd/MMM/YYYY HH:mm"),title:"Created At",width:50,type:M.Gi.STRING}],[{key:"peer_node_id",value:a.peer_node_id,title:"Peer Node Id",width:100,type:M.Gi.STRING}],[{key:"initiator_node_id",value:a.initiator_node_id,title:"Initiator Node Id",width:100,type:M.Gi.STRING}]];return a.opening_tx_id&&u.push([{key:"opening_tx_id",value:a.opening_tx_id,title:"Opening Transaction Id",width:100,type:M.Gi.STRING}]),a.claim_tx_id&&u.push([{key:"claim_tx_id",value:a.claim_tx_id,title:"Claim Transaction Id",width:100,type:M.Gi.STRING}]),a.cancel_message&&u.push([{key:"cancel_message",value:a.cancel_message,title:"Cancel Message",width:100,type:M.Gi.STRING}]),u}initializeRemainingData(a,u){this.sessionService.setItem("clnUnlocked","true");const l={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,w.ac)({payload:M.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:l}));let _=this.location.path();_.includes("/lnd/")?_=_?.replace("/lnd/","/cln/"):_.includes("/ecl/")&&(_=_?.replace("/ecl/","/cln/")),(_.includes("/login")||_.includes("/error")||""===_||"HOME"===u||_.includes("?access-key="))&&(_="/cln/home"),this.router.navigate([_]),this.store.dispatch((0,L.wD)()),this.store.dispatch((0,L.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,L.HJ)({payload:"perkw"})),this.store.dispatch((0,L.HJ)({payload:"perkb"})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.Ly)()),this.store.dispatch((0,L.cQ)())}handleErrorWithoutAlert(a,u,l,_){if(this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.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:u}));const O=this.commonService.extractErrorMessage(_,l);this.store.dispatch((0,L.Ni)({payload:{action:a,status:M.Bn.ERROR,statusCode:_.status.toString(),message:O}}))}}handleErrorWithAlert(a,u,l,_,O){if(this.logger.error(O),401===O.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:u}));const R=this.commonService.extractErrorMessage(O);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:l,message:{code:O.status,message:R,URL:_},component:N.H}}})),this.store.dispatch((0,L.Ni)({payload:{action:a,status:M.Bn.ERROR,statusCode:O.status.toString(),message:R,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return(Te=S).\u0275fac=function(a){return new(a||Te)(B.LFG(t.eX),B.LFG(W.eN),B.LFG(Y.yh),B.LFG(Q.m),B.LFG(X.v),B.LFG(ee.mQ),B.LFG(me.F0),B.LFG(re.d),B.LFG(ie.Ye),B.LFG(se.rn),B.LFG(ie.rS),B.LFG(ie.JJ),B.LFG(ie.uU))},Te.\u0275prov=B.Yz7({token:Te,factory:Te.\u0275fac}),S})()},9828:(We,q,m)=>{"use strict";m.d(q,{AS:()=>T,Ao:()=>ie,Bo:()=>Q,EQ:()=>Te,Fl:()=>a,Ho:()=>u,Hz:()=>se,JG:()=>M,JS:()=>i,OL:()=>me,PP:()=>N,Rn:()=>W,T4:()=>V,Wi:()=>d,Wj:()=>Y,Y_:()=>ce,ZW:()=>B,ey:()=>s,gc:()=>k,hx:()=>L,jK:()=>re,lK:()=>ee,lw:()=>g,xQ:()=>X,yA:()=>h,zm:()=>w});var t=m(9653);const e=(0,t.ZF)("cln"),g=(0,t.P1)(e,_=>_.nodeSettings),T=(0,t.P1)(e,_=>({pageSettings:_.pageSettings,apiCallStatus:_.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,_=>_.information),h=((0,t.P1)(e,_=>_.apisCallStatus.FetchInfo),(0,t.P1)(e,_=>_.apisCallStatus)),N=(0,t.P1)(e,_=>({payments:_.payments,apiCallStatus:_.apisCallStatus.FetchPayments})),d=(0,t.P1)(e,_=>({peers:_.peers,apiCallStatus:_.apisCallStatus.FetchPeers})),M=(0,t.P1)(e,_=>({fees:_.fees,apiCallStatus:_.apisCallStatus.FetchFees})),w=(0,t.P1)(e,_=>({feeRatesPerKB:_.feeRatesPerKB,apiCallStatus:_.apisCallStatus.FetchFeeRatesperkb})),L=(0,t.P1)(e,_=>({feeRatesPerKW:_.feeRatesPerKW,apiCallStatus:_.apisCallStatus.FetchFeeRatesperkw})),k=(0,t.P1)(e,_=>({listInvoices:_.invoices,apiCallStatus:_.apisCallStatus.FetchInvoices})),V=(0,t.P1)(e,_=>({utxos:_.utxos,apiCallStatus:_.apisCallStatus.FetchUTXOs})),B=(0,t.P1)(e,_=>({activeChannels:_.activeChannels,pendingChannels:_.pendingChannels,inactiveChannels:_.inactiveChannels,apiCallStatus:_.apisCallStatus.FetchChannels})),W=(0,t.P1)(e,_=>({balance:_.balance,apiCallStatus:_.apisCallStatus.FetchBalance})),Y=(0,t.P1)(e,_=>({localRemoteBalance:_.localRemoteBalance,apiCallStatus:_.apisCallStatus.FetchLocalRemoteBalance})),Q=(0,t.P1)(e,_=>({forwardingHistory:_.forwardingHistory,apiCallStatus:_.apisCallStatus.FetchForwardingHistoryS})),X=(0,t.P1)(e,_=>({failedForwardingHistory:_.failedForwardingHistory,apiCallStatus:_.apisCallStatus.FetchForwardingHistoryF})),ee=(0,t.P1)(e,_=>({localFailedForwardingHistory:_.localFailedForwardingHistory,apiCallStatus:_.apisCallStatus.FetchForwardingHistoryL})),me=(0,t.P1)(e,_=>({information:_.information,nodeSettings:_.nodeSettings,balance:_.balance})),re=(0,t.P1)(e,_=>({information:_.information,balance:_.balance,numPeers:_.peers.length})),ie=(0,t.P1)(e,_=>({information:_.information,balance:_.balance})),se=(0,t.P1)(e,_=>({information:_.information,nodeSettings:_.nodeSettings,apisCallStatus:[_.apisCallStatus.FetchInfo,_.apisCallStatus.FetchForwardingHistoryS]})),ce=(0,t.P1)(e,_=>({offers:_.offers,apiCallStatus:_.apisCallStatus.FetchOffers})),Te=(0,t.P1)(e,_=>({offersBookmarks:_.offersBookmarks,apiCallStatus:_.apisCallStatus.FetchOfferBookmarks})),i=(0,t.P1)(e,_=>({policy:_.peerswapPolicy,apiCallStatus:_.apisCallStatus.FetchPSPolicy})),a=(0,t.P1)(e,_=>({swapOuts:_.swapOuts,swapIns:_.swapIns,swapsCanceled:_.swapsCanceled,apiCallStatus:_.apisCallStatus.FetchSwaps})),u=(0,t.P1)(e,_=>({totalSwapPeers:_.totalSwapPeers,swapPeers:_.swapPeers,apiCallStatus:_.apisCallStatus.FetchSwapPeers}));(0,t.P1)(e,_=>({swapRequests:_.swapRequests,apiCallStatus:_.apisCallStatus.FetchSwapRequests}))},5566:(We,q,m)=>{"use strict";m.d(q,{y:()=>Oe});var t=m(5412),e=m(2687),g=m(7579),T=m(2722),s=m(7731),x=m(9828),h=m(4650),N=m(5043),d=m(62),M=m(7009),w=m(9653),L=m(6895),k=m(2216),V=m(1576),B=m(5829),W=m(4859),Y=m(3546),Q=m(4850),X=m(1572),ee=m(266),me=m(658),re=m(5199),ie=m(3390);function se(he,Ae){if(1&he&&h._UZ(0,"qr-code",33),2&he){const ge=h.oxw();h.Q6J("value",(null==ge.invoice?null:ge.invoice.bolt11)||(null==ge.invoice?null:ge.invoice.bolt12))("size",ge.qrWidth)("errorCorrectionLevel","L")}}function ce(he,Ae){1&he&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}const Te=function(he){return{"mr-0":he}};function S(he,Ae){if(1&he&&h._UZ(0,"span",35),2&he){const ge=h.oxw();h.Q6J("ngClass",h.VKq(1,Te,ge.screenSize===ge.screenSizeEnum.XS))}}function i(he,Ae){if(1&he&&h._UZ(0,"span",36),2&he){const ge=h.oxw();h.Q6J("ngClass",h.VKq(1,Te,ge.screenSize===ge.screenSizeEnum.XS))}}function a(he,Ae){if(1&he&&h._UZ(0,"span",37),2&he){const ge=h.oxw();h.Q6J("ngClass",h.VKq(1,Te,ge.screenSize===ge.screenSizeEnum.XS))}}function u(he,Ae){if(1&he&&h._UZ(0,"qr-code",33),2&he){const ge=h.oxw();h.Q6J("value",(null==ge.invoice?null:ge.invoice.bolt11)||(null==ge.invoice?null:ge.invoice.bolt12))("size",ge.qrWidth)("errorCorrectionLevel","L")}}function l(he,Ae){1&he&&(h.TgZ(0,"span",38),h._uU(1,"QR Code Not Applicable"),h.qZA())}function _(he,Ae){1&he&&h._UZ(0,"mat-divider",39)}function O(he,Ae){if(1&he&&(h.TgZ(0,"div",19)(1,"div",40),h._UZ(2,"fa-icon",41),h.TgZ(3,"span"),h._uU(4),h.qZA()()()),2&he){const ge=h.oxw();h.xp6(2),h.Q6J("icon",ge.faExclamationTriangle),h.xp6(2),h.Oqu(null==ge.invoice?null:ge.invoice.warning_capacity)}}function R(he,Ae){1&he&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function C(he,Ae){1&he&&h._UZ(0,"span",47)}const n=function(){return[]};function v(he,Ae){if(1&he&&(h.TgZ(0,"div",43)(1,"div",44)(2,"span",45),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,C,1,0,"span",46),h.qZA()()),2&he){const ge=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,(null==ge.invoice?null:ge.invoice.amount_received_msat)/1e3)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,n).constructor(35))}}function K(he,Ae){if(1&he&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&he){const ge=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,(null==ge.invoice?null:ge.invoice.amount_received_msat)/1e3)," Sats")}}function F(he,Ae){if(1&he&&(h.ynx(0),h.YNc(1,v,6,5,"div",42),h.YNc(2,K,3,3,"div",23),h.BQk()),2&he){const ge=h.oxw();h.xp6(1),h.Q6J("ngIf",ge.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!ge.flgInvoicePaid)}}function G(he,Ae){1&he&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function ye(he,Ae){1&he&&h._UZ(0,"mat-spinner",49),2&he&&h.Q6J("diameter",20)}function Ee(he,Ae){if(1&he&&(h.ynx(0),h.YNc(1,G,2,0,"span",23),h.YNc(2,ye,1,1,"mat-spinner",48),h.BQk()),2&he){const ge=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==ge.invoice?null:ge.invoice.status)||!ge.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==ge.invoice?null:ge.invoice.status)&&ge.flgVersionCompatible)}}function pe(he,Ae){if(1&he&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",25),h.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),h._uU(5,"Payment Hash"),h.qZA(),h.TgZ(6,"span",24),h._uU(7),h.qZA()()(),h._UZ(8,"mat-divider",25),h.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),h._uU(12,"Label"),h.qZA(),h.TgZ(13,"span",24),h._uU(14),h.qZA()()(),h._UZ(15,"mat-divider",25),h.qZA()),2&he){const ge=h.oxw();h.xp6(7),h.Oqu(null==ge.invoice?null:ge.invoice.payment_hash),h.xp6(7),h.Oqu(null==ge.invoice?null:ge.invoice.label)}}function qe(he,Ae){1&he&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function Ce(he,Ae){1&he&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function Se(he,Ae){if(1&he){const ge=h.EpF();h.TgZ(0,"button",50),h.NdJ("copied",function(Je){h.CHM(ge);const Re=h.oxw();return h.KtG(Re.onCopyPayment(Je))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&he){const ge=h.oxw();h.Q6J("payload",(null==ge.invoice?null:ge.invoice.bolt11)||(null==ge.invoice?null:ge.invoice.bolt12))}}function fe(he,Ae){if(1&he){const ge=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){h.CHM(ge);const Je=h.oxw();return h.KtG(Je.onClose())}),h._uU(1,"OK"),h.qZA()}}const Fe=function(he){return{"display-none":he}},oe=function(he){return{"xs-scroll-y":he}},ze=function(he,Ae){return{"mt-2":he,"mt-1":Ae}};let Oe=(()=>{var he;class Ae{constructor(Ue,Je,Re,le,rt,Qe){this.dialogRef=Ue,this.data=Je,this.logger=Re,this.commonService=le,this.snackBar=rt,this.store=Qe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.unSubs=[new g.x,new g.x,new g.x,new g.x,new g.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(x.gc).pipe((0,T.R)(this.unSubs[1])).subscribe(Ue=>{const Je=this.invoice.status,le=(Ue.listInvoices.invoices||[])?.find(rt=>rt.payment_hash===this.invoice.payment_hash)||null;le&&(this.invoice=le),Je!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ue)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ue){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ue)}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return(he=Ae).\u0275fac=function(Ue){return new(Ue||he)(h.Y36(t.so),h.Y36(t.WI),h.Y36(N.mQ),h.Y36(d.v),h.Y36(M.ux),h.Y36(w.yh))},he.\u0275cmp=h.Xpm({type:he,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 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",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"],["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(Ue,Je){if(1&Ue&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,se,1,3,"qr-code",2),h.YNc(3,ce,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.YNc(10,S,1,3,"span",9),h.YNc(11,i,1,3,"span",10),h.YNc(12,a,1,3,"span",11),h.qZA()(),h.TgZ(13,"button",12),h.NdJ("click",function(){return Je.onClose()}),h._uU(14,"X"),h.qZA()(),h.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),h.YNc(18,u,1,3,"qr-code",2),h.YNc(19,l,2,0,"span",16),h.qZA(),h.YNc(20,_,1,0,"mat-divider",17),h.YNc(21,O,5,2,"div",18),h.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),h._uU(25),h.qZA(),h.TgZ(26,"span",22),h._uU(27),h.ALo(28,"number"),h.YNc(29,R,2,0,"ng-container",23),h.qZA()(),h.TgZ(30,"div",20)(31,"h4",21),h._uU(32,"Amount Received"),h.qZA(),h.TgZ(33,"span",24),h.YNc(34,F,3,2,"ng-container",23),h.YNc(35,Ee,3,2,"ng-container",23),h.qZA()()(),h._UZ(36,"mat-divider",25),h.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),h._uU(40,"Date Expiry"),h.qZA(),h.TgZ(41,"span",22),h._uU(42),h.ALo(43,"date"),h.qZA()(),h.TgZ(44,"div",20)(45,"h4",21),h._uU(46,"Date Settled"),h.qZA(),h.TgZ(47,"span",22),h._uU(48),h.ALo(49,"date"),h.qZA()()(),h._UZ(50,"mat-divider",25),h.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),h._uU(54,"Description"),h.qZA(),h.TgZ(55,"span",22),h._uU(56),h.qZA()()(),h._UZ(57,"mat-divider",25),h.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),h._uU(61),h.qZA(),h.TgZ(62,"span",24),h._uU(63),h.qZA()()(),h.YNc(64,pe,16,2,"div",23),h.TgZ(65,"div",27)(66,"button",28),h.NdJ("click",function(){return Je.onShowAdvanced()}),h.YNc(67,qe,2,0,"p",29),h.YNc(68,Ce,2,0,"ng-template",null,30,h.W1O),h.qZA(),h.YNc(70,Se,2,1,"button",31),h.YNc(71,fe,2,0,"button",32),h.qZA()()()()()),2&Ue){const Re=h.MAs(69);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Je.invoice&&Je.invoice.bolt11&&""!==(null==Je.invoice?null:Je.invoice.bolt11)||null!=Je.invoice&&Je.invoice.bolt12&&""!==(null==Je.invoice?null:Je.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(40,Fe,Je.screenSize===Je.screenSizeEnum.XS||Je.screenSize===Je.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Je.invoice?null:Je.invoice.bolt11)&&""!==(null==Je.invoice?null:Je.invoice.bolt11)||(null==Je.invoice?null:Je.invoice.bolt12)&&""!==(null==Je.invoice?null:Je.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Je.invoice&&Je.invoice.bolt11||null!=Je.invoice&&Je.invoice.bolt12)),h.xp6(4),h.Q6J("icon",Je.faReceipt),h.xp6(2),h.hij(" ",Je.screenSize===Je.screenSizeEnum.XS?Je.newlyAdded?"Created":"Invoice":Je.newlyAdded?"Invoice Created":"Invoice Information"," "),h.xp6(1),h.Q6J("ngIf","paid"===(null==Je.invoice?null:Je.invoice.status)),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Je.invoice?null:Je.invoice.status)),h.xp6(1),h.Q6J("ngIf","expired"===(null==Je.invoice?null:Je.invoice.status)),h.xp6(3),h.Q6J("ngClass",h.VKq(42,oe,Je.screenSize===Je.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Je.invoice&&Je.invoice.bolt11&&""!==(null==Je.invoice?null:Je.invoice.bolt11)||null!=Je.invoice&&Je.invoice.bolt12&&""!==(null==Je.invoice?null:Je.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(44,Fe,Je.screenSize!==Je.screenSizeEnum.XS&&Je.screenSize!==Je.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Je.invoice?null:Je.invoice.bolt11)&&""!==(null==Je.invoice?null:Je.invoice.bolt11)||(null==Je.invoice?null:Je.invoice.bolt12)&&""!==(null==Je.invoice?null:Je.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Je.invoice&&Je.invoice.bolt11||null!=Je.invoice&&Je.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Je.screenSize===Je.screenSizeEnum.XS||Je.screenSize===Je.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngIf",null==Je.invoice?null:Je.invoice.warning_capacity),h.xp6(4),h.Oqu(Je.screenSize===Je.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij(" ",h.lcZ(28,32,(null==Je.invoice?null:Je.invoice.amount_msat)/1e3||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Je.invoice&&Je.invoice.amount_msat)||"0"===(null==Je.invoice?null:Je.invoice.amount_msat)),h.xp6(5),h.Q6J("ngIf","paid"===(null==Je.invoice?null:Je.invoice.status)),h.xp6(1),h.Q6J("ngIf","paid"!==(null==Je.invoice?null:Je.invoice.status)),h.xp6(7),h.Oqu(h.xi3(43,34,1e3*(null==Je.invoice?null:Je.invoice.expires_at),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(49,37,1e3*(null==Je.invoice?null:Je.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.xp6(8),h.Oqu((null==Je.invoice?null:Je.invoice.description)||"-"),h.xp6(5),h.hij("",null!=Je.invoice&&Je.invoice.bolt12?"Bolt12":null!=Je.invoice&&Je.invoice.bolt11&&!Je.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.xp6(2),h.Oqu((null==Je.invoice?null:Je.invoice.bolt11)||(null==Je.invoice?null:Je.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Je.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(46,ze,!Je.showAdvanced,Je.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Je.showAdvanced)("ngIfElse",Re),h.xp6(3),h.Q6J("ngIf",(null==Je.invoice?null:Je.invoice.bolt11)&&""!==(null==Je.invoice?null:Je.invoice.bolt11)||(null==Je.invoice?null:Je.invoice.bolt12)&&""!==(null==Je.invoice?null:Je.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Je.invoice&&Je.invoice.bolt11||null!=Je.invoice&&Je.invoice.bolt12))}},dependencies:[L.mk,L.sg,L.O5,k.BN,V.xw,V.Wh,V.yH,B.oO,W.lW,Y.dn,Y.dk,Q.d,X.Ou,ee.gM,me.uU,re.y,ie.h,L.JJ,L.uU]}),Ae})()},1462:(We,q,m)=>{"use strict";m.d(q,{k:()=>G});var t=m(5412),e=m(2687),g=m(7579),T=m(2722),s=m(7731),x=m(4650),h=m(5043),N=m(62),d=m(7009),M=m(8104),w=m(6895),L=m(2216),k=m(1576),V=m(5829),B=m(4859),W=m(3546),Y=m(4850),Q=m(658),X=m(5199),ee=m(3390);function me(ye,Ee){if(1&ye&&x._UZ(0,"qr-code",28),2&ye){const pe=x.oxw();x.Q6J("value",null==pe.offer?null:pe.offer.bolt12)("size",pe.qrWidth)("errorCorrectionLevel","L")}}function re(ye,Ee){1&ye&&(x.TgZ(0,"span",29),x._uU(1,"N/A"),x.qZA())}function ie(ye,Ee){if(1&ye&&x._UZ(0,"qr-code",28),2&ye){const pe=x.oxw();x.Q6J("value",null==pe.offer?null:pe.offer.bolt12)("size",pe.qrWidth)("errorCorrectionLevel","L")}}function se(ye,Ee){1&ye&&(x.TgZ(0,"span",30),x._uU(1,"QR Code Not Applicable"),x.qZA())}function ce(ye,Ee){1&ye&&x._UZ(0,"mat-divider",31),2&ye&&x.Q6J("inset",!0)}function Te(ye,Ee){1&ye&&x._UZ(0,"mat-divider",19)}function S(ye,Ee){if(1&ye&&(x.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),x._uU(3,"Used"),x.qZA(),x.TgZ(4,"span",18),x._uU(5),x.qZA()(),x.TgZ(6,"div",16)(7,"h4",17),x._uU(8,"Single Use"),x.qZA(),x.TgZ(9,"span",18),x._uU(10),x.qZA()()()),2&ye){const pe=x.oxw(2);x.xp6(5),x.hij(" ",null!=pe.offer&&pe.offer.used?null!=pe.offer&&pe.offer.used?"Yes":"No":"N/K"," "),x.xp6(5),x.hij(" ",null!=pe.offer&&pe.offer.single_use?null!=pe.offer&&pe.offer.single_use?"Yes":"No":"N/K"," ")}}function i(ye,Ee){1&ye&&x._UZ(0,"mat-divider",19)}function a(ye,Ee){if(1&ye&&(x.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),x._uU(3,"Issuer"),x.qZA(),x.TgZ(4,"span",34),x._uU(5),x.qZA()()()),2&ye){const pe=x.oxw(2);x.xp6(5),x.Oqu(null==pe.offerDecoded?null:pe.offerDecoded.offer_issuer)}}function u(ye,Ee){1&ye&&x._UZ(0,"mat-divider",19)}function l(ye,Ee){if(1&ye&&(x.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),x._uU(3,"Label"),x.qZA(),x.TgZ(4,"span",18),x._uU(5),x.qZA()()()),2&ye){const pe=x.oxw(2);x.xp6(5),x.Oqu(pe.offer.label)}}function _(ye,Ee){if(1&ye&&(x.TgZ(0,"div"),x.YNc(1,Te,1,0,"mat-divider",32),x.YNc(2,S,11,2,"div",33),x.YNc(3,i,1,0,"mat-divider",32),x.YNc(4,a,6,1,"div",33),x.YNc(5,u,1,0,"mat-divider",32),x.YNc(6,l,6,1,"div",33),x._UZ(7,"mat-divider",19),x.TgZ(8,"div",15)(9,"div",20)(10,"h4",17),x._uU(11,"Offer ID"),x.qZA(),x.TgZ(12,"span",18),x._uU(13),x.qZA()()(),x._UZ(14,"mat-divider",19),x.TgZ(15,"div",15)(16,"div",20)(17,"h4",17),x._uU(18,"Offer Node ID"),x.qZA(),x.TgZ(19,"span",18),x._uU(20),x.qZA()()(),x._UZ(21,"mat-divider",19),x.qZA()),2&ye){const pe=x.oxw();x.xp6(1),x.Q6J("ngIf",(null==pe.offer?null:pe.offer.used)||(null==pe.offer?null:pe.offer.single_use)),x.xp6(1),x.Q6J("ngIf",(null==pe.offer?null:pe.offer.used)||(null==pe.offer?null:pe.offer.single_use)),x.xp6(1),x.Q6J("ngIf",null==pe.offerDecoded?null:pe.offerDecoded.issuer),x.xp6(1),x.Q6J("ngIf",null==pe.offerDecoded?null:pe.offerDecoded.issuer),x.xp6(1),x.Q6J("ngIf",pe.offer.label),x.xp6(1),x.Q6J("ngIf",pe.offer.label),x.xp6(7),x.Oqu(pe.offerDecoded.offer_id),x.xp6(7),x.Oqu(null==pe.offerDecoded?null:pe.offerDecoded.offer_node_id)}}function O(ye,Ee){1&ye&&(x.TgZ(0,"p"),x._uU(1,"Show Advanced"),x.qZA())}function R(ye,Ee){1&ye&&(x.TgZ(0,"p"),x._uU(1,"Hide Advanced"),x.qZA())}function C(ye,Ee){if(1&ye){const pe=x.EpF();x.TgZ(0,"button",35),x.NdJ("copied",function(Ce){x.CHM(pe);const Se=x.oxw();return x.KtG(Se.onCopyOffer(Ce))}),x._uU(1,"Copy Offer"),x.qZA()}if(2&ye){const pe=x.oxw();x.Q6J("payload",null==pe.offer?null:pe.offer.bolt12)}}function n(ye,Ee){if(1&ye){const pe=x.EpF();x.TgZ(0,"button",36),x.NdJ("click",function(){x.CHM(pe);const Ce=x.oxw();return x.KtG(Ce.onClose())}),x._uU(1,"OK"),x.qZA()}}const v=function(ye){return{"display-none":ye}},K=function(ye){return{"xs-scroll-y":ye}},F=function(ye,Ee){return{"mt-2":ye,"mt-1":Ee}};let G=(()=>{var ye;class Ee{constructor(qe,Ce,Se,fe,Fe,oe){this.dialogRef=qe,this.data=Ce,this.logger=Se,this.commonService=fe,this.snackBar=Fe,this.dataService=oe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOfferPaid=!1,this.unSubs=[new g.x,new g.x,new g.x,new g.x,new g.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,T.R)(this.unSubs[1])).subscribe(qe=>{this.offerDecoded=qe,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(qe){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+qe)}ngOnDestroy(){this.unSubs.forEach(qe=>{qe.next(null),qe.complete()})}}return(ye=Ee).\u0275fac=function(qe){return new(qe||ye)(x.Y36(t.so),x.Y36(t.WI),x.Y36(h.mQ),x.Y36(N.v),x.Y36(d.ux),x.Y36(M.D))},ye.\u0275cmp=x.Xpm({type:ye,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 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(qe,Ce){if(1&qe&&(x.TgZ(0,"div",0)(1,"div",1),x.YNc(2,me,1,3,"qr-code",2),x.YNc(3,re,2,0,"span",3),x.qZA(),x.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),x._UZ(7,"fa-icon",7),x.TgZ(8,"span",8),x._uU(9),x.qZA()(),x.TgZ(10,"button",9),x.NdJ("click",function(){return Ce.onClose()}),x._uU(11,"X"),x.qZA()(),x.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),x.YNc(15,ie,1,3,"qr-code",2),x.YNc(16,se,2,0,"span",13),x.qZA(),x.YNc(17,ce,1,1,"mat-divider",14),x.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),x._uU(21,"Amount Requested (Sats)"),x.qZA(),x.TgZ(22,"span",18),x._uU(23),x.ALo(24,"number"),x.qZA()(),x.TgZ(25,"div",16)(26,"h4",17),x._uU(27,"Valid"),x.qZA(),x.TgZ(28,"span",18),x._uU(29),x.qZA()()(),x._UZ(30,"mat-divider",19),x.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),x._uU(34,"Description"),x.qZA(),x.TgZ(35,"span",18),x._uU(36),x.qZA()()(),x._UZ(37,"mat-divider",19),x.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),x._uU(41,"Offer"),x.qZA(),x.TgZ(42,"span",18),x._uU(43),x.qZA()()(),x.YNc(44,_,22,8,"div",21),x.TgZ(45,"div",22)(46,"button",23),x.NdJ("click",function(){return Ce.onShowAdvanced()}),x.YNc(47,O,2,0,"p",24),x.YNc(48,R,2,0,"ng-template",null,25,x.W1O),x.qZA(),x.YNc(50,C,2,1,"button",26),x.YNc(51,n,2,0,"button",27),x.qZA()()()()()),2&qe){const Se=x.MAs(49);x.xp6(1),x.Q6J("fxLayoutAlign",null!=Ce.offer&&Ce.offer.bolt12&&""!==(null==Ce.offer?null:Ce.offer.bolt12)?"center start":"center center")("ngClass",x.VKq(24,v,Ce.screenSize===Ce.screenSizeEnum.XS||Ce.screenSize===Ce.screenSizeEnum.SM)),x.xp6(1),x.Q6J("ngIf",(null==Ce.offer?null:Ce.offer.bolt12)&&""!==(null==Ce.offer?null:Ce.offer.bolt12)),x.xp6(1),x.Q6J("ngIf",!(null!=Ce.offer&&Ce.offer.bolt12)||""===(null==Ce.offer?null:Ce.offer.bolt12)),x.xp6(4),x.Q6J("icon",Ce.faReceipt),x.xp6(2),x.Oqu(Ce.screenSize===Ce.screenSizeEnum.XS?Ce.newlyAdded?"Created":"Offer":Ce.newlyAdded?"Offer Created":"Offer Information"),x.xp6(3),x.Q6J("ngClass",x.VKq(26,K,Ce.screenSize===Ce.screenSizeEnum.XS)),x.xp6(2),x.Q6J("fxLayoutAlign",null!=Ce.offer&&Ce.offer.bolt12&&""!==(null==Ce.offer?null:Ce.offer.bolt12)?"center start":"center center")("ngClass",x.VKq(28,v,Ce.screenSize!==Ce.screenSizeEnum.XS&&Ce.screenSize!==Ce.screenSizeEnum.SM)),x.xp6(1),x.Q6J("ngIf",(null==Ce.offer?null:Ce.offer.bolt12)&&""!==(null==Ce.offer?null:Ce.offer.bolt12)),x.xp6(1),x.Q6J("ngIf",!(null!=Ce.offer&&Ce.offer.bolt12)||""===(null==Ce.offer?null:Ce.offer.bolt12)),x.xp6(1),x.Q6J("ngIf",Ce.screenSize===Ce.screenSizeEnum.XS||Ce.screenSize===Ce.screenSizeEnum.SM),x.xp6(6),x.hij(" ",null!=Ce.offerDecoded&&Ce.offerDecoded.offer_amount_msat&&0!==(null==Ce.offerDecoded?null:Ce.offerDecoded.offer_amount_msat)?x.lcZ(24,22,(null==Ce.offerDecoded?null:Ce.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),x.xp6(6),x.hij(" ",null!=Ce.offerDecoded&&Ce.offerDecoded.valid?null!=Ce.offerDecoded&&Ce.offerDecoded.valid?"Yes":"No":"N/K"," "),x.xp6(7),x.hij(" ",null==Ce.offerDecoded?null:Ce.offerDecoded.offer_description," "),x.xp6(7),x.Oqu(null==Ce.offer?null:Ce.offer.bolt12),x.xp6(1),x.Q6J("ngIf",Ce.showAdvanced),x.xp6(1),x.Q6J("ngClass",x.WLB(30,F,!Ce.showAdvanced,Ce.showAdvanced)),x.xp6(2),x.Q6J("ngIf",!Ce.showAdvanced)("ngIfElse",Se),x.xp6(3),x.Q6J("ngIf",(null==Ce.offer?null:Ce.offer.bolt12)&&""!==(null==Ce.offer?null:Ce.offer.bolt12)),x.xp6(1),x.Q6J("ngIf",!(null!=Ce.offer&&Ce.offer.bolt12)||""===(null==Ce.offer?null:Ce.offer.bolt12))}},dependencies:[w.mk,w.O5,L.BN,k.xw,k.Wh,k.yH,V.oO,B.lW,W.dn,W.dk,Y.d,Q.uU,X.y,ee.h,w.JJ]}),Ee})()},2994:(We,q,m)=>{"use strict";m.d(q,{$W:()=>me,BL:()=>_,Bw:()=>Q,CX:()=>M,DJ:()=>he,EK:()=>S,El:()=>ie,Fd:()=>T,GD:()=>Te,HG:()=>ee,HI:()=>C,Iy:()=>Ee,Lf:()=>ye,Nr:()=>Ce,OG:()=>O,On:()=>X,QZ:()=>g,RX:()=>L,SN:()=>w,Sf:()=>oe,TM:()=>F,TW:()=>B,UR:()=>k,WM:()=>qe,WO:()=>n,YP:()=>fe,YX:()=>u,Z$:()=>Se,Z8:()=>re,Zr:()=>s,_E:()=>i,aL:()=>Fe,cQ:()=>R,eF:()=>N,eN:()=>V,i:()=>W,iL:()=>Y,iz:()=>d,kL:()=>v,mC:()=>G,n7:()=>ze,oV:()=>K,pW:()=>l,pd:()=>h,ti:()=>Ae,wD:()=>x});var t=m(9653),e=m(7731);const g=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),s=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),x=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),h=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.FETCH_FEES_ECL),L=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),V=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),B=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),W=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),Y=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),Q=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),X=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),me=(0,t.PH)(e.lr.FETCH_PEERS_ECL),re=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),ie=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),Te=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),S=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),u=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),l=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),O=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),R=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),C=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),K=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),F=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),G=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),ye=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),Ee=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),qe=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),Ce=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),Se=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),fe=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Fe=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),oe=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),ze=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),he=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),Ae=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(We,q,m)=>{"use strict";m.d(q,{o:()=>ie});var t=m(493),e=m(7579),g=m(9646),T=m(5577),s=m(2722),x=m(4004),h=m(262),N=m(1786),d=m(7731),M=m(7861),w=m(7766),L=m(2994),k=m(2501),V=m(4650),B=m(529),W=m(9653),Y=m(5986),Q=m(62),X=m(5043),ee=m(9116),me=m(7998),re=m(6895);let ie=(()=>{var se;class ce{constructor(S,i,a,u,l,_,O,R,C){this.actions=S,this.httpClient=i,this.store=a,this.sessionService=u,this.commonService=l,this.logger=_,this.router=O,this.wsService=R,this.location=C,this.CHILD_API_URL=d.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INFO_ECL),(0,T.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,M.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,M.ac)({payload:d.m6.GET_NODE_INFO})),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(d.pg.SET_SELECTED_NODE))),(0,x.U)(v=>(this.logger.info(v),this.initializeRemainingData(v,n.payload.loadPage),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.GET_NODE_INFO})),{type:d.lr.SET_INFO_ECL,payload:v||{}})),(0,h.K)(v=>{const K=this.commonService.extractErrorCode(v),F=503===K?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(v);return this.router.navigate(["/error"],{state:{errorCode:K,errorMessage:F}}),this.handleErrorWithoutAlert("FetchInfo",d.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:K,error:F}),(0,g.of)({type:d.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_FEES_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/fees").pipe((0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:d.Bn.COMPLETED}})),{type:d.lr.SET_FEES_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchFees",d.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,g.of)({type:d.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAYMENTS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/payments").pipe((0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",d.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,g.of)({type:d.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_CHANNELS_ECL),(0,T.z)(n=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.CHANNELS_API).pipe((0,x.U)(v=>(this.logger.info(v),this.rawChannelsList=v,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:d.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,L.cQ)()),{type:d.pg.VOID})),(0,h.K)(v=>(this.handleErrorWithoutAlert("FetchChannels",d.m6.NO_SPINNER,"Fetching Channels Failed.",v),(0,g.of)({type:d.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/balance"))),(0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.COMPLETED}})),{type:d.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,g.of)({type:d.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PEERS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.PEERS_API).pipe((0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PEERS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",d.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,g.of)({type:d.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_NEW_ADDRESS_ECL),(0,T.z)(()=>(this.store.dispatch((0,M.ac)({payload:d.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API).pipe((0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,M.uO)({payload:d.m6.GENERATE_NEW_ADDRESS})),{type:d.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithAlert("GetNewAddress",d.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.vv.ON_CHAIN_API,n),(0,g.of)({type:d.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_NEW_ADDRESS_ECL),(0,x.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_PEER_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.COMPLETED}})),v=v||[],this.store.dispatch((0,M.uO)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:v})),{type:d.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:v.find(K=>K.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,h.K)(v=>(this.handleErrorWithoutAlert("SaveNewPeer",d.m6.CONNECT_PEER,"Peer Connection Failed.",v),(0,g.of)({type:d.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.DETACH_PEER_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.vv.PEERS_API+"/"+n.payload.nodeId).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.uO)({payload:d.m6.DISCONNECT_PEER})),this.store.dispatch((0,M.jW)({payload:"Disconnecting Peer!"})),{type:d.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,h.K)(v=>(this.handleErrorWithAlert("DisconnectPeer",d.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.vv.PEERS_API+"/"+n.payload.nodeId,v),(0,g.of)({type:d.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_CHANNEL_ECL),(0,T.z)(n=>{this.store.dispatch((0,M.ac)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.INITIATED}}));const v={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(v.fundingFeerateSatByte=n.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API,v).pipe((0,x.U)(K=>(this.logger.info(K),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.COMPLETED}})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,M.uO)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,M.jW)({payload:"Channel Added Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(K=>(this.handleErrorWithoutAlert("SaveNewChannel",d.m6.OPEN_CHANNEL,"Opening Channel Failed.",K),(0,g.of)({type:d.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.UPDATE_CHANNEL_ECL),(0,T.z)(n=>{this.store.dispatch((0,M.ac)({payload:d.m6.UPDATE_CHAN_POLICY}));let v="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return v=n.payload.nodeIds?v+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?v+"&nodeId="+n.payload.nodeId:n.payload.channelIds?v+"&channelIds="+n.payload.channelIds:v+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API+"/updateRelayFee"+v,{}).pipe((0,x.U)(K=>(this.logger.info(K),this.store.dispatch((0,M.uO)({payload:d.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,M.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(K=>(this.handleErrorWithAlert("UpdateChannels",d.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.vv.CHANNELS_API,K),(0,g.of)({type:d.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CLOSE_CHANNEL_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.vv.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,x.U)(v=>(this.logger.info(v),setTimeout(()=>{this.store.dispatch((0,M.uO)({payload:n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,M.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.pg.VOID})),(0,h.K)(v=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.vv.CHANNELS_API,v),(0,g.of)({type:d.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_QUERY_ROUTES_ECL),(0,T.z)(n=>this.httpClient.get(this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,x.U)(v=>(this.logger.info(v),{type:d.lr.SET_QUERY_ROUTES_ECL,payload:v})),(0,h.K)(v=>(this.store.dispatch((0,L.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,v),(0,g.of)({type:d.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_QUERY_ROUTES_ECL),(0,x.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_PAYMENT_ECL),(0,T.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,M.ac)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PAYMENTS_API,n.payload).pipe((0,x.U)(v=>(this.logger.info(v),this.latestPaymentRes=v,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.pg.VOID})),(0,h.K)(v=>(this.logger.error("Error: "+JSON.stringify(v)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed.",v):this.handleErrorWithAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API,v),(0,g.of)({type:d.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_TRANSACTIONS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:d.Bn.COMPLETED}})),{type:d.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",d.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,g.of)({type:d.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_ONCHAIN_FUNDS_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.ON_CHAIN_API,n.payload).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,L.iL)()),{type:d.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:v})),(0,h.K)(v=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.m6.SEND_FUNDS,"Sending Fund Failed.",v),(0,g.of)({type:d.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CREATE_INVOICE_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.CREATE_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.INVOICES_API,n.payload).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.CREATE_INVOICE})),v.timestamp=Math.round((new Date).getTime()/1e3),v.expiresAt=Math.round(v.timestamp+n.payload.expireIn),v.description=n.payload.description,v.status="unpaid",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{invoice:v,newlyAdded:!0,component:w.R}}}))},200),{type:d.lr.ADD_INVOICE_ECL,payload:v})),(0,h.K)(v=>(this.handleErrorWithoutAlert("CreateInvoice",d.m6.CREATE_INVOICE,"Create Invoice Failed.",v),(0,g.of)({type:d.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INVOICES_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API).pipe((0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:d.Bn.COMPLETED}})),{type:d.lr.SET_INVOICES_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",d.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,g.of)({type:d.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.PEER_LOOKUP_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.SEARCHING_NODE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+n.payload).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.SEARCHING_NODE})),{type:d.lr.SET_LOOKUP_ECL,payload:v})),(0,h.K)(v=>(this.handleErrorWithAlert("Lookup",d.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+n.payload,v),(0,g.of)({type:d.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.INVOICE_LOOKUP_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API+"/"+n.payload).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.aL)({payload:v})),{type:d.lr.SET_LOOKUP_ECL,payload:v})),(0,h.K)(v=>(this.handleErrorWithoutAlert("Lookup",d.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",v),this.store.dispatch((0,M.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,g.of)({type:d.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_LOOKUP_ECL),(0,x.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAGE_SETTINGS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.INITIATED}})),this.httpClient.get(d.vv.PAGE_SETTINGS_API).pipe((0,x.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPageSettings",d.m6.NO_SPINNER,"Fetching Page Settings Failed.",n),(0,g.of)({type:d.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_PAGE_SETTINGS_ECL),(0,T.z)(n=>(this.store.dispatch((0,M.ac)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.QZ)({payload:{action:"SavePageSettings",status:d.Bn.INITIATED}})),this.httpClient.post(d.vv.PAGE_SETTINGS_API,n.payload).pipe((0,x.U)(v=>(this.logger.info(v),this.store.dispatch((0,L.QZ)({payload:{action:"SavePageSettings",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.jW)({payload:"Page Layout Updated Successfully!"})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:v||[]})),(0,h.K)(v=>(this.handleErrorWithAlert("SavePageSettings",d.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.vv.PAGE_SETTINGS_API,v),(0,g.of)({type:d.pg.VOID})))))))),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:d.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,L.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,M.jW)({payload:n}))},this.store.select(k.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==d.Bn.COMPLETED&&n.FetchInfo.status!==d.Bn.ERROR||n.FetchFees.status!==d.Bn.COMPLETED&&n.FetchFees.status!==d.Bn.ERROR||n.FetchOnchainBalance.status!==d.Bn.COMPLETED&&n.FetchOnchainBalance.status!==d.Bn.ERROR||n.FetchChannels.status!==d.Bn.COMPLETED&&n.FetchChannels.status!==d.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,M.uO)({payload:d.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(n=>{this.logger.info("Received new message from the service: "+JSON.stringify(n));let v="";if(n)switch(n.type){case d.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,v="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(v));break;case d.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,v="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(v));break;case d.$v.PAYMENT_RECEIVED:this.store.dispatch((0,L.aL)({payload:n}));break;case d.$v.PAYMENT_RELAYED:delete n.source,n.amountIn=Math.round((n.amountIn||0)/1e3),n.amountOut=Math.round((n.amountOut||0)/1e3),n.timestamp.unix&&(n.timestamp=1e3*n.timestamp.unix),this.store.dispatch((0,L.ti)({payload:n}));break;case d.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=this.rawChannelsList?.map(K=>(K.channelId===n.channelId&&K.nodeId===n.remoteNodeId&&(K.state=n.currentState),K)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,L.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let S=0,i=0,a=0,u={localBalance:0,remoteBalance:0},l=[];const _=[],O=[],R={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((C,n)=>{C&&("NORMAL"===C.state?(S=(C.toLocal||0)+(C.toRemote||0),i+=C.toLocal||0,a+=C.toRemote||0,C.balancedness=0===S?1:+(1-Math.abs(((C.toLocal||0)-(C.toRemote||0))/S)).toFixed(3),l.push(C),R.active.channels=R.active.channels+1,R.active.capacity=R.active.capacity+(C.toLocal||0)):C.state?.includes("WAIT")||C.state?.includes("CLOSING")||C.state?.includes("SYNCING")?(C.state=C.state?.replace(/_/g," "),_.push(C),R.pending.channels=R.pending.channels+1,R.pending.capacity=R.pending.capacity+(C.toLocal||0)):(C.state=C.state?.replace(/_/g," "),O.push(C),R.inactive.channels=R.inactive.channels+1,R.inactive.capacity=R.inactive.capacity+(C.toLocal||0)))}),u={localBalance:i,remoteBalance:a},l=this.commonService.sortDescByKey(l,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(l)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(O)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(R)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:l,pending:_,inactive:O,balances:u,status:R})),this.store.dispatch((0,L.eN)({payload:l})),this.store.dispatch((0,L.TW)({payload:_})),this.store.dispatch((0,L.i)({payload:O})),this.store.dispatch((0,L.On)({payload:u})),this.store.dispatch((0,L.HG)({payload:R}))}initializeRemainingData(S,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:S.nodeId,alias:S.alias,testnet:"testnet"===S.network,chains:S.publicAddresses,uris:S.uris,version:S.version,numberOfPendingChannels:0};this.store.dispatch((0,M.ac)({payload:d.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,M._V)({payload:a}));let u=this.location.path();u.includes("/lnd/")?u=u?.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=u?.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,L.wD)()),this.store.dispatch((0,L.WM)()),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,L.$W)())}handleErrorWithoutAlert(S,i,a,u){this.logger.error("ERROR IN: "+S+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,M.uO)({payload:i})),this.store.dispatch((0,L.QZ)({payload:{action:S,status:d.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,a)}})))}handleErrorWithAlert(S,i,a,u,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,M.uO)({payload:i}));const _=this.commonService.extractErrorMessage(l);this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status,message:_,URL:u},component:N.H}}})),this.store.dispatch((0,L.QZ)({payload:{action:S,status:d.Bn.ERROR,statusCode:l.status.toString(),message:_,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(S=>{S.next(null),S.complete()})}}return(se=ce).\u0275fac=function(S){return new(S||se)(V.LFG(t.eX),V.LFG(B.eN),V.LFG(W.yh),V.LFG(Y.m),V.LFG(Q.v),V.LFG(X.mQ),V.LFG(ee.F0),V.LFG(me.d),V.LFG(re.Ye))},se.\u0275prov=V.Yz7({token:se,factory:se.\u0275fac}),ce})()},2501:(We,q,m)=>{"use strict";m.d(q,{Bo:()=>Y,Ef:()=>W,JG:()=>M,LR:()=>g,PP:()=>d,T$:()=>x,Xz:()=>V,dx:()=>B,kY:()=>Q,nF:()=>T,yA:()=>N,yD:()=>s});var t=m(9653);const e=(0,t.ZF)("ecl"),g=(0,t.P1)(e,X=>X.nodeSettings),T=(0,t.P1)(e,X=>({pageSettings:X.pageSettings,apiCallStatus:X.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,X=>X.information),x=(0,t.P1)(e,X=>({information:X.information,apiCallStatus:X.apisCallStatus.FetchInfo})),N=((0,t.P1)(e,X=>X.apisCallStatus.FetchInfo),(0,t.P1)(e,X=>X.apisCallStatus)),d=(0,t.P1)(e,X=>({payments:X.payments,apiCallStatus:X.apisCallStatus.FetchPayments})),M=(0,t.P1)(e,X=>({fees:X.fees,apiCallStatus:X.apisCallStatus.FetchFees})),V=((0,t.P1)(e,X=>({activeChannels:X.activeChannels,apiCallStatus:X.apisCallStatus.FetchChannels})),(0,t.P1)(e,X=>({pendingChannels:X.pendingChannels,apiCallStatus:X.apisCallStatus.FetchChannels})),(0,t.P1)(e,X=>({inactiveChannels:X.inactiveChannels,apiCallStatus:X.apisCallStatus.FetchChannels})),(0,t.P1)(e,X=>({activeChannels:X.activeChannels,pendingChannels:X.pendingChannels,inactiveChannels:X.inactiveChannels,lightningBalance:X.lightningBalance,channelsStatus:X.channelsStatus,apiCallStatus:X.apisCallStatus.FetchChannels}))),B=(0,t.P1)(e,X=>({transactions:X.transactions,apiCallStatus:X.apisCallStatus.FetchTransactions})),W=(0,t.P1)(e,X=>({invoices:X.invoices,apiCallStatus:X.apisCallStatus.FetchInvoices})),Y=(0,t.P1)(e,X=>({peers:X.peers,apiCallStatus:X.apisCallStatus.FetchPeers})),Q=(0,t.P1)(e,X=>({onchainBalance:X.onchainBalance,apiCallStatus:X.apisCallStatus.FetchOnchainBalance}))},7766:(We,q,m)=>{"use strict";m.d(q,{R:()=>Ce});var t=m(5412),e=m(2687),g=m(7579),T=m(2722),s=m(7731),x=m(2501),h=m(4650),N=m(5043),d=m(62),M=m(7009),w=m(9653),L=m(6895),k=m(2216),V=m(1576),B=m(5829),W=m(4859),Y=m(3546),Q=m(4850),X=m(1572),ee=m(658),me=m(5199),re=m(3390);function ie(Se,fe){if(1&Se&&h._UZ(0,"qr-code",29),2&Se){const Fe=h.oxw();h.Q6J("value",null==Fe.invoice?null:Fe.invoice.serialized)("size",Fe.qrWidth)("errorCorrectionLevel","L")}}function se(Se,fe){1&Se&&(h.TgZ(0,"span",30),h._uU(1,"N/A"),h.qZA())}function ce(Se,fe){if(1&Se&&h._UZ(0,"qr-code",29),2&Se){const Fe=h.oxw();h.Q6J("value",null==Fe.invoice?null:Fe.invoice.serialized)("size",Fe.qrWidth)("errorCorrectionLevel","L")}}function Te(Se,fe){1&Se&&(h.TgZ(0,"span",31),h._uU(1,"QR Code Not Applicable"),h.qZA())}function S(Se,fe){1&Se&&h._UZ(0,"mat-divider",32),2&Se&&h.Q6J("inset",!0)}function i(Se,fe){1&Se&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function a(Se,fe){1&Se&&h._UZ(0,"span",38)}const u=function(){return[]};function l(Se,fe){if(1&Se&&(h.TgZ(0,"div",34)(1,"div",35)(2,"span",36),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,a,1,0,"span",37),h.qZA()()),2&Se){const Fe=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Fe.invoice?null:Fe.invoice.amountSettled)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,u).constructor(35))}}function _(Se,fe){if(1&Se&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Se){const Fe=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Fe.invoice?null:Fe.invoice.amountSettled)," Sats")}}function O(Se,fe){if(1&Se&&(h.ynx(0),h.YNc(1,l,6,5,"div",33),h.YNc(2,_,3,3,"div",19),h.BQk()),2&Se){const Fe=h.oxw();h.xp6(1),h.Q6J("ngIf",Fe.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Fe.flgInvoicePaid)}}function R(Se,fe){1&Se&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function C(Se,fe){1&Se&&h._UZ(0,"mat-spinner",40),2&Se&&h.Q6J("diameter",20)}function n(Se,fe){if(1&Se&&(h.ynx(0),h.YNc(1,R,2,0,"span",19),h.YNc(2,C,1,1,"mat-spinner",39),h.BQk()),2&Se){const Fe=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==Fe.invoice?null:Fe.invoice.status)||!Fe.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Fe.invoice?null:Fe.invoice.status)&&Fe.flgVersionCompatible)}}function v(Se,fe){if(1&Se&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",20),h.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),h._uU(5,"Date Expiry"),h.qZA(),h.TgZ(6,"span",18),h._uU(7),h.ALo(8,"date"),h.qZA()(),h.TgZ(9,"div",42)(10,"h4",17),h._uU(11,"Date Settled"),h.qZA(),h.TgZ(12,"span",21),h._uU(13),h.ALo(14,"date"),h.qZA()()(),h._UZ(15,"mat-divider",20),h.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),h._uU(19,"Payment Hash"),h.qZA(),h.TgZ(20,"span",21),h._uU(21),h.qZA()()(),h._UZ(22,"mat-divider",20),h.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),h._uU(26,"Node ID"),h.qZA(),h.TgZ(27,"span",21),h._uU(28),h.qZA()()(),h._UZ(29,"mat-divider",20),h.qZA()),2&Se){const Fe=h.oxw();h.xp6(7),h.Oqu(h.xi3(8,4,1e3*(null==Fe.invoice?null:Fe.invoice.expiresAt),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(14,7,1e3*(null==Fe.invoice?null:Fe.invoice.receivedAt),"dd/MMM/y HH:mm")),h.xp6(8),h.Oqu(null==Fe.invoice?null:Fe.invoice.paymentHash),h.xp6(7),h.Oqu(null==Fe.invoice?null:Fe.invoice.nodeId)}}function K(Se,fe){1&Se&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function F(Se,fe){1&Se&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function G(Se,fe){if(1&Se){const Fe=h.EpF();h.TgZ(0,"button",43),h.NdJ("copied",function(ze){h.CHM(Fe);const Oe=h.oxw();return h.KtG(Oe.onCopyPayment(ze))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&Se){const Fe=h.oxw();h.Q6J("payload",null==Fe.invoice?null:Fe.invoice.serialized)}}function ye(Se,fe){if(1&Se){const Fe=h.EpF();h.TgZ(0,"button",44),h.NdJ("click",function(){h.CHM(Fe);const ze=h.oxw();return h.KtG(ze.onClose())}),h._uU(1,"OK"),h.qZA()}}const Ee=function(Se){return{"display-none":Se}},pe=function(Se){return{"xs-scroll-y":Se}},qe=function(Se,fe){return{"mt-2":Se,"mt-1":fe}};let Ce=(()=>{var Se;class fe{constructor(oe,ze,Oe,he,Ae,ge){this.dialogRef=oe,this.data=ze,this.logger=Oe,this.commonService=he,this.snackBar=Ae,this.store=ge,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new g.x,new g.x,new g.x,new g.x,new g.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(x.yD).pipe((0,T.R)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(x.Ef).pipe((0,T.R)(this.unSubs[1])).subscribe(oe=>{const ze=this.invoice.status,he=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find(Ae=>Ae.paymentHash===this.invoice.paymentHash)||null;he&&(this.invoice=he),ze!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}}return(Se=fe).\u0275fac=function(oe){return new(oe||Se)(h.Y36(t.so),h.Y36(t.WI),h.Y36(N.mQ),h.Y36(d.v),h.Y36(M.ux),h.Y36(w.yh))},Se.\u0275cmp=h.Xpm({type:Se,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 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(oe,ze){if(1&oe&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,ie,1,3,"qr-code",2),h.YNc(3,se,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return ze.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,ce,1,3,"qr-code",2),h.YNc(16,Te,2,0,"span",13),h.qZA(),h.YNc(17,S,1,1,"mat-divider",14),h.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),h._uU(21,"Amount Requested"),h.qZA(),h.TgZ(22,"span",18),h._uU(23),h.ALo(24,"number"),h.YNc(25,i,2,0,"ng-container",19),h.qZA()(),h.TgZ(26,"div",16)(27,"h4",17),h._uU(28,"Amount Settled"),h.qZA(),h.TgZ(29,"span",18),h.YNc(30,O,3,2,"ng-container",19),h.YNc(31,n,3,2,"ng-container",19),h.qZA()()(),h._UZ(32,"mat-divider",20),h.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),h._uU(36,"Date Created"),h.qZA(),h.TgZ(37,"span",21),h._uU(38),h.ALo(39,"date"),h.qZA()(),h.TgZ(40,"div",16)(41,"h4",17),h._uU(42,"Status"),h.qZA(),h.TgZ(43,"span",21),h._uU(44),h.ALo(45,"titlecase"),h.qZA()()(),h._UZ(46,"mat-divider",20),h.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),h._uU(50,"Description"),h.qZA(),h.TgZ(51,"span",18),h._uU(52),h.qZA()()(),h._UZ(53,"mat-divider",20),h.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),h._uU(57,"Invoice"),h.qZA(),h.TgZ(58,"span",21),h._uU(59),h.qZA()()(),h.YNc(60,v,30,10,"div",19),h.TgZ(61,"div",23)(62,"button",24),h.NdJ("click",function(){return ze.onShowAdvanced()}),h.YNc(63,K,2,0,"p",25),h.YNc(64,F,2,0,"ng-template",null,26,h.W1O),h.qZA(),h.YNc(66,G,2,1,"button",27),h.YNc(67,ye,2,0,"button",28),h.qZA()()()()()),2&oe){const Oe=h.MAs(65);h.xp6(1),h.Q6J("fxLayoutAlign",null!=ze.invoice&&ze.invoice.serialized&&""!==(null==ze.invoice?null:ze.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(33,Ee,ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==ze.invoice?null:ze.invoice.serialized)&&""!==(null==ze.invoice?null:ze.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=ze.invoice&&ze.invoice.serialized)||""===(null==ze.invoice?null:ze.invoice.serialized)),h.xp6(4),h.Q6J("icon",ze.faReceipt),h.xp6(2),h.Oqu(ze.screenSize===ze.screenSizeEnum.XS?ze.newlyAdded?"Created":"Invoice":ze.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(35,pe,ze.screenSize===ze.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=ze.invoice&&ze.invoice.serialized&&""!==(null==ze.invoice?null:ze.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(37,Ee,ze.screenSize!==ze.screenSizeEnum.XS&&ze.screenSize!==ze.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==ze.invoice?null:ze.invoice.serialized)&&""!==(null==ze.invoice?null:ze.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=ze.invoice&&ze.invoice.serialized)||""===(null==ze.invoice?null:ze.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM),h.xp6(6),h.hij("",h.lcZ(24,26,(null==ze.invoice?null:ze.invoice.amount)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=ze.invoice&&ze.invoice.amount)||"0"===(null==ze.invoice?null:ze.invoice.amount)),h.xp6(5),h.Q6J("ngIf",null==ze.invoice?null:ze.invoice.amountSettled),h.xp6(1),h.Q6J("ngIf",!(null!=ze.invoice&&ze.invoice.amountSettled)),h.xp6(7),h.Oqu(h.xi3(39,28,1e3*(null==ze.invoice?null:ze.invoice.timestamp),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.lcZ(45,31,null==ze.invoice?null:ze.invoice.status)),h.xp6(8),h.Oqu((null==ze.invoice?null:ze.invoice.description)||"-"),h.xp6(7),h.Oqu((null==ze.invoice?null:ze.invoice.serialized)||"N/A"),h.xp6(1),h.Q6J("ngIf",ze.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(39,qe,!ze.showAdvanced,ze.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!ze.showAdvanced)("ngIfElse",Oe),h.xp6(3),h.Q6J("ngIf",(null==ze.invoice?null:ze.invoice.serialized)&&""!==(null==ze.invoice?null:ze.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=ze.invoice&&ze.invoice.serialized)||""===(null==ze.invoice?null:ze.invoice.serialized))}},dependencies:[L.mk,L.sg,L.O5,k.BN,V.xw,V.Wh,V.yH,B.oO,W.lW,Y.dn,Y.dk,Q.d,X.Ou,ee.uU,me.y,re.h,L.JJ,L.rS,L.uU]}),fe})()},6523:(We,q,m)=>{"use strict";m.d(q,{$A:()=>Pe,$W:()=>w,BL:()=>R,B_:()=>ye,Bl:()=>re,CX:()=>M,Cp:()=>v,EK:()=>W,El:()=>k,Fr:()=>Bt,HI:()=>Ae,JT:()=>s,Jl:()=>ie,Jo:()=>Nt,Lf:()=>oe,Ll:()=>T,Ly:()=>ze,Nr:()=>Ce,OG:()=>C,PC:()=>g,QJ:()=>je,RX:()=>me,Rd:()=>Y,Rv:()=>se,SN:()=>ee,Sf:()=>$e,TW:()=>a,UH:()=>Oe,UR:()=>Te,Vv:()=>n,WM:()=>qe,WO:()=>Ht,Wi:()=>Qe,YP:()=>X,YX:()=>O,Z7:()=>i,Z8:()=>L,Zh:()=>u,_E:()=>le,_L:()=>l,aL:()=>Se,as:()=>S,cQ:()=>he,dV:()=>Je,eF:()=>N,fu:()=>Gt,kL:()=>Ct,ks:()=>ce,mC:()=>Fe,n7:()=>J,oV:()=>ge,pW:()=>_,pd:()=>h,qY:()=>fe,sQ:()=>d,tb:()=>G,u0:()=>at,vV:()=>Ee,wD:()=>x,xG:()=>Me,y2:()=>Ze,yZ:()=>mt,z:()=>B});var t=m(9653),e=m(7731);const g=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),s=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),x=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),h=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),N=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),w=(0,t.PH)(e.uR.FETCH_PEERS_LND),L=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),k=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),B=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),W=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),Y=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),X=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ee=(0,t.PH)(e.uR.FETCH_FEES_LND),me=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),re=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ie=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),se=(0,t.PH)(e.uR.FETCH_NETWORK_LND),ce=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),Te=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),S=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),a=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),l=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),_=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),O=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),R=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),v=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),G=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),ye=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),Ee=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),qe=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),Ce=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),Se=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),fe=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Fe=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),oe=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),ze=(0,t.PH)(e.uR.FETCH_UTXOS_LND),Oe=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),Ae=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),ge=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),Je=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),le=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),Qe=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),Gt=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Ze=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),Me=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),$e=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),Pe=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),J=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),mt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),at=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),je=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),Ht=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),Ct=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),Nt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),Bt=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(We,q,m)=>{"use strict";m.d(q,{l:()=>ce});var t=m(493),e=m(7579),g=m(9646),T=m(5577),s=m(2722),x=m(4004),h=m(262),N=m(1365),d=m(8627),M=m(1786),w=m(7731),L=m(7861),k=m(6523),V=m(6529),B=m(4650),W=m(529),Y=m(9653),Q=m(5043),X=m(62),ee=m(5986),me=m(5412),re=m(9116),ie=m(7998),se=m(6895);let ce=(()=>{var Te;class S{constructor(a,u,l,_,O,R,C,n,v,K){this.actions=a,this.httpClient=u,this.store=l,this.logger=_,this.commonService=O,this.sessionService=R,this.dialog=C,this.router=n,this.wsService=v,this.location=K,this.CHILD_API_URL=w.T5+"/lnd",this.invoicesPageSize=w.IV,this.paymentsPageSize=w.IV,this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_INFO_LND),(0,T.z)(F=>(this.flgInitialized=!1,this.store.dispatch((0,L.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.ac)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,x.U)(G=>(this.logger.info(G),G.chains&&G.chains.length&&G.chains[0]&&("string"==typeof G.chains[0]&&G.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof G.chains[0]&&G.chains[0].hasOwnProperty("chain")&&G.chains[0].chain&&G.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:w.pg.LOGOUT}):G.identity_pubkey?(G.lnImplementation="LND",this.initializeRemainingData(G,F.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),{type:w.uR.SET_INFO_LND,payload:G||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:w.uR.SET_INFO_LND,payload:{}}))),(0,h.K)(G=>{if("string"==typeof G.error.error&&G.error.error.includes("Not Found")||"string"==typeof G.error.error&&G.error.error.includes("wallet locked")||502===G.status&&!G.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",G);else if("string"==typeof G.error.error&&G.error.error.includes("starting up")&&500===G.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ye=this.commonService.extractErrorCode(G),Ee=503===ye?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(G);this.router.navigate(["/error"],{state:{errorCode:ye,errorMessage:Ee}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ye,error:Ee})}return(0,g.of)({type:w.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PEERS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PEERS_API).pipe((0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.uR.SET_PEERS_LND,payload:F||[]})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",F),(0,g.of)({type:w.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_PEER_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.PEERS_API,{pubkey:F.payload.pubkey,host:F.payload.host,perm:F.payload.perm}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:G||[]})),{type:w.uR.NEWLY_ADDED_PEER_LND,payload:{peer:G[0]}})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",G),(0,g.of)({type:w.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.DETACH_PEER_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+w.vv.PEERS_API+"/"+F.payload.pubkey).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,L.jW)({payload:"Peer Disconnected Successfully."})),{type:w.uR.REMOVE_PEER_LND,payload:{pubkey:F.payload.pubkey}})),(0,h.K)(G=>(this.handleErrorWithAlert("DetachPeer",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.vv.PEERS_API+"/"+F.payload.pubkey,G),(0,g.of)({type:w.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_INVOICE_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.INVOICES_API,{memo:F.payload.memo,value:F.payload.value,private:F.payload.private,expiry:F.payload.expiry,is_amp:F.payload.is_amp}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:F.payload.pageSize,reversed:!0}})),F.payload.openModal?(G.memo=F.payload.memo,G.value=F.payload.value,G.expiry=F.payload.expiry,G.private=F.payload.private,G.is_amp=F.payload.is_amp,G.cltv_expiry="144",G.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{invoice:G,newlyAdded:!0,component:d.v}}}))},200),{type:w.pg.CLOSE_SPINNER,payload:F.payload.uiMessage}):{type:w.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:G.payment_request}})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SaveNewInvoice",F.payload.uiMessage,"Add Invoice Failed.",G),(0,g.of)({type:w.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_CHANNEL_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API,{node_pubkey:F.payload.selectedPeerPubkey,local_funding_amount:F.payload.fundingAmount,private:F.payload.private,trans_type:F.payload.transType,trans_type_value:F.payload.transTypeValue,spend_unconfirmed:F.payload.spendUnconfirmed}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:w.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:w.uR.FETCH_PENDING_CHANNELS_LND})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",G),(0,g.of)({type:w.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.UPDATE_CHANNEL_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API+"/chanPolicy",{baseFeeMsat:F.payload.baseFeeMsat,feeRate:F.payload.feeRate,timeLockDelta:F.payload.timeLockDelta,max_htlc_msat:F.payload.maxHtlcMsat,min_htlc_msat:F.payload.minHtlcMsat,chanPoint:F.payload.chanPoint}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,L.jW)("all"===F.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:w.uR.FETCH_CHANNELS_LND})),(0,h.K)(G=>(this.handleErrorWithAlert("UpdateChannels",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/chanPolicy",G),(0,g.of)({type:w.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.CLOSE_CHANNEL_LND),(0,T.z)(F=>{this.store.dispatch((0,L.ac)({payload:F.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL}));let G=this.CHILD_API_URL+w.vv.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly;return F.payload.targetConf&&(G=G+"&target_conf="+F.payload.targetConf),F.payload.satPerByte&&(G=G+"&sat_per_byte="+F.payload.satPerByte),this.httpClient.delete(G).pipe((0,x.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,L.uO)({payload:F.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:w.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ye.message}})),{type:w.pg.VOID})),(0,h.K)(ye=>(this.handleErrorWithAlert("CloseChannel",F.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly,ye),(0,g.of)({type:w.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.BACKUP_CHANNELS_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,L.jW)({payload:F.payload.showMessage+" "+G.message})),{type:w.uR.BACKUP_CHANNELS_RES_LND,payload:G.message})),(0,h.K)(G=>(this.handleErrorWithAlert("BackupChannels",F.payload.uiMessage,F.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint,G),(0,g.of)({type:w.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.VERIFY_CHANNEL_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,{}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:w.m6.VERIFY_CHANNEL})),this.store.dispatch((0,L.jW)({payload:G.message})),{type:w.uR.VERIFY_CHANNEL_RES_LND,payload:G.message})),(0,h.K)(G=>(this.handleErrorWithAlert("VerifyChannel",w.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,G),(0,g.of)({type:w.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.RESTORE_CHANNELS_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,{}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:w.m6.RESTORE_CHANNEL})),this.store.dispatch((0,L.jW)({payload:G.message})),this.store.dispatch((0,k.B_)({payload:G.list})),{type:w.uR.RESTORE_CHANNELS_RES_LND,payload:G.message})),(0,h.K)(G=>(this.handleErrorWithAlert("RestoreChannels",w.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,G),(0,g.of)({type:w.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_FEES_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.FEES_API))),(0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),F.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:F.forwarding_events_history})),delete F.forwarding_events_history),{type:w.uR.SET_FEES_LND,payload:F||{}})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",F),(0,g.of)({type:w.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.BALANCE_API))),(0,x.U)(F=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),this.logger.info(F),{type:w.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:F||{total_balance:""}})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",F),(0,g.of)({type:w.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_NETWORK_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/info"))),(0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:w.Bn.COMPLETED}})),{type:w.uR.SET_NETWORK_LND,payload:F||{}})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchNetwork",w.m6.NO_SPINNER,"Fetching Network Failed.",F),(0,g.of)({type:w.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API).pipe((0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}})),{type:w.uR.SET_CHANNELS_LND,payload:F.channels||[]})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",F),(0,g.of)({type:w.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PENDING_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/pending").pipe((0,x.U)(F=>{this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:w.Bn.COMPLETED}}));const G={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 F&&(G.total_limbo_balance=F.total_limbo_balance,F.pending_closing_channels&&(G.closing.num_channels=F.pending_closing_channels.length,G.total_channels=G.total_channels+F.pending_closing_channels.length,F.pending_closing_channels.forEach(ye=>{G.closing.limbo_balance=+G.closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.pending_force_closing_channels&&(G.force_closing.num_channels=F.pending_force_closing_channels.length,G.total_channels=G.total_channels+F.pending_force_closing_channels.length,F.pending_force_closing_channels.forEach(ye=>{G.force_closing.limbo_balance=+G.force_closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.pending_open_channels&&(G.open.num_channels=F.pending_open_channels.length,G.total_channels=G.total_channels+F.pending_open_channels.length,F.pending_open_channels.forEach(ye=>{G.open.limbo_balance=+G.open.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.waiting_close_channels&&(G.waiting_close.num_channels=F.waiting_close_channels.length,G.total_channels=G.total_channels+F.waiting_close_channels.length,F.waiting_close_channels.forEach(ye=>{G.waiting_close.limbo_balance=+G.waiting_close.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)}))),{type:w.uR.SET_PENDING_CHANNELS_LND,payload:F?{pendingChannels:F,pendingChannelsSummary:G}:{pendingChannels:{},pendingChannelsSummary:G}}}),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchPendingChannels",w.m6.NO_SPINNER,"Fetching Pending Channels Failed.",F),(0,g.of)({type:w.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_CLOSED_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/closed").pipe((0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:w.Bn.COMPLETED}})),{type:w.uR.SET_CLOSED_CHANNELS_LND,payload:F.channels||[]})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchClosedChannels",w.m6.NO_SPINNER,"Fetching Closed Channels Failed.",F),(0,g.of)({type:w.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_INVOICES_LND),(0,T.z)(F=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.INVOICES_API+"?num_max_invoices="+(F.payload.num_max_invoices?F.payload.num_max_invoices:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),F.payload.reversed&&!F.payload.index_offset&&(pe.total_invoices=+(pe.last_index_offset||0)),{type:w.uR.SET_INVOICES_LND,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",pe),(0,g.of)({type:w.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_TRANSACTIONS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.TRANSACTIONS_API))),(0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:w.Bn.COMPLETED}})),{type:w.uR.SET_TRANSACTIONS_LND,payload:F||[]})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchTransactions",w.m6.NO_SPINNER,"Fetching Transactions Failed.",F),(0,g.of)({type:w.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_UTXOS_LND),(0,N.M)(this.store.select(V.Q5)),(0,T.z)(([F,G])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.WALLET_API+"/getUTXOs?max_confs="+(G&&G.block_height?G.block_height:1e9)))),(0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.uR.SET_UTXOS_LND,payload:F||[]})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",F),(0,g.of)({type:w.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PAYMENTS_LND),(0,T.z)(F=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API+"?max_payments="+(F.payload.max_payments?F.payload.max_payments:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,x.U)(pe=>(this.logger.info(pe),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.uR.SET_PAYMENTS_LND,payload:pe})),(0,h.K)(pe=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",pe),(0,g.of)({type:w.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SEND_PAYMENT_LND),(0,T.z)(F=>{this.store.dispatch((0,L.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:w.Bn.INITIATED}}));const G={};return G.paymentReq=F.payload.paymentReq,F.payload.paymentAmount&&(G.paymentAmount=F.payload.paymentAmount),F.payload.outgoingChannel&&(G.outgoingChannel=F.payload.outgoingChannel.chan_id),F.payload.allowSelfPayment&&(G.allowSelfPayment=F.payload.allowSelfPayment),F.payload.lastHopPubkey&&(G.lastHopPubkey=F.payload.lastHopPubkey),F.payload.feeLimitType&&F.payload.feeLimitType!==w.Vc[0].id&&(G.feeLimit={},G.feeLimit[F.payload.feeLimitType]=F.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API+"/transactions",G).pipe((0,x.U)(ye=>{if(this.logger.info(ye),this.store.dispatch((0,L.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}})),ye.payment_error)return F.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:w.uR.SEND_PAYMENT_STATUS_LND,payload:ye}):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye.payment_error):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/transactions",ye.payment_error),{type:w.pg.VOID});if(this.store.dispatch((0,L.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:this.paymentsPageSize,reversed:!0}})),F.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}));else{let Ee="Payment Sent Successfully.";ye.payment_route&&ye.payment_route.total_fees_msat&&(Ee="Payment sent successfully with the total fee "+ye.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,L.jW)({payload:Ee}))}return{type:w.uR.SEND_PAYMENT_STATUS_LND,payload:ye}}),(0,h.K)(ye=>(this.logger.error("Error: "+JSON.stringify(ye)),F.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),(0,g.of)({type:w.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ye)}})):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/transactions",ye),(0,g.of)({type:w.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_GRAPH_NODE_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/node/"+F.payload.pubkey).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:w.Bn.COMPLETED}})),{type:w.uR.SET_GRAPH_NODE_LND,payload:G&&G.node?{node:G.node}:{node:null}})),(0,h.K)(G=>(this.handleErrorWithoutAlert("FetchGraphNode",w.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",G),(0,g.of)({type:w.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_GRAPH_NODE_LND),(0,x.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_NEW_ADDRESS_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+w.vv.NEW_ADDRESS_API+"?type="+F.payload.addressId).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.uR.SET_NEW_ADDRESS_LND,payload:G&&G.address?G.address:{}})),(0,h.K)(G=>(this.handleErrorWithAlert("GetNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.vv.NEW_ADDRESS_API+"?type="+F.payload.addressId,G),(0,g.of)({type:w.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_NEW_ADDRESS_LND),(0,x.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_CHANNEL_TRANSACTION_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.TRANSACTIONS_API,{amount:F.payload.amount,address:F.payload.address,sendAll:F.payload.sendAll,fees:F.payload.fees,blocks:F.payload.blocks}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:w.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",G),(0,g.of)({type:w.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_FORWARDING_HISTORY_LND),(0,T.z)(F=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.SWITCH_API,{num_max_events:F.payload.num_max_events,index_offset:F.payload.index_offset,end_time:F.payload.end_time,start_time:F.payload.start_time}).pipe((0,x.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:w.Bn.COMPLETED}})),{type:w.uR.SET_FORWARDING_HISTORY_LND,payload:ye})),(0,h.K)(ye=>(this.handleErrorWithAlert("FetchForwardingHistory",w.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+w.vv.SWITCH_API,ye),(0,g.of)({type:w.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_QUERY_ROUTES_LND),(0,T.z)(F=>{let G=this.CHILD_API_URL+w.vv.NETWORK_API+"/routes/"+F.payload.destPubkey+"/"+F.payload.amount;return F.payload.outgoingChanId&&(G=G+"?outgoing_chan_id="+F.payload.outgoingChanId),this.httpClient.get(G).pipe((0,x.U)(ye=>(this.logger.info(ye),{type:w.uR.SET_QUERY_ROUTES_LND,payload:ye})),(0,h.K)(ye=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.vv.NETWORK_API,ye),(0,g.of)({type:w.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_QUERY_ROUTES_LND),(0,x.U)(F=>F.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GEN_SEED_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+w.vv.WALLET_API+"/genseed/"+F.payload).pipe((0,x.U)(G=>(this.logger.info("Generated GenSeed!"),this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.GEN_SEED})),{type:w.uR.GEN_SEED_RESPONSE_LND,payload:G.cipher_seed_mnemonic})),(0,h.K)(G=>(this.handleErrorWithAlert("GenSeed",w.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+w.vv.WALLET_API+"/genseed/"+F.payload,G),(0,g.of)({type:w.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,T.z)(()=>this.httpClient.get(this.CHILD_API_URL+w.vv.WALLET_API+"/updateSelNodeOptions").pipe((0,x.U)(F=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(F),{type:w.pg.VOID})),(0,h.K)(F=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",w.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",F),(0,g.of)({type:w.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GEN_SEED_RESPONSE_LND),(0,x.U)(F=>F.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INIT_WALLET_RESPONSE_LND),(0,x.U)(F=>F.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INIT_WALLET_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+w.vv.WALLET_API+"/wallet/initwallet",{wallet_password:F.payload.pwd,cipher_seed_mnemonic:F.payload.cipher?F.payload.cipher:"",aezeed_passphrase:F.payload.passphrase?F.payload.passphrase:""}).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.INITIALIZE_WALLET})),{type:w.uR.INIT_WALLET_RESPONSE_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithAlert("InitWallet",w.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+w.vv.WALLET_API+"/initwallet",G),(0,g.of)({type:w.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.UNLOCK_WALLET_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+w.vv.WALLET_API+"/wallet/unlockwallet",{wallet_password:F.payload.pwd}).pipe((0,x.U)(G=>(this.logger.info(G),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,L.uO)({payload:w.m6.UNLOCK_WALLET})),this.store.dispatch((0,L.ac)({payload:w.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,L.uO)({payload:w.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:w.pg.VOID})),(0,h.K)(G=>(this.handleErrorWithAlert("UnlockWallet",w.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+w.vv.WALLET_API+"/unlockwallet",G),(0,g.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.PEER_LOOKUP_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/node/"+F.payload).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),{type:w.uR.SET_LOOKUP_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/node/"+F.payload,G),(0,g.of)({type:w.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.CHANNEL_LOOKUP_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/edge/"+F.payload.channelID).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),{type:w.uR.SET_LOOKUP_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithAlert("Lookup",F.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/edge/"+F.payload.channelID,G),(0,g.of)({type:w.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INVOICE_LOOKUP_LND),(0,T.z)(F=>{this.store.dispatch((0,L.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}}));let G=this.CHILD_API_URL+w.vv.INVOICES_API+"/lookup";return G=F.payload.paymentAddress&&""!==F.payload.paymentAddress?G+"?payment_addr="+F.payload.paymentAddress:G+"?payment_hash="+F.payload.paymentHash,this.httpClient.get(G).pipe((0,x.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,L.uO)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:ye})),{type:w.uR.SET_LOOKUP_LND,payload:ye})),(0,h.K)(ye=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ye),F.payload.openSnackBar&&this.store.dispatch((0,L.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,g.of)({type:w.uR.SET_LOOKUP_LND,payload:{error:ye}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.PAYMENT_LOOKUP_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API+"/lookup/"+F.payload).pipe((0,x.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:w.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:G})),{type:w.uR.SET_LOOKUP_LND,payload:G})),(0,h.K)(G=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:w.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",G),(0,g.of)({type:w.uR.SET_LOOKUP_LND,payload:{error:G}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_LOOKUP_LND),(0,x.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.RESTORE_CHANNELS_LIST_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/restore/list").pipe((0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:w.Bn.COMPLETED}})),{type:w.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:F||{all_restore_exists:!1,files:[]}})),(0,h.K)(F=>(this.handleErrorWithAlert("RestoreChannelsList",w.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API,F),(0,g.of)({type:w.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,x.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API+"/alltransactions").pipe((0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:w.Bn.COMPLETED}})),{type:w.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:F})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchLightningTransactions",w.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",F),(0,g.of)({type:w.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PAGE_SETTINGS_LND),(0,T.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(w.vv.PAGE_SETTINGS_API).pipe((0,x.U)(F=>(this.logger.info(F),this.store.dispatch((0,k.PC)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),this.invoicesPageSize=(F&&Object.keys(F).length>0?F.find(G=>"transactions"===G.pageId)?.tables.find(G=>"invoices"===G.tableId):w.gK.find(G=>"transactions"===G.pageId)?.tables.find(G=>"invoices"===G.tableId)).recordsPerPage,this.paymentsPageSize=(F&&Object.keys(F).length>0?F.find(G=>"transactions"===G.pageId)?.tables.find(G=>"payments"===G.tableId):w.gK.find(G=>"transactions"===G.pageId)?.tables.find(G=>"payments"===G.tableId)).recordsPerPage,this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:w.uR.SET_PAGE_SETTINGS_LND,payload:F||[]})),(0,h.K)(F=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",F),(0,g.of)({type:w.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_PAGE_SETTINGS_LND),(0,T.z)(F=>(this.store.dispatch((0,L.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,k.PC)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(w.vv.PAGE_SETTINGS_API,F.payload).pipe((0,x.U)(G=>{this.logger.info(G),this.store.dispatch((0,k.PC)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.jW)({payload:"Page Layout Updated Successfully!"}));const ye=(G.find(pe=>"transactions"===pe.pageId)?.tables.find(pe=>"invoices"===pe.tableId)||w.gK.find(pe=>"transactions"===pe.pageId)?.tables.find(pe=>"invoices"===pe.tableId)).recordsPerPage,Ee=(G.find(pe=>"transactions"===pe.pageId)?.tables.find(pe=>"payments"===pe.tableId)||w.gK.find(pe=>"transactions"===pe.pageId)?.tables.find(pe=>"payments"===pe.tableId)).recordsPerPage;return ye!==this.invoicesPageSize&&(this.invoicesPageSize=ye,this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}))),Ee!==this.paymentsPageSize&&(this.paymentsPageSize=Ee),{type:w.uR.SET_PAGE_SETTINGS_LND,payload:G||[]}}),(0,h.K)(G=>(this.handleErrorWithAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.vv.PAGE_SETTINGS_API,G),(0,g.of)({type:w.pg.VOID})))))))),this.store.select(V.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(F=>{F.FetchInfo.status!==w.Bn.COMPLETED&&F.FetchInfo.status!==w.Bn.ERROR||F.FetchFees.status!==w.Bn.COMPLETED&&F.FetchFees.status!==w.Bn.ERROR||F.FetchBalanceBlockchain.status!==w.Bn.COMPLETED&&F.FetchBalanceBlockchain.status!==w.Bn.ERROR||F.FetchAllChannels.status!==w.Bn.COMPLETED&&F.FetchAllChannels.status!==w.Bn.ERROR||F.FetchPendingChannels.status!==w.Bn.COMPLETED&&F.FetchPendingChannels.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,L.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(F=>{this.logger.info("Received new message from the service: "+JSON.stringify(F)),F&&(F.type===w.g8.INVOICE?(this.logger.info(F),F&&F.result&&F.result.payment_request&&this.store.dispatch((0,k.aL)({payload:F.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(F)))})}initializeRemainingData(a,u){this.sessionService.setItem("lndUnlocked","true");const l={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,L.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,L._V)({payload:l}));let _=this.location.path();_.includes("/cln/")?_=_?.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_?.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===u||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,k.wD)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(a,u,l,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,L.uO)({payload:u})),this.store.dispatch((0,k.PC)({payload:{action:a,status:w.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,l)}})))}handleErrorWithAlert(a,u,l,_,O){if(this.logger.error(O),401===O.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:u}));const R=this.commonService.extractErrorMessage(O);this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:l,message:{code:O.status,message:R,URL:_},component:M.H}}})),this.store.dispatch((0,k.PC)({payload:{action:a,status:w.Bn.ERROR,statusCode:O.status.toString(),message:R,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return(Te=S).\u0275fac=function(a){return new(a||Te)(B.LFG(t.eX),B.LFG(W.eN),B.LFG(Y.yh),B.LFG(Q.mQ),B.LFG(X.v),B.LFG(ee.m),B.LFG(me.uw),B.LFG(re.F0),B.LFG(ie.d),B.LFG(se.Ye))},Te.\u0275prov=B.Yz7({token:Te,factory:Te.\u0275fac}),S})()},6529:(We,q,m)=>{"use strict";m.d(q,{$k:()=>g,Bo:()=>N,Ef:()=>k,JG:()=>M,N7:()=>me,P2:()=>Y,PP:()=>d,Pr:()=>T,Q5:()=>s,T4:()=>ee,Wi:()=>w,ZW:()=>V,_f:()=>ie,bx:()=>se,dx:()=>L,l5:()=>re,ni:()=>W,qU:()=>Q,yA:()=>h});var t=m(9653);const e=(0,t.ZF)("lnd"),g=(0,t.P1)(e,ce=>ce.nodeSettings),T=(0,t.P1)(e,ce=>({pageSettings:ce.pageSettings,apiCallStatus:ce.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,ce=>ce.information),h=((0,t.P1)(e,ce=>({information:ce.information,apiCallStatus:ce.apisCallStatus.FetchInfo})),(0,t.P1)(e,ce=>ce.apisCallStatus)),N=(0,t.P1)(e,ce=>({forwardingHistory:ce.forwardingHistory,apiCallStatus:ce.apisCallStatus.FetchForwardingHistory})),d=(0,t.P1)(e,ce=>({listPayments:ce.listPayments,apiCallStatus:ce.apisCallStatus.FetchPayments})),M=(0,t.P1)(e,ce=>({fees:ce.fees,apiCallStatus:ce.apisCallStatus.FetchFees})),w=(0,t.P1)(e,ce=>({peers:ce.peers,apiCallStatus:ce.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,ce=>({transactions:ce.transactions,apiCallStatus:ce.apisCallStatus.FetchTransactions})),k=(0,t.P1)(e,ce=>({listInvoices:ce.listInvoices,apiCallStatus:ce.apisCallStatus.FetchInvoices})),V=(0,t.P1)(e,ce=>({channels:ce.channels,channelsSummary:ce.channelsSummary,lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),W=((0,t.P1)(e,ce=>({channelsSummary:ce.channelsSummary,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({pendingChannels:ce.pendingChannels,pendingChannelsSummary:ce.pendingChannelsSummary,apiCallStatus:ce.apisCallStatus.FetchPendingChannels}))),Y=(0,t.P1)(e,ce=>({closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchClosedChannels})),Q=(0,t.P1)(e,ce=>({blockchainBalance:ce.blockchainBalance,apiCallStatus:ce.apisCallStatus.FetchBalanceBlockchain})),ee=((0,t.P1)(e,ce=>({lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({utxos:ce.utxos,apiCallStatus:ce.apisCallStatus.FetchUTXOs}))),me=(0,t.P1)(e,ce=>({networkInfo:ce.networkInfo,apiCallStatus:ce.apisCallStatus.FetchNetwork})),re=(0,t.P1)(e,ce=>({allLightningTransactions:ce.allLightningTransactions,apiCallStatus:ce.apisCallStatus.FetchLightningTransactions})),ie=(0,t.P1)(e,ce=>({channels:ce.channels,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels})),se=(0,t.P1)(e,ce=>({information:ce.information,nodeSettings:ce.nodeSettings,apiCallStatus:ce.apisCallStatus.FetchInfo}))},8627:(We,q,m)=>{"use strict";m.d(q,{v:()=>rt});var t=m(5412),e=m(2687),g=m(7579),T=m(2722),s=m(7731),x=m(6529),h=m(4650),N=m(5043),d=m(62),M=m(7009),w=m(9653),L=m(6895),k=m(2216),V=m(1576),B=m(5829),W=m(4859),Y=m(3546),Q=m(752),X=m(7392),ee=m(4850),me=m(1572),re=m(266),ie=m(658),se=m(5199),ce=m(3390);const Te=["scrollContainer"];function S(Qe,ct){if(1&Qe&&h._UZ(0,"qr-code",33),2&Qe){const Gt=h.oxw();h.Q6J("value",null==Gt.invoice?null:Gt.invoice.payment_request)("size",Gt.qrWidth)("errorCorrectionLevel","L")}}function i(Qe,ct){1&Qe&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}function a(Qe,ct){if(1&Qe&&h._UZ(0,"qr-code",33),2&Qe){const Gt=h.oxw();h.Q6J("value",null==Gt.invoice?null:Gt.invoice.payment_request)("size",Gt.qrWidth)("errorCorrectionLevel","L")}}function u(Qe,ct){1&Qe&&(h.TgZ(0,"span",35),h._uU(1,"QR Code Not Applicable"),h.qZA())}function l(Qe,ct){1&Qe&&h._UZ(0,"mat-divider",22),2&Qe&&h.Q6J("inset",!0)}function _(Qe,ct){1&Qe&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function O(Qe,ct){1&Qe&&h._UZ(0,"span",41)}const R=function(){return[]};function C(Qe,ct){if(1&Qe&&(h.TgZ(0,"div",37)(1,"div",38)(2,"span",39),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,O,1,0,"span",40),h.qZA()()),2&Qe){const Gt=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Gt.invoice?null:Gt.invoice.amt_paid_sat)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,R).constructor(35))}}function n(Qe,ct){if(1&Qe&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Qe){const Gt=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Gt.invoice?null:Gt.invoice.amt_paid_sat)," Sats")}}function v(Qe,ct){if(1&Qe&&(h.ynx(0),h.YNc(1,C,6,5,"div",36),h.YNc(2,n,3,3,"div",21),h.BQk()),2&Qe){const Gt=h.oxw();h.xp6(1),h.Q6J("ngIf",Gt.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Gt.flgInvoicePaid)}}function K(Qe,ct){1&Qe&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function F(Qe,ct){1&Qe&&h._UZ(0,"mat-spinner",43),2&Qe&&h.Q6J("diameter",20)}function G(Qe,ct){if(1&Qe&&(h.ynx(0),h.YNc(1,K,2,0,"span",21),h.YNc(2,F,1,1,"mat-spinner",42),h.BQk()),2&Qe){const Gt=h.oxw();h.xp6(1),h.Q6J("ngIf","OPEN"!==(null==Gt.invoice?null:Gt.invoice.state)||!Gt.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","OPEN"===(null==Gt.invoice?null:Gt.invoice.state)&&Gt.flgVersionCompatible)}}function ye(Qe,ct){1&Qe&&h.GkF(0)}function Ee(Qe,ct){if(1&Qe&&(h.TgZ(0,"div"),h.YNc(1,ye,1,0,"ng-container",44),h.qZA()),2&Qe){h.oxw();const Gt=h.MAs(79);h.xp6(1),h.Q6J("ngTemplateOutlet",Gt)}}function pe(Qe,ct){if(1&Qe){const Gt=h.EpF();h.TgZ(0,"div",45)(1,"button",46),h.NdJ("click",function(){h.CHM(Gt);const Ze=h.oxw();return h.KtG(Ze.onScrollDown())}),h.TgZ(2,"mat-icon",47),h._uU(3,"arrow_downward"),h.qZA()()()}}function qe(Qe,ct){1&Qe&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function Ce(Qe,ct){1&Qe&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function Se(Qe,ct){if(1&Qe){const Gt=h.EpF();h.TgZ(0,"button",48),h.NdJ("copied",function(Ze){h.CHM(Gt);const xt=h.oxw();return h.KtG(xt.onCopyPayment(Ze))}),h._uU(1),h.qZA()}if(2&Qe){const Gt=h.oxw();h.Q6J("payload",null==Gt.invoice?null:Gt.invoice.payment_request),h.xp6(1),h.Oqu(Gt.screenSize===Gt.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function fe(Qe,ct){if(1&Qe){const Gt=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){h.CHM(Gt);const Ze=h.oxw();return h.KtG(Ze.onClose())}),h._uU(1,"OK"),h.qZA()}}const Fe=function(Qe){return{"mr-0":Qe}};function oe(Qe,ct){if(1&Qe&&h._UZ(0,"span",64),2&Qe){const Gt=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Fe,Gt.screenSize===Gt.screenSizeEnum.XS))}}function ze(Qe,ct){if(1&Qe&&h._UZ(0,"span",65),2&Qe){const Gt=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Fe,Gt.screenSize===Gt.screenSizeEnum.XS))}}function Oe(Qe,ct){if(1&Qe&&h._UZ(0,"span",66),2&Qe){const Gt=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Fe,Gt.screenSize===Gt.screenSizeEnum.XS))}}function he(Qe,ct){if(1&Qe&&(h.TgZ(0,"div",53)(1,"div",58)(2,"span",59),h.YNc(3,oe,1,3,"span",60),h.YNc(4,ze,1,3,"span",61),h.YNc(5,Oe,1,3,"span",62),h._uU(6),h.qZA(),h.TgZ(7,"span",63),h._uU(8),h.ALo(9,"number"),h.qZA()(),h._UZ(10,"mat-divider",22),h.qZA()),2&Qe){const Gt=ct.$implicit,ut=h.oxw(3);h.xp6(3),h.Q6J("ngIf","SETTLED"===Gt.state),h.xp6(1),h.Q6J("ngIf","ACCEPTED"===Gt.state),h.xp6(1),h.Q6J("ngIf","CANCELED"===Gt.state),h.xp6(1),h.hij(" ",Gt.chan_id," "),h.xp6(2),h.Oqu(h.xi3(9,6,+Gt.amt_msat/1e3||0,ut.getDecimalFormat(Gt))),h.xp6(2),h.Q6J("inset",!0)}}function Ae(Qe,ct){if(1&Qe){const Gt=h.EpF();h.TgZ(0,"div",17)(1,"mat-expansion-panel",51),h.NdJ("opened",function(){h.CHM(Gt);const Ze=h.oxw(2);return h.KtG(Ze.flgOpened=!0)})("closed",function(){h.CHM(Gt);const Ze=h.oxw(2);return h.KtG(Ze.onExpansionClosed())}),h.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h._uU(5,"HTLCs"),h.qZA()()(),h.TgZ(6,"div",53)(7,"div",54)(8,"span",55),h._uU(9,"Channel ID"),h.qZA(),h.TgZ(10,"span",56),h._uU(11,"Amount (Sats)"),h.qZA()(),h._UZ(12,"mat-divider",22),h.YNc(13,he,11,9,"div",57),h.qZA()()()}if(2&Qe){const Gt=h.oxw(2);h.xp6(12),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngForOf",null==Gt.invoice?null:Gt.invoice.htlcs)}}function ge(Qe,ct){1&Qe&&h._UZ(0,"mat-divider",22),2&Qe&&h.Q6J("inset",!0)}function Ue(Qe,ct){if(1&Qe&&(h._UZ(0,"mat-divider",22),h.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),h._uU(4,"Preimage"),h.qZA(),h.TgZ(5,"span",24),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",22),h.TgZ(8,"div",17)(9,"div",18)(10,"h4",19),h._uU(11,"State"),h.qZA(),h.TgZ(12,"span",24),h._uU(13),h.qZA()(),h.TgZ(14,"div",18)(15,"h4",19),h._uU(16,"Expiry"),h.qZA(),h.TgZ(17,"span",24),h._uU(18),h.ALo(19,"date"),h.qZA()()(),h._UZ(20,"mat-divider",22),h.TgZ(21,"div",17)(22,"div",18)(23,"h4",19),h._uU(24,"Private Routing Hints"),h.qZA(),h.TgZ(25,"span",24),h._uU(26),h.qZA()(),h.TgZ(27,"div",18)(28,"h4",19),h._uU(29,"AMP Invoice"),h.qZA(),h.TgZ(30,"span",24),h._uU(31),h.qZA()()(),h._UZ(32,"mat-divider",22),h.YNc(33,Ae,14,2,"div",50),h.YNc(34,ge,1,1,"mat-divider",14)),2&Qe){const Gt=h.oxw();h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Gt.invoice?null:Gt.invoice.r_preimage)||"-"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Gt.invoice?null:Gt.invoice.state),h.xp6(5),h.Oqu(h.xi3(19,11,1e3*(+(null==Gt.invoice?null:Gt.invoice.creation_date)+ +(null==Gt.invoice?null:Gt.invoice.expiry)),"dd/MMM/y HH:mm")),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null!=Gt.invoice&&Gt.invoice.private?"Yes":"No"),h.xp6(5),h.Oqu(null!=Gt.invoice&&Gt.invoice.is_amp?"Yes":"No"),h.xp6(1),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngIf",(null==Gt.invoice?null:Gt.invoice.htlcs)&&(null==Gt.invoice?null:Gt.invoice.htlcs.length)>0),h.xp6(1),h.Q6J("ngIf",(null==Gt.invoice?null:Gt.invoice.htlcs)&&(null==Gt.invoice?null:Gt.invoice.htlcs.length)>0)}}const Je=function(Qe){return{"display-none":Qe}},Re=function(Qe){return{"xs-scroll-y":Qe}},le=function(Qe){return{"h-50":Qe}};let rt=(()=>{var Qe;class ct{constructor(ut,Ze,xt,Me,$e,Pe){this.dialogRef=ut,this.data=Ze,this.logger=xt,this.commonService=Me,this.snackBar=$e,this.store=Pe,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new g.x,new g.x,new g.x,new g.x,new g.x]}set container(ut){ut&&(this.scrollContainer=ut)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(x.Q5).pipe((0,T.R)(this.unSubs[0])).subscribe(Ze=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ze.version,"0.11.0")});const ut=JSON.parse(JSON.stringify(this.invoice));this.store.select(x.Ef).pipe((0,T.R)(this.unSubs[1])).subscribe(Ze=>{const xt=this.invoice?.state,$e=(Ze.listInvoices.invoices||[]).find(Pe=>Pe.r_hash===ut.r_hash)||null;$e&&(this.invoice=$e),xt!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ze)})}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(ut){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ut)}getDecimalFormat(ut){return ut.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ut=>{ut.next(null),ut.complete()})}}return(Qe=ct).\u0275fac=function(ut){return new(ut||Qe)(h.Y36(t.so),h.Y36(t.WI),h.Y36(N.mQ),h.Y36(d.v),h.Y36(M.ux),h.Y36(w.yh))},Qe.\u0275cmp=h.Xpm({type:Qe,selectors:[["rtl-invoice-information"]],viewQuery:function(ut,Ze){if(1&ut&&h.Gf(Te,5),2&ut){let xt;h.iGM(xt=h.CRH())&&(Ze.container=xt.first)}},decls:80,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 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,"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"],["advancedBlock",""],[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"],[4,"ngTemplateOutlet"],["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"],["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"]],template:function(ut,Ze){if(1&ut&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,S,1,3,"qr-code",2),h.YNc(3,i,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Ze.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,a,1,3,"qr-code",2),h.YNc(16,u,2,0,"span",13),h.qZA(),h.YNc(17,l,1,1,"mat-divider",14),h.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),h._uU(23),h.qZA(),h.TgZ(24,"span",20),h._uU(25),h.ALo(26,"number"),h.YNc(27,_,2,0,"ng-container",21),h.qZA()(),h.TgZ(28,"div",18)(29,"h4",19),h._uU(30,"Amount Settled"),h.qZA(),h.TgZ(31,"span",20),h.YNc(32,v,3,2,"ng-container",21),h.YNc(33,G,3,2,"ng-container",21),h.qZA()()(),h._UZ(34,"mat-divider",22),h.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),h._uU(38,"Date Created"),h.qZA(),h.TgZ(39,"span",20),h._uU(40),h.ALo(41,"date"),h.qZA()(),h.TgZ(42,"div",18)(43,"h4",19),h._uU(44,"Date Settled"),h.qZA(),h.TgZ(45,"span",20),h._uU(46),h.ALo(47,"date"),h.qZA()()(),h._UZ(48,"mat-divider",22),h.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),h._uU(52,"Memo"),h.qZA(),h.TgZ(53,"span",20),h._uU(54),h.qZA()()(),h._UZ(55,"mat-divider",22),h.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),h._uU(59,"Payment Request"),h.qZA(),h.TgZ(60,"span",24),h._uU(61),h.qZA()()(),h._UZ(62,"mat-divider",22),h.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),h._uU(66,"Payment Hash"),h.qZA(),h.TgZ(67,"span",24),h._uU(68),h.qZA()()(),h.YNc(69,Ee,2,1,"div",21),h.qZA()()(),h.YNc(70,pe,4,0,"div",25),h.TgZ(71,"div",26)(72,"button",27),h.NdJ("click",function(){return Ze.onShowAdvanced()}),h.YNc(73,qe,2,0,"p",28),h.YNc(74,Ce,2,0,"ng-template",null,29,h.W1O),h.qZA(),h.YNc(76,Se,2,2,"button",30),h.YNc(77,fe,2,0,"button",31),h.qZA()()(),h.YNc(78,Ue,35,14,"ng-template",null,32,h.W1O)),2&ut){const xt=h.MAs(75);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Ze.invoice&&Ze.invoice.payment_request&&""!==(null==Ze.invoice?null:Ze.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(41,Je,Ze.screenSize===Ze.screenSizeEnum.XS||Ze.screenSize===Ze.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ze.invoice?null:Ze.invoice.payment_request)&&""!==(null==Ze.invoice?null:Ze.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ze.invoice&&Ze.invoice.payment_request)||""===(null==Ze.invoice?null:Ze.invoice.payment_request)),h.xp6(4),h.Q6J("icon",Ze.faReceipt),h.xp6(2),h.Oqu(Ze.screenSize===Ze.screenSizeEnum.XS?Ze.newlyAdded?"Created":"Invoice":Ze.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(43,Re,Ze.screenSize===Ze.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Ze.invoice&&Ze.invoice.payment_request&&""!==(null==Ze.invoice?null:Ze.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(45,Je,Ze.screenSize!==Ze.screenSizeEnum.XS&&Ze.screenSize!==Ze.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ze.invoice?null:Ze.invoice.payment_request)&&""!==(null==Ze.invoice?null:Ze.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ze.invoice&&Ze.invoice.payment_request)||""===(null==Ze.invoice?null:Ze.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",Ze.screenSize===Ze.screenSizeEnum.XS||Ze.screenSize===Ze.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngClass",h.VKq(47,le,(null==Ze.invoice?null:Ze.invoice.htlcs)&&(null==Ze.invoice?null:Ze.invoice.htlcs.length)>0&&Ze.showAdvanced)),h.xp6(5),h.Oqu(Ze.screenSize===Ze.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij("",h.lcZ(26,33,(null==Ze.invoice?null:Ze.invoice.value)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Ze.invoice&&Ze.invoice.value)||"0"===(null==Ze.invoice?null:Ze.invoice.value)),h.xp6(5),h.Q6J("ngIf",(null==Ze.invoice?null:Ze.invoice.amt_paid_sat)&&"OPEN"!==(null==Ze.invoice?null:Ze.invoice.state)),h.xp6(1),h.Q6J("ngIf",!(null!=Ze.invoice&&Ze.invoice.amt_paid_sat)||"0"===(null==Ze.invoice?null:Ze.invoice.amt_paid_sat)),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(h.xi3(41,35,1e3*(null==Ze.invoice?null:Ze.invoice.creation_date),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(0!=+(null==Ze.invoice?null:Ze.invoice.settle_date)?h.xi3(47,38,1e3*+(null==Ze.invoice?null:Ze.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Ze.invoice?null:Ze.invoice.memo),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ze.invoice?null:Ze.invoice.payment_request)||"N/A"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ze.invoice?null:Ze.invoice.r_hash)||""),h.xp6(1),h.Q6J("ngIf",Ze.showAdvanced),h.xp6(1),h.Q6J("ngIf",(null==Ze.invoice?null:Ze.invoice.htlcs)&&(null==Ze.invoice?null:Ze.invoice.htlcs.length)>0&&Ze.showAdvanced&&Ze.flgOpened),h.xp6(3),h.Q6J("ngIf",!Ze.showAdvanced)("ngIfElse",xt),h.xp6(3),h.Q6J("ngIf",(null==Ze.invoice?null:Ze.invoice.payment_request)&&""!==(null==Ze.invoice?null:Ze.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ze.invoice&&Ze.invoice.payment_request)||""===(null==Ze.invoice?null:Ze.invoice.payment_request))}},dependencies:[L.mk,L.sg,L.O5,L.tP,k.BN,V.xw,V.Wh,V.yH,B.oO,W.lW,W.nh,Y.dn,Y.dk,Q.ib,Q.yz,Q.yK,X.Hw,ee.d,me.Ou,re.gM,ie.uU,se.y,ce.h,L.JJ,L.uU]}),ct})()},7772:(We,q,m)=>{"use strict";m.d(q,{J:()=>g,_:()=>e});var t=m(7340);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],g=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(We,q,m)=>{"use strict";m.d(q,{g:()=>e});var t=m(7340);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(We,q,m)=>{"use strict";m.d(q,{l:()=>e});var t=m(7340);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(We,q,m)=>{"use strict";m.d(q,{H:()=>w});var t=m(5412),e=m(4650),g=m(5043),T=m(6895),s=m(1576),x=m(4859),h=m(3546),N=m(4850),d=m(3390);function M(L,k){if(1&L&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&L){const V=e.oxw();e.xp6(1),e.Oqu(V.data.titleMessage)}}let w=(()=>{var L;class k{constructor(B,W,Y){this.dialogRef=B,this.data=W,this.logger=Y,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return(L=k).\u0275fac=function(B){return new(B||L)(e.Y36(t.so),e.Y36(t.WI),e.Y36(g.mQ))},L.\u0275cmp=e.Xpm({type:L,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 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(B,W){1&B&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return W.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,M,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&B&&(e.xp6(5),e.Oqu(W.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",W.data.titleMessage),e.xp6(4),e.Oqu(W.data.message.code),e.xp6(5),e.Oqu(W.errorMessage),e.xp6(5),e.Oqu(W.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},dependencies:[T.O5,s.xw,s.Wh,s.yH,t.ZT,x.lW,h.dn,h.dk,N.d,d.h],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),k})()},2615:(We,q,m)=>{"use strict";m.d(q,{a:()=>Wi});var t=m(4006),e=m(7579),g=m(2722),T=m(5412),s=m(2687),x=m(7772),h=m(7731),N=m(6529),d=m(4650),M=m(9653),w=m(9107),L=m(6895),k=m(5043),V=m(9116),B=m(62),W=m(1576),Y=m(5829),Q=m(4859),X=m(3546),ee=m(752),me=m(7392),re=m(4144),ie=m(9549),se=m(3162),ce=m(1948),Te=m(455),S=m(266),i=m(8425),a=m(3390),u=m(4850);function l(et,It){1&et&&d.GkF(0)}function _(et,It){1&et&&d.GkF(0)}const O=function(et){return{"h-5":et}};function R(et,It){if(1&et&&(d.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d._uU(4),d.ALo(5,"number"),d.qZA()()(),d.YNc(6,_,1,0,"ng-container",0),d.qZA()),2&et){const Le=d.oxw(),Mt=d.MAs(4);d.Q6J("expanded",Le.panelExpanded)("ngClass",d.VKq(7,O,!Le.flgShowPanel)),d.xp6(4),d.AsE("Quote for ",Le.termCaption," amount (",d.lcZ(5,5,Le.quote.amount)," Sats)"),d.xp6(2),d.Q6J("ngTemplateOutlet",Mt)}}function C(et,It){if(1&et&&(d.TgZ(0,"div",19)(1,"h4",8),d._uU(2," Prepay Amount (Sats) "),d.TgZ(3,"mat-icon",20),d._uU(4,"info_outline"),d.qZA()(),d.TgZ(5,"span",10),d._uU(6),d.ALo(7,"number"),d.qZA()()),2&et){const Le=d.oxw(2);d.xp6(6),d.Oqu(d.lcZ(7,1,null==Le.quote?null:Le.quote.prepay_amt_sat))}}function n(et,It){1&et&&d._UZ(0,"mat-divider",13)}function v(et,It){if(1&et&&(d.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),d._uU(3," Swap Server Node Pubkey "),d.TgZ(4,"mat-icon",22),d._uU(5,"info_outline"),d.qZA()(),d.TgZ(6,"span",10),d._uU(7),d.qZA()()()),2&et){const Le=d.oxw(2);d.xp6(7),d.Oqu(null==Le.quote?null:Le.quote.swap_payment_dest)}}function K(et,It){if(1&et&&(d.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d._uU(4," Swap Fee (Sats) "),d.TgZ(5,"mat-icon",9),d._uU(6,"info_outline"),d.qZA()(),d.TgZ(7,"span",10),d._uU(8),d.ALo(9,"number"),d.qZA()(),d.TgZ(10,"div",7)(11,"h4",8),d._uU(12),d.TgZ(13,"mat-icon",11),d._uU(14,"info_outline"),d.qZA()(),d.TgZ(15,"span",10),d._uU(16),d.ALo(17,"number"),d.qZA()(),d.YNc(18,C,8,3,"div",12),d.qZA(),d._UZ(19,"mat-divider",13),d.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),d._uU(23," Max Off-chain Swap Routing Fee (Sats) "),d.TgZ(24,"mat-icon",15),d._uU(25,"info_outline"),d.qZA()(),d.TgZ(26,"span",10),d._uU(27),d.ALo(28,"number"),d.qZA()(),d.TgZ(29,"div",14)(30,"h4",8),d._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),d.TgZ(32,"mat-icon",16),d._uU(33,"info_outline"),d.qZA()(),d.TgZ(34,"span",10),d._uU(35,"36"),d.qZA()()(),d.YNc(36,n,1,0,"mat-divider",17),d.YNc(37,v,8,1,"div",18),d.qZA()),2&et){const Le=d.oxw();d.xp6(2),d.Q6J("fxFlex",null!=Le.quote&&Le.quote.prepay_amt_sat?"30":"50"),d.xp6(6),d.Oqu(d.lcZ(9,9,null==Le.quote?null:Le.quote.swap_fee_sat)),d.xp6(2),d.Q6J("fxFlex",null!=Le.quote&&Le.quote.prepay_amt_sat?"35":"50"),d.xp6(2),d.hij(" ",null!=Le.quote&&Le.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Le.quote&&Le.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.xp6(4),d.Oqu(d.lcZ(17,11,null!=Le.quote&&Le.quote.htlc_sweep_fee_sat?Le.quote.htlc_sweep_fee_sat:null!=Le.quote&&Le.quote.htlc_publish_fee_sat?Le.quote.htlc_publish_fee_sat:0)),d.xp6(2),d.Q6J("ngIf",null==Le.quote?null:Le.quote.prepay_amt_sat),d.xp6(9),d.Oqu(d.lcZ(28,13,(null==Le.quote?null:Le.quote.amount)*((null!=Le.quote&&Le.quote.off_chain_swap_routing_fee_percentage?null==Le.quote?null:Le.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.xp6(9),d.Q6J("ngIf",""!==(null==Le.quote?null:Le.quote.swap_payment_dest)),d.xp6(1),d.Q6J("ngIf",""!==(null==Le.quote?null:Le.quote.swap_payment_dest))}}let F=(()=>{var et;class It{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return(et=It).\u0275fac=function(Mt){return new(Mt||et)},et.\u0275cmp=d.Xpm({type:et,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(Mt,Wt){if(1&Mt&&(d.YNc(0,l,1,0,"ng-container",0),d.YNc(1,R,7,9,"ng-template",null,1,d.W1O),d.YNc(3,K,38,15,"ng-template",null,2,d.W1O)),2&Mt){const si=d.MAs(2),Ai=d.MAs(4);d.Q6J("ngTemplateOutlet",Wt.showPanel?si:Ai)}},dependencies:[L.mk,L.O5,L.tP,W.xw,W.Wh,W.yH,Y.oO,ee.ib,ee.yz,ee.yK,me.Hw,u.d,S.gM,L.JJ]}),It})();function G(et,It){1&et&&d.GkF(0)}function ye(et,It){if(1&et&&(d.TgZ(0,"div",3)(1,"span",4),d._uU(2),d.qZA()()),2&et){const Le=d.oxw();d.xp6(2),d.Oqu(null!=Le.loopStatus&&Le.loopStatus.error?null==Le.loopStatus?null:Le.loopStatus.error:"Unknown Error.")}}function Ee(et,It){if(1&et&&(d.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d._uU(4,"ID"),d.qZA(),d.TgZ(5,"span",4),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",8),d.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),d._uU(11,"HTLC Address"),d.qZA(),d.TgZ(12,"span",4),d._uU(13),d.qZA()()()()),2&et){const Le=d.oxw();d.xp6(6),d.Oqu(null==Le.loopStatus?null:Le.loopStatus.id_bytes),d.xp6(7),d.Oqu(null==Le.loopStatus?null:Le.loopStatus.htlc_address)}}let pe=(()=>{var et;class It{constructor(){}}return(et=It).\u0275fac=function(Mt){return new(Mt||et)},et.\u0275cmp=d.Xpm({type:et,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(Mt,Wt){if(1&Mt&&(d.YNc(0,G,1,0,"ng-container",0),d.YNc(1,ye,3,1,"ng-template",null,1,d.W1O),d.YNc(3,Ee,14,2,"ng-template",null,2,d.W1O)),2&Mt){const si=d.MAs(2),Ai=d.MAs(4);d.Q6J("ngTemplateOutlet",null!=Wt.loopStatus&&Wt.loopStatus.error?si:Ai)}},dependencies:[L.tP,W.xw,W.Wh,W.yH,u.d]}),It})();var qe=m(113);function Ce(et,It){1&et&&d.GkF(0)}const Se=function(et,It){return{"small-svg":et,"large-svg":It}};function fe(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop In explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,Se,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function Fe(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56)(29,"g",57)(30,"g",58),d._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),d.TgZ(34,"g",62),d._UZ(35,"path",63),d.qZA(),d._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),d.qZA(),d.TgZ(45,"g",73),d._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),d.qZA(),d._UZ(59,"path",87),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Step 1: Deciding to Loop In"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,Se,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function oe(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",88)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",89),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d._UZ(14,"circle",95)(15,"path",96),d.TgZ(16,"g",97),d._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.qZA(),d.TgZ(20,"g",101),d._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),d.TgZ(31,"g",112)(32,"g",113),d._UZ(33,"g",114),d.qZA(),d._UZ(34,"g",115),d.qZA()()(),d.TgZ(35,"g",116)(36,"g",40),d._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),d.qZA(),d.TgZ(53,"g",56)(54,"g",57)(55,"g",58),d._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),d.TgZ(59,"g",122),d._UZ(60,"path",63),d.qZA(),d._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),d.qZA(),d.TgZ(70,"g",73),d._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),d.qZA(),d._UZ(84,"path",139),d.qZA()()()(),d._UZ(85,"path",140)(86,"path",141),d.qZA()()()(),d.kcU(),d.TgZ(87,"div",30)(88,"mat-card-title"),d._uU(89,"Step 2: Send payment out"),d.qZA()(),d.TgZ(90,"div",31)(91,"mat-card-subtitle",32),d._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,Se,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function ze(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",142)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d._UZ(10,"circle",12)(11,"path",147),d.qZA(),d.TgZ(12,"g",14),d._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),d.qZA()(),d.TgZ(28,"g",149),d._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.qZA(),d.TgZ(32,"g",152),d._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),d.TgZ(43,"g",112)(44,"g",113),d._UZ(45,"g",114),d.qZA(),d._UZ(46,"g",115),d.qZA()()(),d._UZ(47,"path",153),d.qZA()()()(),d.kcU(),d.TgZ(48,"div",30)(49,"mat-card-title"),d._uU(50,"Step 3: Recieve Funds Off-chain"),d.qZA()(),d.TgZ(51,"div",31)(52,"mat-card-subtitle",32),d._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,Se,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function Oe(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",154)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),d.qZA(),d.TgZ(28,"g",172),d._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),d.qZA(),d._UZ(43,"path",187),d.qZA()(),d._UZ(44,"circle",188),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Done!"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,Se,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}let he=(()=>{var et;class It{constructor(Mt){this.commonService=Mt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Mt){2===Mt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Mt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(et=It).\u0275fac=function(Mt){return new(Mt||et)(d.Y36(B.v))},et.\u0275cmp=d.Xpm({type:et,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(Mt,Wt){if(1&Mt&&(d.YNc(0,Ce,1,0,"ng-container",0),d.YNc(1,fe,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Fe,66,5,"ng-template",null,2,d.W1O),d.YNc(5,oe,93,5,"ng-template",null,3,d.W1O),d.YNc(7,ze,54,5,"ng-template",null,4,d.W1O),d.YNc(9,Oe,51,5,"ng-template",null,5,d.W1O)),2&Mt){const si=d.MAs(2),Ai=d.MAs(4),Ri=d.MAs(6),$i=d.MAs(8),nn=d.MAs(10);d.Q6J("ngTemplateOutlet",1===Wt.stepNumber?si:2===Wt.stepNumber?Ai:3===Wt.stepNumber?Ri:4===Wt.stepNumber?$i:nn)}},dependencies:[L.mk,L.tP,W.xw,W.Wh,W.yH,Y.oO,X.$j,X.n5],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:[qe.l]}}),It})();function Ae(et,It){1&et&&d.GkF(0)}const ge=function(et,It){return{"small-svg":et,"large-svg":It}};function Ue(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop Out explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ge,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function Je(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56),d._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),d.qZA(),d._UZ(43,"path",71),d.qZA()(),d._UZ(44,"circle",72),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Step 1: Deciding to Loop Out"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ge,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function Re(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",73)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",74),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",75)(11,"g",76),d._UZ(12,"circle",77)(13,"path",78),d.TgZ(14,"g",79),d._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.qZA(),d.TgZ(18,"g",83),d._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),d.TgZ(29,"g",94)(30,"g",95),d._UZ(31,"g",96),d.qZA(),d._UZ(32,"g",97),d.qZA(),d._UZ(33,"path",98),d.qZA(),d.TgZ(34,"g",99)(35,"g",41)(36,"g",42),d._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),d.qZA(),d.TgZ(52,"g",56),d._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),d.qZA(),d._UZ(67,"path",111),d.qZA()()()()()(),d.kcU(),d.TgZ(68,"div",30)(69,"mat-card-title"),d._uU(70,"Step 2: Send lightning payment"),d.qZA()(),d.TgZ(71,"div",31)(72,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ge,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function le(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",112)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d._UZ(9,"circle",12)(10,"path",117),d.qZA(),d.TgZ(11,"g",14),d._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),d.qZA()(),d.TgZ(27,"g",119),d._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.qZA(),d.TgZ(31,"g",121),d._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),d.TgZ(42,"g",94)(43,"g",95),d._UZ(44,"g",96),d.qZA(),d._UZ(45,"g",97),d.qZA(),d._UZ(46,"path",123),d.qZA()()()()(),d.kcU(),d.TgZ(47,"div",30)(48,"mat-card-title"),d._uU(49,"Step 3: Receive funds back"),d.qZA()(),d.TgZ(50,"div",31)(51,"mat-card-subtitle",32),d._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ge,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}function rt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.onSwipe(Wt))}),d.O4$(),d.TgZ(1,"svg",124)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),d.qZA(),d.TgZ(28,"g",142)(29,"g",143)(30,"g",144),d._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),d.TgZ(34,"g",148),d._UZ(35,"path",149),d.qZA(),d._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),d.qZA(),d.TgZ(45,"g",159),d._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),d.qZA(),d._UZ(59,"path",173),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Done!"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@sliderAnimation",Le.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ge,Le.screenSize===Le.screenSizeEnum.XS,Le.screenSize!==Le.screenSizeEnum.XS))}}let Qe=(()=>{var et;class It{constructor(Mt){this.commonService=Mt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Mt){2===Mt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Mt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(et=It).\u0275fac=function(Mt){return new(Mt||et)(d.Y36(B.v))},et.\u0275cmp=d.Xpm({type:et,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(Mt,Wt){if(1&Mt&&(d.YNc(0,Ae,1,0,"ng-container",0),d.YNc(1,Ue,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Je,51,5,"ng-template",null,2,d.W1O),d.YNc(5,Re,74,5,"ng-template",null,3,d.W1O),d.YNc(7,le,53,5,"ng-template",null,4,d.W1O),d.YNc(9,rt,66,5,"ng-template",null,5,d.W1O)),2&Mt){const si=d.MAs(2),Ai=d.MAs(4),Ri=d.MAs(6),$i=d.MAs(8),nn=d.MAs(10);d.Q6J("ngTemplateOutlet",1===Wt.stepNumber?si:2===Wt.stepNumber?Ai:3===Wt.stepNumber?Ri:4===Wt.stepNumber?$i:nn)}},dependencies:[L.mk,L.tP,W.xw,W.Wh,W.yH,Y.oO,X.$j,X.n5],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:[qe.l]}}),It})();const ct=["stepper"];function Gt(et,It){if(1&et&&(d.TgZ(0,"div",48)(1,"p",49)(2,"strong"),d._uU(3,"Channel Peer:\xa0"),d.qZA(),d._uU(4),d.ALo(5,"titlecase"),d.qZA(),d.TgZ(6,"p",50)(7,"strong"),d._uU(8,"Channel ID:\xa0"),d.qZA(),d._uU(9),d.qZA(),d._UZ(10,"p",50),d.qZA()),2&et){const Le=d.oxw(2);d.xp6(4),d.Oqu(d.lcZ(5,2,Le.channel.remote_alias)),d.xp6(5),d.Oqu(Le.channel.chan_id)}}function ut(et,It){if(1&et&&d._uU(0),2&et){const Le=d.oxw(2);d.Oqu(Le.inputFormLabel)}}function Ze(et,It){1&et&&(d.TgZ(0,"mat-error"),d._uU(1,"Amount is required."),d.qZA())}function xt(et,It){if(1&et&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&et){const Le=d.oxw(2);d.xp6(1),d.hij("Amount must be greater than or equal to ",d.lcZ(2,1,Le.minQuote.amount),".")}}function Me(et,It){if(1&et&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&et){const Le=d.oxw(2);d.xp6(1),d.hij("Amount must be less than or equal to ",d.lcZ(2,1,Le.maxQuote.amount),".")}}function $e(et,It){1&et&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target is required."),d.qZA())}function Pe(et,It){1&et&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target must be a positive number."),d.qZA())}function J(et,It){1&et&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage is required."),d.qZA())}function mt(et,It){1&et&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage must be a positive number."),d.qZA())}function Et(et,It){if(1&et&&(d.TgZ(0,"mat-form-field",50)(1,"mat-label"),d._uU(2,"Max Off-chain Routing Fee (%)"),d.qZA(),d._UZ(3,"input",51),d.YNc(4,J,2,0,"mat-error",25),d.YNc(5,mt,2,0,"mat-error",25),d.qZA()),2&et){const Le=d.oxw(2);d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==Le.inputFormGroup.controls.routingFeePercent.errors?null:Le.inputFormGroup.controls.routingFeePercent.errors.required),d.xp6(1),d.Q6J("ngIf",null==Le.inputFormGroup.controls.routingFeePercent.errors?null:Le.inputFormGroup.controls.routingFeePercent.errors.min)}}function at(et,It){1&et&&(d.TgZ(0,"div",52)(1,"mat-slide-toggle",53),d._uU(2,"Fast"),d.qZA(),d.TgZ(3,"mat-icon",54),d._uU(4,"info_outline"),d.qZA()())}function je(et,It){if(1&et&&d._uU(0),2&et){const Le=d.oxw(2);d.Oqu(Le.quoteFormLabel)}}function Ht(et,It){1&et&&(d.TgZ(0,"p",55)(1,"mat-icon",56),d._uU(2,"close"),d.qZA(),d._uU(3,"Local balance amount is insufficient for swap."),d.qZA())}function Ct(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",57),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onValidateAmount())}),d._uU(1,"Next"),d.qZA()}}function Nt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",58),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onLoop())}),d._uU(1),d.qZA()}if(2&et){const Le=d.oxw(2);d.xp6(1),d.hij("Initiate ",Le.loopDirectionCaption,"")}}function Bt(et,It){if(1&et&&d._uU(0),2&et){const Le=d.oxw(3);d.Oqu(Le.addressFormLabel)}}function Ne(et,It){1&et&&(d.TgZ(0,"mat-error"),d._uU(1,"Address is required."),d.qZA())}function $(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"mat-step",16)(1,"form",17),d.YNc(2,Bt,1,1,"ng-template",18),d.TgZ(3,"div",59)(4,"mat-radio-group",60),d.NdJ("change",function(Wt){d.CHM(Le);const si=d.oxw(2);return d.KtG(si.onAddressTypeChange(Wt))}),d.TgZ(5,"mat-radio-button",61),d._uU(6,"Node Local Address"),d.qZA(),d.TgZ(7,"mat-radio-button",62),d._uU(8,"External Address"),d.qZA()(),d.TgZ(9,"mat-form-field",63)(10,"mat-label"),d._uU(11,"Address"),d.qZA(),d._UZ(12,"input",64),d.YNc(13,Ne,2,0,"mat-error",25),d.qZA()(),d.TgZ(14,"div",29)(15,"button",65),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onLoop())}),d._uU(16),d.qZA()()()()}if(2&et){const Le=d.oxw(2);d.Q6J("stepControl",Le.addressFormGroup)("editable",Le.flgEditable),d.xp6(1),d.Q6J("formGroup",Le.addressFormGroup),d.xp6(11),d.Q6J("required","external"===Le.addressFormGroup.controls.addressType.value),d.xp6(1),d.Q6J("ngIf",null==Le.addressFormGroup.controls.address.errors?null:Le.addressFormGroup.controls.address.errors.required),d.xp6(3),d.hij("Initiate ",Le.loopDirectionCaption,"")}}function ue(et,It){if(1&et&&d._uU(0),2&et){const Le=d.oxw(2);d.hij("",Le.loopDirectionCaption," Status")}}function Ie(et,It){if(1&et&&(d.TgZ(0,"mat-icon",66),d._uU(1),d.qZA()),2&et){const Le=d.oxw(2);d.xp6(1),d.Oqu(Le.loopStatus&&null!=Le.loopStatus&&Le.loopStatus.id_bytes?"check":"close")}}function Xe(et,It){1&et&&d._UZ(0,"div")}function ei(et,It){1&et&&d._UZ(0,"mat-progress-bar",67)}function zt(et,It){if(1&et&&(d.TgZ(0,"h4",68),d._uU(1),d.qZA()),2&et){const Le=d.oxw(2);d.xp6(1),d.Oqu(Le.loopStatus&&Le.loopStatus.error?Le.loopDirectionCaption+" failed.":Le.loopStatus&&Le.loopStatus.id_bytes&&Le.channel?Le.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Le.loopDirectionCaption+" request placed successfully.")}}function ni(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",69),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.goToLoop())}),d._uU(1,"Check Status"),d.qZA()}}function pt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",70),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onRestart())}),d._uU(1,"Start Again"),d.qZA()}}function ot(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),d._uU(5),d.qZA()(),d.TgZ(6,"div",8)(7,"button",9),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw();return d.KtG(Wt.showInfo())}),d._uU(8,"?"),d.qZA(),d.TgZ(9,"button",10),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw();return d.KtG(Wt.onClose())}),d._uU(10,"X"),d.qZA()()(),d.TgZ(11,"mat-card-content",11)(12,"div",12),d.YNc(13,Gt,11,4,"div",13),d.TgZ(14,"mat-vertical-stepper",14,15),d.NdJ("selectionChange",function(Wt){d.CHM(Le);const si=d.oxw();return d.KtG(si.stepSelectionChanged(Wt))}),d.TgZ(16,"mat-step",16)(17,"form",17),d.YNc(18,ut,1,1,"ng-template",18),d.TgZ(19,"div",19),d._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),d.qZA(),d.TgZ(22,"div",21)(23,"mat-form-field",22)(24,"mat-label"),d._uU(25,"Amount"),d.qZA(),d._UZ(26,"input",23),d.TgZ(27,"mat-hint"),d._uU(28),d.ALo(29,"number"),d.ALo(30,"number"),d.qZA(),d.TgZ(31,"span",24),d._uU(32,"Sats"),d.qZA(),d.YNc(33,Ze,2,0,"mat-error",25),d.YNc(34,xt,3,3,"mat-error",25),d.YNc(35,Me,3,3,"mat-error",25),d.qZA(),d.TgZ(36,"mat-form-field",22)(37,"mat-label"),d._uU(38,"Sweep Confirmation Target"),d.qZA(),d._UZ(39,"input",26),d.YNc(40,$e,2,0,"mat-error",25),d.YNc(41,Pe,2,0,"mat-error",25),d.qZA(),d.YNc(42,Et,6,3,"mat-form-field",27),d.qZA(),d.YNc(43,at,5,0,"div",28),d.TgZ(44,"div",29)(45,"button",30),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw();return d.KtG(Wt.onEstimateQuote())}),d._uU(46,"Estimate Quote"),d.qZA()()()(),d.TgZ(47,"mat-step",16)(48,"form",17),d.YNc(49,je,1,1,"ng-template",18),d._UZ(50,"rtl-loop-quote",31),d.YNc(51,Ht,4,0,"p",32),d.TgZ(52,"div",29),d.YNc(53,Ct,2,0,"button",33),d.YNc(54,Nt,2,1,"button",34),d.qZA()()(),d.YNc(55,$,17,6,"mat-step",35),d.TgZ(56,"mat-step",36)(57,"form",17),d.YNc(58,ue,1,1,"ng-template",18),d.TgZ(59,"div",37)(60,"mat-expansion-panel",38)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",39),d._uU(64),d.YNc(65,Ie,2,1,"mat-icon",40),d.qZA()()(),d.YNc(66,Xe,1,0,"div",41),d.qZA(),d.YNc(67,ei,1,0,"mat-progress-bar",42),d.qZA(),d.YNc(68,zt,2,1,"h4",43),d.TgZ(69,"div",29),d.YNc(70,ni,2,0,"button",44),d.YNc(71,pt,2,0,"button",45),d.qZA()()()(),d.TgZ(72,"div",46)(73,"button",47),d._uU(74,"Close"),d.qZA()()()()()()}if(2&et){const Le=d.oxw(),Mt=d.MAs(2);d.Q6J("@opacityAnimation",void 0),d.xp6(3),d.Q6J("fxFlex",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM?"83":"91"),d.xp6(2),d.Oqu(Le.channel?"Channel "+Le.loopDirectionCaption:Le.loopDirectionCaption),d.xp6(1),d.Q6J("fxFlex",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM?"17":"9"),d.xp6(7),d.Q6J("ngIf",Le.channel),d.xp6(1),d.Q6J("linear",!0),d.xp6(2),d.Q6J("stepControl",Le.inputFormGroup)("editable",Le.flgEditable),d.xp6(1),d.Q6J("formGroup",Le.inputFormGroup),d.xp6(3),d.Q6J("quote",Le.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),d.xp6(1),d.Q6J("quote",Le.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),d.xp6(2),d.Q6J("fxFlex",Le.direction===Le.LoopTypeEnum.LOOP_OUT?"35":"48"),d.xp6(3),d.Q6J("step",1e3),d.xp6(2),d.AsE("Range: ",d.lcZ(29,51,Le.minQuote.amount),"-",d.lcZ(30,53,Le.maxQuote.amount),""),d.xp6(5),d.Q6J("ngIf",null==Le.inputFormGroup.controls.amount.errors?null:Le.inputFormGroup.controls.amount.errors.required),d.xp6(1),d.Q6J("ngIf",null==Le.inputFormGroup.controls.amount.errors?null:Le.inputFormGroup.controls.amount.errors.min),d.xp6(1),d.Q6J("ngIf",null==Le.inputFormGroup.controls.amount.errors?null:Le.inputFormGroup.controls.amount.errors.max),d.xp6(1),d.Q6J("fxFlex",Le.direction===Le.LoopTypeEnum.LOOP_OUT?"30":"48"),d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==Le.inputFormGroup.controls.sweepConfTarget.errors?null:Le.inputFormGroup.controls.sweepConfTarget.errors.required),d.xp6(1),d.Q6J("ngIf",null==Le.inputFormGroup.controls.sweepConfTarget.errors?null:Le.inputFormGroup.controls.sweepConfTarget.errors.min),d.xp6(1),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_OUT),d.xp6(4),d.Q6J("stepControl",Le.quoteFormGroup)("editable",Le.flgEditable),d.xp6(1),d.Q6J("formGroup",Le.quoteFormGroup),d.xp6(2),d.Q6J("quote",Le.quote)("showPanel",!1),d.xp6(1),d.Q6J("ngIf",Le.inputFormGroup.controls.amount.value>Le.localBalanceToCompare),d.xp6(2),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_IN),d.xp6(1),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("stepControl",Le.statusFormGroup),d.xp6(1),d.Q6J("formGroup",Le.statusFormGroup),d.xp6(3),d.Q6J("expanded",!!Le.loopStatus),d.xp6(4),d.Oqu(Le.loopStatus?Le.loopStatus.id_bytes?Le.loopDirectionCaption+" request details":Le.loopDirectionCaption+" error details":"Waiting for "+Le.loopDirectionCaption+" request..."),d.xp6(1),d.Q6J("ngIf",Le.loopStatus),d.xp6(1),d.Q6J("ngIf",!Le.loopStatus)("ngIfElse",Mt),d.xp6(1),d.Q6J("ngIf",!Le.loopStatus),d.xp6(1),d.Q6J("ngIf",Le.loopStatus),d.xp6(2),d.Q6J("ngIf",Le.loopStatus&&Le.loopStatus.id_bytes&&Le.channel),d.xp6(1),d.Q6J("ngIf",Le.loopStatus&&(Le.loopStatus.error||!Le.loopStatus.id_bytes)),d.xp6(2),d.Q6J("mat-dialog-close",!1)}}function ft(et,It){if(1&et&&d._UZ(0,"rtl-loop-status",71),2&et){const Le=d.oxw();d.Q6J("loopStatus",Le.loopStatus)}}function St(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"rtl-loop-out-info-graphics",88),d.NdJ("stepNumberChange",function(Wt){d.CHM(Le);const si=d.oxw(2);return d.KtG(si.stepNumber=Wt)}),d.qZA()}if(2&et){const Le=d.oxw(2);d.Q6J("animationDirection",Le.animationDirection)("stepNumber",Le.stepNumber)}}function gt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"rtl-loop-in-info-graphics",88),d.NdJ("stepNumberChange",function(Wt){d.CHM(Le);const si=d.oxw(2);return d.KtG(si.stepNumber=Wt)}),d.qZA()}if(2&et){const Le=d.oxw(2);d.Q6J("animationDirection",Le.animationDirection)("stepNumber",Le.stepNumber)}}const tt=function(et,It){return{"dot-primary":et,"dot-primary-lighter":It}};function _t(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"span",89),d.NdJ("click",function(){const si=d.CHM(Le).$implicit,Ai=d.oxw(2);return d.KtG(Ai.onStepChanged(si))}),d._UZ(1,"p",90),d.qZA()}if(2&et){const Le=It.$implicit,Mt=d.oxw(2);d.xp6(1),d.Q6J("ngClass",d.WLB(1,tt,Mt.stepNumber===Le,Mt.stepNumber!==Le))}}function vt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",91),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onReadMore())}),d._uU(1,"Read More"),d.qZA()}}function Ve(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",92),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onStepChanged(4))}),d._uU(1,"Back"),d.qZA()}}function Tt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",93),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return Wt.flgShowInfo=!1,d.KtG(Wt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function Lt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",94),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return Wt.flgShowInfo=!1,d.KtG(Wt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function Qt(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",95),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onStepChanged(Wt.stepNumber-1))}),d._uU(1,"Back"),d.qZA()}}function Bi(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"button",96),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw(2);return d.KtG(Wt.onStepChanged(Wt.stepNumber+1))}),d._uU(1,"Next"),d.qZA()}}const Hi=function(){return[1,2,3,4,5]};function Si(et,It){if(1&et){const Le=d.EpF();d.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),d._UZ(4,"span",7),d.qZA(),d.TgZ(5,"div",75)(6,"button",76),d.NdJ("click",function(){d.CHM(Le);const Wt=d.oxw();return Wt.flgShowInfo=!1,d.KtG(Wt.stepNumber=1)}),d._uU(7,"X"),d.qZA()()(),d.TgZ(8,"mat-card-content",77),d.YNc(9,St,1,2,"rtl-loop-out-info-graphics",78),d.YNc(10,gt,1,2,"rtl-loop-in-info-graphics",78),d.qZA(),d.TgZ(11,"div",79),d.YNc(12,_t,2,4,"span",80),d.qZA(),d.TgZ(13,"div",81),d.YNc(14,vt,2,0,"button",82),d.YNc(15,Ve,2,0,"button",83),d.YNc(16,Tt,2,0,"button",84),d.YNc(17,Lt,2,0,"button",85),d.YNc(18,Qt,2,0,"button",86),d.YNc(19,Bi,2,0,"button",87),d.qZA()()()}if(2&et){const Le=d.oxw();d.Q6J("@opacityAnimation",void 0),d.xp6(9),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Le.direction===Le.LoopTypeEnum.LOOP_IN),d.xp6(2),d.Q6J("ngForOf",d.DdM(10,Hi)),d.xp6(2),d.Q6J("ngIf",5===Le.stepNumber),d.xp6(1),d.Q6J("ngIf",5===Le.stepNumber),d.xp6(1),d.Q6J("ngIf",5===Le.stepNumber),d.xp6(1),d.Q6J("ngIf",Le.stepNumber<5),d.xp6(1),d.Q6J("ngIf",Le.stepNumber>1&&Le.stepNumber<5),d.xp6(1),d.Q6J("ngIf",Le.stepNumber<5)}}let Wi=(()=>{var et;class It{constructor(Mt,Wt,si,Ai,Ri,$i,nn,Qi,Yt){this.dialogRef=Mt,this.data=Wt,this.store=si,this.loopService=Ai,this.formBuilder=Ri,this.decimalPipe=$i,this.logger=nn,this.router=Qi,this.commonService=Yt,this.faInfoCircle=s.sqG,this.LoopTypeEnum=h.$I,this.direction=h.$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=h.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||h.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===h.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(N.ZW).pipe((0,g.R)(this.unSubs[6])).subscribe(Mt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:Mt.lightningBalance&&Mt.lightningBalance.local?+Mt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,g.R)(this.unSubs[4])).subscribe(Mt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,g.R)(this.unSubs[5])).subscribe(Mt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(Mt){"external"===Mt.value?(this.addressFormGroup.controls.address.setValidators([t.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.maxQuote.amount&&this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===h.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===h.$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===h.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,g.R)(this.unSubs[0])).subscribe({next:Mt=>{this.loopStatus=Mt,this.loopService.listSwaps(),this.flgEditable=!0},error:Mt=>{this.loopStatus={error:Mt},this.flgEditable=!0,this.logger.error(Mt)}});else{const Mt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Wt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",si=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,Mt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),si,Wt).pipe((0,g.R)(this.unSubs[1])).subscribe({next:Ai=>{this.loopStatus=Ai,this.loopService.listSwaps(),this.flgEditable=!0},error:Ai=>{this.loopStatus={error:Ai},this.flgEditable=!0,this.logger.error(Ai)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.maxQuote.amount&&this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const Mt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===h.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Mt).pipe((0,g.R)(this.unSubs[2])).subscribe(Wt=>{this.quote=Wt,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,Mt).pipe((0,g.R)(this.unSubs[3])).subscribe(Wt=>{this.quote=Wt,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(Mt){switch(Mt.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===h.$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===h.$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===h.$I.LOOP_OUT&&1!==Mt.selectedIndex&&Mt.selectedIndex<Mt.previouslySelectedIndex||this.direction===h.$I.LOOP_IN&&Mt.selectedIndex<Mt.previouslySelectedIndex)&&Mt.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===h.$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(Mt){this.animationDirection=Mt<this.stepNumber?"backward":"forward",this.stepNumber=Mt}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.minQuote.amount,sweepConfTarget:6,routingFeePercent:2,fast:!1}),this.quoteFormGroup.reset(),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(Mt=>{Mt.next(null),Mt.complete()})}}return(et=It).\u0275fac=function(Mt){return new(Mt||et)(d.Y36(T.so),d.Y36(T.WI),d.Y36(M.yh),d.Y36(w.W),d.Y36(t.QS),d.Y36(L.JJ),d.Y36(k.mQ),d.Y36(V.F0),d.Y36(B.v))},et.\u0275cmp=d.Xpm({type:et,selectors:[["rtl-loop-modal"]],viewQuery:function(Mt,Wt){if(1&Mt&&d.Gf(ct,5),2&Mt){let si;d.iGM(si=d.CRH())&&(Wt.stepper=si.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","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","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","","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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","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,"animationDirection","stepNumber","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,"animationDirection","stepNumber","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(Mt,Wt){1&Mt&&(d.YNc(0,ot,75,55,"div",0),d.YNc(1,ft,1,1,"ng-template",null,1,d.W1O),d.YNc(3,Si,20,11,"div",2)),2&Mt&&(d.Q6J("ngIf",!Wt.flgShowInfo),d.xp6(3),d.Q6J("ngIf",Wt.flgShowInfo))},dependencies:[L.mk,L.sg,L.O5,t._Y,t.Fj,t.wV,t.JJ,t.JL,t.Q7,t.sg,t.u,W.xw,W.Wh,W.yH,Y.oO,T.ZT,Q.lW,X.dn,X.dk,ee.ib,ee.yz,ee.yK,me.Hw,re.Nt,ie.KE,ie.hX,ie.bx,ie.TO,ie.R9,se.pW,ce.VQ,ce.U0,Te.Rr,S.gM,i.C0,i.VY,i.Vq,a.h,F,pe,he,Qe,L.JJ,L.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem;overflow-x:hidden}"],data:{animation:[x._]}}),It})()},9442:(We,q,m)=>{"use strict";m.d(q,{w:()=>N});var t=m(2687),e=m(4650),g=m(9116),T=m(2216),s=m(1576),x=m(4859),h=m(3546);let N=(()=>{var d;class M{constructor(L){this.router=L,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return(d=M).\u0275fac=function(L){return new(L||d)(e.Y36(g.F0))},d.\u0275cmp=e.Xpm({type:d,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(L,k){1&L&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return k.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&L&&(e.xp6(1),e.Q6J("icon",k.faTimes))},dependencies:[T.BN,s.xw,s.Wh,s.yH,x.lW,h.a8,h.dn],encapsulation:2}),M})()},3390:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});var t=m(4650);let e=(()=>{var g;class T{constructor(x){this.el=x}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return(g=T).\u0275fac=function(x){return new(x||g)(t.Y36(t.SBq))},g.\u0275dir=t.lG2({type:g,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),T})()},5199:(We,q,m)=>{"use strict";m.d(q,{y:()=>e});var t=m(4650);let e=(()=>{var g;class T{constructor(){this.copied=new t.vpe}onClick(x){x.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},h=>{this.copied.emit("Error could not copy text: "+JSON.stringify(h))})}}return(g=T).\u0275fac=function(x){return new(x||g)},g.\u0275dir=t.lG2({type:g,selectors:[["","rtlClipboard",""]],hostBindings:function(x,h){1&x&&t.NdJ("click",function(d){return h.onClick(d)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),T})()},9843:(We,q,m)=>{"use strict";m.d(q,{F:()=>g});var t=m(4006),e=m(4650);let g=(()=>{var T;class s{validate(h){return this.max?t.kI.max(+this.max)(h):null}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275dir=e.lG2({type:T,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:T,multi:!0}])]}),s})()},6534:(We,q,m)=>{"use strict";m.d(q,{q:()=>g});var t=m(4006),e=m(4650);let g=(()=>{var T;class s{validate(h){return this.min?t.kI.min(+this.min)(h):null}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275dir=e.lG2({type:T,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:T,multi:!0}])]}),s})()},9445:(We,q,m)=>{"use strict";m.d(q,{D3:()=>x,al:()=>e,h9:()=>g,i1:()=>s,rn:()=>T});var t=m(4650);let e=(()=>{var h;class N{transform(M,w){return M?.replace(/^[0]+/g,"")}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:h,pure:!0}),N})(),g=(()=>{var h;class N{transform(M,w){return M?.replace(/(?:^\w|[A-Z]|\b\w)/g,(L,k)=>L.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275pipe=t.Yjl({name:"camelcase",type:h,pure:!0}),N})(),T=(()=>{var h;class N{transform(M,w){return M?.replace("State_","").replace("SwapInSender_","").replace("SwapOutSender_","").replace("SwapInReceiver_","").replace("SwapOutReceiver_","").replace("_"," ").replace(/(?:^\w|[A-Z]|\b\w)/g,(L,k)=>" "+L)}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275pipe=t.Yjl({name:"swapState",type:h,pure:!0}),N})(),s=(()=>{var h;class N{transform(M,w,L){return M.replace(/(?:^\w|[A-Z]|\b\w)/g,(k,V)=>" "+k.toUpperCase())}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:h,pure:!0}),N})(),x=(()=>{var h;class N{transform(M,w,L){return M=M?M.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",w&&(M=M.replace(new RegExp(w,"g")," ")),L&&(M=M.replace(new RegExp(L,"g")," ")),M.replace(/(?:^\w|[A-Z]|\b\w)/g,(k,V)=>k.toUpperCase())}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:h,pure:!0}),N})()},1643:(We,q,m)=>{"use strict";m.d(q,{QM:()=>x,a1:()=>s,eQ:()=>h,fY:()=>N});var t=m(4650),e=m(9116),g=m(5986),T=m(4004);function s(){return()=>{const d=(0,t.f3M)(e.F0),M=(0,t.f3M)(e.gz),w=(0,t.f3M)(g.m);return!(!w.getItem("token")||M.snapshot.url&&M.snapshot.url.length&&"settings"!==M.snapshot.url[0].path&&"auth"!==M.snapshot.url[0].path&&"true"===w.getItem("defaultPassword")&&(d.navigate(["/settings/auth"]),1))}}function x(){return()=>!!(0,t.f3M)(g.m).watchSession().pipe((0,T.U)(M=>M.lndUnlocked))}function h(){return()=>!!(0,t.f3M)(g.m).watchSession().pipe((0,T.U)(M=>M.clnUnlocked))}function N(){return()=>!!(0,t.f3M)(g.m).watchSession().pipe((0,T.U)(M=>M.eclUnlocked))}},62:(We,q,m)=>{"use strict";m.d(q,{v:()=>w});var t=m(1135),e=m(9646),g=m(2843),T=m(5698),s=m(4004),x=m(262),h=m(7731),N=m(4650),d=m(8104),M=m(5043);let w=(()=>{var L;class k{constructor(B,W){this.dataService=B,this.logger=W,this.currencyUnits=[],this.CurrencyUnitEnum=h.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.Bn.UN_INITIATED,this.screenSize=h.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(B){this.screenSize=B}getContainerSize(){return this.containerSize}setContainerSize(B,W){this.containerSize={width:B,height:W},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(B,W,Y,Q="asc"){return B.sort("number"===Y?"desc"===Q?(X,ee)=>+X[W]>+ee[W]?-1:1:(X,ee)=>+X[W]>+ee[W]?1:-1:"desc"===Q?(X,ee)=>X[W]>ee[W]?-1:1:(X,ee)=>X[W]>ee[W]?1:-1)}sortDescByKey(B,W){return B.sort((Y,Q)=>{const X=+Y[W],ee=+Q[W];return X>ee?-1:X<ee?1:0})}sortAscByKey(B,W){return B.sort((Y,Q)=>{const X=+Y[W],ee=+Q[W];return X<ee?-1:X>ee?1:0})}camelCase(B){return B?.replace(/(?:^\w|[A-Z]|\b\w)/g,(W,Y)=>W.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(B,W,Y){return W&&Y&&""!==W&&""!==Y&&(B=B?.replace(new RegExp(W,"g"),Y)),B.indexOf("!\n")>0||B.indexOf(".\n")>0?B.split("\n")?.reduce((Q,X)=>Q+X.charAt(0).toUpperCase()+X.substring(1).toLowerCase()+"\n",""):B.indexOf(" ")>0?B.split(" ")?.reduce((Q,X)=>Q+X.charAt(0).toUpperCase()+X.substring(1).toLowerCase()+" ",""):B.charAt(0).toUpperCase()+B.substring(1).toLowerCase()}convertCurrency(B,W,Y,Q,X){const ee=(new Date).valueOf();return X&&Q&&this.ratesAPIStatus!==h.Bn.INITIATED&&(W===h.NT.OTHER||Y===h.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ee<this.conversionData.last_fetched+3e5?(0,e.of)(this.convertWithFiat(B,W,Q)):(this.ratesAPIStatus=h.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,T.q)(1),(0,s.U)(me=>(this.ratesAPIStatus=h.Bn.COMPLETED,this.conversionData.data=me&&"object"==typeof me?me:me&&"string"==typeof me?JSON.parse(me):{},this.conversionData.last_fetched=ee,this.convertWithFiat(B,W,Q))),(0,x.K)(me=>(this.ratesAPIStatus=h.Bn.ERROR,(0,g._)(()=>this.extractErrorMessage(me,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(B,W))}convertWithoutFiat(B,W){const Y={};switch(Y[h.NT.SATS]=0,Y[h.NT.BTC]=0,W){case h.NT.SATS:Y[h.NT.SATS]=B,Y[h.NT.BTC]=1e-8*B;break;case h.NT.BTC:Y[h.NT.SATS]=1e8*B,Y[h.NT.BTC]=B}return Y}convertWithFiat(B,W,Y){const Q={unit:Y,symbol:this.conversionData.data[Y].symbol};switch(Q[h.NT.SATS]=0,Q[h.NT.BTC]=0,Q[h.NT.OTHER]=0,W){case h.NT.SATS:Q[h.NT.SATS]=B,Q[h.NT.BTC]=1e-8*B,Q[h.NT.OTHER]=1e-8*B*this.conversionData.data[Y].last;break;case h.NT.BTC:Q[h.NT.SATS]=1e8*B,Q[h.NT.BTC]=B,Q[h.NT.OTHER]=B*this.conversionData.data[Y].last;break;case h.NT.OTHER:Q[h.NT.SATS]=B/this.conversionData.data[Y].last*1e8,Q[h.NT.BTC]=B/this.conversionData.data[Y].last,Q[h.NT.OTHER]=B}return Q}convertTime(B,W,Y){switch(W){case h.Qk.SECS:switch(Y){case h.Qk.MINS:B/=60;break;case h.Qk.HOURS:B/=h.k_;break;case h.Qk.DAYS:B/=24*h.k_}break;case h.Qk.MINS:switch(Y){case h.Qk.SECS:B*=60;break;case h.Qk.HOURS:B/=60;break;case h.Qk.DAYS:B/=1440}break;case h.Qk.HOURS:switch(Y){case h.Qk.SECS:B*=h.k_;break;case h.Qk.MINS:B*=60;break;case h.Qk.DAYS:B/=24}break;case h.Qk.DAYS:switch(Y){case h.Qk.SECS:B=B*h.k_*24;break;case h.Qk.MINS:B=60*B*24;break;case h.Qk.HOURS:B*=24}}return B}downloadFile(B,W,Y=".json",Q=".csv"){let X=new Blob;X=".json"===Y?new Blob(["\ufeff"+this.convertToCSV(B)],{type:"text/csv;charset=utf-8;"}):new Blob([B.toString()],{type:"text/plain;charset=utf-8"});const ee=document.createElement("a"),me=URL.createObjectURL(X);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ee.setAttribute("target","_blank"),ee.setAttribute("href",me),ee.setAttribute("download",W+Q),ee.style.visibility="hidden",document.body.appendChild(ee),ee.click(),document.body.removeChild(ee)}convertToCSV(B){const W=[];let Y="",Q="",X="";return"object"!=typeof B&&(B=JSON.parse(B)),B.forEach((me,re)=>{for(const ie in me)W.findIndex(se=>se===ie)<0&&W.push(ie)}),X=W.join(",")+"\r\n",B.forEach(me=>{Y="",W.forEach(re=>{me.hasOwnProperty(re)?Array.isArray(me[re])?(Q="",me[re].forEach((ie,se)=>{Q+="object"==typeof ie?"("+JSON.stringify(ie)?.replace(/\,/g,";")+")":"("+ie+")"}),Y+=Q+","):Y+="object"==typeof me[re]?JSON.stringify(me[re])?.replace(/\,/g,";")+",":me[re]+",":Y+=","}),X+=Y.slice(0,-1)+"\r\n"}),X}isVersionCompatible(B,W){if(B){const Y=B.trim()?.replace("v","").split("-")[0].split(".")||[],Q=W.split(".");return+Y[0]>+Q[0]||+Y[0]==+Q[0]&&+Y[1]>+Q[1]||+Y[0]==+Q[0]&&+Y[1]==+Q[1]&&+Y[2]>=+Q[2]}return!1}extractErrorMessage(B,W="Unknown Error."){const Y=this.titleCase(B.error&&B.error.text&&"string"==typeof B.error.text&&B.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":B.error&&B.error.error&&B.error.error.error&&B.error.error.error.error&&B.error.error.error.error.error&&"string"==typeof B.error.error.error.error.error?B.error.error.error.error.error:B.error&&B.error.error&&B.error.error.error&&B.error.error.error.error&&"string"==typeof B.error.error.error.error?B.error.error.error.error:B.error&&B.error.error&&B.error.error.error&&"string"==typeof B.error.error.error?B.error.error.error:B.error&&B.error.error&&"string"==typeof B.error.error?B.error.error:B.error&&"string"==typeof B.error?B.error:B.error&&B.error.error&&B.error.error.error&&B.error.error.error.error&&B.error.error.error.error.message&&"string"==typeof B.error.error.error.error.message?B.error.error.error.error.message:B.error&&B.error.error&&B.error.error.error&&B.error.error.error.message&&"string"==typeof B.error.error.error.message?B.error.error.error.message:B.error&&B.error.error&&B.error.error.message&&"string"==typeof B.error.error.message?B.error.error.message:B.error&&B.error.message&&"string"==typeof B.error.message?B.error.message:B.message&&"string"==typeof B.message?B.message:W);return this.logger.info("Error Message: "+Y),Y}extractErrorCode(B,W=500){const Y=B.error&&B.error.error&&B.error.error.message&&B.error.error.message.code?B.error.error.message.code:B.error&&B.error.error&&B.error.error.code?B.error.error.code:B.error&&B.error.code?B.error.code:B.code?B.code:B.status?B.status:W;return this.logger.info("Error Code: "+Y),Y}extractErrorNumber(B,W=500){const Y=B.error&&B.error.error&&B.error.error.errno?B.error.error.errno:B.error&&B.error.errno?B.error.errno:B.errno?B.errno:B.status?B.status:W;return this.logger.info("Error Number: "+Y),Y}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return(L=k).\u0275fac=function(B){return new(B||L)(N.LFG(d.D),N.LFG(M.mQ))},L.\u0275prov=N.Yz7({token:L,factory:L.\u0275fac}),k})()},7731:(We,q,m)=>{"use strict";m.d(q,{$I:()=>v,$Y:()=>s,$v:()=>me,AB:()=>ze,At:()=>Ze,Bn:()=>qe,Df:()=>he,Dr:()=>Y,Er:()=>w,Fq:()=>n,Gi:()=>u,HW:()=>_,H_:()=>Ae,IV:()=>V,IX:()=>Se,JX:()=>Ee,LO:()=>L,NT:()=>a,OJ:()=>Te,OO:()=>Je,Pi:()=>ct,Qk:()=>S,Qw:()=>F,T5:()=>h,TJ:()=>B,Vc:()=>Q,Xk:()=>Pe,Xr:()=>fe,Xz:()=>M,Zs:()=>C,_t:()=>W,c3:()=>$e,cu:()=>l,fO:()=>Re,g8:()=>ie,gB:()=>Ue,gG:()=>ut,gK:()=>xt,gg:()=>G,hG:()=>Me,hZ:()=>ge,hc:()=>K,kO:()=>pe,k_:()=>T,lr:()=>Oe,m6:()=>Ce,nM:()=>re,n_:()=>ce,ol:()=>se,op:()=>ye,p7:()=>R,pg:()=>Fe,pt:()=>g,q4:()=>x,rc:()=>Qe,uA:()=>d,uR:()=>oe,vn:()=>X,vv:()=>N,wZ:()=>ee,x$:()=>O,zZ:()=>Gt,z_:()=>le});var t=m(4650),e=m(8739);function g(J){const mt=new e.ye;return mt.itemsPerPageLabel=J+" per page:",mt}const T=3600,s=24*T*7,x="0.14.1-beta",h=(0,t.X6Q)()?"http://localhost:3000/rtl/api":"./api",N={AUTHENTICATE_API:h+"/authenticate",CONF_API:h+"/conf",PAGE_SETTINGS_API:h+"/pagesettings",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",PEERSWAP_API:"/peerswap",Web_SOCKET_API:"/ws"},d=["Sats","BTC"],M={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},w=[{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"}],L=["SECS","MINS","HOURS","DAYS"],V=10,B=[5,10,25,100],W=[{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)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],Y=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],Q=[{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"}],X=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],ee={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 me=(()=>{return(J=me||(me={})).PAYMENT_RECEIVED="payment-received",J.PAYMENT_RELAYED="payment-relayed",J.PAYMENT_SENT="payment-sent",J.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",J.PAYMENT_FAILED="payment-failed",J.CHANNEL_OPENED="channel-opened",J.CHANNEL_STATE_CHANGED="channel-state-changed",J.CHANNEL_CLOSED="channel-closed",me;var J})(),re=(()=>{return(J=re||(re={})).INVOICE="invoice",J.BLOCK_HEIGHT="block-height",J.SEND_PAYMENT="send-payment",re;var J})(),ie=(()=>((ie||(ie={})).INVOICE="invoice",ie))(),se=(()=>{return(J=se||(se={})).OPERATOR="OPERATOR",J.MERCHANT="MERCHANT",J.ALL="ALL",se;var J})(),ce=(()=>{return(J=ce||(ce={})).INFORMATION="Information",J.WARNING="Warning",J.ERROR="Error",J.SUCCESS="Success",J.CONFIRM="Confirm",ce;var J})(),Te=(()=>{return(J=Te||(Te={})).JWT="JWT",J.PASSWORD="PASSWORD",Te;var J})(),S=(()=>{return(J=S||(S={})).SECS="SECS",J.MINS="MINS",J.HOURS="HOURS",J.DAYS="DAYS",S;var J})(),a=(()=>{return(J=a||(a={})).SATS="Sats",J.BTC="BTC",J.OTHER="OTHER",a;var J})(),u=(()=>{return(J=u||(u={})).ARRAY="ARRAY",J.NUMBER="NUMBER",J.STRING="STRING",J.BOOLEAN="BOOLEAN",J.PASSWORD="PASSWORD",J.DATE="DATE",J.DATE_TIME="DATE_TIME",u;var J})(),l=(()=>{return(J=l||(l={})).XS="XS",J.SM="SM",J.MD="MD",J.LG="LG",J.XL="XL",l;var J})();const _={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"}},O={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:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var R=(()=>{return(J=R||(R={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",J.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",J.WIRE_INVALID_ONION_KEY="Invalid Onion Key",J.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",J.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",J.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",J.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",J.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",J.WIRE_FEE_INSUFFICIENT="Insufficient Fee",J.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",J.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",J.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",J.WIRE_CHANNEL_DISABLED="Channel Disabled",J.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",J.WIRE_INVALID_REALM="Invalid Realm",J.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",J.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",J.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",J.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",J.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",J.WIRE_MPP_TIMEOUT="MPP Timeout",J.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",J.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",R;var J})(),C=(()=>{return(J=C||(C={})).CHANNELD_NORMAL="Active",J.OPENINGD="Opening",J.CHANNELD_AWAITING_LOCKIN="Pending Open",J.CHANNELD_SHUTTING_DOWN="Shutting Down",J.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",J.CLOSINGD_COMPLETE="Closed",J.AWAITING_UNILATERAL="Awaiting Unilateral Close",J.FUNDING_SPEND_SEEN="Funding Spend Seen",J.ONCHAIN="Onchain",J.DUALOPEND_OPEN_INIT="Dual Open Initialized",J.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",C;var J})(),n=(()=>{return(J=n||(n={})).INITIATED="Initiated",J.PREIMAGE_REVEALED="Preimage Revealed",J.HTLC_PUBLISHED="HTLC Published",J.SUCCESS="Successful",J.FAILED="Failed",J.INVOICE_SETTLED="Invoice Settled",n;var J})(),v=(()=>{return(J=v||(v={})).LOOP_OUT="LOOP_OUT",J.LOOP_IN="LOOP_IN",v;var J})(),K=(()=>{return(J=K||(K={})).SWAP_OUT="SWAP_OUT",J.SWAP_IN="SWAP_IN",K;var J})(),F=(()=>{return(J=F||(F={}))["swap.created"]="Swap Created",J["swap.expired"]="Swap Expired",J["invoice.set"]="Invoice Set",J["invoice.paid"]="Invoice Paid",J["invoice.pending"]="Invoice Pending",J["invoice.settled"]="Invoice Settled",J["invoice.failedToPay"]="Invoice Failed To Pay",J["channel.created"]="Channel Created",J["transaction.failed"]="Transaction Failed",J["transaction.mempool"]="Transaction Mempool",J["transaction.claimed"]="Transaction Claimed",J["transaction.refunded"]="Transaction Refunded",J["transaction.confirmed"]="Transaction Confirmed",J["swap.refunded"]="Swap Refunded",J["swap.abandoned"]="Swap Abandoned",F;var J})();const G=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],ye=["MONTHLY","YEARLY"];var Ee=(()=>{return(J=Ee||(Ee={})).LOOP="LOOP",J.BOLTZ="BOLTZ",J.OFFERS="OFFERS",J.PEERSWAP="PEERSWAP",Ee;var J})();const pe=["password","changeme","moneyprintergobrrr"];var qe=(()=>{return(J=qe||(qe={})).UN_INITIATED="UN_INITIATED",J.INITIATED="INITIATED",J.COMPLETED="COMPLETED",J.ERROR="ERROR",qe;var J})();const Ce={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",PEERSWAP_SWAPOUT:"Initializing Swapout...",PEERSWAP_SWAPIN:"Initializing Swapin...",RELOAD_POLICY_PEERSWAP:"Reload Peerswap Policy...",ADD_PEER_PEERSWAP:"Adding Peer To Peerswap Allowlist...",REMOVE_PEER_PEERSWAP:"Removing Peer From Peerswap Allowlist...",UPDATE_ALLOW_SWAP_REQUESTS:"Updating Swap Request Rule...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var Se=(()=>{return(J=Se||(Se={})).INVOICE="INVOICE",J.OFFER="OFFER",J.KEYSEND="KEYSEND",Se;var J})(),fe=(()=>{return(J=fe||(fe={})).FEES="FEES",J.EVENTS="EVENTS",fe;var J})(),Fe=(()=>{return(J=Fe||(Fe={})).VOID="VOID",J.SET_API_URL_ECL="SET_API_URL_ECL",J.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",J.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",J.RESET_ROOT_STORE="RESET_ROOT_STORE",J.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",J.OPEN_SNACK_BAR="OPEN_SNACKBAR",J.OPEN_SPINNER="OPEN_SPINNER",J.CLOSE_SPINNER="CLOSE_SPINNER",J.OPEN_ALERT="OPEN_ALERT",J.CLOSE_ALERT="CLOSE_ALERT",J.OPEN_CONFIRMATION="OPEN_CONFIRMATION",J.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",J.SHOW_PUBKEY="SHOW_PUBKEY",J.FETCH_CONFIG="FETCH_CONFIG",J.SHOW_CONFIG="SHOW_CONFIG",J.FETCH_STORE="FETCH_STORE",J.SET_STORE="SET_STORE",J.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",J.SET_RTL_CONFIG="SET_RTL_CONFIG",J.SAVE_SSO="SAVE_SSO",J.SAVE_SETTINGS="SAVE_SETTINGS",J.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",J.SET_SELECTED_NODE="SET_SELECTED_NODE",J.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",J.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",J.SET_NODE_DATA="SET_NODE_DATA",J.IS_AUTHORIZED="IS_AUTHORIZED",J.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",J.LOGIN="LOGIN",J.VERIFY_TWO_FA="VERIFY_TWO_FA",J.LOGOUT="LOGOUT",J.RESET_PASSWORD="RESET_PASSWORD",J.RESET_PASSWORD_RES="RESET_PASSWORD_RES",J.FETCH_FILE="FETCH_FILE",J.SHOW_FILE="SHOW_FILE",Fe;var J})(),oe=(()=>{return(J=oe||(oe={})).RESET_LND_STORE="RESET_LND_STORE",J.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",J.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",J.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",J.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",J.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",J.FETCH_INFO_LND="FETCH_INFO_LND",J.SET_INFO_LND="SET_INFO_LND",J.FETCH_PEERS_LND="FETCH_PEERS_LND",J.SET_PEERS_LND="SET_PEERS_LND",J.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",J.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",J.DETACH_PEER_LND="DETACH_PEER_LND",J.REMOVE_PEER_LND="REMOVE_PEER_LND",J.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",J.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",J.ADD_INVOICE_LND="ADD_INVOICE_LND",J.FETCH_FEES_LND="FETCH_FEES_LND",J.SET_FEES_LND="SET_FEES_LND",J.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",J.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",J.FETCH_NETWORK_LND="FETCH_NETWORK_LND",J.SET_NETWORK_LND="SET_NETWORK_LND",J.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",J.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",J.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",J.SET_CHANNELS_LND="SET_CHANNELS_LND",J.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",J.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",J.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",J.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",J.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",J.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",J.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",J.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",J.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",J.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",J.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",J.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",J.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",J.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",J.FETCH_INVOICES_LND="FETCH_INVOICES_LND",J.SET_INVOICES_LND="SET_INVOICES_LND",J.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",J.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",J.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",J.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",J.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",J.FETCH_UTXOS_LND="FETCH_UTXOS_LND",J.SET_UTXOS_LND="SET_UTXOS_LND",J.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",J.SET_PAYMENTS_LND="SET_PAYMENTS_LND",J.SEND_PAYMENT_LND="SEND_PAYMENT_LND",J.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",J.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",J.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",J.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",J.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",J.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",J.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",J.GEN_SEED_LND="GEN_SEED_LND",J.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",J.INIT_WALLET_LND="INIT_WALLET_LND",J.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",J.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",J.PEER_LOOKUP_LND="PEER_LOOKUP_LND",J.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",J.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",J.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",J.SET_LOOKUP_LND="SET_LOOKUP_LND",J.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",J.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",J.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",J.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",J.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",J.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",oe;var J})(),ze=(()=>{return(J=ze||(ze={})).RESET_CLN_STORE="RESET_CLN_STORE",J.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",J.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",J.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",J.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",J.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",J.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",J.SET_INFO_CLN="SET_INFO_CLN",J.FETCH_FEES_CLN="FETCH_FEES_CLN",J.SET_FEES_CLN="SET_FEES_CLN",J.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",J.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",J.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",J.SET_BALANCE_CLN="SET_BALANCE_CLN",J.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",J.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",J.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",J.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",J.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",J.SET_UTXOS_CLN="SET_UTXOS_CLN",J.FETCH_PEERS_CLN="FETCH_PEERS_CLN",J.SET_PEERS_CLN="SET_PEERS_CLN",J.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",J.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",J.ADD_PEER_CLN="ADD_PEER_CLN",J.DETACH_PEER_CLN="DETACH_PEER_CLN",J.REMOVE_PEER_CLN="REMOVE_PEER_CLN",J.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",J.SET_CHANNELS_CLN="SET_CHANNELS_CLN",J.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",J.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",J.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",J.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",J.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",J.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",J.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",J.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",J.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",J.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",J.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",J.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",J.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",J.SET_LOOKUP_CLN="SET_LOOKUP_CLN",J.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",J.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",J.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",J.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",J.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",J.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",J.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",J.SET_INVOICES_CLN="SET_INVOICES_CLN",J.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",J.ADD_INVOICE_CLN="ADD_INVOICE_CLN",J.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",J.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",J.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",J.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",J.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",J.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",J.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",J.SET_OFFERS_CLN="SET_OFFERS_CLN",J.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",J.ADD_OFFER_CLN="ADD_OFFER_CLN",J.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",J.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",J.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",J.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",J.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",J.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",J.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",J.FETCH_PS_POLICY_CLN="FETCH_PS_POLICY_CLN",J.SET_PS_POLICY_CLN="SET_PS_POLICY_CLN",J.FETCH_SWAPS_CLN="FETCH_SWAPS_CLN",J.SET_SWAPS_CLN="SET_SWAPS_CLN",J.FETCH_SWAP_PEERS_CLN="FETCH_SWAP_PEERS_CLN",J.SET_SWAP_PEERS_CLN="SET_SWAP_PEERS_CLN",J.FETCH_SWAP_REQUESTS_CLN="FETCH_SWAP_REQUESTS_CLN",J.SET_SWAP_REQUESTS_CLN="SET_SWAP_REQUESTS_CLN",J.GET_SWAP_CLN="GET_SWAP_CLN",J.UPDATE_SWAP_STATE_CLN="UPDATE_SWAP_STATE_CLN",J.SWAPOUT_CLN="SWAPOUT_CLN",J.ADD_SWAPOUT_CLN="ADD_SWAPOUT_CLN",J.SWAPIN_CLN="SWAPIN_CLN",J.ADD_SWAPIN_CLN="ADD_SWAPIN_CLN",ze;var J})(),Oe=(()=>{return(J=Oe||(Oe={})).RESET_ECL_STORE="RESET_ECL_STORE",J.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",J.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",J.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",J.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",J.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",J.FETCH_INFO_ECL="FETCH_INFO_ECL",J.SET_INFO_ECL="SET_INFO_ECL",J.FETCH_FEES_ECL="FETCH_FEES_ECL",J.SET_FEES_ECL="SET_FEES_ECL",J.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",J.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",J.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",J.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",J.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",J.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",J.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",J.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",J.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",J.FETCH_PEERS_ECL="FETCH_PEERS_ECL",J.SET_PEERS_ECL="SET_PEERS_ECL",J.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",J.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",J.ADD_PEER_ECL="ADD_PEER_ECL",J.DETACH_PEER_ECL="DETACH_PEER_ECL",J.REMOVE_PEER_ECL="REMOVE_PEER_ECL",J.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",J.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",J.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",J.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",J.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",J.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",J.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",J.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",J.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",J.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",J.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",J.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",J.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",J.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",J.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",J.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",J.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",J.SET_INVOICES_ECL="SET_INVOICES_ECL",J.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",J.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",J.ADD_INVOICE_ECL="ADD_INVOICE_ECL",J.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",J.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",J.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",J.SET_LOOKUP_ECL="SET_LOOKUP_ECL",J.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",J.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Oe;var J})();const he=[{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"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var Ae=(()=>{return(J=Ae||(Ae={})).gossip_queries_ex="Gossip queries including additional information",J.option_anchor_outputs="Anchor outputs",J.option_data_loss_protect="Extra channel re-establish fields",J.var_onion_optin="Variable-length routing onion payloads",J.option_static_remotekey="Static key for remote output",J.option_support_large_channel="Create large channels",J.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",J.payment_secret="Payment secret field",J.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",J.basic_mpp="Basic multi-part payments",J.gossip_queries="More sophisticated gossip control",J.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",J.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",J.amp="AMP",Ae;var J})(),ge=(()=>{return(J=ge||(ge={}))["data-loss-protect"]="Extra channel re-establish fields",J["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",J["gossip-queries"]="More sophisticated gossip control",J["tlv-onion"]="Variable-length routing onion payloads",J["ext-gossip-queries"]="Gossip queries can include additional information",J["static-remote-key"]="Static key for remote output",J["payment-addr"]="Payment secret field",J["multi-path-payments"]="Basic multi-part payments",J["wumbo-channels"]="Wumbo Channels",J.anchors="Anchor outputs",J["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",J.amp="AMP",ge;var J})();const Ue=[{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 Je=(()=>{return(J=Je||(Je={})).OFFERED="offered",J.SETTLED="settled",J.FAILED="failed",J.LOCAL_FAILED="local_failed",Je;var J})(),Re=(()=>{return(J=Re||(Re={})).SWAP_OUT="swap-out",J.SWAP_IN="swap-in",Re;var J})(),le=(()=>{return(J=le||(le={})).SENDER="sender",J.RECEIVER="receiver",le;var J})(),Qe=(()=>{return(J=Qe||(Qe={})).ALLOWED="allowed",J.SUSPICIOUS="suspicious",Qe;var J})(),ct=(()=>{return(J=ct||(ct={})).ASCENDING="asc",J.DESCENDING="desc",ct;var J})();const Gt=["asc","desc"],ut=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:V,sortBy:"blockheight",sortOrder:ct.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:V,sortBy:"blockheight",sortOrder:ct.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:V,sortBy:"msatoshi_to_us",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:V,sortBy:"state",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:V,sortBy:"alias",sortOrder:ct.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:V,sortBy:"expiry",sortOrder:ct.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:V,sortBy:"channel_opening_fee",sortOrder:ct.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:V,sortBy:"created_at",sortOrder:ct.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:V,sortBy:"expires_at",sortOrder:ct.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:V,sortBy:"offer_id",sortOrder:ct.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:V,sortBy:"lastUpdatedAt",sortOrder:ct.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:V,sortBy:"received_time",sortOrder:ct.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:V,sortBy:"total_fee",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:V,sortBy:"received_time",sortOrder:ct.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:V,sortBy:"received_time",sortOrder:ct.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:V,sortBy:"received_time",sortOrder:ct.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:V,sortBy:"date",sortOrder:ct.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:V,sortBy:"msatoshi",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]},{pageId:"peerswap",tables:[{tableId:"peers",recordsPerPage:V,sortBy:"swaps_allowed",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","short_channel_id"],columnSelection:["short_channel_id","alias","swaps_allowed","local_balance","remote_balance"]},{tableId:"swap_out",recordsPerPage:V,sortBy:"created_at",sortOrder:ct.DESCENDING,columnSelectionSM:["state","created_at","amount"],columnSelection:["state","created_at","swap_id","alias","short_channel_id","amount"]},{tableId:"swap_in",recordsPerPage:V,sortBy:"created_at",sortOrder:ct.DESCENDING,columnSelectionSM:["state","created_at","amount"],columnSelection:["state","created_at","swap_id","alias","short_channel_id","amount"]},{tableId:"swap_canceled",recordsPerPage:V,sortBy:"created_at",sortOrder:ct.DESCENDING,columnSelectionSM:["created_at","amount","cancel_message"],columnSelection:["created_at","swap_id","alias","short_channel_id","amount","cancel_message"]}]}],Ze={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"issuer"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}},peerswap:{peers:{maxColumns:5,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"swaps_allowed"},{column:"local_balance"},{column:"remote_balance"}]},swap_out:{maxColumns:6,allowedColumns:[{column:"state"},{column:"created_at"},{column:"swap_id"},{column:"alias"},{column:"short_channel_id"},{column:"amount"}]},swap_in:{maxColumns:6,allowedColumns:[{column:"state"},{column:"created_at"},{column:"swap_id"},{column:"alias"},{column:"short_channel_id"},{column:"amount"}]},swap_canceled:{maxColumns:6,allowedColumns:[{column:"created_at"},{column:"swap_id"},{column:"alias"},{column:"short_channel_id"},{column:"amount"},{column:"cancel_message"}]}}},xt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:V,sortBy:"tx_id",sortOrder:ct.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:V,sortBy:"time_stamp",sortOrder:ct.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:V,sortBy:"tx_id",sortOrder:ct.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:V,sortBy:"balancedness",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:V,sortBy:"close_type",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:V,sortBy:"incoming",sortOrder:ct.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:V,sortBy:"alias",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:V,sortBy:"creation_date",sortOrder:ct.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:V,sortBy:"creation_date",sortOrder:ct.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:V,sortBy:"timestamp",sortOrder:ct.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:V,sortBy:"total_amount",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:V,sortBy:"remote_alias",sortOrder:ct.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:V,sortBy:"timestamp",sortOrder:ct.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:V,sortBy:"date",sortOrder:ct.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:V,sortBy:"hop_sequence",sortOrder:ct.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:V,sortBy:"initiation_time",sortOrder:ct.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:V,sortBy:"status",sortOrder:ct.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:V,sortBy:"status",sortOrder:ct.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],Me={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},$e=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:V,sortBy:"timestamp",sortOrder:ct.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:V,sortBy:"alias",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:V,sortBy:"alias",sortOrder:ct.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:V,sortBy:"alias",sortOrder:ct.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:V,sortBy:"alias",sortOrder:ct.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:V,sortBy:"firstPartTimestamp",sortOrder:ct.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:V,sortBy:"receivedAt",sortOrder:ct.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:V,sortBy:"timestamp",sortOrder:ct.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:V,sortBy:"totalFee",sortOrder:ct.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:V,sortBy:"timestamp",sortOrder:ct.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:V,sortBy:"date",sortOrder:ct.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Pe={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(We,q,m)=>{"use strict";m.d(q,{D:()=>ie});var t=m(529),e=m(1135),g=m(7579),T=m(2843),s=m(9646),x=m(590),h=m(5577),N=m(2722),d=m(4004),M=m(262),w=m(1365),L=m(7731),k=m(1786),V=m(7861),B=m(6523),W=m(6529),Y=m(9828),Q=m(4650),X=m(9653),ee=m(5043),me=m(7009),re=m(6895);let ie=(()=>{var se;class ce{constructor(S,i,a,u,l){this.httpClient=S,this.store=i,this.logger=a,this.snackBar=u,this.titleCasePipe=l,this.APIUrl=L.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x,new g.x],this.mapAliases=(_,O)=>(_&&_.length>0?_.forEach((R,C)=>{if(O&&O.length>0)for(let n=0;n<O.length;n++){if(O[n].short_channel_id&&O[n].short_channel_id===R.in_channel&&(R.in_channel_alias=O[n].alias?O[n].alias:R.in_channel,R.out_channel_alias)||O[n].short_channel_id&&O[n].short_channel_id?.toString()===R.out_channel&&(R.out_channel_alias=O[n].alias?O[n].alias:R.out_channel,R.in_channel_alias))return;n===O.length-1&&(R.in_channel_alias||(R.in_channel_alias=R.in_channel?R.in_channel:"-"),R.out_channel_alias||(R.out_channel_alias=R.out_channel?R.out_channel:"-"))}else R.in_channel_alias=R.in_channel?R.in_channel:"-",R.out_channel_alias=R.out_channel?R.out_channel:"-"}):_=[],_)}setLnImplementation(S){this.lnImplementation=S.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(L.vv.CONF_API+"/rates")}decodePayment(S,i){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(a=>{let u=this.APIUrl+"/"+a+L.vv.PAYMENTS_API+"/decode/"+S;return"cln"===a&&(u=this.APIUrl+"/"+a+L.vv.UTILITY_API+"/decode/"+S),this.store.dispatch((0,V.ac)({payload:L.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,N.R)(this.unSubs[0]),(0,d.U)(l=>(this.store.dispatch((0,V.uO)({payload:L.m6.DECODE_PAYMENT})),l)),(0,M.K)(l=>(i?this.handleErrorWithoutAlert("Decode Payment",L.m6.DECODE_PAYMENT,l):this.handleErrorWithAlert("decodePaymentData",L.m6.DECODE_PAYMENT,"Decode Payment Failed",u,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}decodePayments(S){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(i=>{let a="",u="";return"ecl"===i?(a=this.APIUrl+"/"+i+L.vv.PAYMENTS_API+"/getsentinfos",u=L.m6.GET_SENT_PAYMENTS):"cln"===i?(a=this.APIUrl+"/"+i+L.vv.UTILITY_API,u=L.m6.DECODE_PAYMENTS):(a=this.APIUrl+"/"+i+L.vv.PAYMENTS_API,u=L.m6.DECODE_PAYMENTS),this.store.dispatch((0,V.ac)({payload:u})),this.httpClient.post(a,{payments:S}).pipe((0,N.R)(this.unSubs[1]),(0,d.U)(l=>(this.store.dispatch((0,V.uO)({payload:u})),l)),(0,M.K)(l=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",a,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}getAliasesFromPubkeys(S,i){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(a=>{if(i){const u=(new t.LE).set("pubkeys",S);return this.httpClient.get(this.APIUrl+"/"+a+L.vv.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+a+L.vv.NETWORK_API+"/node/"+S)}))}signMessage(S){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(i=>{let a=this.APIUrl+"/"+i+L.vv.MESSAGE_API+"/sign";return"cln"===i&&(a=this.APIUrl+"/"+i+L.vv.UTILITY_API+"/sign"),this.store.dispatch((0,V.ac)({payload:L.m6.SIGN_MESSAGE})),this.httpClient.post(a,{message:S}).pipe((0,N.R)(this.unSubs[2]),(0,d.U)(u=>(this.store.dispatch((0,V.uO)({payload:L.m6.SIGN_MESSAGE})),u)),(0,M.K)(u=>(this.handleErrorWithAlert("signMessageData",L.m6.SIGN_MESSAGE,"Sign Message Failed",a,u),(0,T._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(S,i){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(a=>{let u=this.APIUrl+"/"+a+L.vv.MESSAGE_API+"/verify";return"cln"===a&&(u=this.APIUrl+"/"+a+L.vv.UTILITY_API+"/verify"),this.store.dispatch((0,V.ac)({payload:L.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:S,signature:i}).pipe((0,N.R)(this.unSubs[3]),(0,d.U)(l=>(this.store.dispatch((0,V.uO)({payload:L.m6.VERIFY_MESSAGE})),l)),(0,M.K)(l=>(this.handleErrorWithAlert("verifyMessageData",L.m6.VERIFY_MESSAGE,"Verify Message Failed",u,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}bumpFee(S,i,a,u){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(l=>{const _={txid:S,outputIndex:i};return a&&(_.targetConf=a),u&&(_.satPerByte=u),this.store.dispatch((0,V.ac)({payload:L.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+l+L.vv.WALLET_API+"/bumpfee",_).pipe((0,N.R)(this.unSubs[4]),(0,d.U)(O=>(this.store.dispatch((0,V.uO)({payload:L.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),O)),(0,M.K)(O=>(this.handleErrorWithoutAlert("Bump Fee",L.m6.BUMP_FEE,O),(0,T._)(()=>new Error(this.extractErrorMessage(O))))))}))}labelUTXO(S,i,a=!0){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(u=>{const l={txid:S,label:i,overwrite:a};return this.store.dispatch((0,V.ac)({payload:L.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+L.vv.WALLET_API+"/label",l).pipe((0,N.R)(this.unSubs[5]),(0,d.U)(_=>(this.store.dispatch((0,V.uO)({payload:L.m6.LABEL_UTXO})),_)),(0,M.K)(_=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LABEL_UTXO,_),(0,T._)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(S,i){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(a=>{const u={txid:S,outputIndex:i};return this.store.dispatch((0,V.ac)({payload:L.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+L.vv.WALLET_API+"/lease",u).pipe((0,N.R)(this.unSubs[6]),(0,d.U)(l=>{this.store.dispatch((0,V.uO)({payload:L.m6.LEASE_UTXO})),this.store.dispatch((0,B.mC)()),this.store.dispatch((0,B.Ly)());const _=new Date(1e3*l.expiration);return Math.round(_.getTime())-60*_.getTimezoneOffset()}),(0,M.K)(l=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LEASE_UTXO,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}getForwardingHistory(S,i,a,u){if("LND"===S){const l={end_time:a,start_time:i};return this.store.dispatch((0,V.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+L.vv.SWITCH_API,l).pipe((0,N.R)(this.unSubs[7]),(0,w.M)(this.store.select(W._f)),(0,h.z)(([_,O])=>{if(_.forwarding_events){const R=[...O.channels,...O.closedChannels];_.forwarding_events.forEach(C=>{if(R&&R.length>0)for(let n=0;n<R.length;n++){if(R[n].chan_id?.toString()===C.chan_id_in&&(C.alias_in=R[n].remote_alias?R[n].remote_alias:C.chan_id_in,C.alias_out)||R[n].chan_id?.toString()===C.chan_id_out&&(C.alias_out=R[n].remote_alias?R[n].remote_alias:C.chan_id_out,C.alias_in))return;n===R.length-1&&(C.alias_in||(C.alias_in=C.chan_id_in),C.alias_out||(C.alias_out=C.chan_id_out))}else C.alias_in=C.chan_id_in,C.alias_out=C.chan_id_out})}else _={};return this.store.dispatch((0,V.uO)({payload:L.m6.GET_FORWARDING_HISTORY})),(0,s.of)(_)}),(0,M.K)(_=>(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+L.vv.SWITCH_API,_),(0,T._)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===S?(this.store.dispatch((0,V.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+L.vv.CHANNELS_API+"/listForwards?status="+u).pipe((0,N.R)(this.unSubs[8]),(0,w.M)(this.store.select(Y.ZW)),(0,h.z)(([l,_])=>{const O=this.mapAliases(l,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,V.uO)({payload:L.m6.GET_FORWARDING_HISTORY})),(0,s.of)(O)}),(0,M.K)(l=>(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+L.vv.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+a,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))):(0,s.of)({})}listNetworkNodes(S=""){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(i=>(this.store.dispatch((0,V.ac)({payload:L.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+L.vv.NETWORK_API+"/listNodes"+S).pipe((0,N.R)(this.unSubs[9]),(0,h.z)(a=>(this.store.dispatch((0,V.uO)({payload:L.m6.LIST_NETWORK_NODES})),(0,s.of)(a))),(0,M.K)(a=>(this.handleErrorWithoutAlert("List Network Nodes",L.m6.LIST_NETWORK_NODES,a),(0,T._)(()=>this.extractErrorMessage(a))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(S=>(this.store.dispatch((0,V.ac)({payload:L.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+S+L.vv.UTILITY_API+"/listConfigs").pipe((0,N.R)(this.unSubs[10]),(0,h.z)(i=>(this.store.dispatch((0,V.uO)({payload:L.m6.GET_LIST_CONFIGS})),(0,s.of)(i))),(0,M.K)(i=>(this.handleErrorWithoutAlert("List Configurations",L.m6.GET_LIST_CONFIGS,i),(0,T._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(S,i,a,u,l,_){return this.lnImplementationUpdated.pipe((0,x.P)(),(0,h.z)(O=>{const R=S?{policy:S,policy_mod:i,lease_fee_base_msat:a,lease_fee_basis:u,channel_fee_max_base_msat:l,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,V.ac)({payload:L.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+O+L.vv.CHANNELS_API+"/funderUpdate",R).pipe((0,N.R)(this.unSubs[11]),(0,d.U)(C=>(this.store.dispatch((0,V.uO)({payload:L.m6.GET_FUNDER_POLICY})),R&&this.store.dispatch((0,V.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+C.compact_lease+"!"})),C)),(0,M.K)(C=>(this.handleErrorWithoutAlert("Funder Policy",L.m6.GET_FUNDER_POLICY,C),(0,T._)(()=>new Error(this.extractErrorMessage(C))))))}))}addPeerToPeerswap(S,i){return this.lnImplementationUpdated.pipe((0,x.P)(a=>null!==a),(0,h.z)(a=>(this.store.dispatch((0,V.ac)({payload:L.m6.ADD_PEER_PEERSWAP})),this.httpClient.get(this.APIUrl+"/"+a+L.vv.PEERSWAP_API+"/addPeer/"+i+"/"+S).pipe((0,N.R)(this.unSubs[13]),(0,h.z)(u=>(this.store.dispatch((0,V.uO)({payload:L.m6.ADD_PEER_PEERSWAP})),(0,s.of)(u))),(0,M.K)(u=>(this.handleErrorWithoutAlert("Add Peer To Peerswap",L.m6.ADD_PEER_PEERSWAP,u),(0,T._)(()=>this.extractErrorMessage(u))))))))}removePeerFromPeerswap(S,i){return this.lnImplementationUpdated.pipe((0,x.P)(a=>null!==a),(0,h.z)(a=>(this.store.dispatch((0,V.ac)({payload:L.m6.REMOVE_PEER_PEERSWAP})),this.httpClient.get(this.APIUrl+"/"+a+L.vv.PEERSWAP_API+"/removePeer/"+i+"/"+S).pipe((0,N.R)(this.unSubs[14]),(0,h.z)(u=>(this.store.dispatch((0,V.uO)({payload:L.m6.REMOVE_PEER_PEERSWAP})),(0,s.of)(u))),(0,M.K)(u=>(this.handleErrorWithoutAlert("Remove Peer From Peerswap",L.m6.REMOVE_PEER_PEERSWAP,u),(0,T._)(()=>this.extractErrorMessage(u))))))))}allowPeerswapRequests(S){return this.lnImplementationUpdated.pipe((0,x.P)(i=>null!==i),(0,h.z)(i=>(this.store.dispatch((0,V.ac)({payload:L.m6.UPDATE_ALLOW_SWAP_REQUESTS})),this.httpClient.get(this.APIUrl+"/"+i+L.vv.PEERSWAP_API+"/allowswaprequests/"+S).pipe((0,N.R)(this.unSubs[15]),(0,h.z)(a=>(this.store.dispatch((0,V.uO)({payload:L.m6.UPDATE_ALLOW_SWAP_REQUESTS})),(0,s.of)(a))),(0,M.K)(a=>(this.handleErrorWithoutAlert("Update Peerswap Request Rule",L.m6.UPDATE_ALLOW_SWAP_REQUESTS,a),(0,T._)(()=>this.extractErrorMessage(a))))))))}circularRebalance(S,i="",a="",u="",l="",_=[],O="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+L.vv.CHANNELS_API+"/circularRebalance",{amountMsat:S,sourceShortChannelId:i,sourceNodeId:a,targetShortChannelId:u,targetNodeId:l,ignoreNodeIds:_,format:O}).pipe((0,N.R)(this.unSubs[12]),(0,d.U)(n=>n),(0,M.K)(n=>(this.handleErrorWithoutAlert("Rebalance Channel",L.m6.REBALANCE_CHANNEL,n),(0,T._)(()=>n.error))))}extractErrorMessage(S,i="Unknown Error."){return this.titleCasePipe.transform(S.error.text&&"string"==typeof S.error.text&&S.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":S.error&&S.error.error&&S.error.error.error&&S.error.error.error.error&&S.error.error.error.error.error&&"string"==typeof S.error.error.error.error.error?S.error.error.error.error.error:S.error&&S.error.error&&S.error.error.error&&S.error.error.error.error&&"string"==typeof S.error.error.error.error?S.error.error.error.error:S.error&&S.error.error&&S.error.error.error&&"string"==typeof S.error.error.error?S.error.error.error:S.error&&S.error.error&&"string"==typeof S.error.error?S.error.error:S.error&&"string"==typeof S.error?S.error:S.error&&S.error.error&&S.error.error.error&&S.error.error.error.error&&S.error.error.error.error.message&&"string"==typeof S.error.error.error.error.message?S.error.error.error.error.message:S.error&&S.error.error&&S.error.error.error&&S.error.error.error.message&&"string"==typeof S.error.error.error.message?S.error.error.error.message:S.error&&S.error.error&&S.error.error.message&&"string"==typeof S.error.error.message?S.error.error.message:S.error&&S.error.message&&"string"==typeof S.error.message?S.error.message:S.message&&"string"==typeof S.message?S.message:i)}handleErrorWithoutAlert(S,i,a){a.error.text&&"string"==typeof a.error.text&&a.error.text.includes('<!DOCTYPE html><html lang="en">')&&(a={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+S+"\n"+JSON.stringify(a)),401===a.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,V.ts)()),this.store.dispatch((0,V.kS)()),this.store.dispatch((0,V.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,V.uO)({payload:i})),this.store.dispatch((0,V.qi)({payload:{action:S,status:L.Bn.ERROR,statusCode:a.status.toString(),message:this.extractErrorMessage(a)}})))}handleErrorWithAlert(S,i,a,u,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,V.ts)()),this.store.dispatch((0,V.kS)()),this.store.dispatch((0,V.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,V.uO)({payload:i}));const _=this.extractErrorMessage(l);this.store.dispatch((0,V.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status?l.status:"Unknown Error",message:_,URL:u},component:k.H}}})),this.store.dispatch((0,V.qi)({payload:{action:S,status:L.Bn.ERROR,statusCode:l.status.toString(),message:_,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(S=>{S.next(null),S.complete()})}}return(se=ce).\u0275fac=function(S){return new(S||se)(Q.LFG(t.eN),Q.LFG(X.yh),Q.LFG(ee.mQ),Q.LFG(me.ux),Q.LFG(re.rS))},se.\u0275prov=Q.Yz7({token:se,factory:se.\u0275fac}),ce})()},5043:(We,q,m)=>{"use strict";m.d(q,{LG:()=>x,mQ:()=>s});var t=m(4650);const e=(0,t.X6Q)(),g=()=>null;let s=(()=>{var h;class N{invokeConsoleMethod(M,w){}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),N})(),x=(()=>{var h;class N{get info(){return e?console.log.bind(console):g}get warn(){return e?console.warn.bind(console):g}get error(){return e?console.error.bind(console):g}invokeConsoleMethod(M,w){(console[M]||console.log||g).apply(console,[w])}}return(h=N).\u0275fac=function(M){return new(M||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),N})()},9107:(We,q,m)=>{"use strict";m.d(q,{W:()=>W});var t=m(529),e=m(1135),g=m(7579),T=m(9646),s=m(2843),x=m(2722),h=m(262),N=m(4004),d=m(7731),M=m(1786),w=m(7861),L=m(4650),k=m(5043),V=m(9653),B=m(62);let W=(()=>{var Y;class Q{constructor(ee,me,re,ie){this.httpClient=ee,this.logger=me,this.store=re,this.commonService=ie,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new g.x,new g.x,new g.x,new g.x,new g.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,w.ac)({payload:d.m6.GET_LOOP_SWAPS})),this.loopUrl=d.T5+d.vv.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,x.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,w.uO)({payload:d.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(d.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,me,re,ie,se,ce,Te,S,i,a){const u={amount:ee,targetConf:re,swapRoutingFee:ie,minerFee:se,prepayRoutingFee:ce,prepayAmt:Te,swapFee:S,swapPublicationDeadline:i,destAddress:a};return""!==me&&(u.chanId=me),this.loopUrl=d.T5+d.vv.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,h.K)(l=>this.handleErrorWithoutAlert("Loop Out for Channel: "+me,d.m6.NO_SPINNER,l)))}getLoopOutTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",d.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,me,re){let ie=new t.LE;return ie=ie.append("targetConf",me.toString()),ie=ie.append("swapPublicationDeadline",re.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,w.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,x.R)(this.unSubs[1]),(0,N.U)(se=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_QUOTE})),se)),(0,h.K)(se=>this.handleErrorWithoutAlert("Loop Out Quote",d.m6.GET_QUOTE,se)))}getLoopOutTermsAndQuotes(ee){let me=new t.LE;return me=me.append("targetConf",ee.toString()),me=me.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,w.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:me}).pipe((0,x.R)(this.unSubs[2]),(0,N.U)(re=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_TERMS_QUOTES})),re)),(0,h.K)(re=>(0,T.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,re))))}loopIn(ee,me,re,ie,se){const ce={amount:ee,swapFee:me,minerFee:re,lastHop:ie,externalHtlc:se};return this.loopUrl=d.T5+d.vv.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ce).pipe((0,h.K)(Te=>this.handleErrorWithoutAlert("Loop In",d.m6.NO_SPINNER,Te)))}getLoopInTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",d.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,me,re){let ie=new t.LE;return ie=ie.append("targetConf",me.toString()),ie=ie.append("swapPublicationDeadline",re.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,w.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,x.R)(this.unSubs[3]),(0,N.U)(se=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_QUOTE})),se)),(0,h.K)(se=>this.handleErrorWithoutAlert("Loop In Qoute",d.m6.GET_QUOTE,se)))}getLoopInTermsAndQuotes(ee){let me=new t.LE;return me=me.append("targetConf",ee.toString()),me=me.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,w.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:me}).pipe((0,x.R)(this.unSubs[4]),(0,N.U)(re=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_TERMS_QUOTES})),re)),(0,h.K)(re=>(0,T.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,re))))}getSwap(ee){return this.loopUrl=d.T5+d.vv.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,h.K)(me=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,d.m6.NO_SPINNER,me)))}handleErrorWithoutAlert(ee,me,re){let ie="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(re)),this.store.dispatch((0,w.uO)({payload:me})),401===re.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.kS)())):503===re.status?(ie="Unable to Connect to Loop Server.",this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:re.status,message:"Unable to Connect to Loop Server",URL:ee},component:M.H}}}))):ie=this.commonService.extractErrorMessage(re),(0,s._)(()=>new Error(ie))}handleErrorWithAlert(ee,me,re){let ie="";if(this.logger.error(re),this.store.dispatch((0,w.uO)({payload:ee})),401===re.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.kS)());else if(503===re.status)ie="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:re.status,message:"Unable to Connect to Loop Server",URL:me},component:M.H}}}))},100);else{ie=this.commonService.extractErrorMessage(re);const se=re.error&&re.error.error&&re.error.error.code?re.error.error.code:re.error&&re.error.code?re.error.code:re.code?re.code:re.status;setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:d.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:me},component:M.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return(Y=Q).\u0275fac=function(ee){return new(ee||Y)(L.LFG(t.eN),L.LFG(k.mQ),L.LFG(V.yh),L.LFG(B.v))},Y.\u0275prov=L.Yz7({token:Y,factory:Y.\u0275fac}),Q})()},5986:(We,q,m)=>{"use strict";m.d(q,{m:()=>g});var t=m(7579),e=m(4650);let g=(()=>{var T;class s{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(h){return sessionStorage.getItem(h)}getAllItems(){return sessionStorage}setItem(h,N){sessionStorage.setItem(h,N),this.sessionSub.next(sessionStorage)}removeItem(h){sessionStorage.removeItem(h),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),s})()},7998:(We,q,m)=>{"use strict";m.d(q,{d:()=>V});var t=m(1135),e=m(7579),g=m(2722),T=m(930),s=m(9751),x=m(727),h=m(4707);const N={url:"",deserializer:B=>JSON.parse(B.data),serializer:B=>JSON.stringify(B)};class M extends e.u{constructor(W,Y){if(super(),this._socket=null,W instanceof s.y)this.destination=Y,this.source=W;else{const Q=this._config=Object.assign({},N);if(this._output=new e.x,"string"==typeof W)Q.url=W;else for(const X in W)W.hasOwnProperty(X)&&(Q[X]=W[X]);if(!Q.WebSocketCtor&&WebSocket)Q.WebSocketCtor=WebSocket;else if(!Q.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new h.t}}lift(W){const Y=new M(this._config,this.destination);return Y.operator=W,Y.source=this,Y}_resetState(){this._socket=null,this.source||(this.destination=new h.t),this._output=new e.x}multiplex(W,Y,Q){const X=this;return new s.y(ee=>{try{X.next(W())}catch(re){ee.error(re)}const me=X.subscribe({next:re=>{try{Q(re)&&ee.next(re)}catch(ie){ee.error(ie)}},error:re=>ee.error(re),complete:()=>ee.complete()});return()=>{try{X.next(Y())}catch(re){ee.error(re)}me.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:W,protocol:Y,url:Q,binaryType:X}=this._config,ee=this._output;let me=null;try{me=Y?new W(Q,Y):new W(Q),this._socket=me,X&&(this._socket.binaryType=X)}catch(ie){return void ee.error(ie)}const re=new x.w0(()=>{this._socket=null,me&&1===me.readyState&&me.close()});me.onopen=ie=>{const{_socket:se}=this;if(!se)return me.close(),void this._resetState();const{openObserver:ce}=this._config;ce&&ce.next(ie);const Te=this.destination;this.destination=T.Lv.create(S=>{if(1===me.readyState)try{const{serializer:i}=this._config;me.send(i(S))}catch(i){this.destination.error(i)}},S=>{const{closingObserver:i}=this._config;i&&i.next(void 0),S&&S.code?me.close(S.code,S.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:S}=this._config;S&&S.next(void 0),me.close(),this._resetState()}),Te&&Te instanceof h.t&&re.add(Te.subscribe(this.destination))},me.onerror=ie=>{this._resetState(),ee.error(ie)},me.onclose=ie=>{me===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ie),ie.wasClean?ee.complete():ee.error(ie)},me.onmessage=ie=>{try{const{deserializer:se}=this._config;ee.next(se(ie))}catch(se){ee.error(se)}}}_subscribe(W){const{source:Y}=this;return Y?Y.subscribe(W):(this._socket||this._connectSocket(),this._output.subscribe(W),W.add(()=>{const{_socket:Q}=this;0===this._output.observers.length&&(Q&&(1===Q.readyState||0===Q.readyState)&&Q.close(),this._resetState())}),W)}unsubscribe(){const{_socket:W}=this;W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState(),super.unsubscribe()}}var w=m(4650),L=m(5043),k=m(5986);let V=(()=>{var B;class W{constructor(Q,X){this.logger=Q,this.sessionService=X,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Q,X){(!this.socket||this.socket.closed)&&(this.wsUrl=Q,this.nodeIndex=X,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new M({url:Q,protocol:[this.sessionService.getItem("token")||"",X]}),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,g.R)(this.unSubs[1])).subscribe({next:Q=>{if((Q="string"==typeof Q?JSON.parse(Q):Q).error)this.handleError(Q.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Q)),Q.source){case"LND":this.lndWSMessages.next(Q);break;case"CLN":this.clWSMessages.next(Q);break;case"ECL":this.eclWSMessages.next(Q)}},error:Q=>this.handleError(Q),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Q){this.logger.error(Q),this.clWSMessages.error(Q),this.eclWSMessages.error(Q),this.lndWSMessages.error(Q),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(B=W).\u0275fac=function(Q){return new(Q||B)(w.LFG(L.mQ),w.LFG(k.m))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),W})()},9470:(We,q,m)=>{"use strict";m.d(q,{m:()=>zo});var t=m(6895),e=m(9116),g=m(4006),T=m(529),s=m(2216),x=m(4650),h=m(2233),N=m(5829),d=m(1576);m(1281);let Mt=(()=>{class Ft{}return Ft.\u0275fac=function(wt){return new(wt||Ft)},Ft.\u0275mod=x.oAB({type:Ft}),Ft.\u0275inj=x.cJS({imports:[h.IR]}),Ft})(),si=(()=>{class Ft{constructor(wt,ai){(0,t.PM)(ai)&&!wt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(wt,ai=[]){return{ngModule:Ft,providers:wt.serverLoaded?[{provide:h.WU,useValue:{...h.g5,...wt}},{provide:h.Bs,useValue:ai,multi:!0},{provide:h.wY,useValue:!0}]:[{provide:h.WU,useValue:{...h.g5,...wt}},{provide:h.Bs,useValue:ai,multi:!0}]}}}return Ft.\u0275fac=function(wt){return new(wt||Ft)(x.LFG(h.wY),x.LFG(x.Lbi))},Ft.\u0275mod=x.oAB({type:Ft}),Ft.\u0275inj=x.cJS({imports:[d.ae,N.aT,Mt,d.ae,N.aT,Mt]}),Ft})();var Ai=m(2289),Ri=m(3238),$i=m(5412),nn=m(7957),Qi=m(2673),Yt=m(4859);m(4761),m(5017);let An=(()=>{class Ft{}return Ft.\u0275fac=function(wt){return new(wt||Ft)},Ft.\u0275mod=x.oAB({type:Ft}),Ft.\u0275inj=x.cJS({imports:[Ri.BQ,Ri.si,Ri.BQ]}),Ft})();var oa=m(3546),Aa=m(6709),ta=m(9602),nr=m(752),$t=m(782),mi=m(7392),jt=m(4144),oi=m(6338),wi=m(8255),Vi=m(8739),ln=m(3162),Yn=m(1572),Bn=m(1948),_a=m(4385),Ln=m(3267),Gn=m(455);m(7579);let Vr=(()=>{class Ft{}return Ft.\u0275fac=function(wt){return new(wt||Ft)},Ft.\u0275mod=x.oAB({type:Ft}),Ft.\u0275inj=x.cJS({imports:[Ri.BQ,t.ez,Ri.si]}),Ft})();var Qa=m(7009),Br=m(6308),sa=m(8425),Wa=m(671),hr=m(3848),vr=m(3683),Er=m(266),Fo=m(5423),so=m(7331),$r=m(3803),eo=m(658),ur=m(6839),Ho=m(8184),Mo=m(3353);let Ya=(()=>{var Ft;class hi extends Ho.Xj{constructor(ai,Pi){super(ai,Pi)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)(x.Y36(t.K0),x.Y36(Mo.t4))},Ft.\u0275dir=x.lG2({type:Ft,features:[x.qOj]}),hi})();var Ar=m(5043),qn=m(7731),kn=m(9445);const fr={suppressScrollX:!1,suppressScrollY:!1};let Lr=(()=>{var Ft;class hi extends Ri.LF{constructor(ai,Pi){super(ai,Pi)}format(ai,Pi){if("input"===Pi){let an=ai.getDate().toString();return an=+an<10?"0"+an:an,an+"/"+qn.gg[ai.getMonth()].name.toUpperCase()+"/"+ai.getFullYear()}return qn.gg[ai.getMonth()].name.toUpperCase()+" "+ai.getFullYear()}}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)(x.LFG(Ri.Ad,8),x.LFG(Mo.t4))},Ft.\u0275prov=x.Yz7({token:Ft,factory:Ft.\u0275fac}),hi})();const Ca={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 zo=(()=>{var Ft;class hi{}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)},Ft.\u0275mod=x.oAB({type:Ft}),Ft.\u0275inj=x.cJS({providers:[{provide:Ar.mQ,useClass:Ar.LG},{provide:ur.op,useValue:fr},{provide:Qa.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:$i.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:Ri._A,useClass:Lr},{provide:Ri.sG,useValue:Ca},{provide:Ho.Xj,useClass:Ya},t.JJ,t.rS,t.uU,kn.al,kn.h9,kn.D3,kn.i1,kn.rn],imports:[t.ez,g.u5,g.UX,s.uH,si,Ai.xu,$i.Is,Yt.ot,An,oa.QW,Aa.p9,nr.To,$t.N6,ta.FA,Ri.XK,mi.Ps,jt.c,oi.ie,wi.Tx,ln.Cv,Yn.Cq,Bn.Fk,Fo.dp,so.Hi,_a.LD,Ln.SJ,Gn.rP,Br.JX,Wa.p0,vr.g0,Er.AV,Qi.g,Vi.TU,sa.T5,Vr,hr.Nh,Qa.ZX,nn.Bb,$r.a4,eo.OF,e.Bz,T.JF,ur.Xd,g.u5,g.UX,s.uH,si,Ai.xu,$i.Is,Yt.ot,An,oa.QW,Aa.p9,nr.To,$t.N6,ta.FA,Ri.XK,mi.Ps,jt.c,oi.ie,wi.Tx,ln.Cv,Yn.Cq,Bn.Fk,Fo.dp,so.Hi,_a.LD,Ln.SJ,Gn.rP,Br.JX,Wa.p0,vr.g0,Er.AV,Qi.g,Vi.TU,sa.T5,Vr,hr.Nh,Qa.ZX,nn.Bb,$r.a4,eo.OF,ur.Xd]}),hi})()},7861:(We,q,m)=>{"use strict";m.d(q,{M6:()=>w,Q2:()=>B,QO:()=>l,Tm:()=>se,Uy:()=>re,XT:()=>ee,_V:()=>Te,ac:()=>N,c0:()=>a,c1:()=>L,dc:()=>C,ey:()=>X,fk:()=>ie,jS:()=>ce,jW:()=>h,kS:()=>i,lC:()=>T,qR:()=>M,qi:()=>s,tj:()=>V,ts:()=>x,tw:()=>Y,uO:()=>d,vI:()=>Q,x4:()=>O,yb:()=>k,zQ:()=>me});var t=m(9653),e=m(7731);(0,t.PH)(e.pg.VOID);const T=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),s=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),x=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),h=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),N=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),d=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),M=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),k=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),V=(0,t.PH)(e.pg.SHOW_PUBKEY),B=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),Y=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),Q=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),X=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ee=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),me=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),re=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),ie=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),se=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),ce=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),Te=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),a=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),l=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),O=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),C=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(We,q,m)=>{"use strict";m.d(q,{V:()=>Ut});var t=m(4650),e=m(493),g=m(7579),T=m(9646),s=m(9751),x=m(4128),h=m(4004),N=m(5698),d=m(1365),M=m(5577),w=m(262),L=m(2722),k=m(7731),V=m(5412),B=m(1576),W=m(1572);let Y=(()=>{var Ot;class bi{constructor(pi,gi){this.dialogRef=pi,this.data=gi}}return(Ot=bi).\u0275fac=function(pi){return new(pi||Ot)(t.Y36(V.so),t.Y36(V.WI))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-spinner-dialog"]],decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(pi,gi){1&pi&&(t.TgZ(0,"div",0),t._UZ(1,"mat-progress-spinner",1),t.TgZ(2,"h2"),t._uU(3),t.qZA()()),2&pi&&(t.xp6(3),t.Oqu(gi.data.titleMessage))},dependencies:[B.xw,B.Wh,W.Ou],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}),bi})();var Q=m(5043),X=m(7009),ee=m(62),me=m(9116),re=m(6895),ie=m(5829),se=m(4859),ce=m(3546),Te=m(7392),S=m(4850),i=m(266),a=m(658),u=m(6839),l=m(5199),_=m(3390);const O=["scrollContainer"];function R(Ot,bi){if(1&Ot&&t._UZ(0,"qr-code",15),2&Ot){const li=t.oxw();t.Q6J("value",li.showQRField)("size",200)("errorCorrectionLevel","L")}}function C(Ot,bi){1&Ot&&t.GkF(0)}const n=function(Ot){return{"h-40":Ot}};function v(Ot,bi){if(1&Ot&&(t.ynx(0),t.TgZ(1,"mat-card-content",16,17),t.YNc(3,C,1,0,"ng-container",18),t.qZA(),t.BQk()),2&Ot){const li=t.oxw(),pi=t.MAs(20);t.xp6(1),t.Q6J("ngClass",t.VKq(2,n,li.data.scrollable)),t.xp6(2),t.Q6J("ngTemplateOutlet",pi)}}function K(Ot,bi){1&Ot&&t.GkF(0)}function F(Ot,bi){if(1&Ot&&(t.ynx(0),t.TgZ(1,"mat-card-content",19),t.YNc(2,K,1,0,"ng-container",18),t.qZA(),t.BQk()),2&Ot){t.oxw();const li=t.MAs(20);t.xp6(2),t.Q6J("ngTemplateOutlet",li)}}function G(Ot,bi){1&Ot&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_downward"),t.qZA())}function ye(Ot,bi){1&Ot&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_upward"),t.qZA())}function Ee(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"div",20)(1,"button",21),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onScroll())}),t.YNc(2,G,2,0,"mat-icon",22),t.YNc(3,ye,2,0,"mat-icon",22),t.qZA()()}if(2&Ot){const li=t.oxw();t.xp6(2),t.Q6J("ngIf","DOWN"===li.scrollDirection),t.xp6(1),t.Q6J("ngIf","UP"===li.scrollDirection)}}function pe(Ot,bi){1&Ot&&(t.TgZ(0,"button",24),t._uU(1,"OK"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function qe(Ot,bi){1&Ot&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function Ce(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(gi){t.CHM(li);const Zi=t.oxw();return t.KtG(Zi.onCopyField(gi))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.Q6J("payload",li.showCopyField),t.xp6(1),t.hij("Copy ",li.showCopyName,"")}}function Se(Ot,bi){1&Ot&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function fe(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(gi){t.CHM(li);const Zi=t.oxw();return t.KtG(Zi.onCopyField(gi))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.Q6J("payload",li.showQRField),t.xp6(1),t.hij("Copy ",li.showQRName,"")}}function Fe(Ot,bi){if(1&Ot&&t._UZ(0,"qr-code",15),2&Ot){const li=t.oxw(2);t.Q6J("value",li.showQRField)("size",200)("errorCorrectionLevel","L")}}function oe(Ot,bi){if(1&Ot&&(t.TgZ(0,"p",32),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Oqu(li.data.titleMessage)}}function ze(Ot,bi){1&Ot&&t._UZ(0,"span",46),2&Ot&&t.Q6J("innerHTML",bi.$implicit,t.oJD)}function Oe(Ot,bi){if(1&Ot&&(t.ynx(0),t.YNc(1,ze,1,1,"span",45),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",li.value)}}function he(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*li.value,"dd/MMM/y HH:mm"))}}function Ae(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,li.value,li.digitsInfo?li.digitsInfo:"1.0-3"))}}function ge(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(li.value?"True":"False")}}function Ue(Ot,bi){1&Ot&&(t.TgZ(0,"mat-icon",51),t._uU(1,"info"),t.qZA())}const Je=function(Ot){return{"failed-status":Ot}};function Re(Ot,bi){if(1&Ot&&(t.TgZ(0,"p",49),t._uU(1),t.YNc(2,Ue,2,0,"mat-icon",50),t.qZA()),2&Ot){const li=t.oxw(3).$implicit,pi=t.oxw(4);t.Q6J("ngClass",t.VKq(3,Je,li.value===pi.LoopStateEnum.FAILED)),t.xp6(1),t.hij(" ",li.value," "),t.xp6(1),t.Q6J("ngIf",li.value===pi.LoopStateEnum.FAILED)}}function le(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"p",54),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw(8);return t.KtG(gi.onGoToLink())}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw(4).$implicit,pi=t.oxw(4);t.s9C("matTooltip","Go To "+pi.goToName),t.xp6(1),t.hij(" ",li.value," ")}}function rt(Ot,bi){if(1&Ot&&t._uU(0),2&Ot){const li=t.oxw(4).$implicit;t.hij(" ",li.value," ")}}function Qe(Ot,bi){if(1&Ot&&(t.YNc(0,le,2,2,"p",52),t.YNc(1,rt,1,1,"ng-template",null,53,t.W1O)),2&Ot){const li=t.MAs(2),pi=t.oxw(3).$implicit,gi=t.oxw(4);t.Q6J("ngIf",pi.value===gi.goToFieldValue)("ngIfElse",li)}}function ct(Ot,bi){if(1&Ot&&(t.ynx(0),t.YNc(1,Re,3,5,"p",47),t.YNc(2,Qe,3,2,"ng-template",null,48,t.W1O),t.BQk()),2&Ot){const li=t.MAs(3),pi=t.oxw(2).$implicit,gi=t.oxw(4);t.xp6(1),t.Q6J("ngIf","SWAP"===gi.data.openedBy&&"state"===pi.key)("ngIfElse",li)}}function Gt(Ot,bi){if(1&Ot&&(t.TgZ(0,"span")(1,"span",42),t.YNc(2,Oe,2,1,"ng-container",43),t.YNc(3,he,3,4,"ng-container",43),t.YNc(4,Ae,3,4,"ng-container",43),t.YNc(5,ge,2,1,"ng-container",43),t.YNc(6,ct,4,2,"ng-container",44),t.qZA()()),2&Ot){const li=t.oxw().$implicit,pi=t.oxw(4);t.xp6(1),t.Q6J("ngSwitch",li.type),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.BOOLEAN)}}function ut(Ot,bi){1&Ot&&(t.TgZ(0,"span",55),t._uU(1,"\xa0"),t.qZA())}function Ze(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",37)(1,"h4",38),t._uU(2),t.qZA(),t.YNc(3,Gt,7,5,"span",39),t.YNc(4,ut,2,0,"ng-template",null,40,t.W1O),t._UZ(6,"mat-divider",41),t.qZA()),2&Ot){const li=bi.$implicit,pi=t.MAs(5);t.s9C("fxFlex.gt-md",li.width),t.xp6(2),t.Oqu(li.title),t.xp6(1),t.Q6J("ngIf",li&&(!!li.value||0===li.value))("ngIfElse",pi)}}function xt(Ot,bi){if(1&Ot&&(t.TgZ(0,"div")(1,"div",35),t.YNc(2,Ze,7,4,"div",36),t.qZA()()),2&Ot){const li=bi.$implicit;t.xp6(2),t.Q6J("ngForOf",li)}}function Me(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",33),t.YNc(1,xt,3,1,"div",34),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",li.messageObjs)}}const $e=function(Ot){return{"display-none":Ot}};function Pe(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",27)(1,"div",28),t.YNc(2,Fe,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",29),t.YNc(4,oe,2,1,"p",30),t.YNc(5,Me,2,1,"div",31),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(4,$e,""===li.showQRField||li.screenSize!==li.screenSizeEnum.XS&&li.screenSize!==li.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==li.showQRField),t.xp6(2),t.Q6J("ngIf",li.data.titleMessage),t.xp6(1),t.Q6J("ngIf",(null==li.messageObjs?null:li.messageObjs.length)>0)}}let J=(()=>{var Ot;class bi{constructor(pi,gi,Zi,Wn,An,oa,Aa){this.dialogRef=pi,this.data=gi,this.logger=Zi,this.snackBar=Wn,this.commonService=An,this.renderer=oa,this.router=Aa,this.LoopStateEnum=k.Fq,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=k.n_,this.dataTypeEnum=k.Gi,this.screenSize="",this.screenSizeEnum=k.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(pi){pi&&(this.scrollContainer=pi,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",gi=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",gi=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",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===k.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(pi){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+pi)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return(Ot=bi).\u0275fac=function(pi){return new(pi||Ot)(t.Y36(V.so),t.Y36(V.WI),t.Y36(Q.mQ),t.Y36(X.ux),t.Y36(ee.v),t.Y36(t.Qsj),t.Y36(me.F0))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-alert-message"]],viewQuery:function(pi,gi){if(1&pi&&t.Gf(O,5),2&pi){let Zi;t.iGM(Zi=t.CRH())&&(gi.container=Zi.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 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"],["fxLayout","row","class","go-to-link",3,"matTooltip","click",4,"ngIf","ngIfElse"],["noStyleChild",""],["fxLayout","row",1,"go-to-link",3,"matTooltip","click"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(pi,gi){1&pi&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,R,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),t._uU(7),t.qZA()(),t.TgZ(8,"button",7),t.NdJ("click",function(){return gi.onClose()}),t._uU(9,"X"),t.qZA()(),t.YNc(10,v,4,4,"ng-container",8),t.YNc(11,F,3,1,"ng-container",8),t.YNc(12,Ee,4,2,"div",9),t.TgZ(13,"div",10),t.YNc(14,pe,2,1,"button",11),t.YNc(15,qe,2,1,"button",12),t.YNc(16,Ce,2,2,"button",13),t.YNc(17,Se,2,1,"button",12),t.YNc(18,fe,2,2,"button",13),t.qZA()()(),t.YNc(19,Pe,6,6,"ng-template",null,14,t.W1O)),2&pi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(12,$e,""===gi.showQRField||gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField),t.xp6(1),t.Q6J("fxFlex",""===gi.showQRField||gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM?"100":"70"),t.xp6(4),t.Oqu(gi.data.alertTitle||gi.alertTypeEnum[gi.data.type]),t.xp6(3),t.Q6J("ngIf",gi.data.scrollable),t.xp6(1),t.Q6J("ngIf",!gi.data.scrollable),t.xp6(1),t.Q6J("ngIf",gi.data.scrollable&&gi.shouldScroll),t.xp6(2),t.Q6J("ngIf",(!gi.showQRField||""===gi.showQRField)&&""===gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField))},dependencies:[re.mk,re.sg,re.O5,re.tP,re.RF,re.n9,re.ED,B.xw,B.Wh,B.yH,ie.oO,V.ZT,se.lW,se.nh,ce.dn,ce.dk,Te.Hw,S.d,i.gM,a.uU,u.$V,l.y,_.h,re.JJ,re.uU],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),bi})();var mt=m(2687),Et=m(7861),at=m(9653),je=m(4006),Ht=m(2216),Ct=m(4144),Nt=m(9549),Bt=m(6534);function Ne(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",18),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("icon",li.faExclamationTriangle),t.xp6(2),t.Oqu(li.warningMessage)}}function $(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",20),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("icon",li.faInfoCircle),t.xp6(2),t.Oqu(li.informationMessage)}}function ue(Ot,bi){if(1&Ot&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.data.titleMessage)}}function Ie(Ot,bi){1&Ot&&t._UZ(0,"div",36),2&Ot&&t.Q6J("innerHTML",bi.$implicit,t.oJD)}function Xe(Ot,bi){if(1&Ot&&(t.ynx(0,34),t.YNc(1,Ie,1,1,"div",35),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",li.value)}}function ei(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*li.value,"dd/MMM/y HH:mm"))}}function zt(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,li.value,"1.0-3"))}}function ni(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(!0===li.value?"True":"False")}}function pt(Ot,bi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(li.value)}}function ot(Ot,bi){if(1&Ot&&(t.TgZ(0,"span")(1,"span",30),t.YNc(2,Xe,2,1,"ng-container",31),t.YNc(3,ei,3,4,"ng-container",32),t.YNc(4,zt,3,4,"ng-container",32),t.YNc(5,ni,2,1,"ng-container",32),t.YNc(6,pt,2,1,"ng-container",33),t.qZA()()),2&Ot){const li=t.oxw().$implicit,pi=t.oxw(3);t.xp6(1),t.Q6J("ngSwitch",li.type),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",pi.dataTypeEnum.BOOLEAN)}}function ft(Ot,bi){1&Ot&&(t.TgZ(0,"span",37),t._uU(1,"\xa0"),t.qZA())}function St(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",25)(1,"h4",26),t._uU(2),t.qZA(),t.YNc(3,ot,7,5,"span",27),t.YNc(4,ft,2,0,"ng-template",null,28,t.W1O),t._UZ(6,"mat-divider",29),t.qZA()),2&Ot){const li=bi.$implicit,pi=t.MAs(5);t.s9C("fxFlex.gt-md",li.width),t.xp6(2),t.Oqu(li.title),t.xp6(1),t.Q6J("ngIf",li&&(!!li.value||0===li.value))("ngIfElse",pi)}}function gt(Ot,bi){if(1&Ot&&(t.TgZ(0,"div")(1,"div",23),t.YNc(2,St,7,4,"div",24),t.qZA()()),2&Ot){const li=bi.$implicit;t.xp6(2),t.Q6J("ngForOf",li)}}function tt(Ot,bi){if(1&Ot&&(t.TgZ(0,"div"),t.YNc(1,gt,3,1,"div",22),t.qZA()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngForOf",li.messageObjs)}}function _t(Ot,bi){if(1&Ot&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Oqu(li.data.titleMessage)}}function vt(Ot,bi){if(1&Ot&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.hij("",li.placeholder," is required.")}}function Ve(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"mat-form-field",41)(1,"mat-label"),t._uU(2),t.qZA(),t.TgZ(3,"input",42),t.NdJ("ngModelChange",function(gi){t.CHM(li);const Zi=t.oxw().$implicit;return t.KtG(Zi.inputValue=gi)}),t.ALo(4,"lowercase"),t.qZA(),t.YNc(5,vt,2,1,"mat-error",11),t.TgZ(6,"mat-hint"),t._uU(7),t.qZA()()}if(2&Ot){const li=t.oxw(),pi=li.$implicit,gi=li.index;t.Q6J("fxFlex",pi.width),t.xp6(2),t.Oqu(pi.placeholder),t.xp6(1),t.MGl("name","input",gi,""),t.Q6J("autoFocus",0===gi)("min",pi.min)("step",pi.step)("type",t.lcZ(4,11,pi.inputType))("tabindex",gi+1)("ngModel",pi.inputValue),t.xp6(2),t.Q6J("ngIf",!pi.inputValue),t.xp6(2),t.Oqu(pi.hintFunction?pi.hintFunction(pi.inputValue):pi.hintText)}}function Tt(Ot,bi){if(1&Ot&&(t.ynx(0),t.YNc(1,Ve,8,13,"mat-form-field",40),t.BQk()),2&Ot){const li=bi.$implicit,pi=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!li.advancedField||pi.showAdvanced)}}function Lt(Ot,bi){if(1&Ot&&(t.TgZ(0,"div",38),t.YNc(1,_t,2,1,"p",10),t.TgZ(2,"div",39),t.YNc(3,Tt,2,1,"ng-container",22),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngIf",li.data.titleMessage),t.xp6(2),t.Q6J("ngForOf",li.getInputs)}}function Qt(Ot,bi){1&Ot&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function Bi(Ot,bi){1&Ot&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function Hi(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onShowAdvanced())}),t.YNc(1,Qt,2,0,"p",27),t.YNc(2,Bi,2,0,"ng-template",null,44,t.W1O),t.qZA()}if(2&Ot){const li=t.MAs(3),pi=t.oxw();t.xp6(1),t.Q6J("ngIf",!pi.showAdvanced)("ngIfElse",li)}}function Si(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",45),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onClose(gi.getInputs))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.yesBtnText)}}function Wi(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",46),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onClose(!0))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.yesBtnText)}}let et=(()=>{var Ot;class bi{constructor(pi,gi,Zi,Wn){this.dialogRef=pi,this.data=gi,this.logger=Zi,this.store=Wn,this.faInfoCircle=mt.sqG,this.faExclamationTriangle=mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=k.n_,this.dataTypeEnum=k.Gi,this.getInputs=[{placeholder:"",inputType:k.Gi.STRING,inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===k.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(pi){if(pi&&this.getInputs&&this.getInputs.some(gi=>typeof gi.inputValue>"u"))return!0;!this.showAdvanced&&pi.length&&(pi=pi?.reduce((gi,Zi)=>(Zi.advancedField||gi.push(Zi),gi),[])),this.store.dispatch((0,Et.yb)({payload:pi}))}}return(Ot=bi).\u0275fac=function(pi){return new(pi||Ot)(t.Y36(V.so),t.Y36(V.WI),t.Y36(Q.mQ),t.Y36(at.yh))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","name","min","step","type","tabindex","ngModel","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(pi,gi){1&pi&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return gi.onClose(!1)}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7),t.YNc(10,Ne,4,2,"div",8),t.YNc(11,$,4,2,"div",9),t.YNc(12,ue,2,1,"p",10),t.YNc(13,tt,2,1,"div",11),t.YNc(14,Lt,4,2,"div",12),t.TgZ(15,"div",13)(16,"button",14),t.NdJ("click",function(){return gi.onClose(!1)}),t._uU(17),t.qZA(),t.YNc(18,Hi,4,2,"button",15),t.YNc(19,Si,2,1,"button",16),t.YNc(20,Wi,2,1,"button",17),t.qZA()()()()()),2&pi&&(t.xp6(5),t.Oqu(gi.data.alertTitle||gi.alertTypeEnum[gi.data.type]),t.xp6(5),t.Q6J("ngIf",gi.warningMessage&&""!==gi.warningMessage),t.xp6(1),t.Q6J("ngIf",gi.informationMessage&&""!==gi.informationMessage),t.xp6(1),t.Q6J("ngIf",gi.data.titleMessage&&!gi.flgShowInput),t.xp6(1),t.Q6J("ngIf",(null==gi.messageObjs?null:gi.messageObjs.length)>0),t.xp6(1),t.Q6J("ngIf",gi.flgShowInput),t.xp6(3),t.Oqu(gi.noBtnText),t.xp6(1),t.Q6J("ngIf",gi.hasAdvanced),t.xp6(1),t.Q6J("ngIf",gi.flgShowInput),t.xp6(1),t.Q6J("ngIf",!gi.flgShowInput))},dependencies:[re.sg,re.O5,re.RF,re.n9,re.ED,je._Y,je.Fj,je.JJ,je.JL,je.Q7,je.On,je.F,Ht.BN,B.xw,B.Wh,B.yH,se.lW,ce.dn,ce.dk,Ct.Nt,Nt.KE,Nt.hX,Nt.bx,Nt.TO,S.d,_.h,Bt.q,re.i8,re.JJ,re.uU]}),bi})();var It=m(1786),Le=m(4385),Mt=m(3238);function Wt(Ot,bi){if(1&Ot&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&Ot){const li=bi.$implicit;t.Q6J("value",li),t.xp6(1),t.hij(" ",li.infoName," ")}}function si(Ot,bi){if(1&Ot){const li=t.EpF();t.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),t.NdJ("valueChange",function(gi){t.CHM(li);const Zi=t.oxw();return t.KtG(Zi.selInfoType=gi)}),t.YNc(3,Wt,2,2,"mat-option",22),t.qZA()()()}if(2&Ot){const li=t.oxw();t.xp6(2),t.Q6J("value",li.selInfoType),t.xp6(1),t.Q6J("ngForOf",li.infoTypes)}}const Ai=function(Ot){return{"display-none":Ot}};let Ri=(()=>{var Ot;class bi{constructor(pi,gi,Zi,Wn,An){this.dialogRef=pi,this.data=gi,this.logger=Zi,this.snackBar=Wn,this.commonService=An,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=k.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((pi,gi)=>{this.infoTypes.push({infoID:gi+1,infoKey:"node URI "+(gi+1),infoName:"Node URI "+(gi+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(pi){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+pi)}}return(Ot=bi).\u0275fac=function(pi){return new(pi||Ot)(t.Y36(V.so),t.Y36(V.WI),t.Y36(Q.mQ),t.Y36(X.ux),t.Y36(ee.v))},Ot.\u0275cmp=t.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 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"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(pi,gi){1&pi&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),t._UZ(6,"fa-icon",6),t.TgZ(7,"span",7),t._uU(8),t.qZA()(),t.TgZ(9,"button",8),t.NdJ("click",function(){return gi.onClose()}),t._uU(10,"X"),t.qZA()(),t.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),t._UZ(14,"qr-code",2),t.qZA(),t.YNc(15,si,4,2,"div",12),t.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),t._uU(19),t.qZA(),t.TgZ(20,"span",16),t._uU(21),t.qZA()()(),t._UZ(22,"mat-divider",17),t.TgZ(23,"div",18)(24,"button",19),t.NdJ("copied",function(Wn){return gi.onCopyPubkey(Wn)}),t._uU(25),t.qZA()()()()()()),2&pi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(15,Ai,gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.Q6J("size",gi.qrWidth)("errorCorrectionLevel","L"),t.xp6(4),t.Q6J("icon",gi.faReceipt),t.xp6(2),t.Oqu(gi.selInfoType.infoName),t.xp6(5),t.Q6J("ngClass",t.VKq(17,Ai,gi.screenSize!==gi.screenSizeEnum.XS&&gi.screenSize!==gi.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.Q6J("size",gi.qrWidth)("errorCorrectionLevel","L"),t.xp6(1),t.Q6J("ngIf",gi.information.uris&&gi.information.uris.length>0),t.xp6(4),t.Oqu(gi.selInfoType.infoName),t.xp6(2),t.Oqu(0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.xp6(3),t.s9C("payload",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.xp6(1),t.hij("Copy ",gi.selInfoType.infoKey,""))},dependencies:[re.mk,re.sg,re.O5,Ht.BN,B.xw,B.Wh,B.yH,ie.oO,se.lW,ce.dn,ce.dk,Nt.KE,S.d,Le.gD,Mt.ey,a.uU,l.y,_.h]}),bi})();var $i=m(6523),nn=m(429),Qi=m(2994),Yt=m(8377),Xt=m(529),be=m(7998),dt=m(5986),Dt=m(8104);let Ut=(()=>{var Ot;class bi{constructor(pi,gi,Zi,Wn,An,oa,Aa,ta,nr,$t,mi){this.actions=pi,this.httpClient=gi,this.store=Zi,this.logger=Wn,this.wsService=An,this.sessionService=oa,this.commonService=Aa,this.dataService=ta,this.dialog=nr,this.snackBar=$t,this.router=mi,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new g.x,new g.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.CLOSE_ALL_DIALOGS),(0,h.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.OPEN_SNACK_BAR),(0,h.U)(jt=>{"string"==typeof jt.payload?this.snackBar.open(jt.payload):this.snackBar.open(jt.payload.message,"","ERROR"===jt.payload.type?{duration:jt.payload.duration?jt.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===jt.payload.type?{duration:jt.payload.duration?jt.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:jt.payload.duration?jt.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.OPEN_SPINNER),(0,h.U)(jt=>{jt.payload!==k.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(Y,{panelClass:"spinner-dialog-panel",data:{titleMessage:jt.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.CLOSE_SPINNER),(0,h.U)(jt=>{if(jt.payload!==k.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===jt.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(oi=>{oi.componentInstance&&oi.componentInstance.data&&oi.componentInstance.data.titleMessage&&oi.componentInstance.data.titleMessage===jt.payload&&oi.close()})}catch(oi){this.logger.error(oi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.OPEN_ALERT),(0,h.U)(jt=>{const oi=JSON.parse(JSON.stringify(jt.payload));oi.width||(oi.width=this.alertWidth),this.dialogRef=this.dialog.open(jt.payload.data.component?jt.payload.data.component:J,oi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.CLOSE_ALERT),(0,h.U)(jt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(jt.payload),jt.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.OPEN_CONFIRMATION),(0,h.U)(jt=>{const oi=JSON.parse(JSON.stringify(jt.payload));oi.width||(oi.width=this.confirmWidth),this.dialogRef=this.dialog.open(et,oi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.CLOSE_CONFIRMATION),(0,N.q)(1),(0,h.U)(jt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(jt.payload),jt.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.SHOW_PUBKEY),(0,d.M)(this.store.select(Yt.R4)),(0,M.z)(([jt,oi])=>(this.sessionService.getItem("token")&&oi.identity_pubkey?this.store.dispatch((0,Et.qR)({payload:{data:{information:oi,component:Ri}}})):this.snackBar.open("Node Pubkey does not exist."),(0,T.of)({type:k.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.FETCH_RTL_CONFIG),(0,M.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===k.cu.XS||this.screenSize===k.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===k.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Et.ac)({payload:k.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Et.qi)({payload:{action:"FetchRTLConfig",status:k.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(k.vv.CONF_API+"/rtlconf"):this.httpClient.get(k.vv.CONF_API+"/rtlconfinit"))),(0,h.U)(jt=>{this.logger.info(jt),this.store.dispatch((0,Et.uO)({payload:k.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Et.qi)({payload:{action:"FetchRTLConfig",status:k.Bn.COMPLETED}}));let oi=null;return jt.nodes.forEach(wi=>{wi.settings.currencyUnits=[...k.uA,wi.settings?.currencyUnit?wi.settings?.currencyUnit:""],+(wi.index||-1)===jt.selectedNodeIndex&&(oi=wi)}),oi?(this.store.dispatch((0,Et.fk)({payload:{uiMessage:k.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:oi,isInitialSetup:!0}})),{type:k.pg.SET_RTL_CONFIG,payload:jt}):{type:k.pg.VOID}}),(0,w.K)(jt=>(this.handleErrorWithAlert("FetchRTLConfig",k.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",k.vv.CONF_API,jt),(0,T.of)({type:k.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.SAVE_SETTINGS),(0,M.z)(jt=>{this.store.dispatch((0,Et.ac)({payload:jt.payload.uiMessage})),this.store.dispatch((0,Et.qi)({payload:{action:"UpdateSettings",status:k.Bn.INITIATED}}));let oi=new s.y;if(jt.payload.settings&&jt.payload.defaultNodeIndex){const wi=this.httpClient.post(k.vv.CONF_API,{updatedSettings:jt.payload.settings}),Vi=this.httpClient.post(k.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:jt.payload.defaultNodeIndex});oi=(0,x.D)([wi,Vi])}else jt.payload.settings&&!jt.payload.defaultNodeIndex?oi=this.httpClient.post(k.vv.CONF_API,{updatedSettings:jt.payload.settings}):!jt.payload.settings&&jt.payload.defaultNodeIndex&&(oi=this.httpClient.post(k.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:jt.payload.defaultNodeIndex}));return oi.pipe((0,h.U)(wi=>(this.logger.info(wi),this.store.dispatch((0,Et.qi)({payload:{action:"UpdateSettings",status:k.Bn.COMPLETED}})),this.store.dispatch((0,Et.uO)({payload:jt.payload.uiMessage})),{type:k.pg.OPEN_SNACK_BAR,payload:wi.length?wi[0].message+".":wi.message+"."})),(0,w.K)(wi=>(this.handleErrorWithAlert("UpdateSettings",jt.payload.uiMessage,"Update Settings Failed!",k.vv.CONF_API,wi.length?wi[0]:wi),(0,T.of)({type:k.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.UPDATE_SERVICE_SETTINGS),(0,M.z)(jt=>(this.store.dispatch((0,Et.ac)({payload:jt.payload.uiMessage})),this.store.dispatch((0,Et.qi)({payload:{action:"UpdateServiceSettings",status:k.Bn.INITIATED}})),this.httpClient.post(k.vv.CONF_API+"/updateServiceSettings",jt.payload).pipe((0,h.U)(oi=>(this.logger.info(oi),this.store.dispatch((0,Et.qi)({payload:{action:"UpdateServiceSettings",status:k.Bn.COMPLETED}})),this.store.dispatch((0,Et.uO)({payload:jt.payload.uiMessage})),this.store.dispatch((0,Et.Tm)({payload:jt.payload})),{type:k.pg.OPEN_SNACK_BAR,payload:oi.message+"."})),(0,w.K)(oi=>(this.handleErrorWithAlert("UpdateServiceSettings",jt.payload.uiMessage,"Update Service Settings Failed!",k.vv.CONF_API,oi),(0,T.of)({type:k.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.TWO_FA_SAVE_SETTINGS),(0,M.z)(jt=>(this.store.dispatch((0,Et.ac)({payload:k.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Et.qi)({payload:{action:"Update2FASettings",status:k.Bn.INITIATED}})),this.httpClient.post(k.vv.CONF_API+"/update2FA",{secret2fa:jt.payload.secret2fa}))),(0,d.M)(this.store.select(Yt.Yj)),(0,h.U)(([jt,oi])=>{this.logger.info(jt),oi.enable2FA=!oi.enable2FA,this.store.dispatch((0,Et.qi)({payload:{action:"Update2FASettings",status:k.Bn.COMPLETED}})),this.store.dispatch((0,Et.uO)({payload:k.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Et.XT)({payload:oi}))}),(0,w.K)(jt=>(this.handleErrorWithAlert("Update2FASettings",k.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",k.vv.CONF_API,jt),(0,T.of)({type:k.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.FETCH_CONFIG),(0,M.z)(jt=>(this.store.dispatch((0,Et.ac)({payload:k.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Et.qi)({payload:{action:"fetchConfig",status:k.Bn.INITIATED}})),this.httpClient.get(k.vv.CONF_API+"/config/"+jt.payload).pipe((0,h.U)(oi=>(this.store.dispatch((0,Et.qi)({payload:{action:"fetchConfig",status:k.Bn.COMPLETED}})),this.store.dispatch((0,Et.uO)({payload:k.m6.OPEN_CONFIG_FILE})),{type:k.pg.SHOW_CONFIG,payload:oi})),(0,w.K)(oi=>(this.handleErrorWithAlert("fetchConfig",k.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",k.vv.CONF_API+"/config/"+jt.payload,oi),(0,T.of)({type:k.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.SHOW_CONFIG),(0,h.U)(jt=>jt.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.IS_AUTHORIZED),(0,M.z)(jt=>(this.store.dispatch((0,Et.qi)({payload:{action:"IsAuthorized",status:k.Bn.INITIATED}})),this.httpClient.post(k.vv.AUTHENTICATE_API,{authenticateWith:jt.payload&&""!==jt.payload.trim()?k.OJ.PASSWORD:k.OJ.JWT,authenticationValue:jt.payload&&""!==jt.payload.trim()?jt.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,h.U)(oi=>(this.logger.info(oi),this.store.dispatch((0,Et.qi)({payload:{action:"IsAuthorized",status:k.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:k.pg.IS_AUTHORIZED_RES,payload:oi})),(0,w.K)(oi=>(this.handleErrorWithAlert("IsAuthorized",k.m6.NO_SPINNER,"Authorization Failed",k.vv.AUTHENTICATE_API,oi),(0,T.of)({type:k.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.IS_AUTHORIZED_RES),(0,h.U)(jt=>jt.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.LOGIN),(0,d.M)(this.store.select(Yt.Yj)),(0,M.z)(([jt,oi])=>(this.store.dispatch((0,$i.Ll)({payload:null})),this.store.dispatch((0,nn.xH)({payload:null})),this.store.dispatch((0,Qi.Fd)({payload:null})),this.store.dispatch((0,Et.qi)({payload:{action:"Login",status:k.Bn.INITIATED}})),this.httpClient.post(k.vv.AUTHENTICATE_API,{authenticateWith:jt.payload.password?k.OJ.PASSWORD:k.OJ.JWT,authenticationValue:jt.payload.password?jt.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:jt.payload.twoFAToken?jt.payload.twoFAToken:""}).pipe((0,h.U)(wi=>{this.logger.info(wi),this.store.dispatch((0,Et.qi)({payload:{action:"Login",status:k.Bn.COMPLETED}})),this.setLoggedInDetails(jt.payload.defaultPassword,wi)}),(0,w.K)(wi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",k.m6.NO_SPINNER,wi),+oi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:wi.error&&wi.error.error?wi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,T.of)({type:k.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.VERIFY_TWO_FA),(0,M.z)(jt=>(this.store.dispatch((0,Et.ac)({payload:k.m6.VERIFY_TOKEN})),this.store.dispatch((0,Et.qi)({payload:{action:"VerifyToken",status:k.Bn.INITIATED}})),this.httpClient.post(k.vv.AUTHENTICATE_API+"/token",{authentication2FA:jt.payload.token}).pipe((0,h.U)(oi=>{this.logger.info(oi),this.store.dispatch((0,Et.uO)({payload:k.m6.VERIFY_TOKEN})),this.store.dispatch((0,Et.qi)({payload:{action:"VerifyToken",status:k.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,jt.payload.authResponse)}),(0,w.K)(oi=>(this.handleErrorWithAlert("VerifyToken",k.m6.VERIFY_TOKEN,"Authorization Failed!",k.vv.AUTHENTICATE_API+"/token",oi),(0,T.of)({type:k.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.LOGOUT),(0,M.z)(jt=>(this.store.dispatch((0,Et.ac)({payload:k.m6.LOG_OUT})),jt.sso&&+jt.sso.rtlSSO?window.location.href=jt.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Et._V)({payload:{}})),this.store.dispatch((0,Et.uO)({payload:k.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(k.vv.AUTHENTICATE_API+"/logout").pipe((0,h.U)(oi=>{this.logger.info(oi),this.store.dispatch((0,Et.uO)({payload:k.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,L.R)(this.unSubs[1]),(0,e.l4)(k.pg.RESET_PASSWORD),(0,M.z)(jt=>(this.store.dispatch((0,Et.qi)({payload:{action:"ResetPassword",status:k.Bn.INITIATED}})),this.httpClient.post(k.vv.AUTHENTICATE_API+"/reset",{currPassword:jt.payload.currPassword,newPassword:jt.payload.newPassword}).pipe((0,L.R)(this.unSubs[0]),(0,h.U)(oi=>(this.logger.info(oi),this.store.dispatch((0,Et.qi)({payload:{action:"ResetPassword",status:k.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Et.jW)({payload:"Password Reset Successful!"})),this.SetToken(oi.token),{type:k.pg.RESET_PASSWORD_RES,payload:oi.token})),(0,w.K)(oi=>(this.handleErrorWithAlert("ResetPassword",k.m6.NO_SPINNER,"Password Reset Failed!",k.vv.AUTHENTICATE_API+"/reset",oi),(0,T.of)({type:k.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.SET_SELECTED_NODE),(0,M.z)(jt=>(this.store.dispatch((0,Et.ac)({payload:jt.payload.uiMessage})),this.store.dispatch((0,Et.qi)({payload:{action:"UpdateSelNode",status:k.Bn.INITIATED}})),this.httpClient.get(k.vv.CONF_API+"/updateSelNode/"+jt.payload.currentLnNode?.index+"/"+jt.payload.prevLnNodeIndex).pipe((0,h.U)(oi=>(this.logger.info(oi),this.store.dispatch((0,Et.qi)({payload:{action:"UpdateSelNode",status:k.Bn.COMPLETED}})),this.store.dispatch((0,Et.uO)({payload:jt.payload.uiMessage})),this.initializeNode(jt.payload.currentLnNode,jt.payload.isInitialSetup),{type:k.pg.VOID})),(0,w.K)(oi=>(this.handleErrorWithAlert("UpdateSelNode",jt.payload.uiMessage,"Update Selected Node Failed!",k.vv.CONF_API+"/updateSelNode",oi),(0,T.of)({type:k.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.FETCH_FILE),(0,M.z)(jt=>{this.store.dispatch((0,Et.ac)({payload:k.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Et.qi)({payload:{action:"FetchFile",status:k.Bn.INITIATED}}));const oi="?channel="+jt.payload.channelPoint+(jt.payload.path?"&path="+jt.payload.path:"");return this.httpClient.get(k.vv.CONF_API+"/file"+oi).pipe((0,h.U)(wi=>(this.store.dispatch((0,Et.qi)({payload:{action:"FetchFile",status:k.Bn.COMPLETED}})),this.store.dispatch((0,Et.uO)({payload:k.m6.DOWNLOAD_BACKUP_FILE})),{type:k.pg.SHOW_FILE,payload:wi})),(0,w.K)(wi=>(this.handleErrorWithAlert("fetchFile",k.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",k.vv.CONF_API+"/file"+oi,{status:this.commonService.extractErrorNumber(wi),error:{error:this.commonService.extractErrorCode(wi)}}),(0,T.of)({type:k.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(k.pg.SHOW_FILE),(0,h.U)(jt=>jt.payload)),{dispatch:!1})}initializeNode(pi,gi){this.logger.info("Initializing node from RTL Effects.");const Zi=gi?"":"HOME",Wn={userPersona:pi.settings.userPersona,channelBackupPath:pi.settings.channelBackupPath,unannouncedChannels:!!pi.settings.unannouncedChannels,selCurrencyUnit:pi.settings.currencyUnit,currencyUnits:k.uA,fiatConversion:pi.settings.fiatConversion,lnImplementation:pi.lnImplementation,swapServerUrl:pi.settings.swapServerUrl,boltzServerUrl:pi.settings.boltzServerUrl,enableOffers:pi.settings.enableOffers,enablePeerswap:pi.settings.enablePeerswap};if(Wn.currencyUnits=[...k.uA,pi.settings.currencyUnit],this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Et.vI)({payload:pi})),this.store.dispatch((0,$i.Ll)({payload:Wn})),this.store.dispatch((0,nn.xH)({payload:Wn})),this.store.dispatch((0,Qi.Fd)({payload:Wn})),this.sessionService.getItem("token")){const An=pi.lnImplementation?pi.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(An);const oa=!(0,t.X6Q)()&&window.location.origin?window.location.origin+"/rtl/api":k.T5;switch(this.wsService.connectWebSocket(oa?.replace(/^http/,"ws")+k.vv.Web_SOCKET_API,pi.index?pi.index.toString():"-1"),An){case"CLN":this.store.dispatch((0,nn.CN)({payload:{loadPage:Zi}}));break;case"ECL":this.store.dispatch((0,Qi.iz)({payload:{loadPage:Zi}}));break;default:this.store.dispatch((0,$i.sQ)({payload:{loadPage:Zi}}))}}}SetToken(pi){pi?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",pi)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(pi,gi){this.logger.info("Successfully Authorized!"),this.SetToken(gi.token),this.sessionService.setItem("defaultPassword",pi),pi?(this.store.dispatch((0,Et.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Et.ey)())}handleErrorWithoutAlert(pi,gi,Zi){this.logger.error("ERROR IN: "+pi+"\n"+JSON.stringify(Zi)),401===Zi.status&&"Login"!==pi?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Et.ts)()),this.store.dispatch((0,Et.kS)()),this.store.dispatch((0,Et.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Et.uO)({payload:gi})),this.store.dispatch((0,Et.qi)({payload:{action:pi,status:k.Bn.ERROR,statusCode:Zi.status?Zi.status.toString():"",message:this.commonService.extractErrorMessage(Zi)}})))}handleErrorWithAlert(pi,gi,Zi,Wn,An){if(this.logger.error(An),0===An.status&&An.statusText&&"Unknown Error"===An.statusText&&(An={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===An.status&&"Login"!==pi)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Et.ts)()),this.store.dispatch((0,Et.kS)()),this.store.dispatch((0,Et.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Et.uO)({payload:gi}));const oa=this.commonService.extractErrorMessage(An);this.store.dispatch((0,Et.qR)({payload:{data:{type:"ERROR",alertTitle:Zi,message:{code:An.status?An.status:"Unknown Error",message:oa,URL:Wn},component:It.H}}})),this.store.dispatch((0,Et.qi)({payload:{action:pi,status:k.Bn.ERROR,statusCode:An.status?An.status.toString():"",message:oa,URL:Wn}}))}}ngOnDestroy(){this.unSubs.forEach(pi=>{pi.next(null),pi.complete()})}}return(Ot=bi).\u0275fac=function(pi){return new(pi||Ot)(t.LFG(e.eX),t.LFG(Xt.eN),t.LFG(at.yh),t.LFG(Q.mQ),t.LFG(be.d),t.LFG(dt.m),t.LFG(ee.v),t.LFG(Dt.D),t.LFG(V.uw),t.LFG(X.ux),t.LFG(me.F0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac}),bi})()},8377:(We,q,m)=>{"use strict";m.d(q,{R4:()=>x,Sr:()=>N,Yj:()=>s,dT:()=>T,gW:()=>d,ul:()=>h});var t=m(9653);const e=(0,t.ZF)("root"),T=((0,t.P1)(e,M=>M.apiURL),(0,t.P1)(e,M=>M.selNode)),s=(0,t.P1)(e,M=>M.appConfig),x=(0,t.P1)(e,M=>M.nodeData),h=(0,t.P1)(e,M=>M.apisCallStatus.Login),N=(0,t.P1)(e,M=>M.apisCallStatus.IsAuthorized),d=(0,t.P1)(e,M=>({nodeDate:M.nodeData,selNode:M.selNode}))},9381:(We,q,m)=>{"use strict";var t=m(1481),e=m(4650),g=m(7340);function s(A){return new e.vHH(3e3,!1)}function Ee(){return typeof window<"u"&&typeof window.document<"u"}function pe(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function qe(A){switch(A.length){case 0:return new g.ZN;case 1:return A[0];default:return new g.ZE(A)}}function Ce(A,P,b,I,H=new Map,ve=new Map){const yt=[],Jt=[];let ri=-1,Ci=null;if(I.forEach(ji=>{const Yi=ji.get("offset"),In=Yi==ri,Fn=In&&Ci||new Map;ji.forEach((mn,Cn)=>{let $n=Cn,ya=mn;if("offset"!==Cn)switch($n=P.normalizePropertyName($n,yt),ya){case g.k1:ya=H.get(Cn);break;case g.l3:ya=ve.get(Cn);break;default:ya=P.normalizeStyleValue(Cn,$n,ya,yt)}Fn.set($n,ya)}),In||Jt.push(Fn),Ci=Fn,ri=Yi}),yt.length)throw function a(A){return new e.vHH(3502,!1)}();return Jt}function Se(A,P,b,I){switch(P){case"start":A.onStart(()=>I(b&&fe(b,"start",A)));break;case"done":A.onDone(()=>I(b&&fe(b,"done",A)));break;case"destroy":A.onDestroy(()=>I(b&&fe(b,"destroy",A)))}}function fe(A,P,b){const ve=Fe(A.element,A.triggerName,A.fromState,A.toState,P||A.phaseName,b.totalTime??A.totalTime,!!b.disabled),yt=A._data;return null!=yt&&(ve._data=yt),ve}function Fe(A,P,b,I,H="",ve=0,yt){return{element:A,triggerName:P,fromState:b,toState:I,phaseName:H,totalTime:ve,disabled:!!yt}}function oe(A,P,b){let I=A.get(P);return I||A.set(P,I=b),I}function ze(A){const P=A.indexOf(":");return[A.substring(1,P),A.slice(P+1)]}let Oe=(A,P)=>!1,he=(A,P,b)=>[],Ae=null;function ge(A){const P=A.parentNode||A.host;return P===Ae?null:P}(pe()||typeof Element<"u")&&(Ee()?(Ae=(()=>document.documentElement)(),Oe=(A,P)=>{for(;P;){if(P===A)return!0;P=ge(P)}return!1}):Oe=(A,P)=>A.contains(P),he=(A,P,b)=>{if(b)return Array.from(A.querySelectorAll(P));const I=A.querySelector(P);return I?[I]:[]});let Re=null,le=!1;const Gt=Oe,ut=he;let xt=(()=>{class A{validateStyleProperty(b){return function rt(A){Re||(Re=function ct(){return typeof document<"u"?document.body:null}()||{},le=!!Re.style&&"WebkitAppearance"in Re.style);let P=!0;return Re.style&&!function Je(A){return"ebkit"==A.substring(1,6)}(A)&&(P=A in Re.style,!P&&le&&(P="Webkit"+A.charAt(0).toUpperCase()+A.slice(1)in Re.style)),P}(b)}matchesElement(b,I){return!1}containsElement(b,I){return Gt(b,I)}getParentElement(b){return ge(b)}query(b,I,H){return ut(b,I,H)}computeStyle(b,I,H){return H||""}animate(b,I,H,ve,yt,Jt=[],ri){return new g.ZN(H,ve)}}return A.\u0275fac=function(b){return new(b||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac}),A})(),Me=(()=>{class A{}return A.NOOP=new xt,A})();const $e=1e3,mt="ng-enter",Et="ng-leave",at="ng-trigger",je=".ng-trigger",Ht="ng-animating",Ct=".ng-animating";function Nt(A){if("number"==typeof A)return A;const P=A.match(/^(-?[\.\d]+)(m?s)/);return!P||P.length<2?0:Bt(parseFloat(P[1]),P[2])}function Bt(A,P){return"s"===P?A*$e:A}function Ne(A,P,b){return A.hasOwnProperty("duration")?A:function $(A,P,b){let H,ve=0,yt="";if("string"==typeof A){const Jt=A.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Jt)return P.push(s()),{duration:0,delay:0,easing:""};H=Bt(parseFloat(Jt[1]),Jt[2]);const ri=Jt[3];null!=ri&&(ve=Bt(parseFloat(ri),Jt[4]));const Ci=Jt[5];Ci&&(yt=Ci)}else H=A;if(!b){let Jt=!1,ri=P.length;H<0&&(P.push(function x(){return new e.vHH(3100,!1)}()),Jt=!0),ve<0&&(P.push(function h(){return new e.vHH(3101,!1)}()),Jt=!0),Jt&&P.splice(ri,0,s())}return{duration:H,delay:ve,easing:yt}}(A,P,b)}function ue(A,P={}){return Object.keys(A).forEach(b=>{P[b]=A[b]}),P}function Ie(A){const P=new Map;return Object.keys(A).forEach(b=>{P.set(b,A[b])}),P}function zt(A,P=new Map,b){if(b)for(let[I,H]of b)P.set(I,H);for(let[I,H]of A)P.set(I,H);return P}function ni(A,P,b){return b?P+":"+b+";":""}function pt(A){let P="";for(let b=0;b<A.style.length;b++){const I=A.style.item(b);P+=ni(0,I,A.style.getPropertyValue(I))}for(const b in A.style)A.style.hasOwnProperty(b)&&!b.startsWith("_")&&(P+=ni(0,Qt(b),A.style[b]));A.setAttribute("style",P)}function ot(A,P,b){A.style&&(P.forEach((I,H)=>{const ve=Lt(H);b&&!b.has(H)&&b.set(H,A.style[ve]),A.style[ve]=I}),pe()&&pt(A))}function ft(A,P){A.style&&(P.forEach((b,I)=>{const H=Lt(I);A.style[H]=""}),pe()&&pt(A))}function St(A){return Array.isArray(A)?1==A.length?A[0]:(0,g.vP)(A):A}const tt=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(A){let P=[];if("string"==typeof A){let b;for(;b=tt.exec(A);)P.push(b[1]);tt.lastIndex=0}return P}function vt(A,P,b){const I=A.toString(),H=I.replace(tt,(ve,yt)=>{let Jt=P[yt];return null==Jt&&(b.push(function d(A){return new e.vHH(3003,!1)}()),Jt=""),Jt.toString()});return H==I?A:H}function Ve(A){const P=[];let b=A.next();for(;!b.done;)P.push(b.value),b=A.next();return P}const Tt=/-+([a-z0-9])/g;function Lt(A){return A.replace(Tt,(...P)=>P[1].toUpperCase())}function Qt(A){return A.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Si(A,P,b){switch(P.type){case 7:return A.visitTrigger(P,b);case 0:return A.visitState(P,b);case 1:return A.visitTransition(P,b);case 2:return A.visitSequence(P,b);case 3:return A.visitGroup(P,b);case 4:return A.visitAnimate(P,b);case 5:return A.visitKeyframes(P,b);case 6:return A.visitStyle(P,b);case 8:return A.visitReference(P,b);case 9:return A.visitAnimateChild(P,b);case 10:return A.visitAnimateRef(P,b);case 11:return A.visitQuery(P,b);case 12:return A.visitStagger(P,b);default:throw function M(A){return new e.vHH(3004,!1)}()}}function Wi(A,P){return window.getComputedStyle(A)[P]}const Ri="*";function $i(A,P){const b=[];return"string"==typeof A?A.split(/\s*,\s*/).forEach(I=>function nn(A,P,b){if(":"==A[0]){const ri=function Qi(A,P){switch(A){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(b,I)=>parseFloat(I)>parseFloat(b);case":decrement":return(b,I)=>parseFloat(I)<parseFloat(b);default:return P.push(function ce(A){return new e.vHH(3016,!1)}()),"* => *"}}(A,b);if("function"==typeof ri)return void P.push(ri);A=ri}const I=A.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return b.push(function se(A){return new e.vHH(3015,!1)}()),P;const H=I[1],ve=I[2],yt=I[3];P.push(be(H,yt));"<"==ve[0]&&!(H==Ri&&yt==Ri)&&P.push(be(yt,H))}(I,b,P)):b.push(A),b}const Yt=new Set(["true","1"]),Xt=new Set(["false","0"]);function be(A,P){const b=Yt.has(A)||Xt.has(A),I=Yt.has(P)||Xt.has(P);return(H,ve)=>{let yt=A==Ri||A==H,Jt=P==Ri||P==ve;return!yt&&b&&"boolean"==typeof H&&(yt=H?Yt.has(A):Xt.has(A)),!Jt&&I&&"boolean"==typeof ve&&(Jt=ve?Yt.has(P):Xt.has(P)),yt&&Jt}}const Dt=new RegExp("s*:selfs*,?","g");function Ut(A,P,b,I){return new bi(A).build(P,b,I)}class bi{constructor(P){this._driver=P}build(P,b,I){const H=new gi(b);return this._resetContextStyleTimingState(H),Si(this,St(P),H)}_resetContextStyleTimingState(P){P.currentQuerySelector="",P.collectedStyles=new Map,P.collectedStyles.set("",new Map),P.currentTime=0}visitTrigger(P,b){let I=b.queryCount=0,H=b.depCount=0;const ve=[],yt=[];return"@"==P.name.charAt(0)&&b.errors.push(function L(){return new e.vHH(3006,!1)}()),P.definitions.forEach(Jt=>{if(this._resetContextStyleTimingState(b),0==Jt.type){const ri=Jt,Ci=ri.name;Ci.toString().split(/\s*,\s*/).forEach(ji=>{ri.name=ji,ve.push(this.visitState(ri,b))}),ri.name=Ci}else if(1==Jt.type){const ri=this.visitTransition(Jt,b);I+=ri.queryCount,H+=ri.depCount,yt.push(ri)}else b.errors.push(function k(){return new e.vHH(3007,!1)}())}),{type:7,name:P.name,states:ve,transitions:yt,queryCount:I,depCount:H,options:null}}visitState(P,b){const I=this.visitStyle(P.styles,b),H=P.options&&P.options.params||null;if(I.containsDynamicStyles){const ve=new Set,yt=H||{};I.styles.forEach(Jt=>{Jt instanceof Map&&Jt.forEach(ri=>{_t(ri).forEach(Ci=>{yt.hasOwnProperty(Ci)||ve.add(Ci)})})}),ve.size&&(Ve(ve.values()),b.errors.push(function V(A,P){return new e.vHH(3008,!1)}()))}return{type:0,name:P.name,style:I,options:H?{params:H}:null}}visitTransition(P,b){b.queryCount=0,b.depCount=0;const I=Si(this,St(P.animation),b);return{type:1,matchers:$i(P.expr,b.errors),animation:I,queryCount:b.queryCount,depCount:b.depCount,options:An(P.options)}}visitSequence(P,b){return{type:2,steps:P.steps.map(I=>Si(this,I,b)),options:An(P.options)}}visitGroup(P,b){const I=b.currentTime;let H=0;const ve=P.steps.map(yt=>{b.currentTime=I;const Jt=Si(this,yt,b);return H=Math.max(H,b.currentTime),Jt});return b.currentTime=H,{type:3,steps:ve,options:An(P.options)}}visitAnimate(P,b){const I=function Wn(A,P){if(A.hasOwnProperty("duration"))return A;if("number"==typeof A)return oa(Ne(A,P).duration,0,"");const b=A;if(b.split(/\s+/).some(ve=>"{"==ve.charAt(0)&&"{"==ve.charAt(1))){const ve=oa(0,0,"");return ve.dynamic=!0,ve.strValue=b,ve}const H=Ne(b,P);return oa(H.duration,H.delay,H.easing)}(P.timings,b.errors);b.currentAnimateTimings=I;let H,ve=P.styles?P.styles:(0,g.oB)({});if(5==ve.type)H=this.visitKeyframes(ve,b);else{let yt=P.styles,Jt=!1;if(!yt){Jt=!0;const Ci={};I.easing&&(Ci.easing=I.easing),yt=(0,g.oB)(Ci)}b.currentTime+=I.duration+I.delay;const ri=this.visitStyle(yt,b);ri.isEmptyStep=Jt,H=ri}return b.currentAnimateTimings=null,{type:4,timings:I,style:H,options:null}}visitStyle(P,b){const I=this._makeStyleAst(P,b);return this._validateStyleAst(I,b),I}_makeStyleAst(P,b){const I=[],H=Array.isArray(P.styles)?P.styles:[P.styles];for(let Jt of H)"string"==typeof Jt?Jt===g.l3?I.push(Jt):b.errors.push(new e.vHH(3002,!1)):I.push(Ie(Jt));let ve=!1,yt=null;return I.forEach(Jt=>{if(Jt instanceof Map&&(Jt.has("easing")&&(yt=Jt.get("easing"),Jt.delete("easing")),!ve))for(let ri of Jt.values())if(ri.toString().indexOf("{{")>=0){ve=!0;break}}),{type:6,styles:I,easing:yt,offset:P.offset,containsDynamicStyles:ve,options:null}}_validateStyleAst(P,b){const I=b.currentAnimateTimings;let H=b.currentTime,ve=b.currentTime;I&&ve>0&&(ve-=I.duration+I.delay),P.styles.forEach(yt=>{"string"!=typeof yt&&yt.forEach((Jt,ri)=>{const Ci=b.collectedStyles.get(b.currentQuerySelector),ji=Ci.get(ri);let Yi=!0;ji&&(ve!=H&&ve>=ji.startTime&&H<=ji.endTime&&(b.errors.push(function Y(A,P,b,I,H){return new e.vHH(3010,!1)}()),Yi=!1),ve=ji.startTime),Yi&&Ci.set(ri,{startTime:ve,endTime:H}),b.options&&function gt(A,P,b){const I=P.params||{},H=_t(A);H.length&&H.forEach(ve=>{I.hasOwnProperty(ve)||b.push(function N(A){return new e.vHH(3001,!1)}())})}(Jt,b.options,b.errors)})})}visitKeyframes(P,b){const I={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(function Q(){return new e.vHH(3011,!1)}()),I;let ve=0;const yt=[];let Jt=!1,ri=!1,Ci=0;const ji=P.steps.map(ya=>{const Rr=this._makeStyleAst(ya,b);let Io=null!=Rr.offset?Rr.offset:function Zi(A){if("string"==typeof A)return null;let P=null;if(Array.isArray(A))A.forEach(b=>{if(b instanceof Map&&b.has("offset")){const I=b;P=parseFloat(I.get("offset")),I.delete("offset")}});else if(A instanceof Map&&A.has("offset")){const b=A;P=parseFloat(b.get("offset")),b.delete("offset")}return P}(Rr.styles),Wr=0;return null!=Io&&(ve++,Wr=Rr.offset=Io),ri=ri||Wr<0||Wr>1,Jt=Jt||Wr<Ci,Ci=Wr,yt.push(Wr),Rr});ri&&b.errors.push(function X(){return new e.vHH(3012,!1)}()),Jt&&b.errors.push(function ee(){return new e.vHH(3200,!1)}());const Yi=P.steps.length;let In=0;ve>0&&ve<Yi?b.errors.push(function me(){return new e.vHH(3202,!1)}()):0==ve&&(In=1/(Yi-1));const Fn=Yi-1,mn=b.currentTime,Cn=b.currentAnimateTimings,$n=Cn.duration;return ji.forEach((ya,Rr)=>{const Io=In>0?Rr==Fn?1:In*Rr:yt[Rr],Wr=Io*$n;b.currentTime=mn+Cn.delay+Wr,Cn.duration=Wr,this._validateStyleAst(ya,b),ya.offset=Io,I.styles.push(ya)}),I}visitReference(P,b){return{type:8,animation:Si(this,St(P.animation),b),options:An(P.options)}}visitAnimateChild(P,b){return b.depCount++,{type:9,options:An(P.options)}}visitAnimateRef(P,b){return{type:10,animation:this.visitReference(P.animation,b),options:An(P.options)}}visitQuery(P,b){const I=b.currentQuerySelector,H=P.options||{};b.queryCount++,b.currentQuery=P;const[ve,yt]=function li(A){const P=!!A.split(/\s*,\s*/).find(b=>":self"==b);return P&&(A=A.replace(Dt,"")),A=A.replace(/@\*/g,je).replace(/@\w+/g,b=>je+"-"+b.slice(1)).replace(/:animating/g,Ct),[A,P]}(P.selector);b.currentQuerySelector=I.length?I+" "+ve:ve,oe(b.collectedStyles,b.currentQuerySelector,new Map);const Jt=Si(this,St(P.animation),b);return b.currentQuery=null,b.currentQuerySelector=I,{type:11,selector:ve,limit:H.limit||0,optional:!!H.optional,includeSelf:yt,animation:Jt,originalSelector:P.selector,options:An(P.options)}}visitStagger(P,b){b.currentQuery||b.errors.push(function re(){return new e.vHH(3013,!1)}());const I="full"===P.timings?{duration:0,delay:0,easing:"full"}:Ne(P.timings,b.errors,!0);return{type:12,animation:Si(this,St(P.animation),b),timings:I,options:null}}}class gi{constructor(P){this.errors=P,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function An(A){return A?(A=ue(A)).params&&(A.params=function pi(A){return A?ue(A):null}(A.params)):A={},A}function oa(A,P,b){return{duration:A,delay:P,easing:b}}function Aa(A,P,b,I,H,ve,yt=null,Jt=!1){return{type:1,element:A,keyframes:P,preStyleProps:b,postStyleProps:I,duration:H,delay:ve,totalTime:H+ve,easing:yt,subTimeline:Jt}}class ta{constructor(){this._map=new Map}get(P){return this._map.get(P)||[]}append(P,b){let I=this._map.get(P);I||this._map.set(P,I=[]),I.push(...b)}has(P){return this._map.has(P)}clear(){this._map.clear()}}const mi=new RegExp(":enter","g"),oi=new RegExp(":leave","g");function wi(A,P,b,I,H,ve=new Map,yt=new Map,Jt,ri,Ci=[]){return(new Vi).buildKeyframes(A,P,b,I,H,ve,yt,Jt,ri,Ci)}class Vi{buildKeyframes(P,b,I,H,ve,yt,Jt,ri,Ci,ji=[]){Ci=Ci||new ta;const Yi=new Yn(P,b,Ci,H,ve,ji,[]);Yi.options=ri;const In=ri.delay?Nt(ri.delay):0;Yi.currentTimeline.delayNextStep(In),Yi.currentTimeline.setStyles([yt],null,Yi.errors,ri),Si(this,I,Yi);const Fn=Yi.timelines.filter(mn=>mn.containsAnimation());if(Fn.length&&Jt.size){let mn;for(let Cn=Fn.length-1;Cn>=0;Cn--){const $n=Fn[Cn];if($n.element===b){mn=$n;break}}mn&&!mn.allowOnlyTimelineStyles()&&mn.setStyles([Jt],null,Yi.errors,ri)}return Fn.length?Fn.map(mn=>mn.buildKeyframes()):[Aa(b,[],[],[],0,In,"",!1)]}visitTrigger(P,b){}visitState(P,b){}visitTransition(P,b){}visitAnimateChild(P,b){const I=b.subInstructions.get(b.element);if(I){const H=b.createSubContext(P.options),ve=b.currentTimeline.currentTime,yt=this._visitSubInstructions(I,H,H.options);ve!=yt&&b.transformIntoNewTimeline(yt)}b.previousNode=P}visitAnimateRef(P,b){const I=b.createSubContext(P.options);I.transformIntoNewTimeline(),this._applyAnimationRefDelays([P.options,P.animation.options],b,I),this.visitReference(P.animation,I),b.transformIntoNewTimeline(I.currentTimeline.currentTime),b.previousNode=P}_applyAnimationRefDelays(P,b,I){for(const H of P){const ve=H?.delay;if(ve){const yt="number"==typeof ve?ve:Nt(vt(ve,H?.params??{},b.errors));I.delayNextStep(yt)}}}_visitSubInstructions(P,b,I){let ve=b.currentTimeline.currentTime;const yt=null!=I.duration?Nt(I.duration):null,Jt=null!=I.delay?Nt(I.delay):null;return 0!==yt&&P.forEach(ri=>{const Ci=b.appendInstructionToTimeline(ri,yt,Jt);ve=Math.max(ve,Ci.duration+Ci.delay)}),ve}visitReference(P,b){b.updateOptions(P.options,!0),Si(this,P.animation,b),b.previousNode=P}visitSequence(P,b){const I=b.subContextCount;let H=b;const ve=P.options;if(ve&&(ve.params||ve.delay)&&(H=b.createSubContext(ve),H.transformIntoNewTimeline(),null!=ve.delay)){6==H.previousNode.type&&(H.currentTimeline.snapshotCurrentStyles(),H.previousNode=ln);const yt=Nt(ve.delay);H.delayNextStep(yt)}P.steps.length&&(P.steps.forEach(yt=>Si(this,yt,H)),H.currentTimeline.applyStylesToKeyframe(),H.subContextCount>I&&H.transformIntoNewTimeline()),b.previousNode=P}visitGroup(P,b){const I=[];let H=b.currentTimeline.currentTime;const ve=P.options&&P.options.delay?Nt(P.options.delay):0;P.steps.forEach(yt=>{const Jt=b.createSubContext(P.options);ve&&Jt.delayNextStep(ve),Si(this,yt,Jt),H=Math.max(H,Jt.currentTimeline.currentTime),I.push(Jt.currentTimeline)}),I.forEach(yt=>b.currentTimeline.mergeTimelineCollectedStyles(yt)),b.transformIntoNewTimeline(H),b.previousNode=P}_visitTiming(P,b){if(P.dynamic){const I=P.strValue;return Ne(b.params?vt(I,b.params,b.errors):I,b.errors)}return{duration:P.duration,delay:P.delay,easing:P.easing}}visitAnimate(P,b){const I=b.currentAnimateTimings=this._visitTiming(P.timings,b),H=b.currentTimeline;I.delay&&(b.incrementTime(I.delay),H.snapshotCurrentStyles());const ve=P.style;5==ve.type?this.visitKeyframes(ve,b):(b.incrementTime(I.duration),this.visitStyle(ve,b),H.applyStylesToKeyframe()),b.currentAnimateTimings=null,b.previousNode=P}visitStyle(P,b){const I=b.currentTimeline,H=b.currentAnimateTimings;!H&&I.hasCurrentStyleProperties()&&I.forwardFrame();const ve=H&&H.easing||P.easing;P.isEmptyStep?I.applyEmptyStep(ve):I.setStyles(P.styles,ve,b.errors,b.options),b.previousNode=P}visitKeyframes(P,b){const I=b.currentAnimateTimings,H=b.currentTimeline.duration,ve=I.duration,Jt=b.createSubContext().currentTimeline;Jt.easing=I.easing,P.styles.forEach(ri=>{Jt.forwardTime((ri.offset||0)*ve),Jt.setStyles(ri.styles,ri.easing,b.errors,b.options),Jt.applyStylesToKeyframe()}),b.currentTimeline.mergeTimelineCollectedStyles(Jt),b.transformIntoNewTimeline(H+ve),b.previousNode=P}visitQuery(P,b){const I=b.currentTimeline.currentTime,H=P.options||{},ve=H.delay?Nt(H.delay):0;ve&&(6===b.previousNode.type||0==I&&b.currentTimeline.hasCurrentStyleProperties())&&(b.currentTimeline.snapshotCurrentStyles(),b.previousNode=ln);let yt=I;const Jt=b.invokeQuery(P.selector,P.originalSelector,P.limit,P.includeSelf,!!H.optional,b.errors);b.currentQueryTotal=Jt.length;let ri=null;Jt.forEach((Ci,ji)=>{b.currentQueryIndex=ji;const Yi=b.createSubContext(P.options,Ci);ve&&Yi.delayNextStep(ve),Ci===b.element&&(ri=Yi.currentTimeline),Si(this,P.animation,Yi),Yi.currentTimeline.applyStylesToKeyframe(),yt=Math.max(yt,Yi.currentTimeline.currentTime)}),b.currentQueryIndex=0,b.currentQueryTotal=0,b.transformIntoNewTimeline(yt),ri&&(b.currentTimeline.mergeTimelineCollectedStyles(ri),b.currentTimeline.snapshotCurrentStyles()),b.previousNode=P}visitStagger(P,b){const I=b.parentContext,H=b.currentTimeline,ve=P.timings,yt=Math.abs(ve.duration),Jt=yt*(b.currentQueryTotal-1);let ri=yt*b.currentQueryIndex;switch(ve.duration<0?"reverse":ve.easing){case"reverse":ri=Jt-ri;break;case"full":ri=I.currentStaggerTime}const ji=b.currentTimeline;ri&&ji.delayNextStep(ri);const Yi=ji.currentTime;Si(this,P.animation,b),b.previousNode=P,I.currentStaggerTime=H.currentTime-Yi+(H.startTime-I.currentTimeline.startTime)}}const ln={};class Yn{constructor(P,b,I,H,ve,yt,Jt,ri){this._driver=P,this.element=b,this.subInstructions=I,this._enterClassName=H,this._leaveClassName=ve,this.errors=yt,this.timelines=Jt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ln,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ri||new Bn(this._driver,b,0),Jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(P,b){if(!P)return;const I=P;let H=this.options;null!=I.duration&&(H.duration=Nt(I.duration)),null!=I.delay&&(H.delay=Nt(I.delay));const ve=I.params;if(ve){let yt=H.params;yt||(yt=this.options.params={}),Object.keys(ve).forEach(Jt=>{(!b||!yt.hasOwnProperty(Jt))&&(yt[Jt]=vt(ve[Jt],yt,this.errors))})}}_copyOptions(){const P={};if(this.options){const b=this.options.params;if(b){const I=P.params={};Object.keys(b).forEach(H=>{I[H]=b[H]})}}return P}createSubContext(P=null,b,I){const H=b||this.element,ve=new Yn(this._driver,H,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(H,I||0));return ve.previousNode=this.previousNode,ve.currentAnimateTimings=this.currentAnimateTimings,ve.options=this._copyOptions(),ve.updateOptions(P),ve.currentQueryIndex=this.currentQueryIndex,ve.currentQueryTotal=this.currentQueryTotal,ve.parentContext=this,this.subContextCount++,ve}transformIntoNewTimeline(P){return this.previousNode=ln,this.currentTimeline=this.currentTimeline.fork(this.element,P),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(P,b,I){const H={duration:b??P.duration,delay:this.currentTimeline.currentTime+(I??0)+P.delay,easing:""},ve=new _a(this._driver,P.element,P.keyframes,P.preStyleProps,P.postStyleProps,H,P.stretchStartingKeyframe);return this.timelines.push(ve),H}incrementTime(P){this.currentTimeline.forwardTime(this.currentTimeline.duration+P)}delayNextStep(P){P>0&&this.currentTimeline.delayNextStep(P)}invokeQuery(P,b,I,H,ve,yt){let Jt=[];if(H&&Jt.push(this.element),P.length>0){P=(P=P.replace(mi,"."+this._enterClassName)).replace(oi,"."+this._leaveClassName);let Ci=this._driver.query(this.element,P,1!=I);0!==I&&(Ci=I<0?Ci.slice(Ci.length+I,Ci.length):Ci.slice(0,I)),Jt.push(...Ci)}return!ve&&0==Jt.length&&yt.push(function ie(A){return new e.vHH(3014,!1)}()),Jt}}class Bn{constructor(P,b,I,H){this._driver=P,this.element=b,this.startTime=I,this._elementTimelineStylesLookup=H,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(b),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(b,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(P){const b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(this.forwardTime(this.currentTime+P),b&&this.snapshotCurrentStyles()):this.startTime+=P}fork(P,b){return this.applyStylesToKeyframe(),new Bn(this._driver,P,b||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(P){this.applyStylesToKeyframe(),this.duration=P,this._loadKeyframe()}_updateStyle(P,b){this._localTimelineStyles.set(P,b),this._globalTimelineStyles.set(P,b),this._styleSummary.set(P,{time:this.currentTime,value:b})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(P){P&&this._previousKeyframe.set("easing",P);for(let[b,I]of this._globalTimelineStyles)this._backFill.set(b,I||g.l3),this._currentKeyframe.set(b,g.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(P,b,I,H){b&&this._previousKeyframe.set("easing",b);const ve=H&&H.params||{},yt=function Gn(A,P){const b=new Map;let I;return A.forEach(H=>{if("*"===H){I=I||P.keys();for(let ve of I)b.set(ve,g.l3)}else zt(H,b)}),b}(P,this._globalTimelineStyles);for(let[Jt,ri]of yt){const Ci=vt(ri,ve,I);this._pendingStyles.set(Jt,Ci),this._localTimelineStyles.has(Jt)||this._backFill.set(Jt,this._globalTimelineStyles.get(Jt)??g.l3),this._updateStyle(Jt,Ci)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((P,b)=>{this._currentKeyframe.set(b,P)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((P,b)=>{this._currentKeyframe.has(b)||this._currentKeyframe.set(b,P)}))}snapshotCurrentStyles(){for(let[P,b]of this._localTimelineStyles)this._pendingStyles.set(P,b),this._updateStyle(P,b)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const P=[];for(let b in this._currentKeyframe)P.push(b);return P}mergeTimelineCollectedStyles(P){P._styleSummary.forEach((b,I)=>{const H=this._styleSummary.get(I);(!H||b.time>H.time)&&this._updateStyle(I,b.value)})}buildKeyframes(){this.applyStylesToKeyframe();const P=new Set,b=new Set,I=1===this._keyframes.size&&0===this.duration;let H=[];this._keyframes.forEach((Jt,ri)=>{const Ci=zt(Jt,new Map,this._backFill);Ci.forEach((ji,Yi)=>{ji===g.k1?P.add(Yi):ji===g.l3&&b.add(Yi)}),I||Ci.set("offset",ri/this.duration),H.push(Ci)});const ve=P.size?Ve(P.values()):[],yt=b.size?Ve(b.values()):[];if(I){const Jt=H[0],ri=new Map(Jt);Jt.set("offset",0),ri.set("offset",1),H=[Jt,ri]}return Aa(this.element,H,ve,yt,this.duration,this.startTime,this.easing,!1)}}class _a extends Bn{constructor(P,b,I,H,ve,yt,Jt=!1){super(P,b,yt.delay),this.keyframes=I,this.preStyleProps=H,this.postStyleProps=ve,this._stretchStartingKeyframe=Jt,this.timings={duration:yt.duration,delay:yt.delay,easing:yt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let P=this.keyframes,{delay:b,duration:I,easing:H}=this.timings;if(this._stretchStartingKeyframe&&b){const ve=[],yt=I+b,Jt=b/yt,ri=zt(P[0]);ri.set("offset",0),ve.push(ri);const Ci=zt(P[0]);Ci.set("offset",Ln(Jt)),ve.push(Ci);const ji=P.length-1;for(let Yi=1;Yi<=ji;Yi++){let In=zt(P[Yi]);const Fn=In.get("offset");In.set("offset",Ln((b+Fn*I)/yt)),ve.push(In)}I=yt,b=0,H="",P=ve}return Aa(this.element,P,this.preStyleProps,this.postStyleProps,I,b,H,!0)}}function Ln(A,P=3){const b=Math.pow(10,P-1);return Math.round(A*b)/b}class Un{}const wo=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Fr extends Un{normalizePropertyName(P,b){return Lt(P)}normalizeStyleValue(P,b,I,H){let ve="";const yt=I.toString().trim();if(wo.has(b)&&0!==I&&"0"!==I)if("number"==typeof I)ve="px";else{const Jt=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Jt&&0==Jt[1].length&&H.push(function w(A,P){return new e.vHH(3005,!1)}())}return yt+ve}}function Tr(A,P,b,I,H,ve,yt,Jt,ri,Ci,ji,Yi,In){return{type:0,element:A,triggerName:P,isRemovalTransition:H,fromState:b,fromStyles:ve,toState:I,toStyles:yt,timelines:Jt,queriedElements:ri,preStyleProps:Ci,postStyleProps:ji,totalTime:Yi,errors:In}}const jn={};class La{constructor(P,b,I){this._triggerName=P,this.ast=b,this._stateStyles=I}match(P,b,I,H){return function Hr(A,P,b,I,H){return A.some(ve=>ve(P,b,I,H))}(this.ast.matchers,P,b,I,H)}buildStyles(P,b,I){let H=this._stateStyles.get("*");return void 0!==P&&(H=this._stateStyles.get(P?.toString())||H),H?H.buildStyles(b,I):new Map}build(P,b,I,H,ve,yt,Jt,ri,Ci,ji){const Yi=[],In=this.ast.options&&this.ast.options.params||jn,mn=this.buildStyles(I,Jt&&Jt.params||jn,Yi),Cn=ri&&ri.params||jn,$n=this.buildStyles(H,Cn,Yi),ya=new Set,Rr=new Map,Io=new Map,Wr="void"===H,Hl={params:zr(Cn,In),delay:this.ast.options?.delay},ws=ji?[]:wi(P,b,this.ast.animation,ve,yt,mn,$n,Hl,Ci,Yi);let _o=0;if(ws.forEach(Ms=>{_o=Math.max(Ms.duration+Ms.delay,_o)}),Yi.length)return Tr(b,this._triggerName,I,H,Wr,mn,$n,[],[],Rr,Io,_o,Yi);ws.forEach(Ms=>{const Gs=Ms.element,Xu=oe(Rr,Gs,new Set);Ms.preStyleProps.forEach(lc=>Xu.add(lc));const c2=oe(Io,Gs,new Set);Ms.postStyleProps.forEach(lc=>c2.add(lc)),Gs!==b&&ya.add(Gs)});const cc=Ve(ya.values());return Tr(b,this._triggerName,I,H,Wr,mn,$n,ws,cc,Rr,Io,_o)}}function zr(A,P){const b=ue(P);for(const I in A)A.hasOwnProperty(I)&&null!=A[I]&&(b[I]=A[I]);return b}class qr{constructor(P,b,I){this.styles=P,this.defaultParams=b,this.normalizer=I}buildStyles(P,b){const I=new Map,H=ue(this.defaultParams);return Object.keys(P).forEach(ve=>{const yt=P[ve];null!==yt&&(H[ve]=yt)}),this.styles.styles.forEach(ve=>{"string"!=typeof ve&&ve.forEach((yt,Jt)=>{yt&&(yt=vt(yt,H,b));const ri=this.normalizer.normalizePropertyName(Jt,b);yt=this.normalizer.normalizeStyleValue(Jt,ri,yt,b),I.set(Jt,yt)})}),I}}class Ma{constructor(P,b,I){this.name=P,this.ast=b,this._normalizer=I,this.transitionFactories=[],this.states=new Map,b.states.forEach(H=>{this.states.set(H.name,new qr(H.style,H.options&&H.options.params||{},I))}),ao(this.states,"true","1"),ao(this.states,"false","0"),b.transitions.forEach(H=>{this.transitionFactories.push(new La(P,H,this.states))}),this.fallbackTransition=function Ro(A,P,b){return new La(A,{type:1,animation:{type:2,steps:[],options:null},matchers:[(yt,Jt)=>!0],options:null,queryCount:0,depCount:0},P)}(P,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(P,b,I,H){return this.transitionFactories.find(yt=>yt.match(P,b,I,H))||null}matchStyles(P,b,I){return this.fallbackTransition.buildStyles(P,b,I)}}function ao(A,P,b){A.has(P)?A.has(b)||A.set(b,A.get(P)):A.has(b)&&A.set(P,A.get(b))}const Jr=new ta;class _r{constructor(P,b,I){this.bodyNode=P,this._driver=b,this._normalizer=I,this._animations=new Map,this._playersById=new Map,this.players=[]}register(P,b){const I=[],H=[],ve=Ut(this._driver,b,I,H);if(I.length)throw function u(A){return new e.vHH(3503,!1)}();this._animations.set(P,ve)}_buildPlayer(P,b,I){const H=P.element,ve=Ce(0,this._normalizer,0,P.keyframes,b,I);return this._driver.animate(H,ve,P.duration,P.delay,P.easing,[],!0)}create(P,b,I={}){const H=[],ve=this._animations.get(P);let yt;const Jt=new Map;if(ve?(yt=wi(this._driver,b,ve,mt,Et,new Map,new Map,I,Jr,H),yt.forEach(ji=>{const Yi=oe(Jt,ji.element,new Map);ji.postStyleProps.forEach(In=>Yi.set(In,null))})):(H.push(function l(){return new e.vHH(3300,!1)}()),yt=[]),H.length)throw function _(A){return new e.vHH(3504,!1)}();Jt.forEach((ji,Yi)=>{ji.forEach((In,Fn)=>{ji.set(Fn,this._driver.computeStyle(Yi,Fn,g.l3))})});const Ci=qe(yt.map(ji=>{const Yi=Jt.get(ji.element);return this._buildPlayer(ji,new Map,Yi)}));return this._playersById.set(P,Ci),Ci.onDestroy(()=>this.destroy(P)),this.players.push(Ci),Ci}destroy(P){const b=this._getPlayer(P);b.destroy(),this._playersById.delete(P);const I=this.players.indexOf(b);I>=0&&this.players.splice(I,1)}_getPlayer(P){const b=this._playersById.get(P);if(!b)throw function O(A){return new e.vHH(3301,!1)}();return b}listen(P,b,I,H){const ve=Fe(b,"","","");return Se(this._getPlayer(P),I,ve,H),()=>{}}command(P,b,I,H){if("register"==I)return void this.register(P,H[0]);if("create"==I)return void this.create(P,b,H[0]||{});const ve=this._getPlayer(P);switch(I){case"play":ve.play();break;case"pause":ve.pause();break;case"reset":ve.reset();break;case"restart":ve.restart();break;case"finish":ve.finish();break;case"init":ve.init();break;case"setPosition":ve.setPosition(parseFloat(H[0]));break;case"destroy":this.destroy(P)}}}const dr="ng-animate-queued",oo="ng-animate-disabled",Vr=[],Qa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Br={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sa="__ng_removed";class Wa{get params(){return this.options.params}constructor(P,b=""){this.namespaceId=b;const I=P&&P.hasOwnProperty("value");if(this.value=function eo(A){return A??null}(I?P.value:P),I){const ve=ue(P);delete ve.value,this.options=ve}else this.options={};this.options.params||(this.options.params={})}absorbOptions(P){const b=P.params;if(b){const I=this.options.params;Object.keys(b).forEach(H=>{null==I[H]&&(I[H]=b[H])})}}}const hr="void",vr=new Wa(hr);class Er{constructor(P,b,I){this.id=P,this.hostElement=b,this._engine=I,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+P,qn(b,this._hostClassName)}listen(P,b,I,H){if(!this._triggers.has(b))throw function R(A,P){return new e.vHH(3302,!1)}();if(null==I||0==I.length)throw function C(A){return new e.vHH(3303,!1)}();if(!function Ho(A){return"start"==A||"done"==A}(I))throw function n(A,P){return new e.vHH(3400,!1)}();const ve=oe(this._elementListeners,P,[]),yt={name:b,phase:I,callback:H};ve.push(yt);const Jt=oe(this._engine.statesByElement,P,new Map);return Jt.has(b)||(qn(P,at),qn(P,at+"-"+b),Jt.set(b,vr)),()=>{this._engine.afterFlush(()=>{const ri=ve.indexOf(yt);ri>=0&&ve.splice(ri,1),this._triggers.has(b)||Jt.delete(b)})}}register(P,b){return!this._triggers.has(P)&&(this._triggers.set(P,b),!0)}_getTrigger(P){const b=this._triggers.get(P);if(!b)throw function v(A){return new e.vHH(3401,!1)}();return b}trigger(P,b,I,H=!0){const ve=this._getTrigger(b),yt=new so(this.id,b,P);let Jt=this._engine.statesByElement.get(P);Jt||(qn(P,at),qn(P,at+"-"+b),this._engine.statesByElement.set(P,Jt=new Map));let ri=Jt.get(b);const Ci=new Wa(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&ri&&Ci.absorbOptions(ri.options),Jt.set(b,Ci),ri||(ri=vr),Ci.value!==hr&&ri.value===Ci.value){if(!function zo(A,P){const b=Object.keys(A),I=Object.keys(P);if(b.length!=I.length)return!1;for(let H=0;H<b.length;H++){const ve=b[H];if(!P.hasOwnProperty(ve)||A[ve]!==P[ve])return!1}return!0}(ri.params,Ci.params)){const Cn=[],$n=ve.matchStyles(ri.value,ri.params,Cn),ya=ve.matchStyles(Ci.value,Ci.params,Cn);Cn.length?this._engine.reportError(Cn):this._engine.afterFlush(()=>{ft(P,$n),ot(P,ya)})}return}const In=oe(this._engine.playersByElement,P,[]);In.forEach(Cn=>{Cn.namespaceId==this.id&&Cn.triggerName==b&&Cn.queued&&Cn.destroy()});let Fn=ve.matchTransition(ri.value,Ci.value,P,Ci.params),mn=!1;if(!Fn){if(!H)return;Fn=ve.fallbackTransition,mn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:P,triggerName:b,transition:Fn,fromState:ri,toState:Ci,player:yt,isFallbackTransition:mn}),mn||(qn(P,dr),yt.onStart(()=>{kn(P,dr)})),yt.onDone(()=>{let Cn=this.players.indexOf(yt);Cn>=0&&this.players.splice(Cn,1);const $n=this._engine.playersByElement.get(P);if($n){let ya=$n.indexOf(yt);ya>=0&&$n.splice(ya,1)}}),this.players.push(yt),In.push(yt),yt}deregister(P){this._triggers.delete(P),this._engine.statesByElement.forEach(b=>b.delete(P)),this._elementListeners.forEach((b,I)=>{this._elementListeners.set(I,b.filter(H=>H.name!=P))})}clearElementCache(P){this._engine.statesByElement.delete(P),this._elementListeners.delete(P);const b=this._engine.playersByElement.get(P);b&&(b.forEach(I=>I.destroy()),this._engine.playersByElement.delete(P))}_signalRemovalForInnerTriggers(P,b){const I=this._engine.driver.query(P,je,!0);I.forEach(H=>{if(H[sa])return;const ve=this._engine.fetchNamespacesByElement(H);ve.size?ve.forEach(yt=>yt.triggerLeaveAnimation(H,b,!1,!0)):this.clearElementCache(H)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(H=>this.clearElementCache(H)))}triggerLeaveAnimation(P,b,I,H){const ve=this._engine.statesByElement.get(P),yt=new Map;if(ve){const Jt=[];if(ve.forEach((ri,Ci)=>{if(yt.set(Ci,ri.value),this._triggers.has(Ci)){const ji=this.trigger(P,Ci,hr,H);ji&&Jt.push(ji)}}),Jt.length)return this._engine.markElementAsRemoved(this.id,P,!0,b,yt),I&&qe(Jt).onDone(()=>this._engine.processLeaveNode(P)),!0}return!1}prepareLeaveAnimationListeners(P){const b=this._elementListeners.get(P),I=this._engine.statesByElement.get(P);if(b&&I){const H=new Set;b.forEach(ve=>{const yt=ve.name;if(H.has(yt))return;H.add(yt);const ri=this._triggers.get(yt).fallbackTransition,Ci=I.get(yt)||vr,ji=new Wa(hr),Yi=new so(this.id,yt,P);this._engine.totalQueuedPlayers++,this._queue.push({element:P,triggerName:yt,transition:ri,fromState:Ci,toState:ji,player:Yi,isFallbackTransition:!0})})}}removeNode(P,b){const I=this._engine;if(P.childElementCount&&this._signalRemovalForInnerTriggers(P,b),this.triggerLeaveAnimation(P,b,!0))return;let H=!1;if(I.totalAnimations){const ve=I.players.length?I.playersByQueriedElement.get(P):[];if(ve&&ve.length)H=!0;else{let yt=P;for(;yt=yt.parentNode;)if(I.statesByElement.get(yt)){H=!0;break}}}if(this.prepareLeaveAnimationListeners(P),H)I.markElementAsRemoved(this.id,P,!1,b);else{const ve=P[sa];(!ve||ve===Qa)&&(I.afterFlush(()=>this.clearElementCache(P)),I.destroyInnerAnimations(P),I._onRemovalComplete(P,b))}}insertNode(P,b){qn(P,this._hostClassName)}drainQueuedTransitions(P){const b=[];return this._queue.forEach(I=>{const H=I.player;if(H.destroyed)return;const ve=I.element,yt=this._elementListeners.get(ve);yt&&yt.forEach(Jt=>{if(Jt.name==I.triggerName){const ri=Fe(ve,I.triggerName,I.fromState.value,I.toState.value);ri._data=P,Se(I.player,Jt.phase,ri,Jt.callback)}}),H.markedForDestroy?this._engine.afterFlush(()=>{H.destroy()}):b.push(I)}),this._queue=[],b.sort((I,H)=>{const ve=I.transition.ast.depCount,yt=H.transition.ast.depCount;return 0==ve||0==yt?ve-yt:this._engine.driver.containsElement(I.element,H.element)?1:-1})}destroy(P){this.players.forEach(b=>b.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,P)}elementContainsData(P){let b=!1;return this._elementListeners.has(P)&&(b=!0),b=!!this._queue.find(I=>I.element===P)||b,b}}class Fo{_onRemovalComplete(P,b){this.onRemovalComplete(P,b)}constructor(P,b,I){this.bodyNode=P,this.driver=b,this._normalizer=I,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=(H,ve)=>{}}get queuedPlayers(){const P=[];return this._namespaceList.forEach(b=>{b.players.forEach(I=>{I.queued&&P.push(I)})}),P}createNamespace(P,b){const I=new Er(P,b,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,b)?this._balanceNamespaceList(I,b):(this.newHostElements.set(b,I),this.collectEnterElement(b)),this._namespaceLookup[P]=I}_balanceNamespaceList(P,b){const I=this._namespaceList,H=this.namespacesByHostElement;if(I.length-1>=0){let yt=!1,Jt=this.driver.getParentElement(b);for(;Jt;){const ri=H.get(Jt);if(ri){const Ci=I.indexOf(ri);I.splice(Ci+1,0,P),yt=!0;break}Jt=this.driver.getParentElement(Jt)}yt||I.unshift(P)}else I.push(P);return H.set(b,P),P}register(P,b){let I=this._namespaceLookup[P];return I||(I=this.createNamespace(P,b)),I}registerTrigger(P,b,I){let H=this._namespaceLookup[P];H&&H.register(b,I)&&this.totalAnimations++}destroy(P,b){if(!P)return;const I=this._fetchNamespace(P);this.afterFlush(()=>{this.namespacesByHostElement.delete(I.hostElement),delete this._namespaceLookup[P];const H=this._namespaceList.indexOf(I);H>=0&&this._namespaceList.splice(H,1)}),this.afterFlushAnimationsDone(()=>I.destroy(b))}_fetchNamespace(P){return this._namespaceLookup[P]}fetchNamespacesByElement(P){const b=new Set,I=this.statesByElement.get(P);if(I)for(let H of I.values())if(H.namespaceId){const ve=this._fetchNamespace(H.namespaceId);ve&&b.add(ve)}return b}trigger(P,b,I,H){if(ur(b)){const ve=this._fetchNamespace(P);if(ve)return ve.trigger(b,I,H),!0}return!1}insertNode(P,b,I,H){if(!ur(b))return;const ve=b[sa];if(ve&&ve.setForRemoval){ve.setForRemoval=!1,ve.setForMove=!0;const yt=this.collectedLeaveElements.indexOf(b);yt>=0&&this.collectedLeaveElements.splice(yt,1)}if(P){const yt=this._fetchNamespace(P);yt&&yt.insertNode(b,I)}H&&this.collectEnterElement(b)}collectEnterElement(P){this.collectedEnterElements.push(P)}markElementAsDisabled(P,b){b?this.disabledNodes.has(P)||(this.disabledNodes.add(P),qn(P,oo)):this.disabledNodes.has(P)&&(this.disabledNodes.delete(P),kn(P,oo))}removeNode(P,b,I,H){if(ur(b)){const ve=P?this._fetchNamespace(P):null;if(ve?ve.removeNode(b,H):this.markElementAsRemoved(P,b,!1,H),I){const yt=this.namespacesByHostElement.get(b);yt&&yt.id!==P&&yt.removeNode(b,H)}}else this._onRemovalComplete(b,H)}markElementAsRemoved(P,b,I,H,ve){this.collectedLeaveElements.push(b),b[sa]={namespaceId:P,setForRemoval:H,hasAnimation:I,removedBeforeQueried:!1,previousTriggersValues:ve}}listen(P,b,I,H,ve){return ur(b)?this._fetchNamespace(P).listen(b,I,H,ve):()=>{}}_buildInstruction(P,b,I,H,ve){return P.transition.build(this.driver,P.element,P.fromState.value,P.toState.value,I,H,P.fromState.options,P.toState.options,b,ve)}destroyInnerAnimations(P){let b=this.driver.query(P,je,!0);b.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(b=this.driver.query(P,Ct,!0),b.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(P){const b=this.playersByElement.get(P);b&&b.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(P){const b=this.playersByQueriedElement.get(P);b&&b.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(P=>{if(this.players.length)return qe(this.players).onDone(()=>P());P()})}processLeaveNode(P){const b=P[sa];if(b&&b.setForRemoval){if(P[sa]=Qa,b.namespaceId){this.destroyInnerAnimations(P);const I=this._fetchNamespace(b.namespaceId);I&&I.clearElementCache(P)}this._onRemovalComplete(P,b.setForRemoval)}P.classList?.contains(oo)&&this.markElementAsDisabled(P,!1),this.driver.query(P,".ng-animate-disabled",!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(P=-1){let b=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,H)=>this._balanceNamespaceList(I,H)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;I<this.collectedEnterElements.length;I++)qn(this.collectedEnterElements[I],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const I=[];try{b=this._flushAnimations(I,P)}finally{for(let H=0;H<I.length;H++)I[H]()}}else for(let I=0;I<this.collectedLeaveElements.length;I++)this.processLeaveNode(this.collectedLeaveElements[I]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(I=>I()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],b.length?qe(b).onDone(()=>{I.forEach(H=>H())}):I.forEach(H=>H())}}reportError(P){throw function K(A){return new e.vHH(3402,!1)}()}_flushAnimations(P,b){const I=new ta,H=[],ve=new Map,yt=[],Jt=new Map,ri=new Map,Ci=new Map,ji=new Set;this.disabledNodes.forEach(_n=>{ji.add(_n);const wn=this.driver.query(_n,".ng-animate-queued",!0);for(let Sn=0;Sn<wn.length;Sn++)ji.add(wn[Sn])});const Yi=this.bodyNode,In=Array.from(this.statesByElement.keys()),Fn=Ar(In,this.collectedEnterElements),mn=new Map;let Cn=0;Fn.forEach((_n,wn)=>{const Sn=mt+Cn++;mn.set(wn,Sn),_n.forEach(ra=>qn(ra,Sn))});const $n=[],ya=new Set,Rr=new Set;for(let _n=0;_n<this.collectedLeaveElements.length;_n++){const wn=this.collectedLeaveElements[_n],Sn=wn[sa];Sn&&Sn.setForRemoval&&($n.push(wn),ya.add(wn),Sn.hasAnimation?this.driver.query(wn,".ng-star-inserted",!0).forEach(ra=>ya.add(ra)):Rr.add(wn))}const Io=new Map,Wr=Ar(In,Array.from(ya));Wr.forEach((_n,wn)=>{const Sn=Et+Cn++;Io.set(wn,Sn),_n.forEach(ra=>qn(ra,Sn))}),P.push(()=>{Fn.forEach((_n,wn)=>{const Sn=mn.get(wn);_n.forEach(ra=>kn(ra,Sn))}),Wr.forEach((_n,wn)=>{const Sn=Io.get(wn);_n.forEach(ra=>kn(ra,Sn))}),$n.forEach(_n=>{this.processLeaveNode(_n)})});const Hl=[],ws=[];for(let _n=this._namespaceList.length-1;_n>=0;_n--)this._namespaceList[_n].drainQueuedTransitions(b).forEach(Sn=>{const ra=Sn.player,Oa=Sn.element;if(Hl.push(ra),this.collectedEnterElements.length){const cr=Oa[sa];if(cr&&cr.setForMove){if(cr.previousTriggersValues&&cr.previousTriggersValues.has(Sn.triggerName)){const os=cr.previousTriggersValues.get(Sn.triggerName),Yr=this.statesByElement.get(Sn.element);if(Yr&&Yr.has(Sn.triggerName)){const dc=Yr.get(Sn.triggerName);dc.value=os,Yr.set(Sn.triggerName,dc)}}return void ra.destroy()}}const ko=!Yi||!this.driver.containsElement(Yi,Oa),Ta=Io.get(Oa),Go=mn.get(Oa),Pa=this._buildInstruction(Sn,I,Go,Ta,ko);if(Pa.errors&&Pa.errors.length)return void ws.push(Pa);if(ko)return ra.onStart(()=>ft(Oa,Pa.fromStyles)),ra.onDestroy(()=>ot(Oa,Pa.toStyles)),void H.push(ra);if(Sn.isFallbackTransition)return ra.onStart(()=>ft(Oa,Pa.fromStyles)),ra.onDestroy(()=>ot(Oa,Pa.toStyles)),void H.push(ra);const Jo=[];Pa.timelines.forEach(cr=>{cr.stretchStartingKeyframe=!0,this.disabledNodes.has(cr.element)||Jo.push(cr)}),Pa.timelines=Jo,I.append(Oa,Pa.timelines),yt.push({instruction:Pa,player:ra,element:Oa}),Pa.queriedElements.forEach(cr=>oe(Jt,cr,[]).push(ra)),Pa.preStyleProps.forEach((cr,os)=>{if(cr.size){let Yr=ri.get(os);Yr||ri.set(os,Yr=new Set),cr.forEach((dc,Rc)=>Yr.add(Rc))}}),Pa.postStyleProps.forEach((cr,os)=>{let Yr=Ci.get(os);Yr||Ci.set(os,Yr=new Set),cr.forEach((dc,Rc)=>Yr.add(Rc))})});if(ws.length){const _n=[];ws.forEach(wn=>{_n.push(function G(A,P){return new e.vHH(3505,!1)}())}),Hl.forEach(wn=>wn.destroy()),this.reportError(_n)}const _o=new Map,cc=new Map;yt.forEach(_n=>{const wn=_n.element;I.has(wn)&&(cc.set(wn,wn),this._beforeAnimationBuild(_n.player.namespaceId,_n.instruction,_o))}),H.forEach(_n=>{const wn=_n.element;this._getPreviousPlayers(wn,!1,_n.namespaceId,_n.triggerName,null).forEach(ra=>{oe(_o,wn,[]).push(ra),ra.destroy()})});const Ms=$n.filter(_n=>Ft(_n,ri,Ci)),Gs=new Map;Ya(Gs,this.driver,Rr,Ci,g.l3).forEach(_n=>{Ft(_n,ri,Ci)&&Ms.push(_n)});const c2=new Map;Fn.forEach((_n,wn)=>{Ya(c2,this.driver,new Set(_n),ri,g.k1)}),Ms.forEach(_n=>{const wn=Gs.get(_n),Sn=c2.get(_n);Gs.set(_n,new Map([...Array.from(wn?.entries()??[]),...Array.from(Sn?.entries()??[])]))});const lc=[],$u=[],Pc={};yt.forEach(_n=>{const{element:wn,player:Sn,instruction:ra}=_n;if(I.has(wn)){if(ji.has(wn))return Sn.onDestroy(()=>ot(wn,ra.toStyles)),Sn.disabled=!0,Sn.overrideTotalTime(ra.totalTime),void H.push(Sn);let Oa=Pc;if(cc.size>1){let Ta=wn;const Go=[];for(;Ta=Ta.parentNode;){const Pa=cc.get(Ta);if(Pa){Oa=Pa;break}Go.push(Ta)}Go.forEach(Pa=>cc.set(Pa,Oa))}const ko=this._buildAnimation(Sn.namespaceId,ra,_o,ve,c2,Gs);if(Sn.setRealPlayer(ko),Oa===Pc)lc.push(Sn);else{const Ta=this.playersByElement.get(Oa);Ta&&Ta.length&&(Sn.parentPlayer=qe(Ta)),H.push(Sn)}}else ft(wn,ra.fromStyles),Sn.onDestroy(()=>ot(wn,ra.toStyles)),$u.push(Sn),ji.has(wn)&&H.push(Sn)}),$u.forEach(_n=>{const wn=ve.get(_n.element);if(wn&&wn.length){const Sn=qe(wn);_n.setRealPlayer(Sn)}}),H.forEach(_n=>{_n.parentPlayer?_n.syncPlayerEvents(_n.parentPlayer):_n.destroy()});for(let _n=0;_n<$n.length;_n++){const wn=$n[_n],Sn=wn[sa];if(kn(wn,Et),Sn&&Sn.hasAnimation)continue;let ra=[];if(Jt.size){let ko=Jt.get(wn);ko&&ko.length&&ra.push(...ko);let Ta=this.driver.query(wn,Ct,!0);for(let Go=0;Go<Ta.length;Go++){let Pa=Jt.get(Ta[Go]);Pa&&Pa.length&&ra.push(...Pa)}}const Oa=ra.filter(ko=>!ko.destroyed);Oa.length?fr(this,wn,Oa):this.processLeaveNode(wn)}return $n.length=0,lc.forEach(_n=>{this.players.push(_n),_n.onDone(()=>{_n.destroy();const wn=this.players.indexOf(_n);this.players.splice(wn,1)}),_n.play()}),lc}elementContainsData(P,b){let I=!1;const H=b[sa];return H&&H.setForRemoval&&(I=!0),this.playersByElement.has(b)&&(I=!0),this.playersByQueriedElement.has(b)&&(I=!0),this.statesByElement.has(b)&&(I=!0),this._fetchNamespace(P).elementContainsData(b)||I}afterFlush(P){this._flushFns.push(P)}afterFlushAnimationsDone(P){this._whenQuietFns.push(P)}_getPreviousPlayers(P,b,I,H,ve){let yt=[];if(b){const Jt=this.playersByQueriedElement.get(P);Jt&&(yt=Jt)}else{const Jt=this.playersByElement.get(P);if(Jt){const ri=!ve||ve==hr;Jt.forEach(Ci=>{Ci.queued||!ri&&Ci.triggerName!=H||yt.push(Ci)})}}return(I||H)&&(yt=yt.filter(Jt=>!(I&&I!=Jt.namespaceId||H&&H!=Jt.triggerName))),yt}_beforeAnimationBuild(P,b,I){const ve=b.element,yt=b.isRemovalTransition?void 0:P,Jt=b.isRemovalTransition?void 0:b.triggerName;for(const ri of b.timelines){const Ci=ri.element,ji=Ci!==ve,Yi=oe(I,Ci,[]);this._getPreviousPlayers(Ci,ji,yt,Jt,b.toState).forEach(Fn=>{const mn=Fn.getRealPlayer();mn.beforeDestroy&&mn.beforeDestroy(),Fn.destroy(),Yi.push(Fn)})}ft(ve,b.fromStyles)}_buildAnimation(P,b,I,H,ve,yt){const Jt=b.triggerName,ri=b.element,Ci=[],ji=new Set,Yi=new Set,In=b.timelines.map(mn=>{const Cn=mn.element;ji.add(Cn);const $n=Cn[sa];if($n&&$n.removedBeforeQueried)return new g.ZN(mn.duration,mn.delay);const ya=Cn!==ri,Rr=function Lr(A){const P=[];return Ca(A,P),P}((I.get(Cn)||Vr).map(_o=>_o.getRealPlayer())).filter(_o=>!!_o.element&&_o.element===Cn),Io=ve.get(Cn),Wr=yt.get(Cn),Hl=Ce(0,this._normalizer,0,mn.keyframes,Io,Wr),ws=this._buildPlayer(mn,Hl,Rr);if(mn.subTimeline&&H&&Yi.add(Cn),ya){const _o=new so(P,Jt,Cn);_o.setRealPlayer(ws),Ci.push(_o)}return ws});Ci.forEach(mn=>{oe(this.playersByQueriedElement,mn.element,[]).push(mn),mn.onDone(()=>function $r(A,P,b){let I=A.get(P);if(I){if(I.length){const H=I.indexOf(b);I.splice(H,1)}0==I.length&&A.delete(P)}return I}(this.playersByQueriedElement,mn.element,mn))}),ji.forEach(mn=>qn(mn,Ht));const Fn=qe(In);return Fn.onDestroy(()=>{ji.forEach(mn=>kn(mn,Ht)),ot(ri,b.toStyles)}),Yi.forEach(mn=>{oe(H,mn,[]).push(Fn)}),Fn}_buildPlayer(P,b,I){return b.length>0?this.driver.animate(P.element,b,P.duration,P.delay,P.easing,I):new g.ZN(P.duration,P.delay)}}class so{constructor(P,b,I){this.namespaceId=P,this.triggerName=b,this.element=I,this._player=new g.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(P){this._containsRealPlayer||(this._player=P,this._queuedCallbacks.forEach((b,I)=>{b.forEach(H=>Se(P,I,void 0,H))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(P.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(P){this.totalTime=P}syncPlayerEvents(P){const b=this._player;b.triggerCallback&&P.onStart(()=>b.triggerCallback("start")),P.onDone(()=>this.finish()),P.onDestroy(()=>this.destroy())}_queueEvent(P,b){oe(this._queuedCallbacks,P,[]).push(b)}onDone(P){this.queued&&this._queueEvent("done",P),this._player.onDone(P)}onStart(P){this.queued&&this._queueEvent("start",P),this._player.onStart(P)}onDestroy(P){this.queued&&this._queueEvent("destroy",P),this._player.onDestroy(P)}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(P){this.queued||this._player.setPosition(P)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(P){const b=this._player;b.triggerCallback&&b.triggerCallback(P)}}function ur(A){return A&&1===A.nodeType}function Mo(A,P){const b=A.style.display;return A.style.display=P??"none",b}function Ya(A,P,b,I,H){const ve=[];b.forEach(ri=>ve.push(Mo(ri)));const yt=[];I.forEach((ri,Ci)=>{const ji=new Map;ri.forEach(Yi=>{const In=P.computeStyle(Ci,Yi,H);ji.set(Yi,In),(!In||0==In.length)&&(Ci[sa]=Br,yt.push(Ci))}),A.set(Ci,ji)});let Jt=0;return b.forEach(ri=>Mo(ri,ve[Jt++])),yt}function Ar(A,P){const b=new Map;if(A.forEach(Jt=>b.set(Jt,[])),0==P.length)return b;const I=1,H=new Set(P),ve=new Map;function yt(Jt){if(!Jt)return I;let ri=ve.get(Jt);if(ri)return ri;const Ci=Jt.parentNode;return ri=b.has(Ci)?Ci:H.has(Ci)?I:yt(Ci),ve.set(Jt,ri),ri}return P.forEach(Jt=>{const ri=yt(Jt);ri!==I&&b.get(ri).push(Jt)}),b}function qn(A,P){A.classList?.add(P)}function kn(A,P){A.classList?.remove(P)}function fr(A,P,b){qe(b).onDone(()=>A.processLeaveNode(P))}function Ca(A,P){for(let b=0;b<A.length;b++){const I=A[b];I instanceof g.ZE?Ca(I.players,P):P.push(I)}}function Ft(A,P,b){const I=b.get(A);if(!I)return!1;let H=P.get(A);return H?I.forEach(ve=>H.add(ve)):P.set(A,I),b.delete(A),!0}class hi{constructor(P,b,I){this.bodyNode=P,this._driver=b,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(H,ve)=>{},this._transitionEngine=new Fo(P,b,I),this._timelineEngine=new _r(P,b,I),this._transitionEngine.onRemovalComplete=(H,ve)=>this.onRemovalComplete(H,ve)}registerTrigger(P,b,I,H,ve){const yt=P+"-"+H;let Jt=this._triggerCache[yt];if(!Jt){const ri=[],Ci=[],ji=Ut(this._driver,ve,ri,Ci);if(ri.length)throw function i(A,P){return new e.vHH(3404,!1)}();Jt=function Ra(A,P,b){return new Ma(A,P,b)}(H,ji,this._normalizer),this._triggerCache[yt]=Jt}this._transitionEngine.registerTrigger(b,H,Jt)}register(P,b){this._transitionEngine.register(P,b)}destroy(P,b){this._transitionEngine.destroy(P,b)}onInsert(P,b,I,H){this._transitionEngine.insertNode(P,b,I,H)}onRemove(P,b,I,H){this._transitionEngine.removeNode(P,b,H||!1,I)}disableAnimations(P,b){this._transitionEngine.markElementAsDisabled(P,b)}process(P,b,I,H){if("@"==I.charAt(0)){const[ve,yt]=ze(I);this._timelineEngine.command(ve,b,yt,H)}else this._transitionEngine.trigger(P,b,I,H)}listen(P,b,I,H,ve){if("@"==I.charAt(0)){const[yt,Jt]=ze(I);return this._timelineEngine.listen(yt,b,Jt,ve)}return this._transitionEngine.listen(P,b,I,H,ve)}flush(P=-1){this._transitionEngine.flush(P)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ai=(()=>{class A{constructor(b,I,H){this._element=b,this._startStyles=I,this._endStyles=H,this._state=0;let ve=A.initialStylesByElement.get(b);ve||A.initialStylesByElement.set(b,ve=new Map),this._initialStyles=ve}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(A.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return A.initialStylesByElement=new WeakMap,A})();function Pi(A){let P=null;return A.forEach((b,I)=>{(function an(A){return"display"===A||"position"===A})(I)&&(P=P||new Map,P.set(I,b))}),P}class aa{constructor(P,b,I,H){this.element=P,this.keyframes=b,this.options=I,this._specialStyles=H,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(P=>P()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const P=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,P,this.options),this._finalKeyframe=P.length?P[P.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(P){const b=[];return P.forEach(I=>{b.push(Object.fromEntries(I))}),b}_triggerWebAnimation(P,b,I){return P.animate(this._convertKeyframesToObject(b),I)}onStart(P){this._originalOnStartFns.push(P),this._onStartFns.push(P)}onDone(P){this._originalOnDoneFns.push(P),this._onDoneFns.push(P)}onDestroy(P){this._onDestroyFns.push(P)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(P=>P()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(P=>P()),this._onDestroyFns=[])}setPosition(P){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=P*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const P=new Map;this.hasStarted()&&this._finalKeyframe.forEach((I,H)=>{"offset"!==H&&P.set(H,this._finished?I:Wi(this.element,H))}),this.currentSnapshot=P}triggerCallback(P){const b="start"===P?this._onStartFns:this._onDoneFns;b.forEach(I=>I()),b.length=0}}class ca{validateStyleProperty(P){return!0}validateAnimatableStyleProperty(P){return!0}matchesElement(P,b){return!1}containsElement(P,b){return Gt(P,b)}getParentElement(P){return ge(P)}query(P,b,I){return ut(P,b,I)}computeStyle(P,b,I){return window.getComputedStyle(P)[b]}animate(P,b,I,H,ve,yt=[]){const ri={duration:I,delay:H,fill:0==H?"both":"forwards"};ve&&(ri.easing=ve);const Ci=new Map,ji=yt.filter(Fn=>Fn instanceof aa);(function Bi(A,P){return 0===A||0===P})(I,H)&&ji.forEach(Fn=>{Fn.currentSnapshot.forEach((mn,Cn)=>Ci.set(Cn,mn))});let Yi=function Xe(A){return A.length?A[0]instanceof Map?A:A.map(P=>Ie(P)):[]}(b).map(Fn=>zt(Fn));Yi=function Hi(A,P,b){if(b.size&&P.length){let I=P[0],H=[];if(b.forEach((ve,yt)=>{I.has(yt)||H.push(yt),I.set(yt,ve)}),H.length)for(let ve=1;ve<P.length;ve++){let yt=P[ve];H.forEach(Jt=>yt.set(Jt,Wi(A,Jt)))}}return P}(P,Yi,Ci);const In=function wt(A,P){let b=null,I=null;return Array.isArray(P)&&P.length?(b=Pi(P[0]),P.length>1&&(I=Pi(P[P.length-1]))):P instanceof Map&&(b=Pi(P)),b||I?new ai(A,b,I):null}(P,Yi);return new aa(P,Yi,ri,In)}}var Fi=m(6895);let gn=(()=>{class A extends g._j{constructor(b,I){super(),this._nextAnimationId=0,this._renderer=b.createRenderer(I.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(b){const I=this._nextAnimationId.toString();this._nextAnimationId++;const H=Array.isArray(b)?(0,g.vP)(b):b;return it(this._renderer,null,I,"register",[H]),new qa(I,this._renderer)}}return A.\u0275fac=function(b){return new(b||A)(e.LFG(e.FYo),e.LFG(Fi.K0))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac}),A})();class qa extends g.LC{constructor(P,b){super(),this._id=P,this._renderer=b}create(P,b){return new lt(this._id,P,b||{},this._renderer)}}class lt{constructor(P,b,I,H){this.id=P,this.element=b,this._renderer=H,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(P,b){return this._renderer.listen(this.element,`@@${this.id}:${P}`,b)}_command(P,...b){return it(this._renderer,this.element,this.id,P,b)}onDone(P){this._listen("done",P)}onStart(P){this._listen("start",P)}onDestroy(P){this._listen("destroy",P)}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(P){this._command("setPosition",P)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function it(A,P,b,I,H){return A.setProperty(P,`@@${b}:${I}`,H)}const kt="@.disabled";let Mi=(()=>{class A{constructor(b,I,H){this.delegate=b,this.engine=I,this._zone=H,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),I.onRemovalComplete=(ve,yt)=>{const Jt=yt?.parentNode(ve);Jt&&yt.removeChild(Jt,ve)}}createRenderer(b,I){const ve=this.delegate.createRenderer(b,I);if(!(b&&I&&I.data&&I.data.animation)){let ji=this._rendererCache.get(ve);return ji||(ji=new sn("",ve,this.engine,()=>this._rendererCache.delete(ve)),this._rendererCache.set(ve,ji)),ji}const yt=I.id,Jt=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Jt,b);const ri=ji=>{Array.isArray(ji)?ji.forEach(ri):this.engine.registerTrigger(yt,Jt,b,ji.name,ji)};return I.data.animation.forEach(ri),new va(this,Jt,ve,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(b,I,H){b>=0&&b<this._microtaskId?this._zone.run(()=>I(H)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ve=>{const[yt,Jt]=ve;yt(Jt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,H]))}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 A.\u0275fac=function(b){return new(b||A)(e.LFG(e.FYo),e.LFG(hi),e.LFG(e.R0b))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac}),A})();class sn{constructor(P,b,I,H){this.namespaceId=P,this.delegate=b,this.engine=I,this._onDestroy=H,this.destroyNode=this.delegate.destroyNode?ve=>b.destroyNode(ve):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(P,b){return this.delegate.createElement(P,b)}createComment(P){return this.delegate.createComment(P)}createText(P){return this.delegate.createText(P)}appendChild(P,b){this.delegate.appendChild(P,b),this.engine.onInsert(this.namespaceId,b,P,!1)}insertBefore(P,b,I,H=!0){this.delegate.insertBefore(P,b,I),this.engine.onInsert(this.namespaceId,b,P,H)}removeChild(P,b,I){this.engine.onRemove(this.namespaceId,b,this.delegate,I)}selectRootElement(P,b){return this.delegate.selectRootElement(P,b)}parentNode(P){return this.delegate.parentNode(P)}nextSibling(P){return this.delegate.nextSibling(P)}setAttribute(P,b,I,H){this.delegate.setAttribute(P,b,I,H)}removeAttribute(P,b,I){this.delegate.removeAttribute(P,b,I)}addClass(P,b){this.delegate.addClass(P,b)}removeClass(P,b){this.delegate.removeClass(P,b)}setStyle(P,b,I,H){this.delegate.setStyle(P,b,I,H)}removeStyle(P,b,I){this.delegate.removeStyle(P,b,I)}setProperty(P,b,I){"@"==b.charAt(0)&&b==kt?this.disableAnimations(P,!!I):this.delegate.setProperty(P,b,I)}setValue(P,b){this.delegate.setValue(P,b)}listen(P,b,I){return this.delegate.listen(P,b,I)}disableAnimations(P,b){this.engine.disableAnimations(P,b)}}class va extends sn{constructor(P,b,I,H,ve){super(b,I,H,ve),this.factory=P,this.namespaceId=b}setProperty(P,b,I){"@"==b.charAt(0)?"."==b.charAt(1)&&b==kt?this.disableAnimations(P,I=void 0===I||!!I):this.engine.process(this.namespaceId,P,b.slice(1),I):this.delegate.setProperty(P,b,I)}listen(P,b,I){if("@"==b.charAt(0)){const H=function Ti(A){switch(A){case"body":return document.body;case"document":return document;case"window":return window;default:return A}}(P);let ve=b.slice(1),yt="";return"@"!=ve.charAt(0)&&([ve,yt]=function Dn(A){const P=A.indexOf(".");return[A.substring(0,P),A.slice(P+1)]}(ve)),this.engine.listen(this.namespaceId,H,ve,yt,Jt=>{this.factory.scheduleListenerCallback(Jt._data||-1,I,Jt)})}return this.delegate.listen(P,b,I)}}const ds=[{provide:g._j,useClass:gn},{provide:Un,useFactory:function Ks(){return new Fr}},{provide:hi,useClass:(()=>{class A extends hi{constructor(b,I,H,ve){super(b.body,I,H)}ngOnDestroy(){this.flush()}}return A.\u0275fac=function(b){return new(b||A)(e.LFG(Fi.K0),e.LFG(Me),e.LFG(Un),e.LFG(e.z2F))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac}),A})()},{provide:e.FYo,useFactory:function Ka(A,P,b){return new Mi(A,P,b)},deps:[t.se,hi,e.R0b]}],Zo=[{provide:Me,useFactory:()=>new ca},{provide:e.QbO,useValue:"BrowserAnimations"},...ds],Dr=[{provide:Me,useClass:xt},{provide:e.QbO,useValue:"NoopAnimations"},...ds];let Wo=(()=>{class A{static withConfig(b){return{ngModule:A,providers:b.disableAnimations?Dr:Zo}}}return A.\u0275fac=function(b){return new(b||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({providers:Zo,imports:[t.b2]}),A})();var $o=m(529),Jn=m(2289),Di=m(9653),Na=m(493),lo=m(825),Ii=m(7579),Vo=m(6451),So=m(4968),mc=m(457),Ir=m(4986),mr=m(2805);function Yo(A=0,P=Ir.z){return A<0&&(A=0),(0,mr.H)(A,A,P)}var ho=m(9646),hs=m(727),Qs=m(4482),Bo=m(5403),Is=m(8737),ks=m(3269),pc=m(9672),Ia=m(9300),es=m(8505),us=m(3900),Ki=m(2722),Ja=m(8746),Uo=m(1884),la=m(4004);class fs{}let Uc=(()=>{class A{constructor(b,I){this._ngZone=I,this.timerStart$=new Ii.x,this.idleDetected$=new Ii.x,this.timeout$=new Ii.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,b&&this.setConfig(b)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,Vo.T)((0,So.R)(window,"mousemove"),(0,So.R)(window,"resize"),(0,So.R)(document,"keydown"))),this.idle$=(0,mc.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function qs(A,...P){var b,I;const H=null!==(b=(0,ks.yG)(P))&&void 0!==b?b:Ir.z,ve=null!==(I=P[0])&&void 0!==I?I:null,yt=P[1]||1/0;return(0,Qs.e)((Jt,ri)=>{let Ci=[],ji=!1;const Yi=mn=>{const{buffer:Cn,subs:$n}=mn;$n.unsubscribe(),(0,Is.P)(Ci,mn),ri.next(Cn),ji&&In()},In=()=>{if(Ci){const mn=new hs.w0;ri.add(mn);const $n={buffer:[],subs:mn};Ci.push($n),(0,pc.f)(mn,H,()=>Yi($n),A)}};null!==ve&&ve>=0?(0,pc.f)(ri,H,In,ve,!0):ji=!0,In();const Fn=(0,Bo.x)(ri,mn=>{const Cn=Ci.slice();for(const $n of Cn){const{buffer:ya}=$n;ya.push(mn),yt<=ya.length&&Yi($n)}},()=>{for(;Ci?.length;)ri.next(Ci.shift().buffer);Fn?.unsubscribe(),ri.complete(),ri.unsubscribe()},void 0,()=>Ci=null);Jt.subscribe(Fn)})}(this.idleSensitivityMillisec),(0,Ia.h)(b=>!b.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,es.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,us.w)(()=>this._ngZone.runOutsideAngular(()=>Yo(1e3).pipe((0,Ki.R)((0,Vo.T)(this.activityEvents$,(0,mr.H)(this.idleMillisec).pipe((0,es.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,Ja.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,Uo.x)(),(0,us.w)(b=>b?this.timer$:(0,ho.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,Ia.h)(b=>!!b),(0,es.b)(()=>this.isTimeout=!0),(0,la.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(b){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(b):console.error("Call stopWatching() before set config values")}setConfig(b){b.idle&&(this.idleMillisec=1e3*b.idle),b.ping&&(this.pingMillisec=1e3*b.ping),b.idleSensitivity&&(this.idleSensitivityMillisec=1e3*b.idleSensitivity),b.timeout&&(this.timeout=b.timeout)}setCustomActivityEvents(b){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=b:console.error("Call stopWatching() before set custom activity events")}setupTimer(b){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,ho.of)(()=>new Date).pipe((0,la.U)(I=>I()),(0,us.w)(I=>Yo(1e3).pipe((0,la.U)(()=>Math.round(((new Date).valueOf()-I.valueOf())/1e3)),(0,es.b)(H=>{H>=b&&this.timeout$.next(!0)}))))})}setupPing(b){this.ping$=Yo(b).pipe((0,Ia.h)(()=>!this.isTimeout))}}return A.\u0275fac=function(b){return new(b||A)(e.LFG(fs,8),e.LFG(e.R0b))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),gc=(()=>{class A{static forRoot(b){return{ngModule:A,providers:[{provide:fs,useValue:b}]}}}return A.\u0275fac=function(b){return new(b||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[]]}),A})();var On=m(9116),Ui=m(2687),ba=m(8377),ma=m(2216),zi=m(1576),Rn=m(3546),Be=m(3848);const ne=function(){return{initial:!1}};function te(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.activeLink=H.links[1].link)}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.s9C("routerLink",b.links[1].link),e.Q6J("active",b.activeLink===b.links[1].link)("state",e.DdM(4,ne)),e.xp6(1),e.Oqu(b.links[1].name)}}function De(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.activeLink=H.links[2].link)}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.s9C("routerLink",b.links[2].link),e.Q6J("active",b.activeLink===b.links[2].link),e.xp6(1),e.Oqu(b.links[2].name)}}let nt=(()=>{var A;class P{constructor(I,H){this.store=I,this.router=H,this.faUserCog=Ui.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){const I=this.links.find(H=>this.router.url.includes(H.link));this.activeLink=I?I.link:this.links[0].link,this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(H=>H instanceof On.Av)).subscribe({next:H=>{const ve=this.links.find(yt=>H.urlAfterRedirects.includes(yt.link));this.activeLink=ve?ve.link:this.links[0].link}}),this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[1])).subscribe(H=>{this.appConfig=H}),this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[2])).subscribe(H=>{this.showBitcoind=!1,this.selNode=H,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Di.yh),e.Y36(On.F0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-settings"]],decls:16,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["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"],["tabPanel",""],["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(I,H){if(1&I&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return H.activeLink=H.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,te,2,5,"div",7),e.YNc(11,De,2,3,"div",8),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,9),e.TgZ(14,"div",10),e._UZ(15,"router-outlet"),e.qZA()()()()),2&I){const ve=e.MAs(13);e.xp6(1),e.Q6J("icon",H.faUserCog),e.xp6(6),e.Q6J("tabPanel",ve),e.xp6(1),e.s9C("routerLink",H.links[0].link),e.Q6J("active",H.activeLink===H.links[0].link),e.xp6(1),e.Oqu(H.links[0].name),e.xp6(1),e.Q6J("ngIf",!+H.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",H.showBitcoind)}},dependencies:[Fi.O5,ma.BN,zi.xw,zi.Wh,zi.yH,Rn.a8,Rn.dn,Be.BU,Be.sW,Be.Nj,On.lC,On.rH]}),P})();var we=m(7731),Rt=m(7861),ii=m(5043),qt=m(4006),_i=m(4859),yi=m(9549),Oi=m(4385),qi=m(3238),tn=m(6839),dn=m(3390);function da(A,P){if(1&A&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b.index),e.xp6(1),e.AsE(" ",b.lnNode," (",b.lnImplementation,") ")}}function pa(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",11)(13,"mat-select",12),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.appConfig.defaultNodeIndex=H)}),e.YNc(14,da,2,3,"mat-option",13),e.qZA()()(),e.TgZ(15,"div",14)(16,"div",10)(17,"button",15),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onResetSettings())}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onUpdateSettings())}),e._uU(20,"Update"),e.qZA()()()()()}if(2&A){const b=e.oxw();e.xp6(3),e.Q6J("icon",b.faWindowRestore),e.xp6(5),e.Q6J("icon",b.faInfoCircle),e.xp6(5),e.Q6J("ngModel",b.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",b.appConfig.nodes)}}let Fa=(()=>{var A;class P{constructor(I,H){this.logger=I,this.store=H,this.faInfoCircle=Ui.sqG,this.faWindowRestore=Ui.wyP,this.faPlus=Ui.r8p,this.previousDefaultNode=0,this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.appConfig=I,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(I)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Rt.zQ)({payload:{uiMessage:we.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,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"],["fxLayout","column","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(I,H){1&I&&(e.TgZ(0,"div",0),e.YNc(1,pa,21,4,"form",1),e.qZA()),2&I&&(e.xp6(1),e.Q6J("ngIf",H.appConfig.nodes&&H.appConfig.nodes.length&&H.appConfig.nodes.length>0))},dependencies:[Fi.sg,Fi.O5,qt._Y,qt.JJ,qt.JL,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,_i.lW,yi.KE,Oi.gD,qi.ey,tn.$V,dn.h]}),P})();var ha=m(8012),ua=m(5698),Qn=m(5412),ka=m(5768),Sa=m(3093),kr=m(7009),Ha=m(4144),uo=m(8425),Ur=m(658),fl=m(5199);const Ko=["stepper"];function ql(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw();e.Oqu(b.passwordFormLabel)}}function Gc(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Or(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw(2);e.Oqu(b.secretFormLabel)}}function Jl(A,P){if(1&A&&e._UZ(0,"qr-code",33),2&A){const b=e.oxw(2);e.Q6J("value",b.otpauth)("size",180)("errorCorrectionLevel","L")}}function Os(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function Zc(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",22),e.YNc(2,Or,1,1,"ng-template",23),e.TgZ(3,"div",24),e.YNc(4,Jl,1,3,"qr-code",25),e.qZA(),e.TgZ(5,"div",26),e._UZ(6,"fa-icon",27),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e._uU(12,"Secret Code"),e.qZA(),e._UZ(13,"input",29),e.TgZ(14,"fa-icon",30),e.NdJ("copied",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onCopySecret(H))}),e.qZA(),e.YNc(15,Os,2,0,"mat-error",15),e.qZA()(),e.TgZ(16,"div",31)(17,"button",32),e._uU(18,"Next"),e.qZA()()()()}if(2&A){const b=e.oxw();e.Q6J("stepControl",b.secretFormGroup)("editable",b.flgEditable),e.xp6(1),e.Q6J("formGroup",b.secretFormGroup),e.xp6(3),e.Q6J("ngIf",b.otpauth),e.xp6(2),e.Q6J("icon",b.faInfoCircle),e.xp6(8),e.Q6J("icon",b.faCopy)("payload",null==b.secretFormGroup||null==b.secretFormGroup.controls||null==b.secretFormGroup.controls.secret?null:b.secretFormGroup.controls.secret.value),e.xp6(1),e.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 ml(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw(2);e.Oqu(b.tokenFormLabel)}}function pl(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function j1(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function Q1(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",7)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e._uU(4,"Token"),e.qZA(),e._UZ(5,"input",37),e.YNc(6,pl,2,0,"mat-error",15),e.YNc(7,j1,2,0,"mat-error",15),e.qZA()(),e.TgZ(8,"div",31)(9,"button",38),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onVerifyToken())}),e._uU(10),e.qZA()()()}if(2&A){const b=e.oxw(2);e.xp6(6),e.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),e.xp6(1),e.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),e.xp6(3),e.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 Xl(A,P){1&A&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function Wc(A,P){if(1&A&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,ml,1,1,"ng-template",12),e.YNc(3,Q1,11,3,"div",36),e.YNc(4,Xl,3,0,"div",15),e.qZA()()),2&A){const b=e.oxw();e.Q6J("stepControl",b.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",b.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!b.flgValidated||!b.isTokenValid),e.xp6(1),e.Q6J("ngIf",b.flgValidated&&b.isTokenValid)}}function Js(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw(2);e.Oqu(b.disableFormLabel)}}function ar(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",7)(1,"div",39),e._UZ(2,"fa-icon",27),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",31)(6,"button",38),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onVerifyToken())}),e._uU(7,"Disable"),e.qZA()()()}if(2&A){const b=e.oxw(2);e.xp6(2),e.Q6J("icon",b.faExclamationTriangle)}}function jo(A,P){1&A&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function Ps(A,P){if(1&A&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,Js,1,1,"ng-template",12),e.YNc(3,ar,8,1,"div",36),e.YNc(4,jo,3,0,"div",15),e.qZA()()),2&A){const b=e.oxw();e.Q6J("stepControl",b.disableFormGroup),e.xp6(1),e.Q6J("formGroup",b.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!b.flgValidated||!b.isTokenValid),e.xp6(1),e.Q6J("ngIf",b.flgValidated&&b.isTokenValid)}}let $l=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri){this.dialogRef=I,this.data=H,this.store=ve,this.formBuilder=yt,this.rtlEffects=Jt,this.snackBar=ri,this.faExclamationTriangle=Ui.eHv,this.faCopy=Ui.kZ_,this.faInfoCircle=Ui.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[qt.kI.required]],password:["",[qt.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},qt.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",qt.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},qt.kI.required]})}generateSecret(){const I=ka.authenticator.generateSecret();return this.otpauth=ka.authenticator.keyuri("","Ride The Lightning (RTL)",I),I}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Rt.QO)({payload:ha(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ua.q)(1)).subscribe(I=>{"ERROR"!==I?(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(I){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.store.dispatch((0,Rt.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=ka.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,Rt.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!this.appConfig?.enable2FA)}stepSelectionChanged(I){switch(I.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}I.selectedIndex<I.previouslySelectedIndex&&0===I.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Qn.so),e.Y36(Qn.WI),e.Y36(Di.yh),e.Y36(qt.QS),e.Y36(Sa.V),e.Y36(kr.ux))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-two-factor-auth"]],viewQuery:function(I,H){if(1&I&&e.Gf(Ko,5),2&I){let ve;e.iGM(ve=e.CRH())&&(H.stepper=ve.first)}},decls:30,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 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",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","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","","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","","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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(yt){return H.stepSelectionChanged(yt)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,ql,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",13)(17,"mat-label"),e._uU(18,"Password"),e.qZA(),e._UZ(19,"input",14),e.YNc(20,Gc,2,0,"mat-error",15),e.qZA()(),e.TgZ(21,"div",16)(22,"button",17),e.NdJ("click",function(){return H.onAuthenticate()}),e._uU(23,"Confirm"),e.qZA()()()(),e.YNc(24,Zc,19,8,"mat-step",18),e.YNc(25,Wc,5,4,"mat-step",19),e.YNc(26,Ps,5,4,"mat-step",19),e.qZA(),e.TgZ(27,"div",20)(28,"button",21),e._uU(29),e.qZA()()()()()()),2&I&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",H.passwordFormGroup)("editable",H.flgEditable),e.xp6(1),e.Q6J("formGroup",H.passwordFormGroup),e.xp6(7),e.Q6J("ngIf",null==H.passwordFormGroup||null==H.passwordFormGroup.controls||null==H.passwordFormGroup.controls.password||null==H.passwordFormGroup.controls.password.errors?null:H.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!H.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!H.showDisableStepper),e.xp6(1),e.Q6J("ngIf",H.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(H.flgValidated&&H.isTokenValid?"Close":"Cancel"))},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.sg,qt.u,ma.BN,zi.xw,zi.Wh,zi.yH,Qn.ZT,_i.lW,Rn.dn,Rn.dk,Ha.Nt,yi.KE,yi.hX,yi.TO,yi.R9,uo.C0,uo.VY,uo.Vq,uo.Ic,Ur.uU,fl.y,dn.h]}),P})();var ja=m(5986),Gr=m(4850);const gl=["authForm"];function _l(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function C2(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.errorMsg)}}function q1(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.errorConfirmMsg)}}function _c(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"form",11,12)(2,"div",13),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"mat-label"),e._uU(8,"Current Password"),e.qZA(),e.TgZ(9,"input",14),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.currPassword=H)}),e.qZA(),e.YNc(10,_l,2,0,"mat-error",15),e.qZA(),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"New Password"),e.qZA(),e.TgZ(14,"input",16),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.newPassword=H)}),e.qZA(),e.YNc(15,C2,2,1,"mat-error",15),e.qZA(),e.TgZ(16,"mat-form-field")(17,"mat-label"),e._uU(18,"Confirm New Password"),e.qZA(),e.TgZ(19,"input",17),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.confirmPassword=H)}),e.qZA(),e.YNc(20,q1,2,1,"mat-error",15),e.qZA(),e.TgZ(21,"div",18)(22,"button",19),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onResetPassword())}),e._uU(23,"Reset"),e.qZA(),e.TgZ(24,"button",20),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onChangePassword())}),e._uU(25,"Change Password"),e.qZA()()()}if(2&A){const b=e.oxw();e.xp6(3),e.Q6J("icon",b.faLock),e.xp6(6),e.Q6J("ngModel",b.currPassword),e.xp6(1),e.Q6J("ngIf",!b.currPassword),e.xp6(4),e.Q6J("ngModel",b.newPassword),e.xp6(1),e.Q6J("ngIf",b.matchOldAndNewPasswords()),e.xp6(4),e.Q6J("ngModel",b.confirmPassword),e.xp6(1),e.Q6J("ngIf",b.matchNewPasswords())}}let ts=(()=>{var A;class P{constructor(I,H,ve,yt,Jt){this.logger=I,this.store=H,this.actions=ve,this.router=yt,this.sessionService=Jt,this.faInfoCircle=Ui.sqG,this.faUserLock=Ui.FJU,this.faUserClock=Ui.hnx,this.faLock=Ui.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.appConfig=I,this.logger.info(this.appConfig)}),this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.selNode=I}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(I=>I.type===we.pg.RESET_PASSWORD_RES)).subscribe(I=>{if(we.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||we.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Rt.c0)({payload:{currPassword:ha(this.currPassword).toString(),newPassword:ha(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let I=!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.",I=!0):we.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=we.kO?.reduce((H,ve,yt)=>yt<we.kO.length-1?H+ve+'" / "':H+ve+'".','Password cannot be "'),I=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",I=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",I=!0)),I}matchNewPasswords(){let I=!1;return this.form&&this.form.controls&&this.form.controls.confirmpassword&&(this.confirmPassword?""!==this.newPassword&&""!==this.confirmPassword&&this.newPassword!==this.confirmPassword?(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="New and confirm passwords do not match.",I=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",I=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",I=!0)),I}on2FAuth(){this.store.dispatch((0,Rt.qR)({payload:{data:{appConfig:this.appConfig,component:$l}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,Rt.fk)({payload:{uiMessage:we.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh),e.Y36(Na.eX),e.Y36(On.F0),e.Y36(ja.m))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-auth-settings"]],viewQuery:function(I,H){if(1&I&&e.Gf(gl,5),2&I){let ve;e.iGM(ve=e.CRH())&&(H.form=ve.first)}},decls:15,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"],[1,"my-2"],["fxLayout","column","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","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","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"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0),e.YNc(1,_c,26,7,"form",1),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e._UZ(5,"fa-icon",5),e.TgZ(6,"span",6),e._uU(7,"Two Factor Authentication"),e.qZA()(),e.TgZ(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(12,"div",9)(13,"button",10),e.NdJ("click",function(){return H.on2FAuth()}),e._uU(14),e.qZA()()()()),2&I&&(e.xp6(1),e.Q6J("ngIf",null==H.appConfig?null:H.appConfig.allowPasswordUpdate),e.xp6(4),e.Q6J("icon",H.faUserClock),e.xp6(4),e.Q6J("icon",H.faInfoCircle),e.xp6(5),e.Oqu(H.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,_i.lW,Ha.Nt,yi.KE,yi.hX,yi.TO,Gr.d,dn.h]}),P})();var fo=m(6338);function Rs(A,P){1&A&&e._UZ(0,"mat-divider",7)}function Yc(A,P){if(1&A&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Rs,1,0,"mat-divider",6),e.qZA()),2&A){const b=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,b.configData)),e.xp6(2),e.Q6J("ngIf",""!==b.configData)}}function Kc(A,P){if(1&A&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Oqu(b)}}function Qo(A,P){if(1&A&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Oqu(b)}}function vc(A,P){1&A&&e._UZ(0,"mat-divider",15),2&A&&e.Q6J("inset",!0)}function ms(A,P){if(1&A&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Kc,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Qo,2,1,"h4",12),e.qZA(),e.YNc(5,vc,1,1,"mat-divider",13),e.qZA()),2&A){const b=P.$implicit;e.xp6(2),e.Q6J("ngIf",b.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",b.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",b.indexOf("[")<0)}}function wa(A,P){if(1&A&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,ms,6,3,"mat-list-item",9),e.qZA()()),2&A){const b=e.oxw();e.xp6(2),e.Q6J("ngForOf",b.configData)}}let to=(()=>{var A;class P{constructor(I,H,ve){this.store=I,this.rtlEffects=H,this.router=ve,this.configData="",this.fileFormat="INI",this.faCog=Ui.b7W,this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.store.dispatch((0,Rt.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{const H=I.data;this.fileFormat=I.format,this.configData=""===H||!H||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==H&&H&&"JSON"===this.fileFormat?H:"":H.split("\n")})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Di.yh),e.Y36(Sa.V),e.Y36(On.F0))},A.\u0275cmp=e.Xpm({type:A,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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Yc,5,4,"div",2),e.YNc(3,wa,3,1,"div",3),e.qZA()()),2&I&&(e.xp6(2),e.Q6J("ngIf",""!==H.configData&&"JSON"===H.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==H.configData&&("INI"===H.fileFormat||"HOCON"===H.fileFormat)))},dependencies:[Fi.sg,Fi.O5,zi.xw,zi.Wh,zi.yH,Rn.$j,fo.i$,fo.Tg,Gr.d,Fi.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),P})();function rr(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let w2=(()=>{var A;class P{constructor(I,H,ve){this.dialogRef=I,this.store=H,this.rtlEffects=ve,this.password="",this.isAuthenticated=!1,this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,ua.q)(1)).subscribe(I=>{"ERROR"!==I?(this.isAuthenticated=!0,this.store.dispatch((0,Rt.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Rt.QO)({payload:ha(this.password)}))}onClose(){this.store.dispatch((0,Rt.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Qn.so),e.Y36(Di.yh),e.Y36(Sa.V))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-is-authorized"]],decls:18,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Authenticate with your RTL Password"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return H.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e._uU(12,"Password"),e.qZA(),e.TgZ(13,"input",8),e.NdJ("ngModelChange",function(yt){return H.password=yt}),e.qZA(),e.YNc(14,rr,2,0,"mat-error",9),e.qZA(),e.TgZ(15,"div",10)(16,"button",11),e.NdJ("click",function(){return H.onAuthenticate()}),e._uU(17,"Confirm"),e.qZA()()()()()()),2&I&&(e.xp6(13),e.Q6J("ngModel",H.password),e.xp6(1),e.Q6J("ngIf",!H.password))},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,zi.xw,zi.Wh,zi.yH,_i.lW,Rn.dn,Rn.dk,Ha.Nt,yi.KE,yi.hX,yi.TO,dn.h]}),P})();const vl=function(){return{initial:!1}};function jc(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.activeLink=H.links[2].link)}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.s9C("routerLink",b.links[2].link),e.Q6J("active",b.activeLink===b.links[2].link)("state",e.DdM(4,vl)),e.xp6(1),e.Oqu(b.links[2].name)}}function bl(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.showLnConfigClicked())}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.Q6J("active",b.activeLink===b.links[4].link),e.xp6(1),e.Oqu(b.links[4].name)}}let M2=(()=>{var A;class P{constructor(I,H,ve,yt){this.store=I,this.router=H,this.rtlEffects=ve,this.activatedRoute=yt,this.faTools=Ui.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){const I=this.links.find(H=>this.router.url.includes(H.link));this.activeLink=I?I.link:this.links[0].link,this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(H=>H instanceof On.Av)).subscribe({next:H=>{const ve=this.links.find(yt=>H.urlAfterRedirects.includes(yt.link));this.activeLink=ve?ve.link:this.links[0].link}}),this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[1])).subscribe(H=>{this.appConfig=H}),this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[2])).subscribe(H=>{switch(this.showLnConfig=!1,this.selNode=H,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[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.appConfig.sso.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Rt.qR)({payload:{maxWidth:"50rem",data:{component:w2}}})),this.rtlEffects.closeAlert.pipe((0,Ki.R)(this.unSubs[3])).subscribe(I=>{I&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Di.yh),e.Y36(On.F0),e.Y36(Sa.V),e.Y36(On.gz))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-node-config"]],decls:18,vars:10,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["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","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(I,H){if(1&I&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return H.activeLink=H.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return H.activeLink=H.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,jc,2,5,"div",7),e.YNc(13,bl,2,2,"div",8),e.qZA(),e._UZ(14,"mat-tab-nav-panel",null,9),e.TgZ(16,"div",10),e._UZ(17,"router-outlet"),e.qZA()()()()),2&I){const ve=e.MAs(15);e.xp6(1),e.Q6J("icon",H.faTools),e.xp6(6),e.Q6J("tabPanel",ve),e.xp6(1),e.s9C("routerLink",H.links[0].link),e.Q6J("active",H.activeLink===H.links[0].link),e.xp6(1),e.Oqu(H.links[0].name),e.xp6(1),e.s9C("routerLink",H.links[1].link),e.Q6J("active",H.activeLink===H.links[1].link),e.xp6(1),e.Oqu(H.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==H.selNode||null==H.selNode.lnImplementation?null:H.selNode.lnImplementation.toUpperCase())||"CLN"===(null==H.selNode||null==H.selNode.lnImplementation?null:H.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",H.showLnConfig)}},dependencies:[Fi.O5,ma.BN,zi.xw,zi.Wh,zi.yH,Rn.a8,Rn.dn,Be.BU,Be.sW,Be.Nj,On.lC,On.rH]}),P})();function mo(A,P){1&A&&e._UZ(0,"mat-divider",7)}function J1(A,P){if(1&A&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,mo,1,0,"mat-divider",6),e.qZA()),2&A){const b=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,b.configData)),e.xp6(2),e.Q6J("ngIf",""!==b.configData)}}function X1(A,P){if(1&A&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Oqu(b)}}function or(A,P){if(1&A&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Oqu(b)}}function Qc(A,P){1&A&&e._UZ(0,"mat-divider",15),2&A&&e.Q6J("inset",!0)}function qo(A,P){if(1&A&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,X1,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,or,2,1,"h4",12),e.qZA(),e.YNc(5,Qc,1,1,"mat-divider",13),e.qZA()),2&A){const b=P.$implicit;e.xp6(2),e.Q6J("ngIf",b.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",b.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",b.indexOf("[")<0)}}function $1(A,P){if(1&A&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,qo,6,3,"mat-list-item",9),e.qZA()()),2&A){const b=e.oxw();e.xp6(2),e.Q6J("ngForOf",b.configData)}}let To=(()=>{var A;class P{constructor(I,H,ve){this.store=I,this.rtlEffects=H,this.router=ve,this.configData="",this.fileFormat="INI",this.faCog=Ui.b7W,this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.store.dispatch((0,Rt.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{const H=I.data;this.fileFormat=I.format,this.configData=""===H||!H||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==H&&H&&"JSON"===this.fileFormat?H:"":H.split("\n")})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Di.yh),e.Y36(Sa.V),e.Y36(On.F0))},A.\u0275cmp=e.Xpm({type:A,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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,J1,5,4,"div",2),e.YNc(3,$1,3,1,"div",3),e.qZA()()),2&I&&(e.xp6(2),e.Q6J("ngIf",""!==H.configData&&"JSON"===H.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==H.configData&&("INI"===H.fileFormat||"HOCON"===H.fileFormat)))},dependencies:[Fi.sg,Fi.O5,zi.xw,zi.Wh,zi.yH,Rn.$j,fo.i$,fo.Tg,Gr.d,Fi.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),P})();var _e=m(2994),xe=m(429),ae=m(6523),Ge=m(62),ht=m(5829),At=m(752),Vt=m(1948),ui=m(455);function ki(A,P){if(1&A&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b.id),e.xp6(1),e.hij(" ",b.id," ")}}function on(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function rn(A,P){if(1&A&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("value",b)("checked",I.selNode.settings.userPersona===b),e.xp6(1),e.hij(" ",e.lcZ(2,3,b)," ")}}function fa(A,P){if(1&A&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b),e.xp6(1),e.hij("",b.name," ")}}const sr=function(A){return{skin:!0,"selected-color":A}};function ps(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.changeThemeColor(ve.id))}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,b.id)),e.Q6J("ngClass",e.VKq(6,sr,I.selectedThemeColor===b.id)),e.xp6(2),e.hij(" ",b.name," ")}}let is=(()=>{var A;class P{constructor(I,H,ve){this.logger=I,this.commonService=H,this.store=ve,this.faExclamationTriangle=Ui.eHv,this.faMoneyBillAlt=Ui.co4,this.faPaintBrush=Ui.XsY,this.faInfoCircle=Ui.sqG,this.faEyeSlash=Ui.Aq,this.userPersonas=[we.ol.OPERATOR,we.ol.MERCHANT],this.currencyUnits=we.Er,this.themeModes=we.wZ.modes,this.themeColors=we.wZ.themes,this.selectedThemeMode=we.wZ.modes[0],this.selectedThemeColor=we.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=we.cu,this.unSubs=[new Ii.x,new Ii.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I,this.selectedThemeMode=this.themeModes.find(H=>this.selNode.settings.themeMode===H.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(I)})}onCurrencyChange(I){this.selNode.settings.currencyUnits=[...we.uA,I.value],this.store.dispatch((0,ae.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:I.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,xe.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:I.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,_e.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:I.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(I,H){this.selNode.settings[I]=!this.selNode.settings[I]}changeThemeColor(I){this.selectedThemeColor=I,this.selNode.settings.themeColor=I}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,Rt.zQ)({payload:{uiMessage:we.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ae.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,xe.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,_e.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const I=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(H=>H.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Rt.fk)({payload:{uiMessage:we.m6.NO_SPINNER,prevLnNodeIndex:+I,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-node-settings"]],decls:78,vars:18,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModel","ngModelChange","change"],["autoFocus","","tabindex","3","name","currencyUnit",3,"disabled","required","ngModel","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModel","ngModelChange"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModel","ngModelChange","change"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["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","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(yt){return H.selNode.settings.unannouncedChannels=yt})("change",function(){return!H.selNode.settings.unannouncedChannels}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(yt){return H.selNode.settings.fiatConversion=yt})("change",function(){return!H.selNode.settings.currencyUnit}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-label"),e._uU(38,"Fiat Currency"),e.qZA(),e.TgZ(39,"mat-select",15,16),e.NdJ("ngModelChange",function(yt){return H.selNode.settings.currencyUnit=yt})("selectionChange",function(yt){return H.onCurrencyChange(yt)}),e.YNc(41,ki,2,2,"mat-option",17),e.qZA(),e.YNc(42,on,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(43,"mat-expansion-panel",4)(44,"mat-expansion-panel-header")(45,"mat-panel-title"),e._UZ(46,"fa-icon",5),e.TgZ(47,"span",6),e._uU(48,"Customization"),e.qZA()()(),e.TgZ(49,"div",7)(50,"div",19),e._UZ(51,"fa-icon",9),e.TgZ(52,"span"),e._uU(53,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(54,"div",20)(55,"h4"),e._uU(56,"Dashboard Layout"),e.qZA(),e.TgZ(57,"mat-radio-group",21),e.NdJ("ngModelChange",function(yt){return H.selNode.settings.userPersona=yt}),e.YNc(58,rn,3,5,"mat-radio-button",22),e.qZA()(),e._UZ(59,"mat-divider",23),e.TgZ(60,"div",24)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",25),e.NdJ("ngModelChange",function(yt){return H.selectedThemeMode=yt})("change",function(){return H.chooseThemeMode()}),e.YNc(64,fa,2,2,"mat-radio-button",26),e.qZA()(),e._UZ(65,"mat-divider",23),e.TgZ(66,"div",27)(67,"div",28)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",29),e.YNc(71,ps,4,8,"span",30),e.qZA()()()()()()(),e.TgZ(72,"div",31)(73,"div",32)(74,"button",33),e.NdJ("click",function(){return H.onResetSettings()}),e._uU(75,"Reset"),e.qZA(),e.TgZ(76,"button",34),e.NdJ("click",function(){return H.onUpdateSettings()}),e._uU(77,"Update"),e.qZA()()()()),2&I&&(e.xp6(7),e.Q6J("icon",H.faEyeSlash),e.xp6(5),e.Q6J("icon",H.faInfoCircle),e.xp6(4),e.Q6J("ngModel",H.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",H.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",H.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",H.selNode.settings.fiatConversion),e.xp6(5),e.Q6J("disabled",!H.selNode.settings.fiatConversion)("required",H.selNode.settings.fiatConversion)("ngModel",H.selNode.settings.currencyUnit),e.xp6(2),e.Q6J("ngForOf",H.currencyUnits),e.xp6(1),e.Q6J("ngIf",H.selNode.settings.fiatConversion&&!H.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",H.faPaintBrush),e.xp6(5),e.Q6J("icon",H.faInfoCircle),e.xp6(6),e.Q6J("ngModel",H.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",H.userPersonas),e.xp6(5),e.Q6J("ngModel",H.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",H.themeModes),e.xp6(7),e.Q6J("ngForOf",H.themeColors))},dependencies:[Fi.mk,Fi.sg,Fi.O5,qt._Y,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,_i.lW,At.pp,At.ib,At.yz,At.yK,yi.KE,yi.hX,yi.TO,Gr.d,Vt.VQ,Vt.U0,Oi.gD,qi.ey,ui.Rr,tn.$V,dn.h,Fi.i8,Fi.rS],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width: 37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}),P})();var Eo=m(1365),za=m(9828),bc=m(6529),Xs=m(2501),br=m(7392),yr=m(266),xr=m(9445);const Ao=function(A){return{error:A}};function e1(A,P){if(1&A&&e.GkF(0,14),2&A){const b=e.oxw(),I=e.MAs(18);e.Q6J("ngTemplateOutlet",I)("ngTemplateOutletContext",e.VKq(2,Ao,b.errorMessage))}}function Ns(A,P){if(1&A&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b),e.xp6(1),e.hij(" ",b," ")}}function ed(A,P){if(1&A&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&A){const b=P.$implicit,I=e.oxw(3);e.Q6J("value",b),e.xp6(1),e.hij(" ","ECL"===I.selNode.lnImplementation?e.lcZ(2,2,b):e.xi3(3,4,b,"_")," ")}}function t1(A,P){if(1&A&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b),e.xp6(1),e.hij(" ","desc"===b?"Descending":"Ascending"," ")}}function yc(A,P){if(1&A&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&A){const b=P.$implicit,I=e.oxw(2).$implicit,H=e.oxw(2);e.Q6J("value",b.column)("disabled",I.columnSelection.length<=2&&I.columnSelection.includes(b.column)),e.xp6(1),e.hij(" ",b.label?b.label:"ECL"===H.selNode.lnImplementation?e.lcZ(2,3,b.column):e.xi3(3,5,b.column,"_")," ")}}function Xa(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-form-field",32)(1,"mat-label"),e._uU(2,"Column selection (Desktop Resolution)"),e.qZA(),e.TgZ(3,"mat-select",33),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw().$implicit;return e.KtG(ve.columnSelection=H)})("selectionChange",function(){e.CHM(b);const H=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.oncolumnSelectionChange(H))}),e.YNc(4,yc,4,8,"mat-option",28),e.qZA()()}if(2&A){const b=e.oxw().$implicit,I=e.oxw().$implicit,H=e.oxw();e.xp6(3),e.hYB("name","",I.pageId,"",b.tableId,"-columns-selection"),e.Q6J("ngModel",b.columnSelection),e.xp6(1),e.Q6J("ngForOf",H.nodePageDefs[I.pageId][b.tableId].allowedColumns)}}function yl(A,P){if(1&A&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&A){const b=P.$implicit,I=e.oxw().$implicit,H=e.oxw(2);e.Q6J("value",b.column)("disabled",I.columnSelectionSM.length<=1&&I.columnSelectionSM.includes(b.column)||I.columnSelectionSM.length>=3&&!I.columnSelectionSM.includes(b.column)),e.xp6(1),e.hij(" ",b.label?b.label:"ECL"===H.selNode.lnImplementation?e.lcZ(2,3,b.column):e.xi3(3,5,b.column,"_")," ")}}const _h=function(A){return{"ml-minus-1":A}};function qc(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA(),e.TgZ(5,"mat-form-field",20)(6,"mat-label"),e._uU(7,"Records/Page"),e.qZA(),e.TgZ(8,"mat-select",21),e.NdJ("ngModelChange",function(H){const yt=e.CHM(b).$implicit;return e.KtG(yt.recordsPerPage=H)}),e.YNc(9,Ns,2,2,"mat-option",22),e.qZA()(),e.TgZ(10,"mat-form-field",20)(11,"mat-label"),e._uU(12,"Sort By"),e.qZA(),e.TgZ(13,"mat-select",23),e.NdJ("ngModelChange",function(H){const yt=e.CHM(b).$implicit;return e.KtG(yt.sortBy=H)}),e.YNc(14,ed,4,7,"mat-option",22),e.qZA()(),e.TgZ(15,"mat-form-field",20)(16,"mat-label"),e._uU(17,"Sort Order"),e.qZA(),e.TgZ(18,"mat-select",24),e.NdJ("ngModelChange",function(H){const yt=e.CHM(b).$implicit;return e.KtG(yt.sortOrder=H)}),e.YNc(19,t1,2,2,"mat-option",22),e.qZA()(),e.YNc(20,Xa,5,4,"mat-form-field",25),e.TgZ(21,"mat-form-field",26)(22,"mat-label"),e._uU(23,"Column Selection (Mobile Resolution)"),e.qZA(),e.TgZ(24,"mat-select",27),e.NdJ("ngModelChange",function(H){const yt=e.CHM(b).$implicit;return e.KtG(yt.columnSelectionSM=H)}),e.YNc(25,yl,4,8,"mat-option",28),e.qZA()(),e.TgZ(26,"button",29),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw().$implicit,Jt=e.oxw();return e.KtG(Jt.onTableReset(yt.pageId,ve))}),e.TgZ(27,"mat-icon",30),e._uU(28,"restore"),e.qZA()()()()}if(2&A){const b=P.$implicit,I=e.oxw().$implicit,H=e.oxw();e.xp6(3),e.hij("",e.xi3(4,20,b.tableId,"_"),":"),e.xp6(5),e.hYB("name","",I.pageId,"",b.tableId,"-page-size-options"),e.Q6J("disabled",H.nodePageDefs[I.pageId][b.tableId].disablePageSize)("ngModel",b.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",H.pageSizeOptions),e.xp6(4),e.hYB("name","",I.pageId,"",b.tableId,"-sort-by"),e.Q6J("ngModel",b.sortBy),e.xp6(1),e.Q6J("ngForOf",b.columnSelection),e.xp6(4),e.hYB("name","",I.pageId,"",b.tableId,"-sort-order"),e.Q6J("ngModel",b.sortOrder),e.xp6(1),e.Q6J("ngForOf",H.sortOrders),e.xp6(1),e.Q6J("ngIf",H.screenSize!==H.screenSizeEnum.XS),e.xp6(4),e.hYB("name","",I.pageId,"",b.tableId,"-columns-selection-sm"),e.Q6J("ngModel",b.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",H.nodePageDefs[I.pageId][b.tableId].allowedColumns),e.xp6(2),e.Q6J("ngClass",e.VKq(23,_h,H.screenSize===H.screenSizeEnum.XS||H.screenSize===H.screenSizeEnum.SM))}}function Jc(A,P){if(1&A&&e.GkF(0,14),2&A){const b=e.oxw(2),I=e.MAs(18);e.Q6J("ngTemplateOutlet",I)("ngTemplateOutletContext",e.VKq(2,Ao,b.errorMessage))}}const xc=function(A){return{"error-border":A}};function Pf(A,P){if(1&A&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA()(),e.YNc(5,qc,29,25,"div",16),e.YNc(6,Jc,1,4,"ng-container",6),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("ngClass",e.VKq(7,xc,(null==I.errorMessage?null:I.errorMessage.page)===b.pageId)),e.xp6(3),e.Oqu(e.xi3(4,4,b.pageId,"_")),e.xp6(2),e.Q6J("ngForOf",b.tables),e.xp6(1),e.Q6J("ngIf",I.errorMessage&&(null==I.errorMessage?null:I.errorMessage.page)===b.pageId)}}function vh(A,P){if(1&A&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&A){const b=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,b.page),"")}}function bh(A,P){if(1&A&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&A){const b=e.oxw().error;e.xp6(4),e.Oqu(b.message)}}function td(A,P){if(1&A&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,b.table)," ",b.message,"")}}const L4=function(A){return{"error-border p-2":A}};function S2(A,P){if(1&A&&(e.TgZ(0,"div",35),e.YNc(1,vh,3,3,"mat-panel-title",36),e.TgZ(2,"mat-list",37),e.YNc(3,bh,5,1,"mat-list-item",36),e.YNc(4,td,6,4,"mat-list-item",38),e.qZA()()),2&A){const b=P.error,I=e.oxw();e.Q6J("ngClass",e.VKq(4,L4,"unknown"===I.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===I.errorMessage.page),e.xp6(2),e.Q6J("ngIf",b.message),e.xp6(1),e.Q6J("ngForOf",b.tables)}}let Rf=(()=>{var A;class P{constructor(I,H,ve,yt){this.logger=I,this.commonService=H,this.store=ve,this.actions=yt,this.faPenRuler=Ui.SoD,this.faExclamationTriangle=Ui.eHv,this.screenSize="",this.screenSizeEnum=we.cu,this.pageSizeOptions=we.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=we.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=we.Bn,this.errorMessage=null,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{switch(this.selNode=I,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],we.gG),this.defaultSettings=Object.assign([],we.gG),this.nodePageDefs=we.At,this.store.select(za.AS).pipe((0,Ki.R)(this.unSubs[1]),(0,Eo.M)(this.store.select(za.lw))).subscribe(([H,ve])=>{const yt=JSON.parse(JSON.stringify(H.pageSettings));if(this.errorMessage=null,this.apiCallStatus=H.apiCallStatus,this.apiCallStatus.status===we.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=yt,this.initialPageSettings=yt;else{if(!ve?.enableOffers){const Jt=yt.find(ji=>"transactions"===ji.pageId),ri=Jt?.tables.findIndex(ji=>"offers"===ji.tableId),Ci=Jt?.tables.findIndex(ji=>"offer_bookmarks"===ji.tableId);ri>-1&&Jt?.tables.splice(ri,1),Ci>-1&&Jt?.tables.splice(Ci,1)}if(!ve?.enablePeerswap){const Jt=yt.findIndex(ri=>"peerswap"===ri.pageId);Jt>-1&&yt.splice(Jt,1)}this.pageSettings=yt,this.initialPageSettings=yt}this.logger.info(yt)}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(H=>H.type===we.AB.UPDATE_API_CALL_STATUS_CLN||H.type===we.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(H=>{H.type===we.AB.UPDATE_API_CALL_STATUS_CLN&&H.payload.status===we.Bn.ERROR&&"SavePageSettings"===H.payload.action&&(this.errorMessage=JSON.parse(H.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],we.c3),this.defaultSettings=Object.assign([],we.c3),this.nodePageDefs=we.Xk,this.store.select(Xs.nF).pipe((0,Ki.R)(this.unSubs[1]),(0,Eo.M)(this.store.select(Xs.LR))).subscribe(([H,ve])=>{const yt=JSON.parse(JSON.stringify(H.pageSettings));this.errorMessage=null,this.apiCallStatus=H.apiCallStatus,this.apiCallStatus.status===we.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=yt,this.initialPageSettings=yt):(this.pageSettings=yt,this.initialPageSettings=yt),this.logger.info(yt)}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(H=>H.type===we.lr.UPDATE_API_CALL_STATUS_ECL||H.type===we.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(H=>{H.type===we.lr.UPDATE_API_CALL_STATUS_ECL&&H.payload.status===we.Bn.ERROR&&"SavePageSettings"===H.payload.action&&(this.errorMessage=JSON.parse(H.payload.message))});break;default:this.initialPageSettings=Object.assign([],we.gK),this.defaultSettings=Object.assign([],we.gK),this.nodePageDefs=we.hG,this.store.select(bc.Pr).pipe((0,Ki.R)(this.unSubs[1]),(0,Eo.M)(this.store.select(bc.$k))).subscribe(([H,ve])=>{const yt=JSON.parse(JSON.stringify(H.pageSettings));if(this.errorMessage=null,this.apiCallStatus=H.apiCallStatus,this.apiCallStatus.status===we.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=yt,this.initialPageSettings=yt;else{if(!ve?.swapServerUrl||""===ve.swapServerUrl.trim()){const Jt=yt.findIndex(ri=>"loop"===ri.pageId);Jt>-1&&yt.splice(Jt,1)}if(!ve?.boltzServerUrl||""===ve.boltzServerUrl.trim()){const Jt=yt.findIndex(ri=>"boltz"===ri.pageId);Jt>-1&&yt.splice(Jt,1)}if(!ve?.enablePeerswap){const Jt=yt.findIndex(ri=>"peerswap"===ri.pageId);Jt>-1&&yt.splice(Jt,1)}this.pageSettings=yt,this.initialPageSettings=yt}this.logger.info(yt)}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(H=>H.type===we.uR.UPDATE_API_CALL_STATUS_LND||H.type===we.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(H=>{H.type===we.uR.UPDATE_API_CALL_STATUS_LND&&H.payload.status===we.Bn.ERROR&&"SavePageSettings"===H.payload.action&&(this.errorMessage=JSON.parse(H.payload.message))})}})}oncolumnSelectionChange(I){I.columnSelection&&(!I.sortBy||!I.columnSelection.includes(I.sortBy))&&(I.sortBy=I.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((I,H)=>I||H.tables.reduce((ve,yt)=>!(yt.recordsPerPage&&yt.sortBy&&yt.sortOrder&&yt.columnSelection&&yt.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,xe.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,_e.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,ae.eF)({payload:this.pageSettings}))}}onTableReset(I,H){const ve=this.pageSettings.findIndex(ri=>ri.pageId===I),yt=this.pageSettings[ve].tables.findIndex(ri=>ri.tableId===H.tableId),Jt=this.defaultSettings.find(ri=>ri.pageId===I)?.tables.find(ri=>ri.tableId===H.tableId)||this.pageSettings.find(ri=>ri.pageId===I)?.tables.find(ri=>ri.tableId===H.tableId);this.pageSettings[ve].tables.splice(yt,1,Jt)}onResetPageSettings(I){"current"===I?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh),e.Y36(Na.eX))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-page-settings"]],decls:19,vars:3,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"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"disabled","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"name","ngModel","ngModelChange"],["tabindex","4","required","",3,"name","ngModel","ngModelChange"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"name","ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"name","ngModel","ngModelChange","selectionChange"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Grid Settings"),e.qZA()(),e.YNc(7,e1,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,Pf,7,9,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return H.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return H.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return H.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,S2,5,6,"ng-template",null,13,e.W1O)),2&I&&(e.xp6(4),e.Q6J("icon",H.faPenRuler),e.xp6(3),e.Q6J("ngIf",H.errorMessage&&"unknown"===H.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",H.pageSettings))},dependencies:[Fi.mk,Fi.sg,Fi.O5,Fi.tP,qt._Y,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,_i.lW,_i.RK,At.pp,At.ib,At.yz,At.yK,br.Hw,yi.KE,yi.hX,fo.i$,fo.Tg,Oi.gD,qi.ey,yr.gM,tn.$V,Fi.rS,xr.D3,xr.i1],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}),P})();function id(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.activeLink=H.links[0].link)}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.s9C("routerLink",b.links[0].link),e.Q6J("active",b.activeLink===b.links[0].link),e.xp6(1),e.Oqu(b.links[0].name)}}const nd=function(){return{initial:!1}};function yh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.activeLink=H.links[1].link)}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.s9C("routerLink",b.links[1].link),e.Q6J("active",b.activeLink===b.links[1].link)("state",e.DdM(4,nd)),e.xp6(1),e.Oqu(b.links[1].name)}}function xh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.activeLink=H.links[2].link)}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.s9C("routerLink",b.links[2].link),e.Q6J("active",b.activeLink===b.links[2].link),e.xp6(1),e.Oqu(b.links[2].name)}}let ad=(()=>{var A;class P{constructor(I,H,ve){this.store=I,this.router=H,this.activatedRoute=ve,this.faLayerGroup=Ui.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){const I=this.links.find(H=>this.router.url.includes(H.link));I&&(this.activeLink=I.link),this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(H=>H instanceof On.Av)).subscribe({next:H=>{const ve=this.links.find(yt=>H.urlAfterRedirects.includes(yt.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:ve?ve.link:this.links[0].link}}),this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Di.yh),e.Y36(On.F0),e.Y36(On.gz))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-services-settings"]],decls:16,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(I,H){if(1&I&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Services"),e.qZA()()(),e.TgZ(5,"div",4)(6,"mat-card")(7,"mat-card-content",4)(8,"nav",5),e.YNc(9,id,2,3,"div",6),e.YNc(10,yh,2,5,"div",7),e.YNc(11,xh,2,3,"div",6),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,8),e.TgZ(14,"div",9),e._UZ(15,"router-outlet"),e.qZA()()()()),2&I){const ve=e.MAs(13);e.xp6(2),e.Q6J("icon",H.faLayerGroup),e.xp6(6),e.Q6J("tabPanel",ve),e.xp6(1),e.Q6J("ngIf","LND"===(null==H.selNode||null==H.selNode.lnImplementation?null:H.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==H.selNode||null==H.selNode.lnImplementation?null:H.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==H.selNode||null==H.selNode.lnImplementation?null:H.selNode.lnImplementation.toUpperCase()))}},dependencies:[Fi.O5,ma.BN,zi.xw,zi.Wh,zi.yH,Rn.a8,Rn.dn,Be.BU,Be.sW,Be.Nj,On.lC,On.rH]}),P})();const Nf=["form"];function $s(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function T2(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function Ch(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let wh=(()=>{var A;class P{constructor(I,H){this.logger=I,this.store=H,this.faInfoCircle=Ui.sqG,this.enableLoop=!1,this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I,this.enableLoop=!(!I.settings.swapServerUrl||""===I.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(I)})}onEnableServiceChanged(I){this.enableLoop=I.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,Rt.jS)({payload:{uiMessage:we.m6.UPDATE_LOOP_SETTINGS,service:we.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ae.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,xe.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,_e.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,unannouncedChannels:this.selNode.unannouncedChannels,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(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-loop-service-settings"]],viewQuery:function(I,H){if(1&I&&e.Gf(Nf,7),2&I){let ve;e.iGM(ve=e.CRH())&&(H.form=ve.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"required","disabled","ngModel","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(I,H){if(1&I&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(yt){return H.enableLoop=yt})("change",function(yt){return H.onEnableServiceChanged(yt)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Loop Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(yt){return H.selNode.settings.swapServerUrl=yt}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.qZA(),e.YNc(24,$s,2,0,"mat-error",11),e.YNc(25,T2,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Loop Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(yt){return H.selNode.authentication.swapMacaroonPath=yt}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(32,Ch,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return H.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return H.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&I){const ve=e.MAs(21);e.xp6(2),e.Q6J("icon",H.faInfoCircle),e.xp6(13),e.Q6J("ngModel",H.enableLoop),e.xp6(5),e.Q6J("required",H.enableLoop)("disabled",!H.enableLoop)("ngModel",H.selNode.settings.swapServerUrl),e.xp6(4),e.Q6J("ngIf",!H.selNode.settings.swapServerUrl&&H.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==ve||null==ve.errors?null:ve.errors.invalid)&&H.enableLoop),e.xp6(4),e.Q6J("required",H.enableLoop)("disabled",!H.enableLoop)("ngModel",H.selNode.authentication.swapMacaroonPath),e.xp6(3),e.Q6J("ngIf",!H.selNode.authentication.swapMacaroonPath&&H.enableLoop)}},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,_i.lW,Ha.Nt,yi.KE,yi.hX,yi.bx,yi.TO,ui.Rr,tn.$V,dn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),P})();const rd=["form"];function od(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function Ff(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function sd(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let D4=(()=>{var A;class P{constructor(I,H){this.logger=I,this.store=H,this.faInfoCircle=Ui.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new Ii.x,new Ii.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I,this.enableBoltz=!(!I.settings.boltzServerUrl||""===I.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(I)})}onEnableServiceChanged(I){this.enableBoltz=I.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,Rt.jS)({payload:{uiMessage:we.m6.UPDATE_BOLTZ_SETTINGS,service:we.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ae.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,xe.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,_e.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,unannouncedChannels:this.selNode.unannouncedChannels,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(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(I,H){if(1&I&&e.Gf(rd,7),2&I){let ve;e.iGM(ve=e.CRH())&&(H.form=ve.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"required","disabled","ngModel","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(I,H){if(1&I&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(yt){return H.enableBoltz=yt})("change",function(yt){return H.onEnableServiceChanged(yt)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Boltz Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(yt){return H.serverUrl=yt}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.qZA(),e.YNc(24,od,2,0,"mat-error",11),e.YNc(25,Ff,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Boltz Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(yt){return H.macaroonPath=yt}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(32,sd,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return H.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return H.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&I){const ve=e.MAs(21);e.xp6(2),e.Q6J("icon",H.faInfoCircle),e.xp6(13),e.Q6J("ngModel",H.enableBoltz),e.xp6(5),e.Q6J("required",H.enableBoltz)("disabled",!H.enableBoltz)("ngModel",H.serverUrl),e.xp6(4),e.Q6J("ngIf",(!H.serverUrl||""===H.serverUrl.trim())&&H.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==ve||null==ve.errors?null:ve.errors.invalid)&&H.enableBoltz),e.xp6(4),e.Q6J("required",H.enableBoltz)("disabled",!H.enableBoltz)("ngModel",H.macaroonPath),e.xp6(3),e.Q6J("ngIf",!H.macaroonPath&&H.enableBoltz)}},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,_i.lW,Ha.Nt,yi.KE,yi.hX,yi.bx,yi.TO,ui.Rr,tn.$V,dn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),P})();class Pr{constructor(P){this.help=P}}function Fs(A,P){if(1&A&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&A){const b=e.oxw().$implicit,I=e.oxw();e.xp6(3),e.Oqu(b.help.question),e.xp6(2),e.Q6J("innerHTML",b.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",I.flgLoggedIn?b.help.link:"/login"),e.xp6(1),e.Oqu(I.flgLoggedIn?b.help.linkCaption:"Login to go to the page")}}function cd(A,P){if(1&A&&(e.TgZ(0,"div",6),e.YNc(1,Fs,8,4,"mat-expansion-panel",7),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===b.help.lnImplementation||b.help.lnImplementation===I.selNode.lnImplementation)}}let E2=(()=>{var A;class P{constructor(I,H){this.store=I,this.sessionService=H,this.helpTopics=[],this.faQuestion=Ui.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.flgLoggedIn=!!I.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new Pr({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:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({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:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, 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:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({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. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. 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:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new Pr({question:"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:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"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:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. issuer - issuer of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new Pr({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:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Pr({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:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new Pr({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:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({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:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" 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:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new Pr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new Pr({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" 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. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/layout",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new Pr({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Di.yh),e.Y36(ja.m))},A.\u0275cmp=e.Xpm({type:A,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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,cd,2,1,"div",5),e.qZA()()()),2&I&&(e.xp6(2),e.Q6J("icon",H.faQuestion),e.xp6(5),e.Q6J("ngForOf",H.helpTopics))},dependencies:[Fi.sg,Fi.O5,ma.BN,zi.xw,zi.Wh,zi.yH,At.ib,At.yz,At.yK,At.u4,On.rH],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),P})();var ld=m(9841);function gs(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let Mh=(()=>{var A;class P{constructor(I,H){this.dialogRef=I,this.store=H,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Rt.M6)({payload:{twoFAToken:this.token}}))}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Qn.so),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-login-token"]],decls:19,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 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","","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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return H.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return H.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"Token"),e.qZA(),e.TgZ(14,"input",9),e.NdJ("ngModelChange",function(yt){return H.token=yt}),e.qZA(),e.YNc(15,gs,2,0,"mat-error",10),e.qZA(),e.TgZ(16,"div",11)(17,"button",12),e._uU(18,"Verify Token"),e.qZA()()()()()()),2&I&&(e.xp6(14),e.Q6J("ngModel",H.token),e.xp6(1),e.Q6J("ngIf",!H.token))},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,zi.xw,zi.Wh,zi.yH,_i.lW,Rn.dn,Rn.dk,Ha.Nt,yi.KE,yi.hX,yi.TO,dn.h]}),P})();function A2(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Sh(A,P){if(1&A&&(e.TgZ(0,"p",20)(1,"mat-icon",21),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&A){const b=e.oxw();e.xp6(3),e.hij(" ",b.loginErrorMessage," ")}}const Th=function(A){return{"padding-gap-large":A}},L2=function(A,P){return{"font-size-200":A,"font-size-300":P}};let Eh=(()=>{var A;class P{constructor(I,H,ve,yt){this.logger=I,this.store=H,this.rtlEffects=ve,this.commonService=yt,this.faUnlockAlt=Ui.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=we.cu,this.loginErrorMessage="",this.apiCallStatusEnum=we.Bn,this.unSubs=[new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,ld.a)([this.store.select(ba.ul),this.store.select(ba.Sr)]).pipe((0,Ki.R)(this.unSubs[0])).subscribe(([I,H])=>{this.loginErrorMessage="",I.status===we.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof I.message?JSON.stringify(I.message):I.message),this.logger.error(I.message)),H.status===we.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof H.message?JSON.stringify(H.message):H.message),this.logger.error(H.message))}),this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.appConfig=I,this.logger.info(I)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Rt.qR)({payload:{maxWidth:"35rem",data:{component:Mh}}})),this.rtlEffects.closeAlert.pipe((0,ua.q)(1)).subscribe(I=>{I&&this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.password),defaultPassword:we.kO.includes(this.password.toLowerCase()),twoFAToken:I.twoFAToken}}))})):this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.password),defaultPassword:we.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh),e.Y36(Sa.V),e.Y36(Ge.v))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-login"]],decls:28,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["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","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["loginForm","ngForm"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",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","mb-2",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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field")(15,"mat-label"),e._uU(16,"Password"),e.qZA(),e.TgZ(17,"input",13),e.NdJ("ngModelChange",function(yt){return H.password=yt}),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return H.flgShow=!H.flgShow}),e.TgZ(19,"mat-icon"),e._uU(20),e.qZA()(),e.YNc(21,A2,2,0,"mat-error",15),e.qZA(),e.YNc(22,Sh,4,1,"p",16),e.TgZ(23,"div",17)(24,"button",18),e.NdJ("click",function(){return H.resetData()}),e._uU(25,"Clear"),e.qZA(),e.TgZ(26,"button",19),e.NdJ("click",function(){return H.onLogin()}),e._uU(27,"Login"),e.qZA()()()()()()()()()),2&I&&(e.xp6(6),e.Q6J("ngClass",e.VKq(8,Th,H.screenSize===H.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(10,L2,H.screenSize===H.screenSizeEnum.XS,H.screenSize!==H.screenSizeEnum.XS)),e.xp6(9),e.Q6J("type",H.flgShow?"text":"password")("ngModel",H.password),e.xp6(1),e.uIk("aria-label","Hide password"),e.xp6(2),e.Oqu(H.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!H.password),e.xp6(1),e.Q6J("ngIf",""!==H.loginErrorMessage))},dependencies:[Fi.mk,Fi.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,zi.xw,zi.Wh,zi.yH,ht.oO,_i.lW,_i.RK,Rn.a8,Rn.dn,Rn.dk,Rn.n5,br.Hw,Ha.Nt,yi.KE,yi.hX,yi.TO,yi.R9,dn.h],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-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:90%;cursor:pointer}"]}),P})();var Hf=m(9442);let zf=(()=>{var A;class P{constructor(I,H){this.activatedRoute=I,this.router=H,this.error={errorCode:"",errorMessage:""},this.faTimes=Ui.NBC,this.unsubs=[new Ii.x,new Ii.x]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,Ki.R)(this.unsubs[0])).subscribe(I=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(On.gz),e.Y36(On.F0))},A.\u0275cmp=e.Xpm({type:A,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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return H.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&I&&(e.xp6(4),e.Q6J("icon",H.faTimes),e.xp6(2),e.hij("Error ",H.error.errorCode,""),e.xp6(3),e.Oqu(H.error.errorMessage))},dependencies:[ma.BN,zi.xw,zi.Wh,zi.yH,_i.lW,Rn.a8,Rn.dn,Rn.dk,Rn.n5],encapsulation:2}),P})();var Zr=m(1643),D2=m(8104),xl=m(9843),po=m(6534);function n1(A,P){1&A&&e._UZ(0,"span",16)}function Ah(A,P){1&A&&e._UZ(0,"span",17)}function Xc(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(2);return e.KtG(ve.enableOffers=H)})("change",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onUpdateFeature())}),e._uU(28),e.qZA()()}if(2&A){const b=e.oxw(2);e.xp6(3),e.Q6J("icon",b.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",b.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",b.enableOffers),e.xp6(1),e.hij("Enable Offers ",b.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function io(A,P){if(1&A&&(e.TgZ(0,"div")(1,"div",28),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"experimental-dual-fund"),e.qZA(),e._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(8,"strong")(9,"a",29),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about Core Lightning Liquidity Ads."),e.qZA()()()),2&A){const b=e.oxw(3);e.xp6(2),e.Q6J("icon",b.faExclamationTriangle)}}function ec(A,P){if(1&A&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b),e.xp6(1),e.hij(" ",e.lcZ(2,2,b.id)," ")}}function Lh(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&A){const b=e.oxw(4);e.xp6(1),e.hij("",b.selPolicyType.placeholder," is required.")}}function dd(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&A){const b=e.oxw(4);e.xp6(1),e.AsE("",b.selPolicyType.placeholder," must be greater than or equal to ",b.selPolicyType.min,".")}}function Vf(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&A){const b=e.oxw(4);e.xp6(1),e.AsE("",b.selPolicyType.placeholder," must be less than or equal to ",b.selPolicyType.max,".")}}function I2(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function Dh(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function k2(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function a1(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const r1=function(A,P){return{"alert-danger":A,"alert-info":P}};function Hs(A,P){if(1&A&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&A){const b=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,r1,!!b.updateMsg.error,!!b.updateMsg.data)),e.xp6(1),e.hij(" ",b.updateMsg.error&&""!==b.updateMsg.error?"Error: "+b.updateMsg.error||0:b.updateMsg.data&&""!==b.updateMsg.data?b.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function Bf(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-label"),e._uU(8,"Policy"),e.qZA(),e.TgZ(9,"mat-select",34),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(3);return e.KtG(ve.selPolicyType=H)})("selectionChange",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.policyMod=null)}),e.YNc(10,ec,3,4,"mat-option",35),e.qZA()(),e.TgZ(11,"mat-form-field",36)(12,"mat-label"),e._uU(13),e.qZA(),e.TgZ(14,"input",37,38),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(3);return e.KtG(ve.policyMod=H)}),e.qZA(),e.TgZ(16,"mat-hint"),e._uU(17),e.qZA(),e.YNc(18,Lh,2,1,"mat-error",26),e.YNc(19,dd,2,2,"mat-error",26),e.YNc(20,Vf,2,2,"mat-error",26),e.qZA()(),e.TgZ(21,"div",32)(22,"mat-form-field",36)(23,"mat-label"),e._uU(24,"Lease Base Fee (Sats)"),e.qZA(),e.TgZ(25,"input",39),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(3);return e.KtG(ve.lease_fee_base_sat=H)}),e.qZA(),e.YNc(26,I2,2,0,"mat-error",26),e.qZA(),e.TgZ(27,"mat-form-field",36)(28,"mat-label"),e._uU(29,"Lease Base Basis (bps)"),e.qZA(),e.TgZ(30,"input",40),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(3);return e.KtG(ve.lease_fee_basis=H)}),e.qZA(),e.YNc(31,Dh,2,0,"mat-error",26),e.qZA()(),e.TgZ(32,"div",32)(33,"mat-form-field",36)(34,"mat-label"),e._uU(35,"Max Channel Routing Base Fee (Sats)"),e.qZA(),e.TgZ(36,"input",41),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(3);return e.KtG(ve.channelFeeMaxBaseSat=H)}),e.qZA(),e.YNc(37,k2,2,0,"mat-error",26),e.qZA(),e.TgZ(38,"mat-form-field",36)(39,"mat-label"),e._uU(40,"Max Channel Routing Fee Rate (ppm)"),e.qZA(),e.TgZ(41,"input",42),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw(3);return e.KtG(ve.channelFeeMaxProportional=H)}),e.qZA(),e.YNc(42,a1,2,0,"mat-error",26),e.qZA()(),e.YNc(43,Hs,3,5,"h4",43),e.TgZ(44,"div",44)(45,"button",45),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.onResetPolicy())}),e._uU(46,"Reset"),e.qZA(),e.TgZ(47,"button",46),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.onUpdateFundingPolicy())}),e._uU(48,"Update"),e.qZA()()()}if(2&A){const b=e.oxw(3);e.xp6(2),e.Q6J("icon",b.faExclamationTriangle),e.xp6(7),e.Q6J("ngModel",b.selPolicyType),e.xp6(1),e.Q6J("ngForOf",b.policyTypes),e.xp6(3),e.Oqu(b.selPolicyType.placeholder),e.xp6(1),e.Q6J("step","fixed"===b.selPolicyType.id?1e3:10)("min",b.selPolicyType.min)("max",b.selPolicyType.max)("ngModel",b.policyMod),e.xp6(3),e.lnq("",b.selPolicyType.placeholder," should be between ",b.selPolicyType.min," and ",b.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!b.policyMod),e.xp6(1),e.Q6J("ngIf",b.policyMod<b.selPolicyType.min),e.xp6(1),e.Q6J("ngIf",b.policyMod>b.selPolicyType.max),e.xp6(5),e.Q6J("ngModel",b.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!b.lease_fee_base_sat),e.xp6(4),e.Q6J("ngModel",b.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!b.lease_fee_basis),e.xp6(5),e.Q6J("ngModel",b.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!b.channelFeeMaxBaseSat),e.xp6(4),e.Q6J("ngModel",b.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!b.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",b.flgUpdateCalled)}}function Cl(A,P){if(1&A&&(e.TgZ(0,"form",18,4),e.YNc(2,io,12,1,"div",26),e.YNc(3,Bf,49,23,"div",27),e.qZA()),2&A){const b=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!b.features[1].enabled),e.xp6(1),e.Q6J("ngIf",b.features[1].enabled)}}function O2(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const ve=e.CHM(b).index,yt=e.oxw();return e.KtG(yt.onPanelExpanded(ve))}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,n1,1,0,"span",12),e.YNc(7,Ah,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,Xc,29,5,"form",15),e.YNc(11,Cl,4,2,"form",15),e.qZA()()}if(2&A){const b=P.$implicit,I=P.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(b.name),e.xp6(2),e.Q6J("ngIf",b.enabled),e.xp6(1),e.Q6J("ngIf",!b.enabled),e.xp6(1),e.hij(" ",b.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===I),e.xp6(1),e.Q6J("ngIf",1===I)}}let wl=(()=>{var A;class P{constructor(I,H,ve,yt){this.logger=I,this.store=H,this.dataService=ve,this.commonService=yt,this.faInfoCircle=Ui.sqG,this.faExclamationTriangle=Ui.eHv,this.faCode=Ui.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=we.gB,this.selPolicyType=we.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,Ki.R)(this.unSubs[0])).subscribe({next:I=>{this.logger.info("Received List Configs: "+JSON.stringify(I)),this.features[1].enabled=!!I["experimental-dual-fund"]},error:I=>{this.logger.error("List Configs Error: "+JSON.stringify(I)),this.features[1].enabled=!1}}),this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.selNode=I,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(za.Rn).pipe((0,Ki.R)(this.unSubs[2])).subscribe(I=>{this.policyTypes[2].max=I.balance.totalBalance||1e3})}onPanelExpanded(I){1===I&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,Ki.R)(this.unSubs[3])).subscribe(H=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(H)),this.fundingPolicy=H,this.fundingPolicy.policy&&(this.selPolicyType=we.gB.find(ve=>ve.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=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,Rt.jS)({payload:{uiMessage:we.m6.UPDATE_SETTING,service:we.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ae.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,xe.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,_e.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,Ki.R)(this.unSubs[4])).subscribe({next:I=>{this.logger.info(I),this.fundingPolicy=I,this.updateMsg={data:"Compact Lease: "+I.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:I=>{this.logger.error(I),this.updateMsg={error:this.commonService.extractErrorMessage(I,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?we.gB.find(I=>I.id===this.fundingPolicy.policy)||this.policyTypes[0]:we.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=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(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh),e.Y36(D2.D),e.Y36(Ge.v))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"step","min","max","ngModel","ngModelChange"],["plcMod","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,O2,12,7,"mat-expansion-panel",8),e.qZA()()()),2&I&&(e.xp6(2),e.Q6J("icon",H.faInfoCircle),e.xp6(6),e.Q6J("icon",H.faCode),e.xp6(4),e.Q6J("ngForOf",H.features))},dependencies:[Fi.mk,Fi.sg,Fi.O5,qt._Y,qt.Fj,qt.wV,qt.JJ,qt.JL,qt.Q7,qt.qQ,qt.Fd,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,_i.lW,At.pp,At.ib,At.yz,At.yK,Ha.Nt,yi.KE,yi.hX,yi.bx,yi.TO,Gr.d,Oi.gD,qi.ey,ui.Rr,tn.$V,dn.h,xl.F,po.q,Fi.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),P})();function Cc(A,P){if(1&A&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",11),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5),e.qZA()()()()),2&A){const b=e.oxw();e.xp6(3),e.Q6J("icon",b.faExclamationTriangle),e.xp6(2),e.Oqu(b.errorMessage)}}const Ih=function(A){return{$implicit:A}};function kh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",12)(1,"div",10)(2,"mat-slide-toggle",13),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.allowNewSwaps=H)})("change",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.updateAllowNewSwaps())}),e._uU(3,"Allow New Swaps"),e.qZA()(),e._UZ(4,"mat-divider",14),e.TgZ(5,"div",10)(6,"div",15)(7,"h4",16),e._uU(8,"Accept All Peers"),e.qZA(),e.TgZ(9,"span",17),e._uU(10),e.qZA()(),e.TgZ(11,"div",15)(12,"h4",16),e._uU(13,"Min Swap Amount (Sats)"),e.qZA(),e.TgZ(14,"span",17),e._uU(15),e.ALo(16,"number"),e.qZA()(),e.TgZ(17,"div",18)(18,"h4",16),e._uU(19,"Onchain Reserve (Sats)"),e.qZA(),e.TgZ(20,"span",17),e._uU(21),e.ALo(22,"number"),e.qZA()()(),e._UZ(23,"mat-divider",14),e.TgZ(24,"div",10)(25,"div",19),e.GkF(26,20),e.qZA()(),e._UZ(27,"mat-divider",14),e.TgZ(28,"div",10)(29,"div",19),e.GkF(30,20),e.qZA()()()}if(2&A){const b=e.oxw(),I=e.MAs(18);e.xp6(2),e.Q6J("ngModel",b.allowNewSwaps),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null!=b.psPolicy&&b.psPolicy.accept_all_peers?"Yes":"No"),e.xp6(5),e.Oqu(e.lcZ(16,11,(null==b.psPolicy?null:b.psPolicy.min_swap_amount_msat)/1e3)),e.xp6(6),e.Oqu(e.lcZ(22,13,(null==b.psPolicy?null:b.psPolicy.reserve_onchain_msat)/1e3)),e.xp6(2),e.Q6J("inset",!0),e.xp6(3),e.Q6J("ngTemplateOutlet",I)("ngTemplateOutletContext",e.VKq(15,Ih,b.dataForSuspiciousList)),e.xp6(1),e.Q6J("inset",!0),e.xp6(3),e.Q6J("ngTemplateOutlet",I)("ngTemplateOutletContext",e.VKq(17,Ih,b.dataForAllowedList))}}function zs(A,P){if(1&A&&(e.TgZ(0,"div",31)(1,"div",10)(2,"div",11),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5),e.qZA()()()()),2&A){const b=e.oxw().$implicit,I=e.oxw();e.xp6(3),e.Q6J("icon",I.faExclamationTriangle),e.xp6(2),e.Oqu(b.addRemoveError)}}function o1(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-card",26)(1,"div",32)(2,"button",33),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw().$implicit,Jt=e.oxw();return e.KtG(Jt.onRemovePeer(ve,yt.list))}),e.TgZ(3,"mat-icon"),e._uU(4,"remove_circle_outline"),e.qZA()()(),e.TgZ(5,"div",34),e._uU(6),e.qZA()()}if(2&A){const b=P.$implicit,I=e.oxw().$implicit;e.xp6(2),e.Q6J("matTooltip","Remove peer from "+I.title+" list"),e.xp6(4),e.Oqu(b)}}function $c(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-expansion-panel",21)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",22)(4,"mat-icon",23),e._uU(5),e.qZA(),e._uU(6),e.ALo(7,"titlecase"),e.qZA()()(),e.YNc(8,zs,6,2,"div",24),e.TgZ(9,"div"),e.YNc(10,o1,7,2,"mat-card",25),e.TgZ(11,"mat-card",26)(12,"div",27)(13,"button",28),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onAddPeer(ve.ngModelVar,ve.list))}),e.TgZ(14,"mat-icon"),e._uU(15,"add_circle_outline"),e.qZA()()(),e.TgZ(16,"mat-form-field",29)(17,"input",30),e.NdJ("ngModelChange",function(H){const yt=e.CHM(b).$implicit;return e.KtG(yt.ngModelVar=H)}),e.qZA()()()()()}if(2&A){const b=P.$implicit,I=e.oxw();e.Q6J("expanded",!1),e.xp6(4),e.Q6J("ngClass",b.class),e.xp6(1),e.Oqu(b.icon),e.xp6(1),e.Oqu(e.lcZ(7,9,b.title)),e.xp6(2),e.Q6J("ngIf",""!==b.addRemoveError),e.xp6(2),e.Q6J("ngForOf",null==I.psPolicy?null:I.psPolicy[b.dataSource]),e.xp6(2),e.Q6J("matTooltip","Add peer to "+b.title+" list"),e.xp6(1),e.Q6J("disabled",!b.ngModelVar||""===b.ngModelVar||(null==b.ngModelVar?null:b.ngModelVar.length)<50),e.xp6(4),e.Q6J("ngModel",b.ngModelVar)}}let el=(()=>{var A;class P{constructor(I,H,ve){this.logger=I,this.store=H,this.dataService=ve,this.faInfoCircle=Ui.sqG,this.faExclamationTriangle=Ui.eHv,this.enablePeerswap=!1,this.allowNewSwaps=!1,this.psPolicy={min_swap_amount_msat:1e8},this.peerswapPeersLists=we.rc,this.errorMessage="",this.dataForAllowedList={icon:"check",class:"green",title:"whitelisted peers",dataSource:"allowlisted_peers",list:we.rc.ALLOWED,ngModelVar:"",addRemoveError:""},this.dataForSuspiciousList={icon:"close",class:"red",title:"suspicious peers",dataSource:"suspicious_peers",list:we.rc.SUSPICIOUS,ngModelVar:"",addRemoveError:""},this.apiCallStatus=null,this.apiCallStatusEnum=we.Bn,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I,this.enablePeerswap=!!I?.settings.enablePeerswap,this.logger.info(I)}),this.store.select(za.JS).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.errorMessage="",this.apiCallStatus=I.apiCallStatus,this.apiCallStatus?.status===we.Bn.UN_INITIATED&&this.store.dispatch((0,xe.ks)()),this.apiCallStatus.status===we.Bn.ERROR&&(this.errorMessage="ERROR: "+(this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:"")),this.psPolicy=I.policy,this.allowNewSwaps=I.policy.allow_new_swaps,this.logger.info(I)})}onUpdateService(){this.store.dispatch((0,Rt.jS)({payload:{uiMessage:we.m6.UPDATE_PEERSWAP_SETTINGS,service:we.JX.PEERSWAP,settings:{enablePeerswap:this.enablePeerswap}}})),this.store.dispatch((0,ae.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,xe.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,_e.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}}))}onAddPeer(I,H){H!==we.rc.ALLOWED?this.dataForSuspiciousList.addRemoveError="":this.dataForAllowedList.addRemoveError="",this.dataService.addPeerToPeerswap(I,H).pipe((0,Ki.R)(this.unSubs[2])).subscribe({next:ve=>{this.store.dispatch((0,xe.C5)({payload:ve||{min_swap_amount_msat:1e8}})),H!==we.rc.ALLOWED?this.dataForSuspiciousList.ngModelVar="":this.dataForAllowedList.ngModelVar=""},error:ve=>{H!==we.rc.ALLOWED?this.dataForSuspiciousList.addRemoveError="ERROR: "+ve:this.dataForAllowedList.addRemoveError="ERROR: "+ve,setTimeout(()=>{H!==we.rc.ALLOWED?this.dataForSuspiciousList.addRemoveError="":this.dataForAllowedList.addRemoveError=""},3e3)}})}onRemovePeer(I,H){H!==we.rc.ALLOWED?this.dataForSuspiciousList.addRemoveError="":this.dataForAllowedList.addRemoveError="",this.dataService.removePeerFromPeerswap(I,H).pipe((0,Ki.R)(this.unSubs[3])).subscribe({next:ve=>{this.store.dispatch((0,xe.C5)({payload:ve||{min_swap_amount_msat:1e8}}))},error:ve=>{H!==we.rc.ALLOWED?this.dataForSuspiciousList.addRemoveError="ERROR: "+ve:this.dataForAllowedList.addRemoveError="ERROR: "+ve,setTimeout(()=>{H!==we.rc.ALLOWED?this.dataForSuspiciousList.addRemoveError="":this.dataForAllowedList.addRemoveError=""},3e3)}})}updateAllowNewSwaps(){this.dataService.allowPeerswapRequests(this.allowNewSwaps).pipe((0,Ki.R)(this.unSubs[4])).subscribe({next:I=>{this.store.dispatch((0,xe.C5)({payload:I||{min_swap_amount_msat:1e8}}))}})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Di.yh),e.Y36(D2.D))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-peerswap-service-settings"]],decls:19,vars:4,consts:[["fxLayout","column","fxFlex","100"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.peerswap.dev/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["autoFocus","","tabindex","1","color","primary","name","peerswap",1,"my-1",3,"ngModel","ngModelChange","change"],["class","padding-gap-large error-border",4,"ngIf"],["class","padding-gap-large bordered-box",4,"ngIf"],["listExpansionPanel",""],[1,"padding-gap-large","error-border"],["fxLayout","row"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"padding-gap-large","bordered-box"],["fxLayoutAlign","start center","tabindex","2","color","primary","name","allownew",3,"ngModel","ngModelChange","change"],[1,"my-1",3,"inset"],["fxFlex","33"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","34"],["fxFlex","100"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],[1,"mr-5px","icon-small",3,"ngClass"],["class","padding-gap error-border",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","peer-card",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"peer-card"],["fxLayoutAlign","center center","matTooltipPosition","below",3,"matTooltip"],["mat-icon-button","","color","primary",1,"mr-1",3,"disabled","click"],["fxLayoutAlign","start stretch","fxFlex","80",1,"mt-5px"],["matInput","","placeholder","Node Id","name","nodeId","tabindex","4",3,"ngModel","ngModelChange"],[1,"padding-gap","error-border"],["fxLayoutAlign","center center"],["mat-icon-button","","color","primary","matTooltipPosition","below",1,"mr-1",3,"matTooltip","click"],["fxLayoutAlign","start center",1,"mt-5px"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"peerswap plugin"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about peerswap."),e.qZA()(),e.TgZ(12,"div",4)(13,"mat-slide-toggle",5),e.NdJ("ngModelChange",function(yt){return H.enablePeerswap=yt})("change",function(){return H.onUpdateService()}),e._uU(14,"Enable Peerswap Service"),e.qZA(),e.YNc(15,Cc,6,2,"div",6),e.YNc(16,kh,31,19,"div",7),e.qZA()(),e.YNc(17,$c,18,11,"ng-template",null,8,e.W1O)),2&I&&(e.xp6(2),e.Q6J("icon",H.faInfoCircle),e.xp6(11),e.Q6J("ngModel",H.enablePeerswap),e.xp6(2),e.Q6J("ngIf",H.enablePeerswap&&""!==H.errorMessage),e.xp6(1),e.Q6J("ngIf",H.enablePeerswap&&""===H.errorMessage))},dependencies:[Fi.mk,Fi.sg,Fi.O5,Fi.tP,qt.Fj,qt.JJ,qt.On,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,_i.RK,Rn.a8,At.ib,At.yz,At.yK,br.Hw,Ha.Nt,yi.KE,Gr.d,ui.Rr,yr.gM,dn.h,Fi.JJ,Fi.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),P})(),s1=(()=>{var A;class P{constructor(){}}return(A=P).\u0275fac=function(I){return new(I||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(I,H){1&I&&e._UZ(0,"router-outlet")},dependencies:[On.lC]}),P})();var tc=m(2615),c1=m(9107),Lo=m(8739),ns=m(6308),fn=m(671),l1=m(3162);function Uf(A,P){if(1&A&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("value",b),e.xp6(1),e.Oqu(I.getLabel(b))}}function Gf(A,P){1&A&&e._UZ(0,"mat-progress-bar",38)}function Zf(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function Oh(A,P){if(1&A&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Oqu(I.LoopStateEnum[null==b?null:b.state])}}function d1(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function hd(A,P){if(1&A&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==b?null:b.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function ud(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function wc(A,P){if(1&A&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==b?null:b.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function h1(A,P){1&A&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function Ml(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.amt))}}function fd(A,P){1&A&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function Mc(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.cost_server))}}function ic(A,P){1&A&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function P2(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.cost_offchain))}}function Ph(A,P){1&A&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function Wf(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==b?null:b.cost_onchain)," ")}}function md(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const R2=function(A){return{width:A}};function Rh(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,R2,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.htlc_address)}}function Nh(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function N2(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,R2,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.id)}}function F2(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function pd(A,P){if(1&A&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,R2,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.id_bytes)}}function Sl(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function u1(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(H){const yt=e.CHM(b).$implicit,Jt=e.oxw();return e.KtG(Jt.onSwapClick(yt,H))}),e._uU(2,"View Info"),e.qZA()()}}function f1(A,P){if(1&A&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.emptyTableMessage)}}function nc(A,P){if(1&A&&(e.TgZ(0,"td",51),e.YNc(1,f1,2,1,"p",52),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=b.listSwaps&&b.listSwaps.data)||(null==b.listSwaps||null==b.listSwaps.data?null:b.listSwaps.data.length)<1)}}const H2=function(A){return{"display-none":A}};function Tl(A,P){if(1&A&&e._UZ(0,"tr",53),2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,H2,(null==b.listSwaps?null:b.listSwaps.data)&&(null==b.listSwaps||null==b.listSwaps.data?null:b.listSwaps.data.length)>0))}}function Vs(A,P){1&A&&e._UZ(0,"tr",54)}function Yf(A,P){1&A&&e._UZ(0,"tr",55)}const m1=function(){return["all"]},gd=function(A){return{"overflow-auto error-border":A,"overflow-auto":!0}},El=function(){return["no_swap"]};let z2=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri){this.logger=I,this.commonService=H,this.store=ve,this.loopService=yt,this.datePipe=Jt,this.camelCaseWithReplace=ri,this.selectedSwapType=we.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=we.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:we.IV,sortBy:"initiation_time",sortOrder:we.Pi.DESCENDING},this.LoopStateEnum=we.Fq,this.faHistory=Ui.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new fn.by([]),this.selFilter="",this.pageSize=we.IV,this.pageSizeOptions=we.TJ,this.screenSize="",this.screenSizeEnum=we.cu,this.unSubs=[new Ii.x,new Ii.x,new Ii.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(bc.Pr).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.tableSetting=I.pageSettings.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSetting.tableId)||we.gK.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===we.cu.XS||this.screenSize===we.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:we.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(I){this.swapCaption=this.selectedSwapType===we.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(I){const H=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(ve=>ve.column===I);return H?H.label?H.label:this.camelCaseWithReplace.transform(H.column,"_"):this.commonService.titleCase(I)}setFilterPredicate(){this.listSwaps.filterPredicate=(I,H)=>{let ve="";switch(this.selFilterBy){case"all":ve=JSON.stringify(I).toLowerCase();break;case"state":ve=I?.state?this.LoopStateEnum[I?.state]:"";break;case"initiation_time":case"last_update_time":ve=this.datePipe.transform(new Date((I[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:ve=typeof I[this.selFilterBy]>"u"?"":"string"==typeof I[this.selFilterBy]?I[this.selFilterBy].toLowerCase():"boolean"==typeof I[this.selFilterBy]?I[this.selFilterBy]?"yes":"no":I[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===ve.indexOf(H):ve.includes(H)}}onSwapClick(I,H){this.loopService.getSwap(I.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,Ki.R)(this.unSubs[1])).subscribe(ve=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:we.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:we.Fq[ve.state||""],title:"Status",width:50,type:we.Gi.STRING},{key:"amt",value:ve.amt,title:"Amount (Sats)",width:50,type:we.Gi.NUMBER}],[{key:"initiation_time",value:(ve.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:we.Gi.DATE_TIME},{key:"last_update_time",value:(ve.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:we.Gi.DATE_TIME}],[{key:"cost_server",value:ve.cost_server,title:"Server Cost (Sats)",width:33,type:we.Gi.NUMBER},{key:"cost_offchain",value:ve.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:we.Gi.NUMBER},{key:"cost_onchain",value:ve.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:we.Gi.NUMBER}],[{key:"id_bytes",value:ve.id_bytes,title:"ID",width:100,type:we.Gi.STRING}],[{key:"htlc_address",value:ve.htlc_address,title:"HTLC Address",width:100,type:we.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(I){this.listSwaps=new fn.by([...I]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(H,ve)=>H[ve]&&isNaN(H[ve])?H[ve].toLocaleLowerCase():H[ve]?+H[ve]:null,this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===we.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh),e.Y36(c1.W),e.Y36(Fi.uU),e.Y36(xr.D3))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-swaps"]],viewQuery:function(I,H){if(1&I&&(e.Gf(ns.YE,5),e.Gf(Lo.NW,5)),2&I){let ve;e.iGM(ve=e.CRH())&&(H.sort=ve.first),e.iGM(ve=e.CRH())&&(H.paginator=ve.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Oi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Lo.ye,useValue:(0,we.pt)("Swaps")}]),e.TTD],decls:61,vars:20,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(yt){return H.selFilterBy=yt})("selectionChange",function(){return H.selFilter="",H.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,Uf,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(yt){return H.selFilter=yt})("input",function(){return H.applyFilter()})("keyup",function(){return H.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,Gf,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,Zf,2,0,"th",16),e.YNc(24,Oh,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,d1,2,0,"th",16),e.YNc(27,hd,3,4,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,ud,2,0,"th",16),e.YNc(30,wc,3,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,h1,2,0,"th",21),e.YNc(33,Ml,4,3,"td",17),e.BQk(),e.ynx(34,22),e.YNc(35,fd,2,0,"th",21),e.YNc(36,Mc,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,ic,2,0,"th",21),e.YNc(39,P2,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,Ph,2,0,"th",21),e.YNc(42,Wf,4,3,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,md,2,0,"th",16),e.YNc(45,Rh,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,Nh,2,0,"th",16),e.YNc(48,N2,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,F2,2,0,"th",16),e.YNc(51,pd,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,Sl,6,0,"th",29),e.YNc(54,u1,3,0,"td",30),e.BQk(),e.ynx(55,31),e.YNc(56,nc,2,1,"td",32),e.BQk(),e.YNc(57,Tl,1,3,"tr",33),e.YNc(58,Vs,1,0,"tr",34),e.YNc(59,Yf,1,0,"tr",35),e.qZA(),e._UZ(60,"mat-paginator",36),e.qZA()()()),2&I&&(e.xp6(3),e.Q6J("icon",H.faHistory),e.xp6(2),e.hij("",H.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",H.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,m1).concat(H.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",H.selFilter),e.xp6(3),e.Q6J("ngIf",!0===H.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",H.tableSetting.sortBy)("matSortDirection",H.tableSetting.sortOrder)("dataSource",H.listSwaps)("ngClass",e.VKq(17,gd,"error"===H.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(19,El)),e.xp6(1),e.Q6J("matHeaderRowDef",H.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",H.displayedColumns),e.xp6(1),e.Q6J("pageSize",H.pageSize)("pageSizeOptions",H.pageSizeOptions)("showFirstLastButtons",H.screenSize!==H.screenSizeEnum.XS))},dependencies:[Fi.mk,Fi.sg,Fi.O5,Fi.PC,qt.Fj,qt.JJ,qt.On,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,ht.Zl,_i.lW,Ha.Nt,yi.KE,yi.hX,l1.pW,Oi.gD,Oi.$L,qi.ey,ns.YE,ns.nU,fn.BZ,fn.fO,fn.as,fn.w1,fn.Dz,fn.nj,fn.mD,fn.Ke,fn.ge,fn.ev,fn.yh,fn.XQ,fn.Gk,fn.Q2,Lo.NW,tn.Vv,tn.$V,Fi.JJ,Fi.uU]}),P})();const _d=function(A){return["../",A]};function pr(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onSelectedIndexChange(ve))}),e._uU(1),e.qZA()}if(2&A){const b=P.$implicit,I=e.oxw();e.Q6J("active",I.activeTab.link===b.link)("routerLink",e.VKq(3,_d,b.link)),e.xp6(1),e.Oqu(b.name)}}let p1=(()=>{var A;class P{constructor(I,H,ve){this.router=I,this.loopService=H,this.store=ve,this.faInfinity=Ui.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=we.$I,this.selectedSwapType=we.$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 Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.loopService.listSwaps();const I=this.links.find(H=>this.router.url.includes(H.link));this.activeTab=I||this.links[0],this.selectedSwapType=I&&"loopin"===I.link?we.$I.LOOP_IN:we.$I.LOOP_OUT,this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(H=>H instanceof On.Av)).subscribe({next:H=>{const ve=this.links.find(yt=>H.urlAfterRedirects.includes(yt.link));this.activeTab=ve||this.links[0],this.selectedSwapType=ve&&"loopin"===ve.link?we.$I.LOOP_IN:we.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,Ki.R)(this.unSubs[1])).subscribe({next:H=>{this.flgLoading[0]=!1,this.storedSwaps=H,this.filteredSwaps=this.storedSwaps?.filter(ve=>ve.type===this.selectedSwapType)},error:H=>{this.flgLoading[0]="error",this.emptyTableMessage=H.message?H.message:"No loop "+(this.selectedSwapType===we.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(I){this.selectedSwapType="loopin"===I.link?we.$I.LOOP_IN:we.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(H=>H.type===this.selectedSwapType)}onLoop(I){I===we.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,Ki.R)(this.unSubs[2])).subscribe({next:H=>{this.store.dispatch((0,Rt.qR)({payload:{data:{minQuote:H[0],maxQuote:H[1],direction:I,component:tc.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,Ki.R)(this.unSubs[3])).subscribe({next:H=>{this.store.dispatch((0,Rt.qR)({payload:{data:{minQuote:H[0],maxQuote:H[1],direction:I,component:tc.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(On.F0),e.Y36(c1.W),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-loop"]],decls:15,vars:8,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["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"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(I,H){if(1&I&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Loop"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,pr,2,5,"div",6),e.qZA(),e._UZ(9,"mat-tab-nav-panel",null,7),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return H.onLoop(H.selectedSwapType)}),e._uU(13),e.qZA()(),e._UZ(14,"rtl-swaps",10),e.qZA()()()),2&I){const ve=e.MAs(10);e.xp6(1),e.Q6J("icon",H.faInfinity),e.xp6(6),e.Q6J("tabPanel",ve),e.xp6(1),e.Q6J("ngForOf",H.links),e.xp6(5),e.hij("Start ",H.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",H.selectedSwapType)("swapsData",H.filteredSwaps)("flgLoading",H.flgLoading)("emptyTableMessage",H.emptyTableMessage)}},dependencies:[Fi.sg,ma.BN,zi.xw,zi.Wh,zi.yH,_i.lW,Rn.a8,Rn.dn,Be.BU,Be.sW,Be.Nj,On.rH,z2]}),P})();var g1=m(7772),ea=m(1135),Fh=m(2843),Bs=m(262),tl=m(1786);let _1=(()=>{var A;class P{constructor(I,H,ve,yt){this.httpClient=I,this.logger=H,this.store=ve,this.commonService=yt,this.swapUrl="",this.swaps={},this.swapsChanged=new ea.X({}),this.unSubs=[new Ii.x,new Ii.x,new Ii.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Rt.ac)({payload:we.m6.GET_BOLTZ_SWAPS})),this.swapUrl=we.T5+we.vv.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,Ki.R)(this.unSubs[0])).subscribe({next:I=>{this.store.dispatch((0,Rt.uO)({payload:we.m6.GET_BOLTZ_SWAPS})),this.swaps=I,this.swapsChanged.next(this.swaps)},error:I=>this.swapsChanged.error(this.handleErrorWithAlert(we.m6.GET_BOLTZ_SWAPS,this.swapUrl,I))})}swapInfo(I){return this.swapUrl=we.T5+we.vv.BOLTZ_API+"/swapInfo/"+I,this.httpClient.get(this.swapUrl).pipe((0,Bs.K)(H=>(0,ho.of)(this.handleErrorWithAlert(we.m6.NO_SPINNER,this.swapUrl,H))))}serviceInfo(){return this.store.dispatch((0,Rt.ac)({payload:we.m6.GET_SERVICE_INFO})),this.swapUrl=we.T5+we.vv.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,Ki.R)(this.unSubs[1]),(0,la.U)(I=>(this.store.dispatch((0,Rt.uO)({payload:we.m6.GET_SERVICE_INFO})),I)),(0,Bs.K)(I=>(0,ho.of)(this.handleErrorWithAlert(we.m6.GET_SERVICE_INFO,this.swapUrl,I))))}swapOut(I,H){const ve={amount:I,address:H};return this.swapUrl=we.T5+we.vv.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,ve).pipe((0,Bs.K)(yt=>this.handleErrorWithoutAlert("Swap Out for Address: "+H,we.m6.NO_SPINNER,yt)))}swapIn(I){const H={amount:I};return this.swapUrl=we.T5+we.vv.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,H).pipe((0,Bs.K)(ve=>this.handleErrorWithoutAlert("Swap In for Amount: "+I,we.m6.NO_SPINNER,ve)))}handleErrorWithoutAlert(I,H,ve){let yt="";return this.logger.error("ERROR IN: "+I+"\n"+JSON.stringify(ve)),this.store.dispatch((0,Rt.uO)({payload:H})),401===ve.status?(yt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)())):503===ve.status?(yt="Unable to Connect to Boltz Server.",this.store.dispatch((0,Rt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ve.status,message:"Unable to Connect to Boltz Server",URL:I},component:tl.H}}}))):yt=this.commonService.extractErrorMessage(ve),(0,Fh._)(()=>new Error(yt))}handleErrorWithAlert(I,H,ve){let yt="";if(401===ve.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)())),this.logger.error(ve),this.store.dispatch((0,Rt.uO)({payload:I})),401===ve.status)yt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)());else if(503===ve.status)yt="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ve.status,message:"Unable to Connect to Boltz Server",URL:H},component:tl.H}}}))},100);else{yt=this.commonService.extractErrorMessage(ve);const Jt=ve.error&&ve.error.error&&ve.error.error.code?ve.error.error.code:ve.error&&ve.error.code?ve.error.code:ve.code?ve.code:ve.status;setTimeout(()=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:we.n_.ERROR,alertTitle:"ERROR",message:{code:Jt,message:yt,URL:H},component:tl.H}}}))},100)}return{message:yt}}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.LFG($o.eN),e.LFG(ii.mQ),e.LFG(Di.yh),e.LFG(Ge.v))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac}),P})();function v1(A,P){1&A&&e.GkF(0)}function Hh(A,P){if(1&A&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&A){const b=e.oxw();e.xp6(2),e.Oqu(null!=b.swapStatus&&b.swapStatus.error?null==b.swapStatus?null:b.swapStatus.error:"Unknown Error.")}}function V2(A,P){if(1&A&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&A){const b=e.oxw();e.xp6(6),e.Oqu(null==b.swapStatus?null:b.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==b.swapStatus?null:b.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==b.swapStatus?null:b.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==b.swapStatus?null:b.swapStatus.lockupAddress)}}function Al(A,P){if(1&A&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&A){const b=e.oxw();e.xp6(6),e.Oqu(null==b.swapStatus?null:b.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==b.swapStatus?null:b.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==b.swapStatus?null:b.swapStatus.address),e.xp6(7),e.Oqu(null==b.swapStatus?null:b.swapStatus.bip21)}}let b1=(()=>{var A;class P{constructor(){this.swapStatus=null,this.direction=we.hc.SWAP_OUT,this.swapTypeEnum=we.hc}}return(A=P).\u0275fac=function(I){return new(I||A)},A.\u0275cmp=e.Xpm({type:A,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(I,H){if(1&I&&(e.YNc(0,v1,1,0,"ng-container",0),e.YNc(1,Hh,3,1,"ng-template",null,1,e.W1O),e.YNc(3,V2,25,6,"ng-template",null,2,e.W1O),e.YNc(5,Al,27,6,"ng-template",null,3,e.W1O)),2&I){const ve=e.MAs(2),yt=e.MAs(4),Jt=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=H.swapStatus&&H.swapStatus.error?ve:H.direction===H.swapTypeEnum.SWAP_OUT?yt:Jt)}},dependencies:[Fi.tP,zi.xw,zi.Wh,zi.yH,Gr.d,Fi.JJ]}),P})(),vd=(()=>{var A;class P{constructor(){this.serviceInfo={},this.direction=we.hc.SWAP_OUT,this.swapTypeEnum=we.hc}}return(A=P).\u0275fac=function(I){return new(I||A)},A.\u0275cmp=e.Xpm({type:A,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(I,H){1&I&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&I&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==H.serviceInfo||null==H.serviceInfo.limits?null:H.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==H.serviceInfo||null==H.serviceInfo.fees?null:H.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,H.direction===H.swapTypeEnum.SWAP_OUT?null==H.serviceInfo||null==H.serviceInfo.fees||null==H.serviceInfo.fees.miner?null:H.serviceInfo.fees.miner.reverse:null==H.serviceInfo||null==H.serviceInfo.fees||null==H.serviceInfo.fees.miner?null:H.serviceInfo.fees.miner.normal)))},dependencies:[zi.xw,zi.Wh,zi.yH,At.ib,At.yz,At.yK,Gr.d,Fi.JJ]}),P})();var bd=m(113);function yd(A,P){1&A&&e.GkF(0)}const as=function(A,P){return{"small-svg":A,"large-svg":P}};function xd(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,as,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function zh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,as,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function Cd(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,as,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function Vh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,as,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function Bh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,as,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}let Us=(()=>{var A;class P{constructor(I){this.commonService=I,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=we.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(I){2===I.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===I.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Ge.v))},A.\u0275cmp=e.Xpm({type:A,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(I,H){if(1&I&&(e.YNc(0,yd,1,0,"ng-container",0),e.YNc(1,xd,18,5,"ng-template",null,1,e.W1O),e.YNc(3,zh,15,5,"ng-template",null,2,e.W1O),e.YNc(5,Cd,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Vh,17,5,"ng-template",null,4,e.W1O),e.YNc(9,Bh,13,5,"ng-template",null,5,e.W1O)),2&I){const ve=e.MAs(2),yt=e.MAs(4),Jt=e.MAs(6),ri=e.MAs(8),Ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===H.stepNumber?ve:2===H.stepNumber?yt:3===H.stepNumber?Jt:4===H.stepNumber?ri:Ci)}},dependencies:[Fi.mk,Fi.tP,zi.xw,zi.Wh,zi.yH,ht.oO,Rn.$j,Rn.n5],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:[bd.l]}}),P})();function il(A,P){1&A&&e.GkF(0)}const Ll=function(A,P){return{"small-svg":A,"large-svg":P}};function B2(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ll,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function Uh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ll,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function U2(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ll,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function Gh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ll,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}function Zh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onSwipe(H))}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@sliderAnimation",b.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ll,b.screenSize===b.screenSizeEnum.XS,b.screenSize!==b.screenSizeEnum.XS))}}let G2=(()=>{var A;class P{constructor(I){this.commonService=I,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=we.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(I){2===I.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===I.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Ge.v))},A.\u0275cmp=e.Xpm({type:A,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(I,H){if(1&I&&(e.YNc(0,il,1,0,"ng-container",0),e.YNc(1,B2,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Uh,19,5,"ng-template",null,2,e.W1O),e.YNc(5,U2,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Gh,17,5,"ng-template",null,4,e.W1O),e.YNc(9,Zh,13,5,"ng-template",null,5,e.W1O)),2&I){const ve=e.MAs(2),yt=e.MAs(4),Jt=e.MAs(6),ri=e.MAs(8),Ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===H.stepNumber?ve:2===H.stepNumber?yt:3===H.stepNumber?Jt:4===H.stepNumber?ri:Ci)}},dependencies:[Fi.mk,Fi.tP,zi.xw,zi.Wh,zi.yH,ht.oO,Rn.$j,Rn.n5],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:[bd.l]}}),P})();const Z2=["stepper"];function Wh(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw(2);e.Oqu(b.inputFormLabel)}}function Yh(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function W2(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==b.serviceInfo||null==b.serviceInfo.limits?null:b.serviceInfo.limits.minimal),".")}}function y1(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==b.serviceInfo||null==b.serviceInfo.limits?null:b.serviceInfo.limits.maximal),".")}}function _s(A,P){1&A&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function Dl(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onSwap())}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw(2);e.xp6(1),e.hij("Initiate ",b.swapDirectionCaption,"")}}function wd(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw(3);e.Oqu(b.addressFormLabel)}}function Y2(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Md(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,wd,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(H){e.CHM(b);const ve=e.oxw(2);return e.KtG(ve.onAddressTypeChange(H))}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46)(10,"mat-label"),e._uU(11,"Address"),e.qZA(),e._UZ(12,"input",47),e.YNc(13,Y2,2,0,"mat-error",24),e.qZA()(),e.TgZ(14,"div",25)(15,"button",48),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onSwap())}),e._uU(16),e.qZA()()()()}if(2&A){const b=e.oxw(2);e.Q6J("stepControl",b.addressFormGroup)("editable",b.flgEditable),e.xp6(1),e.Q6J("formGroup",b.addressFormGroup),e.xp6(11),e.Q6J("required","external"===b.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==b.addressFormGroup.controls.address.errors?null:b.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",b.swapDirectionCaption,"")}}function Kf(A,P){if(1&A&&e._uU(0),2&A){const b=e.oxw(2);e.hij("",b.swapDirectionCaption," Status")}}function K2(A,P){if(1&A&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.swapStatus&&null!=b.swapStatus&&b.swapStatus.id?"check":"close")}}function jf(A,P){1&A&&e._UZ(0,"div")}function Sd(A,P){1&A&&e._UZ(0,"mat-progress-bar",50)}function x1(A,P){if(1&A&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.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 Qf(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onRestart())}),e._uU(1,"Start Again"),e.qZA()}}function Kh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.showInfo())}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onClose())}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.stepSelectionChanged(H))}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,Wh,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e._uU(23,"Amount"),e.qZA(),e._UZ(24,"input",22),e.TgZ(25,"mat-hint"),e._uU(26),e.ALo(27,"number"),e.ALo(28,"number"),e.qZA(),e.TgZ(29,"span",23),e._uU(30,"Sats"),e.qZA(),e.YNc(31,Yh,2,0,"mat-error",24),e.YNc(32,W2,3,3,"mat-error",24),e.YNc(33,y1,3,3,"mat-error",24),e.qZA()(),e.TgZ(34,"div",25),e.YNc(35,_s,2,0,"button",26),e.YNc(36,Dl,2,1,"button",27),e.qZA()()(),e.YNc(37,Md,17,6,"mat-step",28),e.TgZ(38,"mat-step",29)(39,"form",16),e.YNc(40,Kf,1,1,"ng-template",17),e.TgZ(41,"div",30)(42,"mat-expansion-panel",31)(43,"mat-expansion-panel-header")(44,"mat-panel-title")(45,"span",32),e._uU(46),e.YNc(47,K2,2,1,"mat-icon",33),e.qZA()()(),e.YNc(48,jf,1,0,"div",34),e.qZA(),e.YNc(49,Sd,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(50,x1,2,1,"h4",36),e.TgZ(51,"div",25),e.YNc(52,Qf,2,0,"button",37),e.qZA()()()(),e.TgZ(53,"div",38)(54,"button",39),e._uU(55,"Close"),e.qZA()()()()()()}if(2&A){const b=e.oxw(),I=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",b.screenSize===b.screenSizeEnum.XS||b.screenSize===b.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(b.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",b.screenSize===b.screenSizeEnum.XS||b.screenSize===b.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",b.inputFormGroup)("editable",b.flgEditable),e.xp6(1),e.Q6J("formGroup",b.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",b.serviceInfo)("direction",b.direction),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(27,30,null==b.serviceInfo||null==b.serviceInfo.limits?null:b.serviceInfo.limits.minimal),"-",e.lcZ(28,32,null==b.serviceInfo||null==b.serviceInfo.limits?null:b.serviceInfo.limits.maximal),""),e.xp6(5),e.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),e.xp6(1),e.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),e.xp6(1),e.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),e.xp6(2),e.Q6J("ngIf",b.direction===b.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",b.direction===b.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",b.direction===b.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",b.statusFormGroup),e.xp6(1),e.Q6J("formGroup",b.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!b.swapStatus),e.xp6(4),e.Oqu(b.swapStatus?b.swapStatus.id?b.swapDirectionCaption+" request details":b.swapDirectionCaption+" error details":"Waiting for "+b.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",b.swapStatus),e.xp6(1),e.Q6J("ngIf",!b.swapStatus)("ngIfElse",I),e.xp6(1),e.Q6J("ngIf",!b.swapStatus),e.xp6(1),e.Q6J("ngIf",b.swapStatus),e.xp6(2),e.Q6J("ngIf",b.swapStatus&&(b.swapStatus.error||!b.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function Td(A,P){if(1&A&&e._UZ(0,"rtl-boltz-swap-status",53),2&A){const b=e.oxw();e.Q6J("swapStatus",b.swapStatus)("direction",b.direction)}}function jh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(H){e.CHM(b);const ve=e.oxw(2);return e.KtG(ve.stepNumber=H)}),e.qZA()}if(2&A){const b=e.oxw(2);e.Q6J("animationDirection",b.animationDirection)("stepNumber",b.stepNumber)}}function Qh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(H){e.CHM(b);const ve=e.oxw(2);return e.KtG(ve.stepNumber=H)}),e.qZA()}if(2&A){const b=e.oxw(2);e.Q6J("animationDirection",b.animationDirection)("stepNumber",b.stepNumber)}}const j2=function(A,P){return{"dot-primary":A,"dot-primary-lighter":P}};function qh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw(2);return e.KtG(yt.onStepChanged(ve))}),e._UZ(1,"p",72),e.qZA()}if(2&A){const b=P.$implicit,I=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,j2,I.stepNumber===b,I.stepNumber!==b))}}function Q2(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onReadMore())}),e._uU(1,"Read More"),e.qZA()}}function C1(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onStepChanged(4))}),e._uU(1,"Back"),e.qZA()}}function q2(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return H.flgShowInfo=!1,e.KtG(H.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function Ed(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return H.flgShowInfo=!1,e.KtG(H.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function J2(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onStepChanged(H.stepNumber-1))}),e._uU(1,"Back"),e.qZA()}}function $a(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2);return e.KtG(H.onStepChanged(H.stepNumber+1))}),e._uU(1,"Next"),e.qZA()}}const Ad=function(){return[1,2,3,4,5]};function Jh(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return H.flgShowInfo=!1,e.KtG(H.stepNumber=1)}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,jh,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,Qh,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,qh,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,Q2,2,0,"button",64),e.YNc(15,C1,2,0,"button",65),e.YNc(16,q2,2,0,"button",66),e.YNc(17,Ed,2,0,"button",67),e.YNc(18,J2,2,0,"button",68),e.YNc(19,$a,2,0,"button",69),e.qZA()()()}if(2&A){const b=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",b.direction===b.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",b.direction===b.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,Ad)),e.xp6(2),e.Q6J("ngIf",5===b.stepNumber),e.xp6(1),e.Q6J("ngIf",5===b.stepNumber),e.xp6(1),e.Q6J("ngIf",5===b.stepNumber),e.xp6(1),e.Q6J("ngIf",b.stepNumber<5),e.xp6(1),e.Q6J("ngIf",b.stepNumber>1&&b.stepNumber<5),e.xp6(1),e.Q6J("ngIf",b.stepNumber<5)}}let X2=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri,Ci){this.dialogRef=I,this.data=H,this.boltzService=ve,this.formBuilder=yt,this.decimalPipe=Jt,this.logger=ri,this.commonService=Ci,this.faInfoCircle=Ui.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=we.hc,this.direction=we.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=we.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||we.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===we.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[qt.kI.required,qt.kI.min(this.serviceInfo.limits?.minimal||0),qt.kI.max(this.serviceInfo.limits?.maximal||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[qt.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===we.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===we.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,Ki.R)(this.unSubs[2])).subscribe(I=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(I){"external"===I.value?(this.addressFormGroup.controls.address.setValidators([qt.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.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===we.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===we.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,Ki.R)(this.unSubs[3])).subscribe({next:I=>{this.swapStatus=I,this.boltzService.listSwaps(),this.flgEditable=!0},error:I=>{this.swapStatus={error:I},this.flgEditable=!0,this.logger.error(I)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,Ki.R)(this.unSubs[4])).subscribe({next:H=>{this.swapStatus=H,this.boltzService.listSwaps(),this.flgEditable=!0},error:H=>{this.swapStatus={error:H},this.flgEditable=!0,this.logger.error(H)}})}stepSelectionChanged(I){switch(I.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"}I.selectedIndex<I.previouslySelectedIndex&&I.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===we.hc.SWAP_IN?window.open("https://docs.boltz.exchange/en/latest/lifecycle/#normal-submarine-swaps","_blank"):window.open("https://docs.boltz.exchange/en/latest/lifecycle/#reverse-submarine-swaps","_blank"),this.onClose()}onStepChanged(I){this.animationDirection=I<this.stepNumber?"backward":"forward",this.stepNumber=I}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.serviceInfo.limits?.minimal}),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Qn.so),e.Y36(Qn.WI),e.Y36(_1),e.Y36(qt.QS),e.Y36(Fi.JJ),e.Y36(ii.mQ),e.Y36(Ge.v))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(I,H){if(1&I&&e.Gf(Z2,5),2&I){let ve;e.iGM(ve=e.CRH())&&(H.stepper=ve.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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","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,"animationDirection","stepNumber","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,"animationDirection","stepNumber","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(I,H){1&I&&(e.YNc(0,Kh,56,34,"div",0),e.YNc(1,Td,1,2,"ng-template",null,1,e.W1O),e.YNc(3,Jh,20,11,"div",2)),2&I&&(e.Q6J("ngIf",!H.flgShowInfo),e.xp6(3),e.Q6J("ngIf",H.flgShowInfo))},dependencies:[Fi.mk,Fi.sg,Fi.O5,qt._Y,qt.Fj,qt.wV,qt.JJ,qt.JL,qt.Q7,qt.sg,qt.u,zi.xw,zi.Wh,zi.yH,ht.oO,Qn.ZT,_i.lW,Rn.dn,Rn.dk,At.ib,At.yz,At.yK,br.Hw,Ha.Nt,yi.KE,yi.hX,yi.bx,yi.TO,yi.R9,l1.pW,Vt.VQ,Vt.U0,uo.C0,uo.VY,uo.Vq,uo.Ic,dn.h,b1,vd,Us,G2,Fi.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem;overflow-x:hidden}"],data:{animation:[g1._]}}),P})();function Ld(A,P){if(1&A&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("value",b),e.xp6(1),e.Oqu(I.getLabel(b))}}function Xh(A,P){1&A&&e._UZ(0,"mat-progress-bar",43)}function $h(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function $2(A,P){if(1&A&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Oqu(I.swapStateEnum[null==b?null:b.status])}}function eu(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function Dd(A,P){if(1&A&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.id)}}function tu(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}const Sc=function(A){return{width:A}};function vs(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.claimAddress)}}function w1(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function e0(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.lockupAddress)}}function t0(A,P){1&A&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function Id(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.onchainAmount))}}function iu(A,P){1&A&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function kd(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.expectedAmount))}}function nu(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function M1(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.error)}}function Od(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function P4(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.privateKey)}}function S1(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function n0(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.preimage)}}function T1(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function a0(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.redeemScript)}}function r0(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function ac(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Sc,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.invoice)}}function Tc(A,P){1&A&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function Il(A,P){if(1&A&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.timeoutBlockHeight))}}function E1(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function au(A,P){if(1&A&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.lockupTransactionId)}}function A1(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function nl(A,P){if(1&A&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.claimTransactionId)}}function Ec(A,P){1&A&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function Pd(A,P){if(1&A&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.refundTransactionId)}}function Ac(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function qf(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(H){const yt=e.CHM(b).$implicit,Jt=e.oxw();return e.KtG(Jt.onSwapClick(yt,H))}),e._uU(2,"View Info"),e.qZA()()}}function ru(A,P){if(1&A&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.emptyTableMessage)}}function o0(A,P){if(1&A&&(e.TgZ(0,"td",56),e.YNc(1,ru,2,1,"p",57),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=b.listSwaps&&b.listSwaps.data)||(null==b.listSwaps||null==b.listSwaps.data?null:b.listSwaps.data.length)<1)}}const al=function(A){return{"display-none":A}};function s0(A,P){if(1&A&&e._UZ(0,"tr",58),2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,al,(null==b.listSwaps?null:b.listSwaps.data)&&(null==b.listSwaps||null==b.listSwaps.data?null:b.listSwaps.data.length)>0))}}function ou(A,P){1&A&&e._UZ(0,"tr",59)}function su(A,P){1&A&&e._UZ(0,"tr",60)}const rl=function(){return["all"]},Rd=function(A){return{"overflow-auto error-border":A,"overflow-auto":!0}},c0=function(){return["no_swap"]};let kl=(()=>{var A;class P{constructor(I,H,ve,yt,Jt){this.logger=I,this.commonService=H,this.store=ve,this.boltzService=yt,this.camelCaseWithReplace=Jt,this.selectedSwapType=we.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=we.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:we.IV,sortBy:"status",sortOrder:we.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:we.IV,sortBy:"status",sortOrder:we.Pi.DESCENDING},this.swapStateEnum=we.Qw,this.swapTypeEnum=we.hc,this.faHistory=Ui.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new fn.by([]),this.selFilter="",this.pageSize=we.IV,this.pageSizeOptions=we.TJ,this.screenSize="",this.screenSizeEnum=we.cu,this.unSubs=[new Ii.x,new Ii.x,new Ii.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(bc.Pr).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.tableSettingSwapOut=I.pageSettings.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSettingSwapOut.tableId)||we.gK.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=I.pageSettings.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSettingSwapIn.tableId)||we.gK.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(I){I.selectedSwapType&&!I.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===we.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===we.hc.SWAP_IN?(this.displayedColumns=this.screenSize===we.cu.XS||this.screenSize===we.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:we.IV):(this.displayedColumns=this.screenSize===we.cu.XS||this.screenSize===we.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:we.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(I){const ve=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===we.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(yt=>yt.column===I);return ve?ve.label?ve.label:this.camelCaseWithReplace.transform(ve.column,"_"):this.commonService.titleCase(I)}setFilterPredicate(){this.listSwaps.filterPredicate=(I,H)=>{let ve="";switch(this.selFilterBy){case"all":ve=JSON.stringify(I).toLowerCase();break;case"status":ve=I?.status?this.swapStateEnum[I?.status]:"";break;default:ve=typeof I[this.selFilterBy]>"u"?"":"string"==typeof I[this.selFilterBy]?I[this.selFilterBy].toLowerCase():"boolean"==typeof I[this.selFilterBy]?I[this.selFilterBy]?"yes":"no":I[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===ve.indexOf(H):ve.includes(H)}}onSwapClick(I,H){this.boltzService.swapInfo(I.id||"").pipe((0,Ki.R)(this.unSubs[1])).subscribe(ve=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:we.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:we.Qw[(ve=this.selectedSwapType===we.hc.SWAP_IN?ve.swap:ve.reverseSwap).status],title:"Status",width:50,type:we.Gi.STRING},{key:"id",value:ve.id,title:"ID",width:50,type:we.Gi.STRING}],[{key:"amount",value:ve.onchainAmount?ve.onchainAmount:ve.expectedAmount?ve.expectedAmount:0,title:ve.onchainAmount?"Onchain Amount (Sats)":ve.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:we.Gi.NUMBER},{key:"timeoutBlockHeight",value:ve.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:we.Gi.NUMBER}],[{key:"address",value:ve.claimAddress?ve.claimAddress:ve.lockupAddress?ve.lockupAddress:"",title:ve.claimAddress?"Claim Address":ve.lockupAddress?"Lockup Address":"Address",width:100,type:we.Gi.STRING}],[{key:"invoice",value:ve.invoice,title:"Invoice",width:100,type:we.Gi.STRING}],[{key:"privateKey",value:ve.privateKey,title:"Private Key",width:100,type:we.Gi.STRING}],[{key:"preimage",value:ve.preimage,title:"Preimage",width:100,type:we.Gi.STRING}],[{key:"redeemScript",value:ve.redeemScript,title:"Redeem Script",width:100,type:we.Gi.STRING}],[{key:"lockupTransactionId",value:ve.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:we.Gi.STRING},{key:"transactionId",value:ve.claimTransactionId?ve.claimTransactionId:ve.refundTransactionId?ve.refundTransactionId:"",title:ve.claimTransactionId?"Claim Transaction ID":ve.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:we.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(I){this.listSwaps=new fn.by(I?[...I]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(H,ve)=>H[ve]&&isNaN(H[ve])?H[ve].toLocaleLowerCase():H[ve]?+H[ve]:null,this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===we.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh),e.Y36(_1),e.Y36(xr.D3))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-boltz-swaps"]],viewQuery:function(I,H){if(1&I&&(e.Gf(ns.YE,5),e.Gf(Lo.NW,5)),2&I){let ve;e.iGM(ve=e.CRH())&&(H.sort=ve.first),e.iGM(ve=e.CRH())&&(H.paginator=ve.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Oi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Lo.ye,useValue:(0,we.pt)("Swaps")}]),e.TTD],decls:76,vars:20,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(yt){return H.selFilterBy=yt})("selectionChange",function(){return H.selFilter="",H.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,Ld,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(yt){return H.selFilter=yt})("input",function(){return H.applyFilter()})("keyup",function(){return H.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,Xh,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,$h,2,0,"th",16),e.YNc(24,$2,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,eu,2,0,"th",16),e.YNc(27,Dd,2,1,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,tu,2,0,"th",16),e.YNc(30,vs,4,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,w1,2,0,"th",16),e.YNc(33,e0,4,4,"td",17),e.BQk(),e.ynx(34,21),e.YNc(35,t0,2,0,"th",22),e.YNc(36,Id,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,iu,2,0,"th",22),e.YNc(39,kd,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,nu,2,0,"th",16),e.YNc(42,M1,4,4,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,Od,2,0,"th",16),e.YNc(45,P4,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,S1,2,0,"th",16),e.YNc(48,n0,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,T1,2,0,"th",16),e.YNc(51,a0,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,r0,2,0,"th",16),e.YNc(54,ac,4,4,"td",17),e.BQk(),e.ynx(55,29),e.YNc(56,Tc,2,0,"th",22),e.YNc(57,Il,4,3,"td",17),e.BQk(),e.ynx(58,30),e.YNc(59,E1,2,0,"th",16),e.YNc(60,au,2,1,"td",17),e.BQk(),e.ynx(61,31),e.YNc(62,A1,2,0,"th",16),e.YNc(63,nl,2,1,"td",17),e.BQk(),e.ynx(64,32),e.YNc(65,Ec,2,0,"th",16),e.YNc(66,Pd,2,1,"td",17),e.BQk(),e.ynx(67,33),e.YNc(68,Ac,6,0,"th",34),e.YNc(69,qf,3,0,"td",35),e.BQk(),e.ynx(70,36),e.YNc(71,o0,2,1,"td",37),e.BQk(),e.YNc(72,s0,1,3,"tr",38),e.YNc(73,ou,1,0,"tr",39),e.YNc(74,su,1,0,"tr",40),e.qZA(),e._UZ(75,"mat-paginator",41),e.qZA()()()),2&I&&(e.xp6(3),e.Q6J("icon",H.faHistory),e.xp6(2),e.hij("",H.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",H.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,rl).concat(H.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",H.selFilter),e.xp6(3),e.Q6J("ngIf",!0===H.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",H.selectedSwapType===H.swapTypeEnum.SWAP_IN?H.tableSettingSwapIn.sortBy:H.tableSettingSwapOut.sortBy)("matSortDirection",H.selectedSwapType===H.swapTypeEnum.SWAP_IN?H.tableSettingSwapIn.sortOrder:H.tableSettingSwapOut.sortOrder)("dataSource",H.listSwaps)("ngClass",e.VKq(17,Rd,"error"===H.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(19,c0)),e.xp6(1),e.Q6J("matHeaderRowDef",H.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",H.displayedColumns),e.xp6(1),e.Q6J("pageSize",H.pageSize)("pageSizeOptions",H.pageSizeOptions)("showFirstLastButtons",H.screenSize!==H.screenSizeEnum.XS))},dependencies:[Fi.mk,Fi.sg,Fi.O5,Fi.PC,qt.Fj,qt.JJ,qt.On,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,ht.Zl,_i.lW,Ha.Nt,yi.KE,yi.hX,l1.pW,Oi.gD,Oi.$L,qi.ey,ns.YE,ns.nU,fn.BZ,fn.fO,fn.as,fn.w1,fn.Dz,fn.nj,fn.mD,fn.Ke,fn.ge,fn.ev,fn.yh,fn.XQ,fn.Gk,fn.Q2,Lo.NW,tn.Vv,tn.$V,Fi.JJ]}),P})();const Lc=function(A){return["../",A]};function Nd(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",16),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onSelectedIndexChange(ve))}),e._uU(1),e.qZA()}if(2&A){const b=P.$implicit,I=e.oxw();e.Q6J("active",I.activeTab.link===b.link)("routerLink",e.VKq(3,Lc,b.link)),e.xp6(1),e.Oqu(b.name)}}let cu=(()=>{var A;class P{constructor(I,H,ve){this.router=I,this.store=H,this.boltzService=ve,this.swapTypeEnum=we.hc,this.selectedSwapType=we.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 Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.boltzService.listSwaps();const I=this.links.find(H=>this.router.url.includes(H.link));this.activeTab=I||this.links[0],this.selectedSwapType=I&&"swapin"===I.link?we.hc.SWAP_IN:we.hc.SWAP_OUT,this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(H=>H instanceof On.Av)).subscribe({next:H=>{const ve=this.links.find(yt=>H.urlAfterRedirects.includes(yt.link));this.activeTab=ve||this.links[0],this.selectedSwapType=ve&&"swapin"===ve.link?we.hc.SWAP_IN:we.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,Ki.R)(this.unSubs[1])).subscribe({next:H=>{this.swaps=H,this.swapsData=this.selectedSwapType===we.hc.SWAP_IN&&H.swaps?H.swaps:this.selectedSwapType===we.hc.SWAP_OUT&&H.reverseSwaps?H.reverseSwaps:[],this.flgLoading[0]=!1},error:H=>{this.flgLoading[0]="error",this.emptyTableMessage=H.message?H.message:"No swap "+(this.selectedSwapType===we.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(I){"swapin"===I.link?(this.selectedSwapType=we.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=we.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(I){this.boltzService.serviceInfo().pipe((0,Ki.R)(this.unSubs[2])).subscribe({next:H=>{this.store.dispatch((0,Rt.qR)({payload:{data:{serviceInfo:H,direction:I,component:X2}}}))}})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(On.F0),e.Y36(Di.yh),e.Y36(_1))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-boltz-root"]],decls:20,vars:7,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["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"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(I,H){if(1&I&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,Nd,2,5,"div",11),e.qZA(),e._UZ(14,"mat-tab-nav-panel",null,12),e.TgZ(16,"div",13)(17,"button",14),e.NdJ("click",function(){return H.onSwap(H.selectedSwapType)}),e._uU(18),e.qZA()(),e._UZ(19,"rtl-boltz-swaps",15),e.qZA()()()),2&I){const ve=e.MAs(15);e.xp6(12),e.Q6J("tabPanel",ve),e.xp6(1),e.Q6J("ngForOf",H.links),e.xp6(5),e.hij("Start ",H.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",H.selectedSwapType)("swapsData",H.swapsData)("flgLoading",H.flgLoading)("emptyTableMessage",H.emptyTableMessage)}},dependencies:[Fi.sg,zi.xw,zi.Wh,zi.yH,_i.lW,Rn.a8,Rn.dn,Be.BU,Be.sW,Be.Nj,On.rH,kl]}),P})();function Ol(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function lu(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,b.psPolicy.min_swap_amount_msat/1e3)," Sats.")}}function rc(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,b.sPeer.local_balance),".")}}function Pl(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-form-field",1)(1,"input",18,19),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.swapAmount=H)})("keyup",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onAmountChange())}),e.qZA(),e.TgZ(3,"span",20),e._uU(4," Sats "),e.qZA(),e.YNc(5,Ol,2,0,"mat-error",21),e.YNc(6,lu,3,3,"mat-error",21),e.YNc(7,rc,3,3,"mat-error",21),e.TgZ(8,"mat-hint"),e._uU(9),e.ALo(10,"number"),e.ALo(11,"number"),e._UZ(12,"br"),e._uU(13),e.qZA()()}if(2&A){const b=e.MAs(2),I=e.oxw();e.xp6(1),e.Q6J("step",1e3)("min",I.psPolicy.min_swap_amount_msat/1e3)("max",I.sPeer.local_balance)("ngModel",I.swapAmount),e.xp6(4),e.Q6J("ngIf",null==b.errors?null:b.errors.required),e.xp6(1),e.Q6J("ngIf",null==b.errors?null:b.errors.min),e.xp6(1),e.Q6J("ngIf",null==b.errors?null:b.errors.max),e.xp6(2),e.AsE("Amount should be between ",e.lcZ(10,10,I.psPolicy.min_swap_amount_msat/1e3)," and ",e.lcZ(11,12,I.sPeer.local_balance),""),e.xp6(4),e.Oqu(I.swapAmountHint)}}function l0(A,P){if(1&A&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.swapOutError)}}function Fd(A,P){if(1&A&&(e.TgZ(0,"div",22),e._UZ(1,"fa-icon",23),e.YNc(2,l0,2,1,"span",21),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==b.swapOutError)}}function Hd(A,P){if(1&A&&(e.TgZ(0,"div",22),e._UZ(1,"fa-icon",23),e.TgZ(2,"span"),e._uU(3,"Insufficient local balance for swap out."),e.qZA()()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faExclamationTriangle)}}function d0(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.goToSwapCanceled())}),e._uU(1,"Go to Swap Canceled"),e.qZA()}}function zd(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onExecuteSwapout())}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.Q6J("disabled",b.sPeer.local_balance<b.psPolicy.min_swap_amount_msat/1e3),e.xp6(1),e.Oqu(""!==b.swapOutError?"Retry":"Execute")}}let h0=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri,Ci){this.dialogRef=I,this.data=H,this.store=ve,this.decimalPipe=yt,this.commonService=Jt,this.actions=ri,this.router=Ci,this.faExclamationTriangle=Ui.eHv,this.selNode={},this.psPolicy={min_swap_amount_msat:1e8},this.sPeer=null,this.swapAmountHint="",this.swapOutError="",this.flgswapCanceled=!1,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.sPeer=this.data.swapPeer,this.store.select(za.lw).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I}),this.store.select(za.JS).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.psPolicy=I.policy}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(I=>I.type===we.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(I=>{I.type===we.AB.UPDATE_API_CALL_STATUS_CLN&&"PeerswapSwapout"===I.payload.action&&(I.payload.status===we.Bn.ERROR&&(this.swapOutError=I.payload.message,this.swapOutError.includes("Peerswap-listswaps")&&(this.flgswapCanceled=!0)),I.payload.status===we.Bn.COMPLETED&&this.dialogRef.close())})}goToSwapCanceled(){this.store.dispatch((0,xe.dS)()),this.router.navigate(["./services/peerswap/pscanceled"]),this.dialogRef.close()}onExecuteSwapout(){if(this.swapOutError="",this.flgswapCanceled=!1,!this.swapAmount||!this.sPeer||!this.sPeer.short_channel_id)return!0;this.store.dispatch((0,xe.p7)({payload:{alias:this.sPeer.alias||"",amountSats:this.swapAmount,shortChannelId:this.sPeer?.short_channel_id,asset:"btc"}}))}resetData(){this.swapAmount=null,this.swapAmountHint="",this.swapOutError="",this.flgswapCanceled=!1}onAmountChange(){this.selNode&&this.selNode.fiatConversion&&this.swapAmount&&this.swapAmount>99&&(this.swapAmountHint="",this.commonService.convertCurrency(this.swapAmount,we.NT.SATS,we.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,Ki.R)(this.unSubs[3])).subscribe({next:I=>{this.swapAmountHint="= "+this.decimalPipe.transform(I.OTHER,we.Xz.OTHER)+" "+I.symbol},error:I=>{this.swapAmountHint="Conversion Error: "+I}}))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Qn.so),e.Y36(Qn.WI),e.Y36(Di.yh),e.Y36(Fi.JJ),e.Y36(Ge.v),e.Y36(Na.eX),e.Y36(On.F0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-swap-out-modal"]],decls:23,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","6","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["swapOutForm","ngForm"],["fxLayoutAlign","start center",1,"pb-2","word-break"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Short Channel ID","tabindex","1","name","shortChanId","disabled","",3,"value"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"disabled","click"],["mat-button","","color","primary","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","5",3,"disabled","click",4,"ngIf"],["matInput","","autoFocus","","placeholder","Amount","type","number","tabindex","2","name","swapAmt","required","",3,"step","min","max","ngModel","ngModelChange","keyup"],["swapAmt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","4",3,"click"],["mat-button","","color","primary","tabindex","5",3,"disabled","click"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Initiate a Swapout"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"p",9),e._uU(12),e.qZA(),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.YNc(15,Pl,14,14,"mat-form-field",12),e.YNc(16,Fd,3,2,"div",13),e.YNc(17,Hd,4,1,"div",13),e.TgZ(18,"div",14)(19,"button",15),e.NdJ("click",function(){return H.resetData()}),e._uU(20,"Clear Field"),e.qZA(),e.YNc(21,d0,2,0,"button",16),e.YNc(22,zd,2,2,"button",17),e.qZA()()()()()),2&I&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.hij("Swapout with ",null==H.sPeer?null:H.sPeer.alias,""),e.xp6(2),e.Q6J("value",H.sPeer.short_channel_id),e.xp6(1),e.Q6J("ngIf",H.sPeer.local_balance>=H.psPolicy.min_swap_amount_msat/1e3),e.xp6(1),e.Q6J("ngIf",""!==H.swapOutError),e.xp6(1),e.Q6J("ngIf",H.sPeer.local_balance<H.psPolicy.min_swap_amount_msat/1e3),e.xp6(2),e.Q6J("disabled",H.sPeer.local_balance<H.psPolicy.min_swap_amount_msat/1e3),e.xp6(2),e.Q6J("ngIf",H.flgswapCanceled),e.xp6(1),e.Q6J("ngIf",!H.flgswapCanceled))},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.wV,qt.JJ,qt.JL,qt.Q7,qt.qQ,qt.Fd,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,Qn.ZT,_i.lW,Rn.dn,Rn.dk,Ha.Nt,yi.KE,yi.bx,yi.TO,yi.R9,dn.h,xl.F,po.q,Fi.JJ]}),P})();function L1(A,P){1&A&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Rl(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,b.psPolicy.min_swap_amount_msat/1e3)," Sats.")}}function D1(A,P){if(1&A&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,b.sPeer.remote_balance),".")}}function du(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-form-field",1)(1,"input",18,19),e.NdJ("ngModelChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.swapAmount=H)})("keyup",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onAmountChange())}),e.qZA(),e.TgZ(3,"span",20),e._uU(4," Sats "),e.qZA(),e.YNc(5,L1,2,0,"mat-error",21),e.YNc(6,Rl,3,3,"mat-error",21),e.YNc(7,D1,3,3,"mat-error",21),e.TgZ(8,"mat-hint"),e._uU(9),e.ALo(10,"number"),e._UZ(11,"br"),e._uU(12),e.qZA()()}if(2&A){const b=e.MAs(2),I=e.oxw();e.xp6(1),e.Q6J("step",1e3)("min",I.psPolicy.min_swap_amount_msat/1e3)("max",I.sPeer.remote_balance)("ngModel",I.swapAmount),e.xp6(4),e.Q6J("ngIf",null==b.errors?null:b.errors.required),e.xp6(1),e.Q6J("ngIf",null==b.errors?null:b.errors.min),e.xp6(1),e.Q6J("ngIf",null==b.errors?null:b.errors.max),e.xp6(2),e.hij("Amount should be between 100,000 and ",e.lcZ(10,9,I.sPeer.remote_balance),""),e.xp6(3),e.Oqu(I.swapAmountHint)}}function Vd(A,P){if(1&A&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.Oqu(b.swapInError)}}function ol(A,P){if(1&A&&(e.TgZ(0,"div",22),e._UZ(1,"fa-icon",23),e.YNc(2,Vd,2,1,"span",21),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==b.swapInError)}}function hu(A,P){if(1&A&&(e.TgZ(0,"div",22),e._UZ(1,"fa-icon",23),e.TgZ(2,"span"),e._uU(3,"Insufficient remote balance for swap in."),e.qZA()()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faExclamationTriangle)}}function uu(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.goToSwapCanceled())}),e._uU(1,"Go to Swap Canceled"),e.qZA()}}function oc(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onExecuteSwapin())}),e._uU(1),e.qZA()}if(2&A){const b=e.oxw();e.Q6J("disabled",b.sPeer.remote_balance<b.psPolicy.min_swap_amount_msat/1e3),e.xp6(1),e.Oqu(""!==b.swapInError?"Retry":"Execute")}}let u0=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri,Ci){this.dialogRef=I,this.data=H,this.store=ve,this.decimalPipe=yt,this.commonService=Jt,this.actions=ri,this.router=Ci,this.faExclamationTriangle=Ui.eHv,this.selNode={},this.psPolicy={min_swap_amount_msat:1e8},this.sPeer=null,this.swapAmountHint="",this.swapInError="",this.flgswapCanceled=!1,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.sPeer=this.data.swapPeer,this.store.select(za.lw).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.selNode=I}),this.store.select(za.JS).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.psPolicy=I.policy}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(I=>I.type===we.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(I=>{I.type===we.AB.UPDATE_API_CALL_STATUS_CLN&&"PeerswapSwapin"===I.payload.action&&(I.payload.status===we.Bn.ERROR&&(this.swapInError=I.payload.message,this.swapInError.includes("Peerswap-listswaps")&&(this.flgswapCanceled=!0)),I.payload.status===we.Bn.COMPLETED&&this.dialogRef.close())})}goToSwapCanceled(){this.store.dispatch((0,xe.dS)()),this.router.navigate(["./services/peerswap/pscanceled"]),this.dialogRef.close()}onExecuteSwapin(){if(this.swapInError="",this.flgswapCanceled=!1,!this.swapAmount||!this.sPeer||!this.sPeer.short_channel_id)return!0;this.store.dispatch((0,xe.pc)({payload:{alias:this.sPeer.alias||"",amountSats:this.swapAmount,shortChannelId:this.sPeer?.short_channel_id,asset:"btc"}}))}resetData(){this.swapAmount=null,this.swapAmountHint="",this.swapInError="",this.flgswapCanceled=!1}onAmountChange(){this.selNode&&this.selNode.fiatConversion&&this.swapAmount&&this.swapAmount>99&&(this.swapAmountHint="",this.commonService.convertCurrency(this.swapAmount,we.NT.SATS,we.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,Ki.R)(this.unSubs[3])).subscribe({next:I=>{this.swapAmountHint="= "+this.decimalPipe.transform(I.OTHER,we.Xz.OTHER)+" "+I.symbol},error:I=>{this.swapAmountHint="Conversion Error: "+I}}))}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(Qn.so),e.Y36(Qn.WI),e.Y36(Di.yh),e.Y36(Fi.JJ),e.Y36(Ge.v),e.Y36(Na.eX),e.Y36(On.F0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-swap-in-modal"]],decls:23,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","6","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["swapInForm","ngForm"],["fxLayoutAlign","start center",1,"pb-2","word-break"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Short Channel ID","tabindex","1","name","shortChanId","disabled","",3,"value"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"disabled","click"],["mat-button","","color","primary","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","5",3,"disabled","click",4,"ngIf"],["required","","matInput","","autoFocus","","placeholder","Amount","tabindex","2","name","swapAmt","type","number",3,"step","min","max","ngModel","ngModelChange","keyup"],["swapAmt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","4",3,"click"],["mat-button","","color","primary","tabindex","5",3,"disabled","click"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Initiate a Swapin"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"p",9),e._uU(12),e.qZA(),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.YNc(15,du,13,11,"mat-form-field",12),e.YNc(16,ol,3,2,"div",13),e.YNc(17,hu,4,1,"div",13),e.TgZ(18,"div",14)(19,"button",15),e.NdJ("click",function(){return H.resetData()}),e._uU(20,"Clear Field"),e.qZA(),e.YNc(21,uu,2,0,"button",16),e.YNc(22,oc,2,2,"button",17),e.qZA()()()()()),2&I&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.hij("Swapin with ",null==H.sPeer?null:H.sPeer.alias,""),e.xp6(2),e.Q6J("value",H.sPeer.short_channel_id),e.xp6(1),e.Q6J("ngIf",H.sPeer.remote_balance>=H.psPolicy.min_swap_amount_msat/1e3),e.xp6(1),e.Q6J("ngIf",""!==H.swapInError),e.xp6(1),e.Q6J("ngIf",H.sPeer.remote_balance<H.psPolicy.min_swap_amount_msat/1e3),e.xp6(2),e.Q6J("disabled",H.sPeer.remote_balance<H.psPolicy.min_swap_amount_msat/1e3),e.xp6(2),e.Q6J("ngIf",H.flgswapCanceled),e.xp6(1),e.Q6J("ngIf",!H.flgswapCanceled))},dependencies:[Fi.O5,qt._Y,qt.Fj,qt.wV,qt.JJ,qt.JL,qt.Q7,qt.qQ,qt.Fd,qt.On,qt.F,ma.BN,zi.xw,zi.Wh,zi.yH,Qn.ZT,_i.lW,Rn.dn,Rn.dk,Ha.Nt,yi.KE,yi.bx,yi.TO,yi.R9,dn.h,xl.F,po.q,Fi.JJ]}),P})();function Bd(A,P){if(1&A&&(e.TgZ(0,"mat-option",33),e._uU(1),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("value",b),e.xp6(1),e.Oqu(I.getLabel(b))}}function Jf(A,P){1&A&&e._UZ(0,"mat-progress-bar",34)}function Nl(A,P){1&A&&(e.TgZ(0,"th",35),e._uU(1,"Short Channel ID"),e.qZA())}function Dc(A,P){if(1&A&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.short_channel_id)}}function bs(A,P){1&A&&(e.TgZ(0,"th",35),e._uU(1,"Node Alias"),e.qZA())}const f0=function(A){return{width:A}};function Ud(A,P){if(1&A&&(e.TgZ(0,"td",36)(1,"div",37)(2,"span",38),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,f0,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.alias)}}function m0(A,P){1&A&&(e.TgZ(0,"th",35),e._uU(1,"Swaps Allowed"),e.qZA())}function sl(A,P){if(1&A&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null!=b&&b.swaps_allowed?"Yes":"No")}}function Gd(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"Local Balance (Sats)"),e.qZA())}function fu(A,P){if(1&A&&(e.TgZ(0,"td",36)(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.local_balance))}}function mu(A,P){1&A&&(e.TgZ(0,"th",39),e._uU(1,"Remote Balance (Sats)"),e.qZA())}function p0(A,P){if(1&A&&(e.TgZ(0,"td",36)(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.remote_balance))}}const pu=function(A){return{"px-3":A}};function Zd(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"th",41)(1,"div",42)(2,"mat-select",43),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",44),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}if(2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,pu,b.screenSize!==b.screenSizeEnum.XS))}}function gu(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"td",45)(1,"div",42)(2,"mat-select",46),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",44),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onSwapPeerClick(ve))}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",44),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onSwapOut(ve))}),e._uU(7,"Swap Out"),e.qZA(),e.TgZ(8,"mat-option",44),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onSwapIn(ve))}),e._uU(9,"Swap In"),e.qZA()()()()}if(2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,pu,b.screenSize!==b.screenSizeEnum.XS))}}function _u(A,P){1&A&&(e.TgZ(0,"p"),e._uU(1," No peer available for swap."),e.qZA())}function rs(A,P){1&A&&(e.TgZ(0,"p"),e._uU(1," Getting peers for swap..."),e.qZA())}function g0(A,P){if(1&A&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij(" ",b.errorMessage,"")}}function _0(A,P){if(1&A&&(e.TgZ(0,"td",47),e.YNc(1,_u,2,0,"p",48),e.YNc(2,rs,2,0,"p",48),e.YNc(3,g0,2,1,"p",48),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=b.swapPeers&&b.swapPeers.data)||(null==b.swapPeers||null==b.swapPeers.data?null:b.swapPeers.data.length)<1)&&(null==b.apiCallStatus?null:b.apiCallStatus.status)===b.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=b.swapPeers&&b.swapPeers.data)||(null==b.swapPeers||null==b.swapPeers.data?null:b.swapPeers.data.length)<1)&&(null==b.apiCallStatus?null:b.apiCallStatus.status)===b.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=b.swapPeers&&b.swapPeers.data)||(null==b.swapPeers||null==b.swapPeers.data?null:b.swapPeers.data.length)<1)&&(null==b.apiCallStatus?null:b.apiCallStatus.status)===b.apiCallStatusEnum.ERROR)}}const vu=function(A){return{"display-none":A}};function bu(A,P){if(1&A&&e._UZ(0,"tr",49),2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,vu,(null==b.swapPeers?null:b.swapPeers.data)&&(null==b.swapPeers||null==b.swapPeers.data?null:b.swapPeers.data.length)&&(null==b.swapPeers||null==b.swapPeers.data?null:b.swapPeers.data.length)>0))}}function v0(A,P){1&A&&e._UZ(0,"tr",50)}function yu(A,P){1&A&&e._UZ(0,"tr",51)}function b0(A,P){if(1&A&&e._UZ(0,"mat-paginator",52),2&A){const b=e.oxw();e.Q6J("pageSize",b.pageSize)("pageSizeOptions",b.pageSizeOptions)("showFirstLastButtons",b.screenSize!==b.screenSizeEnum.XS)}}const y0=function(){return["all"]},xu=function(A){return{"error-border":A}},I1=function(){return["no_swap_peer"]};let zn=(()=>{var A;class P{constructor(I,H,ve,yt){this.logger=I,this.commonService=H,this.store=ve,this.camelCaseWithReplace=yt,this.faPeopleGroup=Ui.iOm,this.nodePageDefs=we.At,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peerswap",this.tableSetting={tableId:"peers",recordsPerPage:we.IV,sortBy:"swaps_allowed",sortOrder:we.Pi.DESCENDING},this.displayedColumns=[],this.totalSwapPeers=0,this.peersData=[],this.pageSize=we.IV,this.pageSizeOptions=we.TJ,this.screenSize="",this.screenSizeEnum=we.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=we.Bn,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,xe.$2)()),this.store.select(za.AS).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{this.errorMessage="",this.apiCallStatus=I.apiCallStatus,this.apiCallStatus.status===we.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=I.pageSettings.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSetting.tableId)||we.gG.find(H=>H.pageId===this.PAGE_ID)?.tables.find(H=>H.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===we.cu.XS||this.screenSize===we.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:we.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(za.Ho).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.errorMessage="",this.apiCallStatus=I.apiCallStatus,this.apiCallStatus?.status===we.Bn.UN_INITIATED&&this.store.dispatch((0,xe.$2)()),this.apiCallStatus.status===we.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalSwapPeers=I.totalSwapPeers,this.peersData=I.swapPeers||[],this.peersData.length>0&&this.sort&&this.paginator&&this.loadSwapPeersTable(this.peersData),this.logger.info(I)})}onSwapPeerClick(I){const H=[[{key:"nodeid",value:I.nodeid,title:"Node Id",width:100,type:we.Gi.STRING}],[{key:"alias",value:I.alias===I.nodeid?I.alias.substring(0,17)+"...":I.alias,title:"Alias",width:50,type:we.Gi.STRING},{key:"short_channel_id",value:I.short_channel_id,title:"Short Channel ID",width:50,type:we.Gi.STRING}],[{key:"local_balance",value:I.local_balance,title:"Local Balance (Sats)",width:50,type:we.Gi.NUMBER},{key:"remote_balance",value:I.remote_balance,title:"Remote Balance (Sats)",width:50,type:we.Gi.NUMBER}],[{key:"total_fee_paid",value:I.total_fee_paid||0,title:"Total Fee Paid (Sats)",width:40,type:we.Gi.NUMBER},{key:"swaps_allowed",value:I.swaps_allowed?"Yes":"No",title:"Swaps Allowed",width:30,type:we.Gi.STRING},{key:"total_channels",value:I.channels?.length,title:"Channels With Peer",width:30,type:we.Gi.NUMBER}],[{key:"sent_total_swaps_out",value:I.sent?.total_swaps_out,title:"Swap Out Sent",width:25,type:we.Gi.NUMBER},{key:"sent_total_swaps_in",value:I.sent?.total_swaps_in,title:"Swap In Sent",width:25,type:we.Gi.NUMBER},{key:"sent_total_sats_swapped_out",value:I.sent?.total_sats_swapped_out,title:"Swapped Out Sent (Sats)",width:25,type:we.Gi.NUMBER},{key:"sent_total_sats_swapped_in",value:I.sent?.total_sats_swapped_in,title:"Swapped In Sent (Sats)",width:25,type:we.Gi.NUMBER}],[{key:"received_total_swaps_out",value:I.received?.total_swaps_out,title:"Swap Out Received",width:25,type:we.Gi.NUMBER},{key:"received_total_swaps_in",value:I.received?.total_swaps_in,title:"Swap In Received",width:25,type:we.Gi.NUMBER},{key:"received_total_sats_swapped_out",value:I.received?.total_sats_swapped_out,title:"Swapped Out Received (Sats)",width:25,type:we.Gi.NUMBER},{key:"received_total_sats_swapped_in",value:I.received?.total_sats_swapped_in,title:"Swapped In Received (Sats)",width:25,type:we.Gi.NUMBER}]];this.store.dispatch((0,Rt.qR)({payload:{data:{type:we.n_.INFORMATION,alertTitle:"Swap Peer Information",message:H}}}))}onSwapOut(I){this.store.dispatch((0,Rt.qR)({payload:{data:{swapPeer:I,component:h0}}}))}onSwapIn(I){this.store.dispatch((0,Rt.qR)({payload:{data:{swapPeer:I,component:u0}}}))}setFilterPredicate(){this.swapPeers.filterPredicate=(I,H)=>{let ve="";return ve="all"===this.selFilterBy?(I.nodeid?I.nodeid:"")+(I.alias?I.alias.toLowerCase():"")+(I.swaps_allowed?"yes":"no")+(I.short_channel_id?I.short_channel_id:"")+(I.local_balance?I.local_balance:"")+(I.remote_balance?I.remote_balance:""):typeof I[this.selFilterBy]>"u"?"":"string"==typeof I[this.selFilterBy]?I[this.selFilterBy].toLowerCase():"boolean"==typeof I[this.selFilterBy]?I[this.selFilterBy]?"yes":"no":I[this.selFilterBy].toString(),"connected"===this.selFilterBy?0===ve.indexOf(H):ve.includes(H)}}loadSwapPeersTable(I){this.swapPeers=new fn.by([...I]),this.swapPeers.sort=this.sort,this.swapPeers.sortingDataAccessor=(H,ve)=>H[ve]&&isNaN(H[ve])?H[ve].toLocaleLowerCase():H[ve]?+H[ve]:null,this.swapPeers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.swapPeers)}onDownloadCSV(){this.swapPeers&&this.swapPeers.data&&this.swapPeers.data.length>0&&this.commonService.downloadFile(this.swapPeers.data,"Peerswap Peers")}applyFilter(){this.swapPeers.filter=this.selFilter.trim().toLowerCase()}getLabel(I){const H=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(ve=>ve.column===I);return H?H.label?H.label:this.camelCaseWithReplace.transform(H.column||"","_"):this.commonService.titleCase(I)}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh),e.Y36(xr.D3))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-peerswap-peers"]],viewQuery:function(I,H){if(1&I&&(e.Gf(ns.YE,5),e.Gf(Lo.NW,5)),2&I){let ve;e.iGM(ve=e.CRH())&&(H.sort=ve.first),e.iGM(ve=e.CRH())&&(H.paginator=ve.first)}},features:[e._Bn([{provide:Oi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Lo.ye,useValue:(0,we.pt)("Peers")}])],decls:47,vars:18,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxFlex","100",1,"page-sub-title-container","padding-gap-large","pb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","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,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","swaps_allowed"],["matColumnDef","local_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_swap_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e._UZ(7,"div",6),e.TgZ(8,"div",7)(9,"mat-form-field",8)(10,"mat-label"),e._uU(11,"Filter By"),e.qZA(),e.TgZ(12,"mat-select",9),e.NdJ("ngModelChange",function(yt){return H.selFilterBy=yt})("selectionChange",function(){return H.selFilter="",H.applyFilter()}),e.TgZ(13,"perfect-scrollbar"),e.YNc(14,Bd,2,2,"mat-option",10),e.qZA()()(),e.TgZ(15,"mat-form-field",8)(16,"mat-label"),e._uU(17,"Filter"),e.qZA(),e.TgZ(18,"input",11),e.NdJ("ngModelChange",function(yt){return H.selFilter=yt})("input",function(){return H.applyFilter()})("keyup",function(){return H.applyFilter()}),e.qZA()()()()(),e.TgZ(19,"div",12),e.YNc(20,Jf,1,0,"mat-progress-bar",13),e.TgZ(21,"table",14,15),e.ynx(23,16),e.YNc(24,Nl,2,0,"th",17),e.YNc(25,Dc,2,1,"td",18),e.BQk(),e.ynx(26,19),e.YNc(27,bs,2,0,"th",17),e.YNc(28,Ud,4,4,"td",18),e.BQk(),e.ynx(29,20),e.YNc(30,m0,2,0,"th",17),e.YNc(31,sl,2,1,"td",18),e.BQk(),e.ynx(32,21),e.YNc(33,Gd,2,0,"th",22),e.YNc(34,fu,4,3,"td",18),e.BQk(),e.ynx(35,23),e.YNc(36,mu,2,0,"th",22),e.YNc(37,p0,4,3,"td",18),e.BQk(),e.ynx(38,24),e.YNc(39,Zd,6,3,"th",25),e.YNc(40,gu,10,3,"td",26),e.BQk(),e.ynx(41,27),e.YNc(42,_0,4,3,"td",28),e.BQk(),e.YNc(43,bu,1,3,"tr",29),e.YNc(44,v0,1,0,"tr",30),e.YNc(45,yu,1,0,"tr",31),e.qZA()(),e.YNc(46,b0,1,3,"mat-paginator",32),e.qZA()),2&I&&(e.xp6(3),e.Q6J("icon",H.faPeopleGroup),e.xp6(2),e.hij("Number of peers enabled with Peerswap: ",H.totalSwapPeers,""),e.xp6(7),e.Q6J("ngModel",H.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(14,y0).concat(H.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",H.selFilter),e.xp6(2),e.Q6J("ngIf",(null==H.apiCallStatus?null:H.apiCallStatus.status)===H.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("matSortActive",H.tableSetting.sortBy)("matSortDirection",H.tableSetting.sortOrder)("dataSource",H.swapPeers)("ngClass",e.VKq(15,xu,""!==H.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(17,I1)),e.xp6(1),e.Q6J("matHeaderRowDef",H.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",H.displayedColumns),e.xp6(1),e.Q6J("ngIf",""===H.errorMessage))},dependencies:[Fi.mk,Fi.sg,Fi.O5,Fi.PC,qt.Fj,qt.JJ,qt.On,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,ht.Zl,Ha.Nt,yi.KE,yi.hX,l1.pW,Oi.gD,Oi.$L,qi.ey,ns.YE,ns.nU,fn.BZ,fn.fO,fn.as,fn.w1,fn.Dz,fn.nj,fn.mD,fn.Ke,fn.ge,fn.ev,fn.yh,fn.XQ,fn.Gk,fn.Q2,Lo.NW,tn.Vv,tn.$V,Fi.JJ]}),P})();function x0(A,P){if(1&A&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("value",b),e.xp6(1),e.Oqu(I.getLabel(b))}}function C0(A,P){1&A&&e._UZ(0,"mat-progress-bar",39)}function w0(A,P){1&A&&e._UZ(0,"th",40)}const M0=function(A){return{"mr-0":A}};function S0(A,P){if(1&A&&e._UZ(0,"fa-icon",44),2&A){const b=e.oxw(2);e.Q6J("ngClass",e.VKq(2,M0,b.screenSize===b.screenSizeEnum.XS))("icon",b.faArrowRightFromBracket)}}function T0(A,P){if(1&A&&e._UZ(0,"fa-icon",45),2&A){const b=e.oxw(2);e.Q6J("ngClass",e.VKq(2,M0,b.screenSize===b.screenSizeEnum.XS))("icon",b.faArrowRightToBracket)}}function Cu(A,P){if(1&A&&(e.TgZ(0,"td",41),e.YNc(1,S0,1,4,"fa-icon",42),e.YNc(2,T0,1,4,"fa-icon",43),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngIf",b.role===I.peerswapRoles.SENDER),e.xp6(1),e.Q6J("ngIf",b.role===I.peerswapRoles.RECEIVER)}}function E0(A,P){1&A&&(e.TgZ(0,"th",46),e._uU(1,"State"),e.qZA())}function A0(A,P){if(1&A&&(e.TgZ(0,"td",41),e._uU(1),e.ALo(2,"swapState"),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,null==b?null:b.state))}}function wu(A,P){1&A&&(e.TgZ(0,"th",46),e._uU(1,"Created At"),e.qZA())}function Xf(A,P){if(1&A&&(e.TgZ(0,"td",41),e._uU(1),e.ALo(2,"date"),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,1e3*(null==b?null:b.created_at),"dd/MMM/y HH:mm")," ")}}function Wd(A,P){1&A&&(e.TgZ(0,"th",46),e._uU(1,"Swap Id"),e.qZA())}const Yd=function(A){return{width:A}};function sc(A,P){if(1&A&&(e.TgZ(0,"td",41)(1,"div",47)(2,"span",48),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Yd,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.hij(" ",null==b?null:b.id," ")}}function Mu(A,P){1&A&&(e.TgZ(0,"th",46),e._uU(1,"Node Alias"),e.qZA())}function Kd(A,P){if(1&A&&(e.TgZ(0,"td",41)(1,"div",47)(2,"span",48),e._uU(3),e.qZA()()()),2&A){const b=P.$implicit,I=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Yd,I.screenSize===I.screenSizeEnum.XS?"6rem":I.colWidth)),e.xp6(2),e.Oqu(null==b?null:b.alias)}}function k1(A,P){1&A&&(e.TgZ(0,"th",49),e._uU(1,"Short Channel ID"),e.qZA())}function Su(A,P){if(1&A&&(e.TgZ(0,"td",50),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.channel_id)}}function Tu(A,P){1&A&&(e.TgZ(0,"th",51),e._uU(1,"Amount (Sats)"),e.qZA())}function $f(A,P){if(1&A&&(e.TgZ(0,"td",41)(1,"span",52),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&A){const b=P.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==b?null:b.amount))}}function Eu(A,P){1&A&&(e.TgZ(0,"th",53),e._uU(1,"Cancel Message"),e.qZA())}function Au(A,P){if(1&A&&(e.TgZ(0,"td",54),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.xp6(1),e.Oqu(null==b?null:b.cancel_message)}}const jd=function(A){return{"px-3":A}};function e3(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"th",55)(1,"div",56)(2,"mat-select",57),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",58),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}if(2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,jd,b.screenSize!==b.screenSizeEnum.XS))}}function Lu(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,ve=e.oxw();return e.KtG(ve.onSwapClick(H))}),e._uU(1,"View Info"),e.qZA()}}function cl(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",56)(1,"mat-select",63),e._UZ(2,"mat-select-trigger"),e.TgZ(3,"mat-option",58),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,ve=e.oxw();return e.KtG(ve.onSwapClick(H))}),e._uU(4,"View Info"),e.qZA(),e.TgZ(5,"mat-option",58),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,ve=e.oxw();return e.KtG(ve.onSwapRefresh(H))}),e._uU(6,"Refresh"),e.qZA()()()}}function Du(A,P){if(1&A&&(e.TgZ(0,"td",59),e.YNc(1,Lu,2,0,"button",60),e.YNc(2,cl,7,0,"div",61),e.qZA()),2&A){const b=P.$implicit,I=e.oxw();e.Q6J("ngClass",e.VKq(3,jd,I.screenSize!==I.screenSizeEnum.XS)),e.xp6(1),e.Q6J("ngIf",I.selSwapList===I.swapLists[2]||I.selSwapList!==I.swapLists[2]&&("State_ClaimedPreimage"===b.state||"State_ClaimedCoop"===b.state)),e.xp6(1),e.Q6J("ngIf",I.selSwapList!==I.swapLists[2]&&"State_ClaimedPreimage"!==b.state&&"State_ClaimedCoop"!==b.state)}}function L0(A,P){1&A&&(e.TgZ(0,"p"),e._uU(1," No swap available."),e.qZA())}function Ic(A,P){1&A&&(e.TgZ(0,"p"),e._uU(1," Getting swaps..."),e.qZA())}function Iu(A,P){if(1&A&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&A){const b=e.oxw(2);e.xp6(1),e.hij(" ",b.errorMessage,"")}}function D0(A,P){if(1&A&&(e.TgZ(0,"td",64),e.YNc(1,L0,2,0,"p",65),e.YNc(2,Ic,2,0,"p",65),e.YNc(3,Iu,2,1,"p",65),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==b.swaps||null==b.swaps.data?null:b.swaps.data.length)<1&&(null==b.apiCallStatus?null:b.apiCallStatus.status)===b.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(null==b.swaps||null==b.swaps.data?null:b.swaps.data.length)<1&&(null==b.apiCallStatus?null:b.apiCallStatus.status)===b.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(null==b.swaps||null==b.swaps.data?null:b.swaps.data.length)<1&&(null==b.apiCallStatus?null:b.apiCallStatus.status)===b.apiCallStatusEnum.ERROR)}}const ku=function(A){return{"display-none":A}};function Ou(A,P){if(1&A&&e._UZ(0,"tr",66),2&A){const b=e.oxw();e.Q6J("ngClass",e.VKq(1,ku,(null==b.swaps?null:b.swaps.data)&&(null==b.swaps||null==b.swaps.data?null:b.swaps.data.length)&&(null==b.swaps||null==b.swaps.data?null:b.swaps.data.length)>0))}}function Pu(A,P){1&A&&e._UZ(0,"tr",67)}function Qd(A,P){1&A&&e._UZ(0,"tr",68)}function Ru(A,P){if(1&A&&e._UZ(0,"mat-paginator",69),2&A){const b=e.oxw();e.Q6J("pageSize",b.pageSize)("pageSizeOptions",b.pageSizeOptions)("showFirstLastButtons",b.screenSize!==b.screenSizeEnum.XS)}}const I0=function(A){return{"error-border":A}},k0=function(){return["no_swap"]};let O0=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri,Ci,ji){this.logger=I,this.commonService=H,this.store=ve,this.datePipe=yt,this.router=Jt,this.swapStatePipe=ri,this.titleCasePipe=Ci,this.camelCaseWithReplace=ji,this.faPersonArrowDownToLine=Ui.NMJ,this.faPersonArrowUpFromLine=Ui.pZi,this.faPersonCircleXmark=Ui.am0,this.faArrowRightFromBracket=Ui.SJh,this.faArrowRightToBracket=Ui.ZhI,this.nodePageDefs=we.At,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peerswap",this.tableSetting={tableId:"swap_out",recordsPerPage:we.IV,sortBy:"created_at",sortOrder:we.Pi.DESCENDING},this.psPageSettings={pageId:this.PAGE_ID,tables:[]},this.displayedColumns=[],this.allSwapsData=null,this.pageSize=we.IV,this.pageSizeOptions=we.TJ,this.screenSize="",this.screenSizeEnum=we.cu,this.errorMessage="",this.selFilter="",this.swapLists=["psout","psin","pscanceled"],this.selSwapList=this.swapLists[0],this.filterColumns=[],this.peerswapRoles=we.z_,this.apiCallStatus=null,this.apiCallStatusEnum=we.Bn,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.selSwapList=this.router.url.substring(this.router.url.lastIndexOf("/")+1),this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(I=>I instanceof On.Av)).subscribe({next:I=>{this.selSwapList=I.url.substring(I.url.lastIndexOf("/")+1),this.updateTableDef(),this.allSwapsData&&this.sort&&this.paginator&&this.loadSwapsTable()}}),this.store.select(za.AS).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.errorMessage="",this.apiCallStatus=I.apiCallStatus,this.apiCallStatus.status===we.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.psPageSettings=I.pageSettings.find(H=>H.pageId===this.PAGE_ID)||we.gG.find(H=>H.pageId===this.PAGE_ID),this.updateTableDef(),this.logger.info(this.psPageSettings)}),this.store.select(za.Fl).pipe((0,Ki.R)(this.unSubs[2])).subscribe(I=>{this.errorMessage="",this.apiCallStatus=I.apiCallStatus,this.apiCallStatus?.status===we.Bn.UN_INITIATED&&this.store.dispatch((0,xe.dS)()),this.apiCallStatus.status===we.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.apiCallStatus?.status===we.Bn.COMPLETED&&(this.allSwapsData={swapOuts:I.swapOuts,swapIns:I.swapIns,swapsCanceled:I.swapsCanceled},this.allSwapsData&&this.sort&&this.paginator&&this.loadSwapsTable()),this.logger.info(I)})}ngAfterViewInit(){this.allSwapsData&&this.loadSwapsTable()}onSwapClick(I){const H=[[{key:"id",value:I.id,title:"Swap Id",width:100,type:we.Gi.STRING}],[{key:"state",value:this.swapStatePipe.transform(I.state||""),title:"State",width:50,type:we.Gi.STRING},{key:"role",value:this.titleCasePipe.transform(I.role),title:"Role",width:50,type:we.Gi.STRING}],[{key:"created_at",value:this.datePipe.transform(new Date(1e3*(+I.created_at||0)),"dd/MMM/YYYY HH:mm"),title:"Created At",width:50,type:we.Gi.STRING},{key:"amount",value:I.amount,title:"Amount (Sats)",width:50,type:we.Gi.NUMBER}],[{key:"alias",value:I.alias===I.peer_node_id?I.alias.substring(0,17)+"...":I.alias,title:"Alias",width:50,type:we.Gi.STRING},{key:"short_channel_id",value:I.channel_id,title:"Short Channel ID",width:50,type:we.Gi.STRING}],[{key:"peer_node_id",value:I.peer_node_id,title:"Peer Node Id",width:100,type:we.Gi.STRING}],[{key:"initiator_node_id",value:I.initiator_node_id,title:"Initiator Node Id",width:100,type:we.Gi.STRING}]];I.opening_tx_id&&H.push([{key:"opening_tx_id",value:I.opening_tx_id,title:"Opening Transaction Id",width:100,type:we.Gi.STRING}]),I.claim_tx_id&&H.push([{key:"claim_tx_id",value:I.claim_tx_id,title:"Claim Transaction Id",width:100,type:we.Gi.STRING}]),I.cancel_message&&H.push([{key:"cancel_message",value:I.cancel_message,title:"Cancel Message",width:100,type:we.Gi.STRING}]),this.store.dispatch((0,Rt.qR)({payload:{data:{type:we.n_.INFORMATION,alertTitle:this.selSwapList===this.swapLists[0]?"Swapout Information":this.selSwapList===this.swapLists[1]?"Swapin Information":"Swap Canceled Information",message:H}}}))}setFilterPredicate(){this.swaps.filterPredicate=(I,H)=>{let ve="";switch(this.selFilterBy){case"all":ve=(I.id?I.id:"")+(I.alias?I.alias.toLowerCase():"")+(I.role?I.role.toLowerCase():"")+(I.channel_id?I.channel_id.toLowerCase():"")+(I.amount?I.amount:"")+(I.state?this.swapStatePipe.transform(I.state||"").toLowerCase():"")+(I.created_at?this.datePipe.transform(new Date(1e3*+I.created_at),"dd/MMM/YYYY HH:mm")?.toLowerCase():"")+(I.cancel_message?I.cancel_message.toLowerCase():"");break;case"state":ve=I?.state?this.swapStatePipe.transform(I.state||"").toLowerCase():"";break;case"created_at":ve=I?.created_at?this.datePipe.transform(new Date(1e3*+I.created_at),"dd/MMM/YYYY HH:mm")?.toLowerCase():"";break;default:ve=typeof I[this.selFilterBy]>"u"?"":"string"==typeof I[this.selFilterBy]?I[this.selFilterBy].toLowerCase():"boolean"==typeof I[this.selFilterBy]?I[this.selFilterBy]?"yes":"no":I[this.selFilterBy].toString()}return ve.includes(H)}}loadSwapsTable(){this.swaps=new fn.by([...this.selSwapList===this.swapLists[0]?this.allSwapsData?.swapOuts:this.selSwapList===this.swapLists[1]?this.allSwapsData?.swapIns:this.selSwapList===this.swapLists[2]?this.allSwapsData?.swapsCanceled:[]]),this.swaps.sort=this.sort,this.swaps.sortingDataAccessor=(H,ve)=>H[ve]&&isNaN(H[ve])?H[ve].toLocaleLowerCase():H[ve]?+H[ve]:null,this.swaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.swaps)}onSwapRefresh(I){this.store.dispatch((0,xe.JX)({payload:I.id||""}))}onDownloadCSV(){this.swaps&&this.swaps.data&&this.swaps.data.length&&this.swaps.data.length>0&&this.commonService.downloadFile(this.swaps.data,"Peerswap-"+this.selSwapList)}applyFilter(){this.swaps.filter=this.selFilter.trim().toLowerCase()}getLabel(I){const H=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(ve=>ve.column===I);return H?H.label?H.label:this.camelCaseWithReplace.transform(H.column,"_"):this.commonService.titleCase(I)}updateTableDef(){const I=this.selSwapList.includes("psin")?"swap_in":this.selSwapList.includes("pscanceled")?"swap_canceled":"swap_out",H=this.psPageSettings.tables.find(ve=>ve.tableId===I);H&&(this.tableSetting=JSON.parse(JSON.stringify(H)),this.displayedColumns=this.screenSize===we.cu.XS||this.screenSize===we.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("role"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:we.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.filterColumns=["all",...this.displayedColumns.slice(0,-1)]),this.logger.info(this.displayedColumns)}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh),e.Y36(Fi.uU),e.Y36(On.F0),e.Y36(xr.rn),e.Y36(Fi.rS),e.Y36(xr.D3))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-peerswap-swaps-list"]],viewQuery:function(I,H){if(1&I&&(e.Gf(ns.YE,5),e.Gf(Lo.NW,5)),2&I){let ve;e.iGM(ve=e.CRH())&&(H.sort=ve.first),e.iGM(ve=e.CRH())&&(H.paginator=ve.first)}},features:[e._Bn([{provide:Oi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Lo.ye,useValue:(0,we.pt)("Swaps")}])],decls:53,vars:17,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70",1,"padding-gap-x"],[1,"mr-1",3,"icon"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-x-hidden","overflow-y-hidden",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","role"],["mat-header-cell","","mat-sort-header","","matTooltip","role",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","created_at"],["matColumnDef","swap_id"],["matColumnDef","alias"],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cancel_message"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","role"],["mat-cell",""],["matTooltip","Sender","matTooltipPosition","right","class","mr-1",3,"ngClass","icon",4,"ngIf"],["matTooltip","Receiver","matTooltipPosition","right","class","mr-1",3,"ngClass","icon",4,"ngIf"],["matTooltip","Sender","matTooltipPosition","right",1,"mr-1",3,"ngClass","icon"],["matTooltip","Receiver","matTooltipPosition","right",1,"mr-1",3,"ngClass","icon"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","",1,"pl-1"],["mat-cell","",1,"pl-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["mat-header-cell","",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click",4,"ngIf"],["class","bordered-box table-actions-select","fxLayoutAlign","center center",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e._uU(4),e.qZA(),e.TgZ(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),e._uU(8,"Filter By"),e.qZA(),e.TgZ(9,"mat-select",6),e.NdJ("ngModelChange",function(yt){return H.selFilterBy=yt})("selectionChange",function(){return H.selFilter="",H.applyFilter()}),e.TgZ(10,"perfect-scrollbar"),e.YNc(11,x0,2,2,"mat-option",7),e.qZA()()(),e.TgZ(12,"mat-form-field",5)(13,"mat-label"),e._uU(14,"Filter"),e.qZA(),e.TgZ(15,"input",8),e.NdJ("ngModelChange",function(yt){return H.selFilter=yt})("input",function(){return H.applyFilter()})("keyup",function(){return H.applyFilter()}),e.qZA()()()(),e.TgZ(16,"div",9),e.YNc(17,C0,1,0,"mat-progress-bar",10),e.TgZ(18,"table",11,12),e.ynx(20,13),e.YNc(21,w0,1,0,"th",14),e.YNc(22,Cu,3,2,"td",15),e.BQk(),e.ynx(23,16),e.YNc(24,E0,2,0,"th",17),e.YNc(25,A0,3,3,"td",15),e.BQk(),e.ynx(26,18),e.YNc(27,wu,2,0,"th",17),e.YNc(28,Xf,3,4,"td",15),e.BQk(),e.ynx(29,19),e.YNc(30,Wd,2,0,"th",17),e.YNc(31,sc,4,4,"td",15),e.BQk(),e.ynx(32,20),e.YNc(33,Mu,2,0,"th",17),e.YNc(34,Kd,4,4,"td",15),e.BQk(),e.ynx(35,21),e.YNc(36,k1,2,0,"th",22),e.YNc(37,Su,2,1,"td",23),e.BQk(),e.ynx(38,24),e.YNc(39,Tu,2,0,"th",25),e.YNc(40,$f,4,3,"td",15),e.BQk(),e.ynx(41,26),e.YNc(42,Eu,2,0,"th",27),e.YNc(43,Au,2,1,"td",28),e.BQk(),e.ynx(44,29),e.YNc(45,e3,6,3,"th",30),e.YNc(46,Du,3,5,"td",31),e.BQk(),e.ynx(47,32),e.YNc(48,D0,4,3,"td",33),e.BQk(),e.YNc(49,Ou,1,3,"tr",34),e.YNc(50,Pu,1,0,"tr",35),e.YNc(51,Qd,1,0,"tr",36),e.qZA()(),e.YNc(52,Ru,1,3,"mat-paginator",37),e.qZA()),2&I&&(e.xp6(3),e.Q6J("icon",H.selSwapList===H.swapLists[0]?H.faPersonArrowUpFromLine:H.selSwapList===H.swapLists[1]?H.faPersonArrowDownToLine:H.faPersonCircleXmark),e.xp6(1),e.hij(" ",H.selSwapList===H.swapLists[0]?"Swapouts":H.selSwapList===H.swapLists[1]?"Swapins":"Canceled Swaps"," "),e.xp6(5),e.Q6J("ngModel",H.selFilterBy),e.xp6(2),e.Q6J("ngForOf",H.filterColumns),e.xp6(4),e.Q6J("ngModel",H.selFilter),e.xp6(2),e.Q6J("ngIf",(null==H.apiCallStatus?null:H.apiCallStatus.status)===H.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("matSortActive",H.tableSetting.sortBy)("matSortDirection",H.tableSetting.sortOrder)("dataSource",H.swaps)("ngClass",e.VKq(14,I0,""!==H.errorMessage)),e.xp6(31),e.Q6J("matFooterRowDef",e.DdM(16,k0)),e.xp6(1),e.Q6J("matHeaderRowDef",H.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",H.displayedColumns),e.xp6(1),e.Q6J("ngIf",""===H.errorMessage))},dependencies:[Fi.mk,Fi.sg,Fi.O5,Fi.PC,qt.Fj,qt.JJ,qt.On,ma.BN,zi.xw,zi.Wh,zi.yH,ht.oO,ht.Zl,_i.lW,Ha.Nt,yi.KE,yi.hX,l1.pW,Oi.gD,Oi.$L,qi.ey,ns.YE,ns.nU,fn.BZ,fn.fO,fn.as,fn.w1,fn.Dz,fn.nj,fn.mD,fn.Ke,fn.ge,fn.ev,fn.yh,fn.XQ,fn.Gk,fn.Q2,yr.gM,Lo.NW,tn.Vv,tn.$V,Fi.JJ,Fi.uU,xr.rn],styles:[".mat-column-role[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),P})();const P0=function(A){return["../",A]};function O1(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.activeTab=ve)}),e._uU(1),e.qZA()}if(2&A){const b=P.$implicit,I=e.oxw();e.Q6J("routerLink",e.VKq(3,P0,b.link))("active",I.activeTab.link===b.link),e.xp6(1),e.Oqu(b.name)}}function t3(A,P){1&A&&e._UZ(0,"rtl-peerswap-peers")}function P1(A,P){1&A&&e._UZ(0,"rtl-peerswap-swaps-list")}let R0=(()=>{var A;class P{constructor(I,H){this.router=I,this.store=H,this.faHandshake=Ui.yOe,this.links=[{link:"pspeers",name:"Peers"},{link:"psout",name:"Swap Out"},{link:"psin",name:"Swap In"},{link:"pscanceled",name:"Swap Canceled"}],this.activeTab=this.links[0],this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){const I=this.links.find(H=>this.router.url.includes(H.link));this.activeTab=I||this.links[0],this.router.events.pipe((0,Ki.R)(this.unSubs[0]),(0,Ia.h)(H=>H instanceof On.Av)).subscribe({next:H=>{const ve=this.links.find(yt=>H.urlAfterRedirects.includes(yt.link));this.activeTab=ve||this.links[0]}}),this.store.select(za.JS).pipe((0,Ki.R)(this.unSubs[1])).subscribe(H=>{H.apiCallStatus.status===we.Bn.UN_INITIATED&&this.store.dispatch((0,xe.ks)())})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(On.F0),e.Y36(Di.yh))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-peerswap"]],decls:14,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"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["tabPanel",""],[4,"ngIf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"routerLink","active","click"]],template:function(I,H){if(1&I&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Peerswap"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,O1,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"mat-tab-nav-panel",null,8),e.YNc(12,t3,1,0,"rtl-peerswap-peers",9),e.YNc(13,P1,1,0,"rtl-peerswap-swaps-list",9),e.qZA()()()()()),2&I){const ve=e.MAs(11);e.xp6(1),e.Q6J("icon",H.faHandshake),e.xp6(6),e.Q6J("tabPanel",ve),e.xp6(1),e.Q6J("ngForOf",H.links),e.xp6(4),e.Q6J("ngIf",H.activeTab===H.links[0]),e.xp6(1),e.Q6J("ngIf",H.activeTab!==H.links[0])}},dependencies:[Fi.sg,Fi.O5,ma.BN,zi.xw,zi.Wh,zi.yH,Rn.a8,Rn.dn,Be.BU,Be.sW,Be.Nj,On.rH,zn,O0]}),P})();const n3=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(267),m.e(636)]).then(m.bind(m,1636)).then(A=>A.LNDModule),canActivate:[(0,Zr.a1)()]},{path:"cln",loadChildren:()=>Promise.all([m.e(267),m.e(315)]).then(m.bind(m,6315)).then(A=>A.CLNModule),canActivate:[(0,Zr.a1)()]},{path:"ecl",loadChildren:()=>Promise.all([m.e(267),m.e(167)]).then(m.bind(m,9676)).then(A=>A.ECLModule),canActivate:[(0,Zr.a1)()]},{path:"settings",component:nt,canActivate:[(0,Zr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:Fa,canActivate:[(0,Zr.a1)()]},{path:"auth",component:ts,canActivate:[(0,Zr.a1)()]},{path:"bconfig",component:to,canActivate:[(0,Zr.a1)()]}]},{path:"config",component:M2,canActivate:[(0,Zr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:is,canActivate:[(0,Zr.a1)()]},{path:"pglayout",component:Rf,canActivate:[(0,Zr.a1)()]},{path:"services",component:ad,canActivate:[(0,Zr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:wh,canActivate:[(0,Zr.a1)()]},{path:"boltz",component:D4,canActivate:[(0,Zr.a1)()]},{path:"peerswap",component:el,canActivate:[Zr.a1]}]},{path:"experimental",component:wl,canActivate:[(0,Zr.a1)()]},{path:"lnconfig",component:To,canActivate:[(0,Zr.a1)()]}]},{path:"services",component:s1,canActivate:[(0,Zr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:p1},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:cu},{path:"peerswap",pathMatch:"full",redirectTo:"peerswap/pspeers"},{path:"peerswap/:selTab",component:R0}]},{path:"help",component:E2},{path:"login",component:Eh},{path:"error",component:zf},{path:"**",component:Hf.w}],kc=On.Bz.forRoot(n3,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var N0=m(9470),Nu=m(8878),F0=m(1572),qd=m(3267),Jd=m(3683),ll=m(7851),go=m(5423);const ys={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ui.HLz,link:"/lnd/home",userPersona:we.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ui.nNP,link:"/lnd/onchain",userPersona:we.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ui.BDt,link:"/lnd/connections",userPersona:we.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ui.FVb,link:"/lnd/connections",userPersona:we.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ui.Ssp,link:"/lnd/transactions",userPersona:we.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ui.SuH,link:"/lnd/routing",userPersona:we.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ui.koM,link:"/lnd/reports",userPersona:we.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ui.wn1,link:"/lnd/graph",userPersona:we.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ui.hkK,link:"/lnd/messages",userPersona:we.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Ui.q7m,link:"/lnd/channelbackup",userPersona:we.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Ui.TmZ,link:"/lnd/network",userPersona:we.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Ui.xf3,link:"/lnd/network",userPersona:we.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ui.Krp,link:"/services/loop",userPersona:we.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Ui.vqe,link:"/services/loop",userPersona:we.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:we.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ui.CgH,link:"/config",userPersona:we.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ui.Psp,link:"/help",userPersona:we.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ui.HLz,link:"/cln/home",userPersona:we.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ui.nNP,link:"/cln/onchain",userPersona:we.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ui.BDt,link:"/cln/connections",userPersona:we.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ui.FVb,link:"/cln/connections",userPersona:we.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Ui.Acd,link:"/cln/liquidityads",userPersona:we.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Ui.Ssp,link:"/cln/transactions",userPersona:we.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Ui.SuH,link:"/cln/routing",userPersona:we.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Ui.koM,link:"/cln/reports",userPersona:we.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ui.wn1,link:"/cln/graph",userPersona:we.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ui.hkK,link:"/cln/messages",userPersona:we.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Ui.USL,link:"/cln/rates",userPersona:we.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Ui.xf3,link:"/cln/rates",userPersona:we.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ui.Krp,link:"/services/peerswap",userPersona:we.ol.ALL,children:[{id:41,parentId:4,name:"Peerswap",iconType:"FA",icon:Ui.yOe,link:"/services/peerswap",userPersona:we.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ui.CgH,link:"/config",userPersona:we.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ui.Psp,link:"/help",userPersona:we.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ui.HLz,link:"/ecl/home",userPersona:we.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ui.nNP,link:"/ecl/onchain",userPersona:we.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ui.BDt,link:"/ecl/connections",userPersona:we.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ui.FVb,link:"/ecl/connections",userPersona:we.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ui.Ssp,link:"/ecl/transactions",userPersona:we.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ui.SuH,link:"/ecl/routing",userPersona:we.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ui.koM,link:"/ecl/reports",userPersona:we.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ui.wn1,link:"/ecl/graph",userPersona:we.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Ui.CgH,link:"/config",userPersona:we.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Ui.Psp,link:"/help",userPersona:we.ol.ALL}]};function F1(A,P){if(1&A&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&A){const b=P.$implicit;e.Q6J("value",b.index),e.xp6(1),e.AsE(" ",b.lnNode," (",b.lnImplementation,") ")}}function Xd(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(H){e.CHM(b);const ve=e.oxw();return e.KtG(ve.onNodeSelectionChange(H.value))}),e.TgZ(1,"perfect-scrollbar"),e.YNc(2,F1,2,3,"mat-option",10),e.qZA()()}if(2&A){const b=e.oxw();e.Q6J("value",b.selConfigNodeIndex),e.xp6(2),e.Q6J("ngForOf",b.appConfig.nodes)}}function $d(A,P){if(1&A&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&A){const b=e.oxw().$implicit;e.oxw(2);const I=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===b.icon?I:null)}}function e2(A,P){if(1&A&&e._UZ(0,"fa-icon",23),2&A){const b=e.oxw().$implicit;e.Q6J("icon",b.icon)}}function H0(A,P){if(1&A&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Oqu(b.icon)}}function H1(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw(2);return e.KtG(yt.onChildNavClicked(ve))}),e.TgZ(2,"div",17),e.YNc(3,$d,2,1,"span",18),e.YNc(4,e2,1,1,"fa-icon",19),e.YNc(5,H0,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&A){const b=P.$implicit;e.s9C("routerLink",b.link),e.xp6(3),e.Q6J("ngIf","SVG"===b.iconType),e.xp6(1),e.Q6J("ngIf","FA"===b.iconType),e.xp6(1),e.Q6J("ngIf",!b.iconType),e.xp6(2),e.Oqu(b.name)}}function z0(A,P){if(1&A&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",b.icon)}}function Fu(A,P){if(1&A&&e._UZ(0,"fa-icon",23),2&A){const b=e.oxw().$implicit;e.Q6J("icon",b.icon)}}function a3(A,P){if(1&A&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Oqu(b.icon)}}function Hu(A,P){if(1&A&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,z0,2,1,"span",28),e.YNc(4,Fu,1,1,"fa-icon",19),e.YNc(5,a3,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon"),e._uU(10),e.qZA()()(),e.TgZ(11,"div",30),e.GkF(12,31),e.qZA()()),2&A){const b=P.$implicit,I=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===b.iconType),e.xp6(1),e.Q6J("ngIf","FA"===b.iconType),e.xp6(1),e.Q6J("ngIf",!b.iconType),e.xp6(2),e.Oqu(b.name),e.xp6(1),e.uIk("aria-label","toggle "+b.name),e.xp6(2),e.Oqu(I.treeControlNested.isExpanded(b)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!I.treeControlNested.isExpanded(b))}}function V0(A,P){if(1&A&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,H1,8,5,"mat-tree-node",13),e.YNc(3,Hu,13,8,"mat-nested-tree-node",14),e.qZA()),2&A){const b=e.oxw();e.Q6J("dataSource",b.navMenus)("treeControl",b.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",b.hasChild)}}function zu(A,P){if(1&A&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",b.icon)}}function B0(A,P){if(1&A&&e._UZ(0,"fa-icon",35),2&A){const b=e.oxw().$implicit;e.s9C("matTooltip",b.name),e.Q6J("icon",b.icon)}}function dl(A,P){if(1&A&&(e.TgZ(0,"mat-icon",36),e._uU(1),e.qZA()),2&A){const b=e.oxw().$implicit;e.s9C("matTooltip",b.name),e.xp6(1),e.Oqu(b.icon)}}function r3(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw();return e.KtG(yt.onShowData(ve))}),e.YNc(1,zu,2,1,"span",18),e.YNc(2,B0,1,2,"fa-icon",33),e.YNc(3,dl,2,2,"mat-icon",34),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&A){const b=P.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===b.iconType),e.xp6(1),e.Q6J("ngIf","FA"===b.iconType),e.xp6(1),e.Q6J("ngIf",!b.iconType),e.xp6(2),e.Oqu(b.name)}}function Do(A,P){if(1&A&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&A){const b=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",b.icon)}}function o3(A,P){if(1&A&&e._UZ(0,"fa-icon",35),2&A){const b=e.oxw().$implicit;e.s9C("matTooltip",b.name),e.Q6J("icon",b.icon)}}function s3(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const ve=e.CHM(b).$implicit,yt=e.oxw(2);return e.KtG(yt.onClick(ve))}),e.YNc(1,Do,2,1,"span",28),e.YNc(2,o3,1,2,"fa-icon",33),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&A){const b=P.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===b.iconType),e.xp6(1),e.Q6J("ngIf","FA"===b.iconType),e.xp6(2),e.Oqu(b.name)}}function Vu(A,P){if(1&A&&(e.TgZ(0,"mat-tree",5),e.YNc(1,s3,5,3,"mat-tree-node",6),e.qZA()),2&A){const b=e.oxw();e.Q6J("dataSource",b.navMenusLogout)("treeControl",b.treeControlLogout)}}function U0(A,P){1&A&&(e.O4$(),e.TgZ(0,"svg",37)(1,"g",38)(2,"g",39),e._UZ(3,"circle",40)(4,"path",41)(5,"path",42),e.qZA()()())}let t2=(()=>{var A;class P{constructor(I,H,ve,yt,Jt){this.logger=I,this.sessionService=H,this.store=ve,this.actions=yt,this.rtlEffects=Jt,this.ChildNavClicked=new e.vpe,this.faEject=Ui.KOR,this.faEye=Ui.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Ui.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Ui.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=we.ol,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x],this.treeControlNested=new ll.VY(ri=>ri.children),this.treeControlLogout=new ll.VY(ri=>ri.children),this.treeControlShowData=new ll.VY(ri=>ri.children),this.navMenus=new go.WX,this.navMenusLogout=new go.WX,this.navMenusShowData=new go.WX,this.hasChild=(ri,Ci)=>!!Ci.children&&Ci.children.length>0,this.version=we.q4,ys.LNDChildren&&200===ys.LNDChildren[ys.LNDChildren.length-1].id&&ys.LNDChildren.pop(),this.navMenus.data=ys.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const I=this.sessionService.getItem("token");this.showLogout=!!I,this.flgLoading=!!I,this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H}),this.store.select(ba.gW).pipe((0,Ki.R)(this.unSubs[1])).subscribe(H=>{if(this.information=H.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const ve=this.information.chains[0];this.informationChain.chain=ve.chain,this.informationChain.network=ve.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=H.selNode,this.settings=this.selNode?.settings||null,this.selConfigNodeIndex=+(H.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(H)}),this.sessionService.watchSession().pipe((0,Ki.R)(this.unSubs[2])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,Ki.R)(this.unSubs[3]),(0,Ia.h)(H=>H.type===we.pg.LOGOUT)).subscribe(H=>{this.showLogout=!1})}onClick(I){"Logout"===I.name&&(this.store.dispatch((0,Rt.c1)({payload:{data:{type:we.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,Ki.R)(this.unSubs[4])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Rt.kS)()))})),this.ChildNavClicked.emit(I)}onChildNavClicked(I){this.ChildNavClicked.emit(I)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let I=[];I=JSON.parse(JSON.stringify(ys.LNDChildren)),this.navMenus.data=I?.filter(H=>H.children&&H.children.length?(H.children=H.children?.filter(ve=>(ve.userPersona===we.ol.ALL||ve.userPersona===this.settings?.userPersona)&&"/services/loop"!==ve.link&&"/services/boltz"!==ve.link||"/services/loop"===ve.link&&this.settings?.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===ve.link&&this.settings?.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),H.children.length>0):H.userPersona===we.ol.ALL||H.userPersona===this.settings?.userPersona)}loadCLNMenu(){let I=[];I=JSON.parse(JSON.stringify(ys.CLNChildren)),this.navMenus.data=I?.filter(H=>H.children&&H.children.length?(H.children=H.children?.filter(ve=>(ve.userPersona===we.ol.ALL||ve.userPersona===this.settings?.userPersona)&&"/services/peerswap"!==ve.link||"/services/peerswap"===ve.link&&this.settings?.enablePeerswap),H.children.length>0):H.userPersona===we.ol.ALL||H.userPersona===this.settings?.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(ys.ECLChildren))}onShowData(I){this.store.dispatch((0,Rt.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(I){const H=this.selConfigNodeIndex;this.selConfigNodeIndex=I;const ve=this.appConfig.nodes.find(yt=>+yt.index===I);this.store.dispatch((0,Rt.fk)({payload:{uiMessage:we.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+H,currentLnNode:ve||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(ja.m),e.Y36(Di.yh),e.Y36(Na.eX),e.Y36(Sa.V))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-side-navigation"]],viewQuery:function(I,H){if(1&I&&e.Gf(go.gi,5),2&I){let ve;e.iGM(ve=e.CRH())&&(H.tree=ve.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","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[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(I,H){1&I&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Xd,3,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,V0,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,r3,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Vu,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,U0,6,0,"ng-template",null,8,e.W1O)),2&I&&(e.xp6(2),e.Q6J("ngIf",H.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==H.settings?null:H.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",H.navMenusShowData)("treeControl",H.treeControlShowData),e.xp6(3),e.Q6J("ngIf",H.showLogout))},dependencies:[Fi.sg,Fi.O5,Fi.tP,ma.BN,zi.xw,zi.Wh,zi.yH,_i.RK,br.Hw,Gr.d,go.GZ,go.fQ,go.eu,go.gi,go.uo,go.Ar,Oi.gD,qi.ey,yr.gM,On.rH,On.Od,tn.Vv,tn.$V],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),P})();var G0=m(8255);function n2(A,P){if(1&A&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faCode),e.xp6(2),e.hij("API Version: ",null==b.information?null:b.information.api_version,"")}}function c3(A,P){if(1&A&&(e.TgZ(0,"p",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faUserCog)}}function Bu(A,P){if(1&A&&(e.TgZ(0,"p",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faQuestion)}}function l3(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"p",15),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.onClick())}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&A){const b=e.oxw();e.xp6(1),e.Q6J("icon",b.faEject)}}let Z0=(()=>{var A;class P{constructor(I,H,ve,yt,Jt){this.logger=I,this.sessionService=H,this.store=ve,this.rtlEffects=yt,this.actions=Jt,this.faUserCog=Ui.gNZ,this.faCodeBranch=Ui.mh3,this.faCode=Ui.dT$,this.faCog=Ui.b7W,this.faQuestion=Ui.Psp,this.faEject=Ui.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new Ii.x,new Ii.x,new Ii.x,new Ii.x],this.version=we.q4}ngOnInit(){this.store.select(ba.R4).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{if(this.information=I,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const H=this.information.chains[0];this.informationChain.chain=H.chain,this.informationChain.network=H.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(I)}),this.sessionService.watchSession().pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.showLogout=!!I.token,this.flgLoading=!!I.token}),this.actions.pipe((0,Ki.R)(this.unSubs[2]),(0,Ia.h)(I=>I.type===we.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Rt.c1)({payload:{data:{type:we.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,Ki.R)(this.unSubs[3])).subscribe(I=>{I&&(this.showLogout=!1,this.store.dispatch((0,Rt.kS)()))})}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(null),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(ja.m),e.Y36(Di.yh),e.Y36(Sa.V),e.Y36(Na.eX))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","class","cursor-default",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","",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(I,H){if(1&I&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,n2,4,2,"p",4),e.YNc(7,c3,4,1,"p",5),e.YNc(8,Bu,4,1,"p",6),e.YNc(9,l3,4,1,"p",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&I){const ve=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",H.faCodeBranch),e.xp6(2),e.hij("Version: ",H.version,""),e.xp6(1),e.Q6J("ngIf",null==H.information?null:H.information.api_version),e.xp6(1),e.Q6J("ngIf",H.showLogout),e.xp6(1),e.Q6J("ngIf",H.showLogout),e.xp6(1),e.Q6J("ngIf",H.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",ve)}},dependencies:[Fi.O5,ma.BN,_i.RK,br.Hw,G0.VK,G0.OP,G0.p6,On.rH],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}),P})();const W0=["sideNavigation"],Uu=["sideNavContent"];function Y0(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.sideNavToggle())}),e.TgZ(1,"mat-icon",15),e._uU(2,"menu"),e.qZA()()}if(2&A){const b=e.oxw();e.Q6J("matTooltip",b.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",b.smallScreen)}}function Gu(A,P){1&A&&(e.O4$(),e._UZ(0,"path",20))}function Zu(A,P){1&A&&(e.O4$(),e._UZ(0,"path",21))}function Wu(A,P){if(1&A){const b=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.flgSidenavPinned=!H.flgSidenavPinned)}),e.O4$(),e.TgZ(1,"svg",17),e.YNc(2,Gu,1,0,"path",18),e.YNc(3,Zu,1,0,"path",19),e.qZA()()}if(2&A){const b=e.oxw();e.Q6J("matTooltip",b.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!b.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",b.flgSidenavPinned)}}function xs(A,P){if(1&A&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Oqu(b.information.alias?"RTL - "+b.information.alias:"RTL")}}function K0(A,P){if(1&A&&(e.TgZ(0,"span",23),e._uU(1),e.qZA()),2&A){const b=e.oxw();e.xp6(1),e.Oqu(b.information.alias?"Ride The Lightning - "+b.information.alias:"Ride The Lightning")}}function j0(A,P){1&A&&(e.TgZ(0,"div",24),e._UZ(1,"mat-spinner",25),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const d3=function(A,P){return[A,P]};let Yu=(()=>{var A;class P{constructor(I,H,ve,yt,Jt,ri,Ci,ji,Yi){this.logger=I,this.commonService=H,this.store=ve,this.actions=yt,this.userIdle=Jt,this.router=ri,this.sessionService=Ci,this.breakpointObserver=ji,this.renderer=Yi,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 Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x,new Ii.x]}ngOnInit(){this.router.events.subscribe(I=>{I instanceof On.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([Jn.u3.XSmall,Jn.u3.TabletPortrait,Jn.u3.Small,Jn.u3.Medium,Jn.u3.Large,Jn.u3.XLarge]).pipe((0,Ki.R)(this.unSubs[0])).subscribe(I=>{I.breakpoints[Jn.u3.XSmall]?(this.commonService.setScreenSize(we.cu.XS),this.smallScreen=!0):I.breakpoints[Jn.u3.TabletPortrait]?(this.commonService.setScreenSize(we.cu.SM),this.smallScreen=!0):I.breakpoints[Jn.u3.Small]||I.breakpoints[Jn.u3.Medium]?(this.commonService.setScreenSize(we.cu.MD),this.smallScreen=!1):I.breakpoints[Jn.u3.Large]?(this.commonService.setScreenSize(we.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(we.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Rt.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(ba.dT).pipe((0,Ki.R)(this.unSubs[1])).subscribe(I=>{this.settings=I.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(ba.Yj).pipe((0,Ki.R)(this.unSubs[2])).subscribe(I=>{this.appConfig=I}),this.store.select(ba.R4).pipe((0,Ki.R)(this.unSubs[3])).subscribe(I=>{this.information=I,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,Ki.R)(this.unSubs[4]),(0,Ia.h)(I=>I.type===we.pg.SET_RTL_CONFIG||I.type===we.pg.LOGIN||I.type===we.pg.LOGOUT)).subscribe(I=>{I.type===we.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+I.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,Rt.x4)({payload:{password:ha(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),I.type===we.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)),I.type===we.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,Ki.R)(this.unSubs[5])).subscribe(I=>{this.logger.info("Counting Down: "+(11-I))}),this.userIdle.onTimeout().pipe((0,Ki.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,Rt.ts)()),this.store.dispatch((0,Rt.qR)({payload:{data:{type:we.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Rt.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const I=window.location.href;return I.includes("access-key=")?I.substring(I.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(I){this.smallScreen&&this.sideNavigation.close()}copiedText(I){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+I)}ngOnDestroy(){this.unSubs.forEach(I=>{I.next(),I.complete()})}}return(A=P).\u0275fac=function(I){return new(I||A)(e.Y36(ii.mQ),e.Y36(Ge.v),e.Y36(Di.yh),e.Y36(Na.eX),e.Y36(Uc),e.Y36(On.F0),e.Y36(ja.m),e.Y36(Jn.Yg),e.Y36(e.Qsj))},A.\u0275cmp=e.Xpm({type:A,selectors:[["rtl-app"]],viewQuery:function(I,H){if(1&I&&(e.Gf(W0,5),e.Gf(Uu,5)),2&I){let ve;e.iGM(ve=e.CRH())&&(H.sideNavigation=ve.first),e.iGM(ve=e.CRH())&&(H.sideNavContent=ve.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",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",3,"matTooltip","matTooltipDisabled","click"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["width","20","height","20","viewBox","0 0 24 24",1,"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,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(I,H){1&I&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,Y0,3,2,"button",2),e.YNc(6,Wu,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,xs,2,1,"span",4),e.YNc(9,K0,2,1,"span",5),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",6,7)(15,"rtl-side-navigation",8),e.NdJ("ChildNavClicked",function(yt){return H.onNavigationClicked(yt)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",9,10)(18,"div",11),e._UZ(19,"router-outlet",null,12),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,j0,4,0,"div",13),e.qZA()),2&I&&(e.Q6J("ngClass",e.WLB(12,d3,e.lcZ(1,8,H.settings.themeColor),e.lcZ(2,10,H.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",H.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!H.smallScreen&&H.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",H.smallScreen),e.xp6(1),e.Q6J("ngIf",!H.smallScreen),e.xp6(4),e.Q6J("opened",H.flgSideNavOpened&&H.flgLoggedIn)("mode",H.flgSidenavPinned&&!H.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!H.settings.themeColor))},dependencies:[Fi.mk,Fi.O5,zi.xw,zi.Wh,zi.yH,ht.oO,_i.RK,br.Hw,F0.Ou,qd.JX,qd.TM,qd.Rh,Jd.Ye,yr.gM,tn.$V,t2,Z0,On.lC,Fi.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Nu.g]}}),P})(),Ku=(()=>{var A;class P{constructor(I){this.sessionService=I}intercept(I,H){if(this.sessionService.getItem("token")){const ve=I.clone({headers:I.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return H.handle(ve)}return H.handle(I)}}return(A=P).\u0275fac=function(I){return new(I||A)(e.LFG(ja.m))},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac}),P})();var h3=m(7998),u3=m(711),a2=m(4947),Q0=m(3289);const q0={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},z1={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},V1={apiURL:"",apisCallStatus:{Login:{status:we.Bn.UN_INITIATED},IsAuthorized:{status:we.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"",settings:q0,authentication:z1,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:q0,authentication:z1}]},nodeData:{}},r2=(0,Di.Lq)(V1,(0,Di.on)(Rt.qi,(A,{payload:P})=>{const b=JSON.parse(JSON.stringify(A.apisCallStatus));return P.action&&(b[P.action]={status:P.status,statusCode:P.statusCode,message:P.message,URL:P.URL,filePath:P.filePath}),{...A,apisCallStatus:b}}),(0,Di.on)(Rt.vI,(A,{payload:P})=>({...V1,apisCallStatus:A.apisCallStatus,appConfig:A.appConfig,selNode:P})),(0,Di.on)(Rt.fk,(A,{payload:P})=>({...A,selNode:P.currentLnNode})),(0,Di.on)(Rt.Tm,(A,{payload:P})=>{const b=JSON.parse(JSON.stringify(A.selNode));switch(P.service){case we.JX.BOLTZ:b.settings.boltzServerUrl=P.settings.boltzServerUrl;break;case we.JX.LOOP:b.settings.swapServerUrl=P.settings.swapServerUrl;break;case we.JX.OFFERS:b.settings.enableOffers=P.settings.enableOffers;break;case we.JX.PEERSWAP:b.settings.enablePeerswap=P.settings.enablePeerswap}return{...A,selNode:b}}),(0,Di.on)(Rt._V,(A,{payload:P})=>({...A,nodeData:P})),(0,Di.on)(Rt.XT,(A,{payload:P})=>({...A,appConfig:P}))),ju={apisCallStatus:{FetchPageSettings:{status:we.Bn.UN_INITIATED},FetchInfo:{status:we.Bn.UN_INITIATED},FetchFees:{status:we.Bn.UN_INITIATED},FetchPeers:{status:we.Bn.UN_INITIATED},FetchClosedChannels:{status:we.Bn.UN_INITIATED},FetchPendingChannels:{status:we.Bn.UN_INITIATED},FetchAllChannels:{status:we.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:we.Bn.UN_INITIATED},FetchInvoices:{status:we.Bn.UN_INITIATED},FetchPayments:{status:we.Bn.UN_INITIATED},FetchForwardingHistory:{status:we.Bn.UN_INITIATED},FetchUTXOs:{status:we.Bn.UN_INITIATED},FetchTransactions:{status:we.Bn.UN_INITIATED},FetchLightningTransactions:{status:we.Bn.UN_INITIATED},FetchNetwork:{status:we.Bn.UN_INITIATED}},nodeSettings:{userPersona:we.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:we.gK,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 B1=!1,Qu=!1;const J0=(0,Di.Lq)(ju,(0,Di.on)(ae.PC,(A,{payload:P})=>{const b=JSON.parse(JSON.stringify(A.apisCallStatus));return P.action&&(b[P.action]={status:P.status,statusCode:P.statusCode,message:P.message,URL:P.URL,filePath:P.filePath}),{...A,apisCallStatus:b}}),(0,Di.on)(ae.JT,(A,{payload:P})=>({...A,nodeSettings:P})),(0,Di.on)(ae.Ll,(A,{payload:P})=>({...ju,nodeSettings:P})),(0,Di.on)(ae.CX,(A,{payload:P})=>({...A,information:P})),(0,Di.on)(ae.Z8,(A,{payload:P})=>({...A,peers:P})),(0,Di.on)(ae.EK,(A,{payload:P})=>{const b=[...A.peers],I=A.peers.findIndex(H=>H.pub_key===P.pubkey);return I>-1&&b.splice(I,1),{...A,peers:b}}),(0,Di.on)(ae.YP,(A,{payload:P})=>{const b=A.listInvoices;return b.invoices?.unshift(P),{...A,listInvoices:b}}),(0,Di.on)(ae.aL,(A,{payload:P})=>{const b=A.listInvoices;return b.invoices=b.invoices?.map(I=>I.payment_request===P.payment_request?P:I),{...A,listInvoices:b}}),(0,Di.on)(ae.qY,(A,{payload:P})=>{const b=A.listPayments;return b.payments=b.payments?.map(I=>I.payment_hash===P.payment_hash?P:I),{...A,listPayments:b}}),(0,Di.on)(ae.RX,(A,{payload:P})=>({...A,fees:P})),(0,Di.on)(ae._L,(A,{payload:P})=>({...A,closedChannels:P})),(0,Di.on)(ae.TW,(A,{payload:P})=>({...A,pendingChannels:P.pendingChannels,pendingChannelsSummary:P.pendingChannelsSummary})),(0,Di.on)(ae.as,(A,{payload:P})=>{let b=0,I=0,H=0,ve=0,yt=0,Jt=0;return P&&P.forEach(ri=>{ri.local_balance||(ri.local_balance=0),!0===ri.active?(yt+=+ri.local_balance,H+=1,ri.local_balance?b=+b+ +ri.local_balance:ri.local_balance=0,ri.remote_balance?I=+I+ +ri.remote_balance:ri.remote_balance=0):(Jt+=+ri.local_balance,ve+=1)}),{...A,channels:P,channelsSummary:{active:{num_channels:H,capacity:yt},inactive:{num_channels:ve,capacity:Jt}},lightningBalance:{local:b,remote:I}}}),(0,Di.on)(ae.OG,(A,{payload:P})=>{const b=[...A.channels],I=A.channels.findIndex(H=>H.channel_point===P.channelPoint);return I>-1&&b.splice(I,1),{...A,channels:b}}),(0,Di.on)(ae.Jl,(A,{payload:P})=>({...A,blockchainBalance:P})),(0,Di.on)(ae.ks,(A,{payload:P})=>({...A,networkInfo:P})),(0,Di.on)(ae.Nr,(A,{payload:P})=>(P.total_invoices||(P.total_invoices=A.listInvoices.total_invoices),{...A,listInvoices:P})),(0,Di.on)(ae.Lf,(A,{payload:P})=>{if(B1=!0,P.length&&Qu){const b=[...A.utxos];return b.forEach(I=>{const H=P.find(ve=>ve.tx_hash===I.outpoint?.txid_str);I.label=H&&H.label?H.label:""}),{...A,utxos:b,transactions:P}}return{...A,transactions:P}}),(0,Di.on)(ae.UH,(A,{payload:P})=>{if(Qu=!0,P.length&&B1){const b=[...A.transactions];P.forEach(I=>{const H=b.find(ve=>ve.tx_hash===I.outpoint?.txid_str);I.label=H&&H.label?H.label:""})}return{...A,utxos:P}}),(0,Di.on)(ae.HI,(A,{payload:P})=>{const b={listInvoicesAll:A.allLightningTransactions.listInvoicesAll,listPaymentsAll:P};return{...A,listPayments:P,allLightningTransactions:b}}),(0,Di.on)(ae.Fr,(A,{payload:P})=>{const b={listInvoicesAll:P.listInvoicesAll,listPaymentsAll:A.listPayments};return{...A,allLightningTransactions:b}}),(0,Di.on)(ae.QJ,(A,{payload:P})=>{const b=[...A.channels,...A.closedChannels];let I=P.forwarding_events?JSON.parse(JSON.stringify(P)):{};return I.forwarding_events&&(I=qu(I,b)),{...A,forwardingHistory:I}}),(0,Di.on)(ae.pd,(A,{payload:P})=>{const b=[];return we.gK.forEach(I=>{const H=P&&P.length&&P.length>0?P.find(ve=>ve.pageId===I.pageId):null;if(H){const ve=JSON.parse(JSON.stringify(H.tables));H.tables=[],I.tables.forEach(yt=>{const Jt=ve.find(ri=>ri.tableId===yt.tableId)||null;H.tables.push(Jt||JSON.parse(JSON.stringify(yt)))}),b.push(H)}else b.push(JSON.parse(JSON.stringify(I)))}),{...A,pageSettings:b}})),qu=(A,P)=>(A.forwarding_events.forEach(b=>{if(P&&P.length>0)for(let I=0;I<P.length;I++){if(P[I].chan_id?.toString()===b.chan_id_in&&(b.alias_in=P[I].remote_alias?P[I].remote_alias:b.chan_id_in,b.alias_out)||P[I].chan_id?.toString()===b.chan_id_out&&(b.alias_out=P[I].remote_alias?P[I].remote_alias:b.chan_id_out,b.alias_in))return;I===P.length-1&&(b.alias_in||(b.alias_in=b.chan_id_in),b.alias_out||(b.alias_out=b.chan_id_out))}else b.alias_in=b.chan_id_in,b.alias_out=b.chan_id_out}),A),X0={apisCallStatus:{FetchPageSettings:{status:we.Bn.UN_INITIATED},FetchInfo:{status:we.Bn.UN_INITIATED},FetchInvoices:{status:we.Bn.UN_INITIATED},FetchFees:{status:we.Bn.UN_INITIATED},FetchChannels:{status:we.Bn.UN_INITIATED},FetchBalance:{status:we.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:we.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:we.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:we.Bn.UN_INITIATED},FetchPeers:{status:we.Bn.UN_INITIATED},FetchUTXOs:{status:we.Bn.UN_INITIATED},FetchPayments:{status:we.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:we.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:we.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:we.Bn.UN_INITIATED},FetchOffers:{status:we.Bn.UN_INITIATED},FetchOfferBookmarks:{status:we.Bn.UN_INITIATED},FetchPSPolicy:{status:we.Bn.UN_INITIATED},FetchSwaps:{status:we.Bn.UN_INITIATED},FetchSwapPeers:{status:we.Bn.UN_INITIATED},FetchSwapRequests:{status:we.Bn.UN_INITIATED}},nodeSettings:{userPersona:we.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1,enablePeerswap:!1},pageSettings:we.gG,information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[],totalSwapPeers:0,peerswapPolicy:{min_swap_amount_msat:1e8},swapPeers:[],swapOuts:[],swapIns:[],swapsCanceled:[],swapRequests:[]},$0=(0,Di.Lq)(X0,(0,Di.on)(xe.Ni,(A,{payload:P})=>{const b=JSON.parse(JSON.stringify(A.apisCallStatus));return P.action&&(b[P.action]={status:P.status,statusCode:P.statusCode,message:P.message,URL:P.URL,filePath:P.filePath}),{...A,apisCallStatus:b}}),(0,Di.on)(xe.oo,(A,{payload:P})=>({...A,nodeSettings:P})),(0,Di.on)(xe.xH,(A,{payload:P})=>({...X0,nodeSettings:P})),(0,Di.on)(xe.CX,(A,{payload:P})=>({...A,information:P})),(0,Di.on)(xe.RX,(A,{payload:P})=>({...A,fees:P})),(0,Di.on)(xe.I8,(A,{payload:P})=>P.perkb?{...A,feeRatesPerKB:P}:P.perkw?{...A,feeRatesPerKW:P}:{...A}),(0,Di.on)(xe.Lu,(A,{payload:P})=>({...A,balance:P})),(0,Di.on)(xe.xS,(A,{payload:P})=>({...A,localRemoteBalance:P})),(0,Di.on)(xe.Z8,(A,{payload:P})=>({...A,peers:P})),(0,Di.on)(xe.X3,(A,{payload:P})=>({...A,peers:[...A.peers,P]})),(0,Di.on)(xe.EK,(A,{payload:P})=>{const b=[...A.peers],I=A.peers.findIndex(H=>H.id===P.id);return I>-1&&b.splice(I,1),{...A,peers:b}}),(0,Di.on)(xe.as,(A,{payload:P})=>({...A,activeChannels:P.activeChannels,pendingChannels:P.pendingChannels,inactiveChannels:P.inactiveChannels})),(0,Di.on)(xe.OG,(A,{payload:P})=>{const b=[...A.peers];return b.forEach(I=>{I.id===P.id&&(I.connected=!1,delete I.netaddr)}),{...A,peers:b}}),(0,Di.on)(xe.HI,(A,{payload:P})=>({...A,payments:P})),(0,Di.on)(xe.QJ,(A,{payload:P})=>{const b=[...A.activeChannels,...A.pendingChannels,...A.inactiveChannels],I=o2(P.listForwards,b);switch(P.listForwards=I,P.status){case we.OO.SETTLED:const H=A.fees;return H.totalTxCount=P.totalForwards||0,{...A,fees:H,forwardingHistory:P};case we.OO.FAILED:return{...A,failedForwardingHistory:P};case we.OO.LOCAL_FAILED:return{...A,localFailedForwardingHistory:P};default:return{...A}}}),(0,Di.on)(xe.YP,(A,{payload:P})=>{const b=A.invoices;return b.invoices?.unshift(P),{...A,invoices:b}}),(0,Di.on)(xe.Nr,(A,{payload:P})=>({...A,invoices:P})),(0,Di.on)(xe.aL,(A,{payload:P})=>{const b=A.invoices;return b.invoices=b.invoices?.map(I=>I.label===P.label?P:I),{...A,invoices:b}}),(0,Di.on)(xe.UH,(A,{payload:P})=>({...A,utxos:P})),(0,Di.on)(xe.Zu,(A,{payload:P})=>({...A,offers:P})),(0,Di.on)(xe.ZH,(A,{payload:P})=>{const b=A.offers;return b?.unshift(P),{...A,offers:b}}),(0,Di.on)(xe.JK,(A,{payload:P})=>{const b=[...A.offers],I=A.offers.findIndex(H=>H.offer_id===P.offer.offer_id);return I>-1&&b.splice(I,1,P.offer),{...A,offers:b}}),(0,Di.on)(xe.d7,(A,{payload:P})=>({...A,offersBookmarks:P})),(0,Di.on)(xe.e9,(A,{payload:P})=>{const b=[...A.offersBookmarks],I=b.findIndex(H=>H.bolt12===P.bolt12);if(I<0)b?.unshift(P);else{const H={...b[I]};H.title=P.title,H.amountMSat=P.amountMSat,H.lastUpdatedAt=P.lastUpdatedAt,H.description=P.description,H.issuer=P.issuer,b.splice(I,1,H)}return{...A,offersBookmarks:b}}),(0,Di.on)(xe.en,(A,{payload:P})=>{const b=[...A.offersBookmarks],I=A.offersBookmarks.findIndex(H=>H.bolt12===P.bolt12);return I>-1&&b.splice(I,1),{...A,offersBookmarks:b}}),(0,Di.on)(xe.C5,(A,{payload:P})=>({...A,peerswapPolicy:P})),(0,Di.on)(xe.HW,(A,{payload:P})=>{const b=[],I=[],H=[];for(let ve=P.length-1;ve>=0;ve--)P[ve].alias=A.peers?.find(yt=>yt.id===P[ve].peer_node_id)?.alias||P[ve].peer_node_id,"State_SwapCanceled"===P[ve].state?H.push(P[ve]):P[ve].type===we.fO.SWAP_OUT?b.push(P[ve]):I.push(P[ve]);return{...A,swapOuts:b,swapIns:I,swapsCanceled:H}}),(0,Di.on)(xe.BZ,(A,{payload:P})=>{if(P.type===we.hc.SWAP_IN){const b=[...A.swapIns],I=b.findIndex(H=>H.id===P.swapId);return I>-1&&(b[I].state=P.state),{...A,swapIns:b}}if(P.type===we.hc.SWAP_OUT){const b=[...A.swapOuts],I=b.findIndex(H=>H.id===P.swapId);return I>-1&&(b[I].state=P.state),{...A,swapOuts:b}}return{...A}}),(0,Di.on)(xe.bP,(A,{payload:P})=>({...A,swapRequests:P})),(0,Di.on)(xe.oF,(A,{payload:P})=>{const b=P.reduce((I,H)=>{const ve=[];return H.alias=A.peers?.find(yt=>yt.id===H.nodeid)?.alias||H.nodeid,H.channels?.forEach(yt=>ve.push({...H,...yt})),[...I,...ve]},[]);return{...A,totalSwapPeers:P.length?P.length:0,swapPeers:b}}),(0,Di.on)(xe.it,(A,{payload:P})=>{const b=A.swapOuts;return b?.unshift(P),{...A,swapOuts:b}}),(0,Di.on)(xe.My,(A,{payload:P})=>{const b=A.swapIns;return b?.unshift(P),{...A,swapIns:b}}),(0,Di.on)(xe.pd,(A,{payload:P})=>{const b=[];return we.gG.forEach(I=>{const H=P&&P.length&&P.length>0?P.find(ve=>ve.pageId===I.pageId):null;if(H){const ve=JSON.parse(JSON.stringify(H.tables));H.tables=[],I.tables.forEach(yt=>{const Jt=ve.find(ri=>ri.tableId===yt.tableId)||null;H.tables.push(Jt||JSON.parse(JSON.stringify(yt)))}),b.push(H)}else b.push(JSON.parse(JSON.stringify(I)))}),{...A,pageSettings:b}})),o2=(A,P)=>(A&&A.length&&A.length>0?A.forEach((b,I)=>{if(P&&P.length&&P.length>0)for(let H=0;H<P.length;H++){if(P[H].short_channel_id&&P[H].short_channel_id===b.in_channel&&(b.in_channel_alias=P[H].alias?P[H].alias:b.in_channel,b.out_channel_alias)||P[H].short_channel_id&&P[H].short_channel_id?.toString()===b.out_channel&&(b.out_channel_alias=P[H].alias?P[H].alias:b.out_channel,b.in_channel_alias))return;H===P.length-1&&(b.in_channel_alias||(b.in_channel_alias=b.in_channel?b.in_channel:"-"),b.out_channel_alias||(b.out_channel_alias=b.out_channel?b.out_channel:"-"))}else b.in_channel_alias=b.in_channel?b.in_channel:"-",b.out_channel_alias=b.out_channel?b.out_channel:"-"}):A=[],A),Cs={apisCallStatus:{FetchPageSettings:{status:we.Bn.UN_INITIATED},FetchInfo:{status:we.Bn.UN_INITIATED},FetchFees:{status:we.Bn.UN_INITIATED},FetchChannels:{status:we.Bn.UN_INITIATED},FetchOnchainBalance:{status:we.Bn.UN_INITIATED},FetchPeers:{status:we.Bn.UN_INITIATED},FetchPayments:{status:we.Bn.UN_INITIATED},FetchInvoices:{status:we.Bn.UN_INITIATED},FetchTransactions:{status:we.Bn.UN_INITIATED}},nodeSettings:{userPersona:we.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},pageSettings:we.c3,information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0},closing:{channels:0,capacity:0}},onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},s2=(0,Di.Lq)(Cs,(0,Di.on)(_e.QZ,(A,{payload:P})=>{const b=JSON.parse(JSON.stringify(A.apisCallStatus));return P.action&&(b[P.action]={status:P.status,statusCode:P.statusCode,message:P.message,URL:P.URL,filePath:P.filePath}),{...A,apisCallStatus:b}}),(0,Di.on)(_e.Zr,(A,{payload:P})=>({...A,nodeSettings:P})),(0,Di.on)(_e.Fd,(A,{payload:P})=>({...Cs,nodeSettings:P})),(0,Di.on)(_e.CX,(A,{payload:P})=>({...A,information:P})),(0,Di.on)(_e.RX,(A,{payload:P})=>({...A,fees:P})),(0,Di.on)(_e.eN,(A,{payload:P})=>({...A,activeChannels:P})),(0,Di.on)(_e.TW,(A,{payload:P})=>({...A,pendingChannels:P})),(0,Di.on)(_e.i,(A,{payload:P})=>({...A,inactiveChannels:P})),(0,Di.on)(_e.HG,(A,{payload:P})=>({...A,channelsStatus:P})),(0,Di.on)(_e.Bw,(A,{payload:P})=>({...A,onchainBalance:P})),(0,Di.on)(_e.On,(A,{payload:P})=>({...A,lightningBalance:P})),(0,Di.on)(_e.Z8,(A,{payload:P})=>({...A,peers:P})),(0,Di.on)(_e.EK,(A,{payload:P})=>{const b=[...A.peers],I=A.peers.findIndex(H=>H.nodeId===P.nodeId);return I>-1&&b.splice(I,1),{...A,peers:b}}),(0,Di.on)(_e.OG,(A,{payload:P})=>{const b=[...A.activeChannels],I=A.activeChannels.findIndex(H=>H.channelId===P.channelId);return I>-1&&b.splice(I,1),{...A,activeChannels:b}}),(0,Di.on)(_e.HI,(A,{payload:P})=>{if(P&&P.sent){const b=[...A.activeChannels,...A.pendingChannels,...A.inactiveChannels];P.sent?.map(I=>{const H=A.peers.find(ve=>ve.nodeId===I.recipientNodeId);return I.recipientNodeAlias=H?H.alias:I.recipientNodeId,I.parts&&I.parts?.map(ve=>{const yt=b.find(Jt=>Jt.channelId===ve.toChannelId);return ve.toChannelAlias=yt?yt.alias:ve.toChannelId,I.parts}),P.sent})}if(P&&P.relayed){const b=[...A.activeChannels,...A.pendingChannels,...A.inactiveChannels];P.relayed.forEach(I=>{I=Fl(I,b)})}return{...A,payments:P}}),(0,Di.on)(_e.Lf,(A,{payload:P})=>({...A,transactions:P})),(0,Di.on)(_e.YP,(A,{payload:P})=>{const b=A.invoices;return b?.unshift(P),{...A,invoices:b}}),(0,Di.on)(_e.Nr,(A,{payload:P})=>({...A,invoices:P})),(0,Di.on)(_e.aL,(A,{payload:P})=>{let b=A.invoices;return b=b?.map(I=>{if(I.paymentHash===P.paymentHash){if(P.hasOwnProperty("type")){const H=JSON.parse(JSON.stringify(I));return H.amountSettled=P.parts&&P.parts.length&&P.parts.length>0&&P.parts[0].amount?(P.parts[0].amount||0)/1e3:0,H.receivedAt=P.parts&&P.parts.length&&P.parts.length>0&&P.parts[0].timestamp?Math.round((P.parts[0].timestamp||0)/1e3):0,H.status="received",H}return P}return I}),{...A,invoices:b}}),(0,Di.on)(_e.DJ,(A,{payload:P})=>{let b=A.pendingChannels;return b=b?.map(I=>(I.channelId===P.channelId&&I.nodeId===P.remoteNodeId&&(P.currentState=P.currentState?.replace(/_/g," "),I.state=P.currentState),I)),{...A,pendingChannels:b}}),(0,Di.on)(_e.ti,(A,{payload:P})=>{const b=A.payments,I=Fl(P,[...A.activeChannels,...A.pendingChannels,...A.inactiveChannels]);b.relayed?.unshift(I);const H=(P.amountIn||0)-(P.amountOut||0),ve={localBalance:A.lightningBalance.localBalance+H,remoteBalance:A.lightningBalance.remoteBalance-H},yt=A.channelsStatus;yt.active&&(yt.active.capacity=(A.channelsStatus?.active?.capacity||0)+H);const Jt={daily_fee:(A.fees.daily_fee||0)+H,daily_txs:(A.fees.daily_txs||0)+1,weekly_fee:(A.fees.weekly_fee||0)+H,weekly_txs:(A.fees.weekly_txs||0)+1,monthly_fee:(A.fees.monthly_fee||0)+H,monthly_txs:(A.fees.monthly_txs||0)+1},ri=A.activeChannels;let Ci=!1,ji=!1;for(const Yi of ri){if(Yi.channelId===P.fromChannelId){Ci=!0;const In=(Yi.toLocal||0)+(Yi.toRemote||0);Yi.toLocal=(Yi.toLocal||0)+I.amountIn,Yi.toRemote=(Yi.toRemote||0)-I.amountIn,Yi.balancedness=0===In?1:+(1-Math.abs((Yi.toLocal-Yi.toRemote)/In)).toFixed(3)}if(Yi.channelId===P.toChannelId){ji=!0;const In=(Yi.toLocal||0)+(Yi.toRemote||0);Yi.toLocal=(Yi.toLocal||0)-I.amountOut,Yi.toRemote=(Yi.toRemote||0)+I.amountOut,Yi.balancedness=0===In?1:+(1-Math.abs((Yi.toLocal-Yi.toRemote)/In)).toFixed(3)}if(ji&&Ci)break}return{...A,payments:b,lightningBalance:ve,channelStatus:yt,fees:Jt,activeChannels:ri}}),(0,Di.on)(_e.pd,(A,{payload:P})=>{const b=[];return we.c3.forEach(I=>{const H=P&&P.length&&P.length>0?P.find(ve=>ve.pageId===I.pageId):null;if(H){const ve=JSON.parse(JSON.stringify(H.tables));H.tables=[],I.tables.forEach(yt=>{const Jt=ve.find(ri=>ri.tableId===yt.tableId)||null;H.tables.push(Jt||JSON.parse(JSON.stringify(yt)))}),b.push(H)}else b.push(JSON.parse(JSON.stringify(I)))}),{...A,pageSettings:b}})),Fl=(A,P)=>{if("payment-relayed"===A.type)if(P&&P.length>0)for(let b=0;b<P.length;b++){if(P[b].channelId?.toString()===A.fromChannelId&&(A.fromChannelAlias=P[b].alias?P[b].alias:A.fromChannelId,A.fromShortChannelId=P[b].shortChannelId?P[b].shortChannelId:"",A.toChannelAlias)||P[b].channelId?.toString()===A.toChannelId&&(A.toChannelAlias=P[b].alias?P[b].alias:A.toChannelId,A.toShortChannelId=P[b].shortChannelId?P[b].shortChannelId:"",A.fromChannelAlias))return A;b===P.length-1&&(A.fromChannelAlias||(A.fromChannelAlias=A.fromChannelId?.substring(0,17)+"...",A.fromShortChannelId=""),A.toChannelAlias||(A.toChannelAlias=A.toChannelId?.substring(0,17)+"...",A.toShortChannelId=""))}else A.fromChannelAlias=A.fromChannelId?.substring(0,17)+"...",A.fromShortChannelId="",A.toChannelAlias=A.toChannelId?.substring(0,17)+"...",A.toShortChannelId="";else if(A.type="trampoline-payment-relayed"){if(P&&P.length>0)for(let b=0;b<P.length;b++)A.incoming?.forEach(I=>{P[b].channelId?.toString()===I.channelId&&(I.channelAlias=P[b].alias?P[b].alias:I.channelId,I.shortChannelId=P[b].shortChannelId?P[b].shortChannelId:"")}),A.outgoing?.forEach(I=>{P[b].channelId?.toString()===I.channelId&&(I.channelAlias=P[b].alias?P[b].alias:I.channelId,I.shortChannelId=P[b].shortChannelId?P[b].shortChannelId:"")}),b===P.length-1&&(A.incoming&&A.incoming.length&&A.incoming.length>0&&!A.incoming[0].channelAlias&&A.incoming?.forEach(I=>{I.channelAlias=I.channelId?.substring(0,17)+"...",I.shortChannelId=""}),A.outgoing&&A.outgoing.length&&A.outgoing.length>0&&!A.outgoing[0].channelAlias&&A.outgoing?.forEach(I=>{I.channelAlias=I.channelId?.substring(0,17)+"...",I.shortChannelId=""}));else A.incoming?.forEach(b=>{b.channelAlias=b.channelId?.substring(0,17)+"...",b.shortChannelId=""}),A.outgoing?.forEach(b=>{b.channelAlias=b.channelId?.substring(0,17)+"...",b.shortChannelId=""});A.amountIn=A.incoming?.reduce((b,I)=>b+I.amount,0)||0,A.fromChannelId=A.incoming&&A.incoming.length?A.incoming[0].channelId:"",A.fromChannelAlias=A.incoming&&A.incoming.length?A.incoming[0].channelAlias:"",A.fromShortChannelId=A.incoming&&A.incoming.length?A.incoming[0].shortChannelId:"",A.amountOut=A.outgoing?.reduce((b,I)=>b+I.amount,0)||0,A.toChannelId=A.outgoing&&A.outgoing.length?A.outgoing[0].channelId:"",A.toChannelAlias=A.outgoing&&A.outgoing.length?A.outgoing[0].channelAlias:"",A.toShortChannelId=A.outgoing&&A.outgoing.length?A.outgoing[0].shortChannelId:""}return A};let Oc=!1;(0,e.X6Q)()&&(Oc=!0);let Ju=(()=>{var A;class P{}return(A=P).\u0275fac=function(I){return new(I||A)},A.\u0275mod=e.oAB({type:A,bootstrap:[Yu]}),A.\u0275inj=e.cJS({providers:[{provide:$o.TP,useClass:Ku,multi:!0},ja.m,D2.D,h3.d,c1.W,Ge.v,_1],imports:[Wo,N0.m,kc,Jn.xu,t.t6,gc.forRoot({idle:we.k_-10,timeout:10,ping:12e3}),Di.Aw.forRoot({root:r2,lnd:J0,cln:$0,ecl:s2},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Na.sQ.forRoot([Sa.V,u3.l,a2.J,Q0.o]),Oc?lo.FT.instrument():[]]}),P})();t.q6().bootstrapModule(Ju).catch(A=>console.error(A))},7854:(We,q)=>{"use strict";function m(Se){return Object.keys(Se).map(fe=>Se[fe])}var Se;Object.defineProperty(q,"__esModule",{value:!0}),(Se=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",Se.SHA256="sha256",Se.SHA512="sha512";const t=m(q.HashAlgorithms);!function(Se){Se.ASCII="ascii",Se.BASE64="base64",Se.HEX="hex",Se.LATIN1="latin1",Se.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const e=m(q.KeyEncodings);!function(Se){Se.HOTP="hotp",Se.TOTP="totp"}(q.Strategy||(q.Strategy={}));const g=m(q.Strategy),T=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(Se){return/^(\d+)$/.test(Se)}function x(Se,fe,Fe){return Se.length>=fe?Se:`${Array(fe+1).join(Fe)}${Se}`.slice(-1*fe)}function h(Se){const fe=`otpauth://${Se.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Fe=[];if(g.indexOf(Se.type)<0)throw new Error(`Expecting options.type to be one of ${g.join(", ")}. Received ${Se.type}.`);if("hotp"===Se.type){if(null==Se.counter||"number"!=typeof Se.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Fe.push(`&counter=${Se.counter}`)}return"totp"===Se.type&&Se.step&&Fe.push(`&period=${Se.step}`),Se.digits&&Fe.push(`&digits=${Se.digits}`),Se.algorithm&&Fe.push(`&algorithm=${Se.algorithm.toUpperCase()}`),Se.issuer&&Fe.push(`&issuer=${encodeURIComponent(Se.issuer)}`),fe.replace("{labelPrefix}",encodeURIComponent(Se.issuer||Se.accountName)).replace("{accountName}",encodeURIComponent(Se.accountName)).replace("{secret}",Se.secret).replace("{query}",Fe.join(""))}class N{constructor(fe={}){this._defaultOptions=Object.freeze({...fe}),this._options=Object.freeze({})}create(fe={}){return new N(fe)}clone(fe={}){const Fe=this.create({...this._defaultOptions,...fe});return Fe.options=this._options,Fe}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(fe){this._options=Object.freeze({...this._options,...fe})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(Se){if("function"!=typeof Se.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof Se.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof Se.digits)throw new Error("Expecting options.digits to be a number.");if(!Se.algorithm||t.indexOf(Se.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${Se.algorithm}.`);if(!Se.encoding||e.indexOf(Se.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${Se.encoding}.`)}const M=(Se,fe,Fe)=>Buffer.from(fe,Fe).toString("hex");function w(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:M,createDigest:T,digits:6,encoding:q.KeyEncodings.ASCII}}function L(Se){const fe={...w(),...Se};return d(fe),Object.freeze(fe)}function k(Se){return x(Se.toString(16),16,"0")}function V(Se,fe){const Fe=Buffer.from(Se,"hex"),oe=15&Fe[Fe.length-1],Oe=((127&Fe[oe])<<24|(255&Fe[oe+1])<<16|(255&Fe[oe+2])<<8|255&Fe[oe+3])%Math.pow(10,fe);return x(String(Oe),fe,"0")}function W(Se,fe,Fe){const oe=Fe.digest||function B(Se,fe,Fe){const oe=k(fe),ze=Fe.createHmacKey(Fe.algorithm,Se,Fe.encoding);return Fe.createDigest(Fe.algorithm,ze,oe)}(Se,fe,Fe);return V(oe,Fe.digits)}function Y(Se,fe,Fe,oe){return!!s(Se)&&Se===W(fe,Fe,oe)}function Q(Se,fe,Fe,oe,ze){return h({algorithm:ze.algorithm,digits:ze.digits,type:q.Strategy.HOTP,accountName:Se,counter:oe,issuer:fe,secret:Fe})}class X extends N{create(fe={}){return new X(fe)}allOptions(){return L(this.options)}generate(fe,Fe){return W(fe,Fe,this.allOptions())}check(fe,Fe,oe){return Y(fe,Fe,oe,this.allOptions())}verify(fe){if("object"!=typeof fe)throw new Error("Expecting argument 0 of verify to be an object");return this.check(fe.token,fe.secret,fe.counter)}keyuri(fe,Fe,oe,ze){return Q(fe,Fe,oe,ze,this.allOptions())}}function ee(Se){if("number"==typeof Se)return[Math.abs(Se),Math.abs(Se)];if(Array.isArray(Se)){const[fe,Fe]=Se;if("number"==typeof fe&&"number"==typeof Fe)return[Math.abs(fe),Math.abs(Fe)]}throw new Error("Expecting options.window to be an number or [number, number].")}function me(Se){if(d(Se),ee(Se.window),"number"!=typeof Se.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof Se.step)throw new Error("Expecting options.step to be a number.")}const re=(Se,fe,Fe)=>{const oe=Se.length,ze=Buffer.from(Se,fe).toString("hex");if(oe<Fe){const Oe=new Array(Fe-oe+1).join(ze);return Buffer.from(Oe,"hex").slice(0,Fe).toString("hex")}return ze},ie=(Se,fe,Fe)=>{switch(Se){case q.HashAlgorithms.SHA1:return re(fe,Fe,20);case q.HashAlgorithms.SHA256:return re(fe,Fe,32);case q.HashAlgorithms.SHA512:return re(fe,Fe,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${Se}.`)}};function se(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:T,createHmacKey:ie,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function ce(Se){const fe={...se(),...Se};return me(fe),Object.freeze(fe)}function Te(Se,fe){return Math.floor(Se/fe/1e3)}function S(Se,fe){return W(Se,Te(fe.epoch,fe.step),fe)}function i(Se,fe,Fe,oe){const ze=[];if(0===oe)return ze;for(let Oe=1;Oe<=oe;Oe++)ze.push(Se+fe*Oe*Fe);return ze}function a(Se,fe,Fe){const oe=ee(Fe),ze=1e3*fe;return{current:Se,past:i(Se,-1,ze,oe[0]),future:i(Se,1,ze,oe[1])}}function u(Se,fe,Fe){return!!s(Se)&&Se===S(fe,Fe)}function l(Se,fe,Fe,oe){let ze=null;return Se.some((Oe,he)=>!!u(fe,Fe,{...oe,epoch:Oe})&&(ze=he+1,!0)),ze}function _(Se,fe,Fe){if(u(Se,fe,Fe))return 0;const oe=a(Fe.epoch,Fe.step,Fe.window),ze=l(oe.past,Se,fe,Fe);return null!==ze?-1*ze:l(oe.future,Se,fe,Fe)}function O(Se,fe){return Math.floor(Se/1e3)%fe}function R(Se,fe){return fe-O(Se,fe)}function C(Se,fe,Fe,oe){return h({algorithm:oe.algorithm,digits:oe.digits,step:oe.step,type:q.Strategy.TOTP,accountName:Se,issuer:fe,secret:Fe})}class n extends X{create(fe={}){return new n(fe)}allOptions(){return ce(this.options)}generate(fe){return S(fe,this.allOptions())}checkDelta(fe,Fe){return _(fe,Fe,this.allOptions())}check(fe,Fe){return"number"==typeof this.checkDelta(fe,Fe)}verify(fe){if("object"!=typeof fe)throw new Error("Expecting argument 0 of verify to be an object");return this.check(fe.token,fe.secret)}timeRemaining(){const fe=this.allOptions();return R(fe.epoch,fe.step)}timeUsed(){const fe=this.allOptions();return O(fe.epoch,fe.step)}keyuri(fe,Fe,oe){return C(fe,Fe,oe,this.allOptions())}}function v(Se){if(me(Se),"function"!=typeof Se.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(Se.keyEncoder&&"function"!=typeof Se.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function K(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:T,createHmacKey:ie,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function F(Se){const fe={...K(),...Se};return v(fe),Object.freeze(fe)}function G(Se,fe){return fe.keyEncoder(Se,fe.encoding)}function ye(Se,fe){return fe.keyDecoder(Se,fe.encoding)}function Ee(Se,fe){return G(fe.createRandomBytes(Se,fe.encoding),fe)}function pe(Se,fe){return S(ye(Se,fe),fe)}function qe(Se,fe,Fe){return _(Se,ye(fe,Fe),Fe)}class Ce extends n{create(fe={}){return new Ce(fe)}allOptions(){return F(this.options)}generate(fe){return pe(fe,this.allOptions())}checkDelta(fe,Fe){return qe(fe,Fe,this.allOptions())}encode(fe){return G(fe,this.allOptions())}decode(fe){return ye(fe,this.allOptions())}generateSecret(fe=10){return Ee(fe,this.allOptions())}}q.Authenticator=Ce,q.HASH_ALGORITHMS=t,q.HOTP=X,q.KEY_ENCODINGS=e,q.OTP=N,q.STRATEGY=g,q.TOTP=n,q.authenticatorCheckWithWindow=qe,q.authenticatorDecoder=ye,q.authenticatorDefaultOptions=K,q.authenticatorEncoder=G,q.authenticatorGenerateSecret=Ee,q.authenticatorOptionValidator=v,q.authenticatorOptions=F,q.authenticatorToken=pe,q.createDigestPlaceholder=T,q.hotpCheck=Y,q.hotpCounter=k,q.hotpCreateHmacKey=M,q.hotpDefaultOptions=w,q.hotpDigestToToken=V,q.hotpKeyuri=Q,q.hotpOptions=L,q.hotpOptionsValidator=d,q.hotpToken=W,q.isTokenValid=s,q.keyuri=h,q.objectValues=m,q.padStart=x,q.totpCheck=u,q.totpCheckByEpoch=l,q.totpCheckWithWindow=_,q.totpCounter=Te,q.totpCreateHmacKey=ie,q.totpDefaultOptions=se,q.totpEpochAvailable=a,q.totpKeyuri=C,q.totpOptions=ce,q.totpOptionsValidator=me,q.totpPadSecret=re,q.totpTimeRemaining=R,q.totpTimeUsed=O,q.totpToken=S},6098:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(1348));q.createDigest=(s,x,h)=>e.createHmac(s,Buffer.from(x,"hex")).update(Buffer.from(h,"hex")).digest().toString("hex"),q.createRandomBytes=(s,x)=>e.randomBytes(s).toString(x)},1415:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(2167));q.keyDecoder=(s,x)=>e.decode(s).toString(x),q.keyEncoder=(s,x)=>e.encode(Buffer.from(s,x).toString("ascii")).toString().replace(/=/g,"")},842:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=m(6098),e=m(1415),g=m(7854);const T=new g.HOTP({createDigest:t.createDigest}),s=new g.TOTP({createDigest:t.createDigest}),x=new g.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});q.authenticator=x,q.hotp=T,q.totp=s},7977:(We,q,m)=>{"use strict";const t=q;t.bignum=m(3854),t.define=m(9516).define,t.base=m(7813),t.constants=m(5459),t.decoders=m(196),t.encoders=m(1131)},9516:(We,q,m)=>{"use strict";const t=m(1131),e=m(196),g=m(3894);function s(x,h){this.name=x,this.body=h,this.decoders={},this.encoders={}}q.define=function(h,N){return new s(h,N)},s.prototype._createNamed=function(h){const N=this.name;function d(M){this._initNamed(M,N)}return g(d,h),d.prototype._initNamed=function(w,L){h.call(this,w,L)},new d(this)},s.prototype._getDecoder=function(h){return this.decoders.hasOwnProperty(h=h||"der")||(this.decoders[h]=this._createNamed(e[h])),this.decoders[h]},s.prototype.decode=function(h,N,d){return this._getDecoder(N).decode(h,d)},s.prototype._getEncoder=function(h){return this.encoders.hasOwnProperty(h=h||"der")||(this.encoders[h]=this._createNamed(t[h])),this.encoders[h]},s.prototype.encode=function(h,N,d){return this._getEncoder(N).encode(h,d)}},2769:(We,q,m)=>{"use strict";const t=m(3894),e=m(4919).b,g=m(2038).Buffer;function T(x,h){e.call(this,h),g.isBuffer(x)?(this.base=x,this.offset=0,this.length=x.length):this.error("Input not Buffer")}function s(x,h){if(Array.isArray(x))this.length=0,this.value=x.map(function(N){return s.isEncoderBuffer(N)||(N=new s(N,h)),this.length+=N.length,N},this);else if("number"==typeof x){if(!(0<=x&&x<=255))return h.error("non-byte EncoderBuffer value");this.value=x,this.length=1}else if("string"==typeof x)this.value=x,this.length=g.byteLength(x);else{if(!g.isBuffer(x))return h.error("Unsupported type: "+typeof x);this.value=x,this.length=x.length}}t(T,e),q.C=T,T.isDecoderBuffer=function(h){return h instanceof T||"object"==typeof h&&g.isBuffer(h.base)&&"DecoderBuffer"===h.constructor.name&&"number"==typeof h.offset&&"number"==typeof h.length&&"function"==typeof h.save&&"function"==typeof h.restore&&"function"==typeof h.isEmpty&&"function"==typeof h.readUInt8&&"function"==typeof h.skip&&"function"==typeof h.raw},T.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},T.prototype.restore=function(h){const N=new T(this.base);return N.offset=h.offset,N.length=this.offset,this.offset=h.offset,e.prototype.restore.call(this,h.reporter),N},T.prototype.isEmpty=function(){return this.offset===this.length},T.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},T.prototype.skip=function(h,N){if(!(this.offset+h<=this.length))return this.error(N||"DecoderBuffer overrun");const d=new T(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+h,this.offset+=h,d},T.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},q.R=s,s.isEncoderBuffer=function(h){return h instanceof s||"object"==typeof h&&"EncoderBuffer"===h.constructor.name&&"number"==typeof h.length&&"function"==typeof h.join},s.prototype.join=function(h,N){return h||(h=g.alloc(this.length)),N||(N=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(h,N),N+=d.length}):("number"==typeof this.value?h[N]=this.value:"string"==typeof this.value?h.write(this.value,N):g.isBuffer(this.value)&&this.value.copy(h,N),N+=this.length)),h}},7813:(We,q,m)=>{"use strict";const t=q;t.Reporter=m(4919).b,t.DecoderBuffer=m(2769).C,t.EncoderBuffer=m(2769).R,t.Node=m(1430)},1430:(We,q,m)=>{"use strict";const t=m(4919).b,e=m(2769).R,g=m(2769).C,T=m(2391),s=["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"],x=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function N(M,w,L){const k={};this._baseState=k,k.name=L,k.enc=M,k.parent=w||null,k.children=null,k.tag=null,k.args=null,k.reverseArgs=null,k.choice=null,k.optional=!1,k.any=!1,k.obj=!1,k.use=null,k.useDecoder=null,k.key=null,k.default=null,k.explicit=null,k.implicit=null,k.contains=null,k.parent||(k.children=[],this._wrap())}We.exports=N;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){const w=this._baseState,L={};d.forEach(function(V){L[V]=w[V]});const k=new this.constructor(L.parent);return k._baseState=L,k},N.prototype._wrap=function(){const w=this._baseState;x.forEach(function(L){this[L]=function(){const V=new this.constructor(this);return w.children.push(V),V[L].apply(V,arguments)}},this)},N.prototype._init=function(w){const L=this._baseState;T(null===L.parent),w.call(this),L.children=L.children.filter(function(k){return k._baseState.parent===this},this),T.equal(L.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(w){const L=this._baseState,k=w.filter(function(V){return V instanceof this.constructor},this);w=w.filter(function(V){return!(V instanceof this.constructor)},this),0!==k.length&&(T(null===L.children),L.children=k,k.forEach(function(V){V._baseState.parent=this},this)),0!==w.length&&(T(null===L.args),L.args=w,L.reverseArgs=w.map(function(V){if("object"!=typeof V||V.constructor!==Object)return V;const B={};return Object.keys(V).forEach(function(W){W==(0|W)&&(W|=0),B[V[W]]=W}),B}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(M){N.prototype[M]=function(){throw new Error(M+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(M){N.prototype[M]=function(){const L=this._baseState,k=Array.prototype.slice.call(arguments);return T(null===L.tag),L.tag=M,this._useArgs(k),this}}),N.prototype.use=function(w){T(w);const L=this._baseState;return T(null===L.use),L.use=w,this},N.prototype.optional=function(){return this._baseState.optional=!0,this},N.prototype.def=function(w){const L=this._baseState;return T(null===L.default),L.default=w,L.optional=!0,this},N.prototype.explicit=function(w){const L=this._baseState;return T(null===L.explicit&&null===L.implicit),L.explicit=w,this},N.prototype.implicit=function(w){const L=this._baseState;return T(null===L.explicit&&null===L.implicit),L.implicit=w,this},N.prototype.obj=function(){const w=this._baseState,L=Array.prototype.slice.call(arguments);return w.obj=!0,0!==L.length&&this._useArgs(L),this},N.prototype.key=function(w){const L=this._baseState;return T(null===L.key),L.key=w,this},N.prototype.any=function(){return this._baseState.any=!0,this},N.prototype.choice=function(w){const L=this._baseState;return T(null===L.choice),L.choice=w,this._useArgs(Object.keys(w).map(function(k){return w[k]})),this},N.prototype.contains=function(w){const L=this._baseState;return T(null===L.use),L.contains=w,this},N.prototype._decode=function(w,L){const k=this._baseState;if(null===k.parent)return w.wrapResult(k.children[0]._decode(w,L));let Y,V=k.default,B=!0,W=null;if(null!==k.key&&(W=w.enterKey(k.key)),k.optional){let Q=null;if(null!==k.explicit?Q=k.explicit:null!==k.implicit?Q=k.implicit:null!==k.tag&&(Q=k.tag),null!==Q||k.any){if(B=this._peekTag(w,Q,k.any),w.isError(B))return B}else{const X=w.save();try{null===k.choice?this._decodeGeneric(k.tag,w,L):this._decodeChoice(w,L),B=!0}catch{B=!1}w.restore(X)}}if(k.obj&&B&&(Y=w.enterObject()),B){if(null!==k.explicit){const X=this._decodeTag(w,k.explicit);if(w.isError(X))return X;w=X}const Q=w.offset;if(null===k.use&&null===k.choice){let X;k.any&&(X=w.save());const ee=this._decodeTag(w,null!==k.implicit?k.implicit:k.tag,k.any);if(w.isError(ee))return ee;k.any?V=w.raw(X):w=ee}if(L&&L.track&&null!==k.tag&&L.track(w.path(),Q,w.length,"tagged"),L&&L.track&&null!==k.tag&&L.track(w.path(),w.offset,w.length,"content"),k.any||(V=null===k.choice?this._decodeGeneric(k.tag,w,L):this._decodeChoice(w,L)),w.isError(V))return V;if(!k.any&&null===k.choice&&null!==k.children&&k.children.forEach(function(ee){ee._decode(w,L)}),k.contains&&("octstr"===k.tag||"bitstr"===k.tag)){const X=new g(V);V=this._getUse(k.contains,w._reporterState.obj)._decode(X,L)}}return k.obj&&B&&(V=w.leaveObject(Y)),null===k.key||null===V&&!0!==B?null!==W&&w.exitKey(W):w.leaveKey(W,k.key,V),V},N.prototype._decodeGeneric=function(w,L,k){const V=this._baseState;return"seq"===w||"set"===w?null:"seqof"===w||"setof"===w?this._decodeList(L,w,V.args[0],k):/str$/.test(w)?this._decodeStr(L,w,k):"objid"===w&&V.args?this._decodeObjid(L,V.args[0],V.args[1],k):"objid"===w?this._decodeObjid(L,null,null,k):"gentime"===w||"utctime"===w?this._decodeTime(L,w,k):"null_"===w?this._decodeNull(L,k):"bool"===w?this._decodeBool(L,k):"objDesc"===w?this._decodeStr(L,w,k):"int"===w||"enum"===w?this._decodeInt(L,V.args&&V.args[0],k):null!==V.use?this._getUse(V.use,L._reporterState.obj)._decode(L,k):L.error("unknown tag: "+w)},N.prototype._getUse=function(w,L){const k=this._baseState;return k.useDecoder=this._use(w,L),T(null===k.useDecoder._baseState.parent),k.useDecoder=k.useDecoder._baseState.children[0],k.implicit!==k.useDecoder._baseState.implicit&&(k.useDecoder=k.useDecoder.clone(),k.useDecoder._baseState.implicit=k.implicit),k.useDecoder},N.prototype._decodeChoice=function(w,L){const k=this._baseState;let V=null,B=!1;return Object.keys(k.choice).some(function(W){const Y=w.save(),Q=k.choice[W];try{const X=Q._decode(w,L);if(w.isError(X))return!1;V={type:W,value:X},B=!0}catch{return w.restore(Y),!1}return!0},this),B?V:w.error("Choice not matched")},N.prototype._createEncoderBuffer=function(w){return new e(w,this.reporter)},N.prototype._encode=function(w,L,k){const V=this._baseState;if(null!==V.default&&V.default===w)return;const B=this._encodeValue(w,L,k);return void 0===B||this._skipDefault(B,L,k)?void 0:B},N.prototype._encodeValue=function(w,L,k){const V=this._baseState;if(null===V.parent)return V.children[0]._encode(w,L||new t);let B=null;if(this.reporter=L,V.optional&&void 0===w){if(null===V.default)return;w=V.default}let W=null,Y=!1;if(V.any)B=this._createEncoderBuffer(w);else if(V.choice)B=this._encodeChoice(w,L);else if(V.contains)W=this._getUse(V.contains,k)._encode(w,L),Y=!0;else if(V.children)W=V.children.map(function(Q){if("null_"===Q._baseState.tag)return Q._encode(null,L,w);if(null===Q._baseState.key)return L.error("Child should have a key");const X=L.enterKey(Q._baseState.key);if("object"!=typeof w)return L.error("Child expected, but input is not object");const ee=Q._encode(w[Q._baseState.key],L,w);return L.leaveKey(X),ee},this).filter(function(Q){return Q}),W=this._createEncoderBuffer(W);else if("seqof"===V.tag||"setof"===V.tag){if(!V.args||1!==V.args.length)return L.error("Too many args for : "+V.tag);if(!Array.isArray(w))return L.error("seqof/setof, but data is not Array");const Q=this.clone();Q._baseState.implicit=null,W=this._createEncoderBuffer(w.map(function(X){return this._getUse(this._baseState.args[0],w)._encode(X,L)},Q))}else null!==V.use?B=this._getUse(V.use,k)._encode(w,L):(W=this._encodePrimitive(V.tag,w),Y=!0);if(!V.any&&null===V.choice){const Q=null!==V.implicit?V.implicit:V.tag,X=null===V.implicit?"universal":"context";null===Q?null===V.use&&L.error("Tag could be omitted only for .use()"):null===V.use&&(B=this._encodeComposite(Q,Y,X,W))}return null!==V.explicit&&(B=this._encodeComposite(V.explicit,!1,"context",B)),B},N.prototype._encodeChoice=function(w,L){const k=this._baseState,V=k.choice[w.type];return V||T(!1,w.type+" not found in "+JSON.stringify(Object.keys(k.choice))),V._encode(w.value,L)},N.prototype._encodePrimitive=function(w,L){const k=this._baseState;if(/str$/.test(w))return this._encodeStr(L,w);if("objid"===w&&k.args)return this._encodeObjid(L,k.reverseArgs[0],k.args[1]);if("objid"===w)return this._encodeObjid(L,null,null);if("gentime"===w||"utctime"===w)return this._encodeTime(L,w);if("null_"===w)return this._encodeNull();if("int"===w||"enum"===w)return this._encodeInt(L,k.args&&k.reverseArgs[0]);if("bool"===w)return this._encodeBool(L);if("objDesc"===w)return this._encodeStr(L,w);throw new Error("Unsupported tag: "+w)},N.prototype._isNumstr=function(w){return/^[0-9 ]*$/.test(w)},N.prototype._isPrintstr=function(w){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(w)}},4919:(We,q,m)=>{"use strict";const t=m(3894);function e(T){this._reporterState={obj:null,path:[],options:T||{},errors:[]}}function g(T,s){this.path=T,this.rethrow(s)}q.b=e,e.prototype.isError=function(s){return s instanceof g},e.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},e.prototype.restore=function(s){const x=this._reporterState;x.obj=s.obj,x.path=x.path.slice(0,s.pathLen)},e.prototype.enterKey=function(s){return this._reporterState.path.push(s)},e.prototype.exitKey=function(s){const x=this._reporterState;x.path=x.path.slice(0,s-1)},e.prototype.leaveKey=function(s,x,h){const N=this._reporterState;this.exitKey(s),null!==N.obj&&(N.obj[x]=h)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const s=this._reporterState,x=s.obj;return s.obj={},x},e.prototype.leaveObject=function(s){const x=this._reporterState,h=x.obj;return x.obj=s,h},e.prototype.error=function(s){let x;const h=this._reporterState,N=s instanceof g;if(x=N?s:new g(h.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),s.message||s,s.stack),!h.options.partial)throw x;return N||h.errors.push(x),x},e.prototype.wrapResult=function(s){const x=this._reporterState;return x.options.partial?{result:this.isError(s)?null:s,errors:x.errors}:s},t(g,Error),g.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,g),!this.stack)try{throw new Error(this.message)}catch(x){this.stack=x.stack}return this}},5496:(We,q)=>{"use strict";function m(t){const e={};return Object.keys(t).forEach(function(g){(0|g)==g&&(g|=0),e[t[g]]=g}),e}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:(We,q,m)=>{"use strict";const t=q;t._reverse=function(g){const T={};return Object.keys(g).forEach(function(s){(0|s)==s&&(s|=0),T[g[s]]=s}),T},t.der=m(5496)},7127:(We,q,m)=>{"use strict";const t=m(3894),e=m(3854),g=m(2769).C,T=m(1430),s=m(5496);function x(M){this.enc="der",this.name=M.name,this.entity=M,this.tree=new h,this.tree._init(M.body)}function h(M){T.call(this,"der",M)}function N(M,w){let L=M.readUInt8(w);if(M.isError(L))return L;const k=s.tagClass[L>>6],V=0==(32&L);if(31==(31&L)){let W=L;for(L=0;128==(128&W);){if(W=M.readUInt8(w),M.isError(W))return W;L<<=7,L|=127&W}}else L&=31;return{cls:k,primitive:V,tag:L,tagStr:s.tag[L]}}function d(M,w,L){let k=M.readUInt8(L);if(M.isError(k))return k;if(!w&&128===k)return null;if(!(128&k))return k;const V=127&k;if(V>4)return M.error("length octect is too long");k=0;for(let B=0;B<V;B++){k<<=8;const W=M.readUInt8(L);if(M.isError(W))return W;k|=W}return k}We.exports=x,x.prototype.decode=function(w,L){return g.isDecoderBuffer(w)||(w=new g(w,L)),this.tree._decode(w,L)},t(h,T),h.prototype._peekTag=function(w,L,k){if(w.isEmpty())return!1;const V=w.save(),B=N(w,'Failed to peek tag: "'+L+'"');return w.isError(B)?B:(w.restore(V),B.tag===L||B.tagStr===L||B.tagStr+"of"===L||k)},h.prototype._decodeTag=function(w,L,k){const V=N(w,'Failed to decode tag of "'+L+'"');if(w.isError(V))return V;let B=d(w,V.primitive,'Failed to get length of "'+L+'"');if(w.isError(B))return B;if(!k&&V.tag!==L&&V.tagStr!==L&&V.tagStr+"of"!==L)return w.error('Failed to match tag: "'+L+'"');if(V.primitive||null!==B)return w.skip(B,'Failed to match body of: "'+L+'"');const W=w.save(),Y=this._skipUntilEnd(w,'Failed to skip indefinite length body: "'+this.tag+'"');return w.isError(Y)?Y:(B=w.offset-W.offset,w.restore(W),w.skip(B,'Failed to match body of: "'+L+'"'))},h.prototype._skipUntilEnd=function(w,L){for(;;){const k=N(w,L);if(w.isError(k))return k;const V=d(w,k.primitive,L);if(w.isError(V))return V;let B;if(B=k.primitive||null!==V?w.skip(V):this._skipUntilEnd(w,L),w.isError(B))return B;if("end"===k.tagStr)break}},h.prototype._decodeList=function(w,L,k,V){const B=[];for(;!w.isEmpty();){const W=this._peekTag(w,"end");if(w.isError(W))return W;const Y=k.decode(w,"der",V);if(w.isError(Y)&&W)break;B.push(Y)}return B},h.prototype._decodeStr=function(w,L){if("bitstr"===L){const k=w.readUInt8();return w.isError(k)?k:{unused:k,data:w.raw()}}if("bmpstr"===L){const k=w.raw();if(k.length%2==1)return w.error("Decoding of string type: bmpstr length mismatch");let V="";for(let B=0;B<k.length/2;B++)V+=String.fromCharCode(k.readUInt16BE(2*B));return V}if("numstr"===L){const k=w.raw().toString("ascii");return this._isNumstr(k)?k:w.error("Decoding of string type: numstr unsupported characters")}if("octstr"===L)return w.raw();if("objDesc"===L)return w.raw();if("printstr"===L){const k=w.raw().toString("ascii");return this._isPrintstr(k)?k:w.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(L)?w.raw().toString():w.error("Decoding of string type: "+L+" unsupported")},h.prototype._decodeObjid=function(w,L,k){let V;const B=[];let W=0,Y=0;for(;!w.isEmpty();)Y=w.readUInt8(),W<<=7,W|=127&Y,128&Y||(B.push(W),W=0);if(128&Y&&B.push(W),V=k?B:[B[0]/40|0,B[0]%40].concat(B.slice(1)),L){let ee=L[V.join(" ")];void 0===ee&&(ee=L[V.join(".")]),void 0!==ee&&(V=ee)}return V},h.prototype._decodeTime=function(w,L){const k=w.raw().toString();let V,B,W,Y,Q,X;if("gentime"===L)V=0|k.slice(0,4),B=0|k.slice(4,6),W=0|k.slice(6,8),Y=0|k.slice(8,10),Q=0|k.slice(10,12),X=0|k.slice(12,14);else{if("utctime"!==L)return w.error("Decoding "+L+" time is not supported yet");V=0|k.slice(0,2),B=0|k.slice(2,4),W=0|k.slice(4,6),Y=0|k.slice(6,8),Q=0|k.slice(8,10),X=0|k.slice(10,12),V=V<70?2e3+V:1900+V}return Date.UTC(V,B-1,W,Y,Q,X,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(w){const L=w.readUInt8();return w.isError(L)?L:0!==L},h.prototype._decodeInt=function(w,L){const k=w.raw();let V=new e(k);return L&&(V=L[V.toString(10)]||V),V},h.prototype._use=function(w,L){return"function"==typeof w&&(w=w(L)),w._getDecoder("der").tree}},196:(We,q,m)=>{"use strict";const t=q;t.der=m(7127),t.pem=m(9617)},9617:(We,q,m)=>{"use strict";const t=m(3894),e=m(2038).Buffer,g=m(7127);function T(s){g.call(this,s),this.enc="pem"}t(T,g),We.exports=T,T.prototype.decode=function(x,h){const N=x.toString().split(/[\r\n]+/g),d=h.label.toUpperCase(),M=/^-----(BEGIN|END) ([^-]+)-----$/;let w=-1,L=-1;for(let B=0;B<N.length;B++){const W=N[B].match(M);if(null!==W&&W[2]===d){if(-1!==w){if("END"!==W[1])break;L=B;break}if("BEGIN"!==W[1])break;w=B}}if(-1===w||-1===L)throw new Error("PEM section not found for: "+d);const k=N.slice(w+1,L).join("");k.replace(/[^a-z0-9+/=]+/gi,"");const V=e.from(k,"base64");return g.prototype.decode.call(this,V,h)}},6374:(We,q,m)=>{"use strict";const t=m(3894),e=m(2038).Buffer,g=m(1430),T=m(5496);function s(d){this.enc="der",this.name=d.name,this.entity=d,this.tree=new x,this.tree._init(d.body)}function x(d){g.call(this,"der",d)}function h(d){return d<10?"0"+d:d}We.exports=s,s.prototype.encode=function(M,w){return this.tree._encode(M,w).join()},t(x,g),x.prototype._encodeComposite=function(M,w,L,k){const V=function N(d,M,w,L){let k;if("seqof"===d?d="seq":"setof"===d&&(d="set"),T.tagByName.hasOwnProperty(d))k=T.tagByName[d];else{if("number"!=typeof d||(0|d)!==d)return L.error("Unknown tag: "+d);k=d}return k>=31?L.error("Multi-octet tag encoding unsupported"):(M||(k|=32),k|=T.tagClassByName[w||"universal"]<<6,k)}(M,w,L,this.reporter);if(k.length<128){const Y=e.alloc(2);return Y[0]=V,Y[1]=k.length,this._createEncoderBuffer([Y,k])}let B=1;for(let Y=k.length;Y>=256;Y>>=8)B++;const W=e.alloc(2+B);W[0]=V,W[1]=128|B;for(let Y=1+B,Q=k.length;Q>0;Y--,Q>>=8)W[Y]=255&Q;return this._createEncoderBuffer([W,k])},x.prototype._encodeStr=function(M,w){if("bitstr"===w)return this._createEncoderBuffer([0|M.unused,M.data]);if("bmpstr"===w){const L=e.alloc(2*M.length);for(let k=0;k<M.length;k++)L.writeUInt16BE(M.charCodeAt(k),2*k);return this._createEncoderBuffer(L)}return"numstr"===w?this._isNumstr(M)?this._createEncoderBuffer(M):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===w?this._isPrintstr(M)?this._createEncoderBuffer(M):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(w)||"objDesc"===w?this._createEncoderBuffer(M):this.reporter.error("Encoding of string type: "+w+" unsupported")},x.prototype._encodeObjid=function(M,w,L){if("string"==typeof M){if(!w)return this.reporter.error("string objid given, but no values map found");if(!w.hasOwnProperty(M))return this.reporter.error("objid not found in values map");M=w[M].split(/[\s.]+/g);for(let W=0;W<M.length;W++)M[W]|=0}else if(Array.isArray(M)){M=M.slice();for(let W=0;W<M.length;W++)M[W]|=0}if(!Array.isArray(M))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(M));if(!L){if(M[1]>=40)return this.reporter.error("Second objid identifier OOB");M.splice(0,2,40*M[0]+M[1])}let k=0;for(let W=0;W<M.length;W++){let Y=M[W];for(k++;Y>=128;Y>>=7)k++}const V=e.alloc(k);let B=V.length-1;for(let W=M.length-1;W>=0;W--){let Y=M[W];for(V[B--]=127&Y;(Y>>=7)>0;)V[B--]=128|127&Y}return this._createEncoderBuffer(V)},x.prototype._encodeTime=function(M,w){let L;const k=new Date(M);return"gentime"===w?L=[h(k.getUTCFullYear()),h(k.getUTCMonth()+1),h(k.getUTCDate()),h(k.getUTCHours()),h(k.getUTCMinutes()),h(k.getUTCSeconds()),"Z"].join(""):"utctime"===w?L=[h(k.getUTCFullYear()%100),h(k.getUTCMonth()+1),h(k.getUTCDate()),h(k.getUTCHours()),h(k.getUTCMinutes()),h(k.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+w+" time is not supported yet"),this._encodeStr(L,"octstr")},x.prototype._encodeNull=function(){return this._createEncoderBuffer("")},x.prototype._encodeInt=function(M,w){if("string"==typeof M){if(!w)return this.reporter.error("String int or enum given, but no values map");if(!w.hasOwnProperty(M))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(M));M=w[M]}if("number"!=typeof M&&!e.isBuffer(M)){const V=M.toArray();!M.sign&&128&V[0]&&V.unshift(0),M=e.from(V)}if(e.isBuffer(M)){let V=M.length;0===M.length&&V++;const B=e.alloc(V);return M.copy(B),0===M.length&&(B[0]=0),this._createEncoderBuffer(B)}if(M<128)return this._createEncoderBuffer(M);if(M<256)return this._createEncoderBuffer([0,M]);let L=1;for(let V=M;V>=256;V>>=8)L++;const k=new Array(L);for(let V=k.length-1;V>=0;V--)k[V]=255&M,M>>=8;return 128&k[0]&&k.unshift(0),this._createEncoderBuffer(e.from(k))},x.prototype._encodeBool=function(M){return this._createEncoderBuffer(M?255:0)},x.prototype._use=function(M,w){return"function"==typeof M&&(M=M(w)),M._getEncoder("der").tree},x.prototype._skipDefault=function(M,w,L){const k=this._baseState;let V;if(null===k.default)return!1;const B=M.join();if(void 0===k.defaultBuffer&&(k.defaultBuffer=this._encodeValue(k.default,w,L).join()),B.length!==k.defaultBuffer.length)return!1;for(V=0;V<B.length;V++)if(B[V]!==k.defaultBuffer[V])return!1;return!0}},1131:(We,q,m)=>{"use strict";const t=q;t.der=m(6374),t.pem=m(3530)},3530:(We,q,m)=>{"use strict";const t=m(3894),e=m(6374);function g(T){e.call(this,T),this.enc="pem"}t(g,e),We.exports=g,g.prototype.encode=function(s,x){const N=e.prototype.encode.call(this,s).toString("base64"),d=["-----BEGIN "+x.label+"-----"];for(let M=0;M<N.length;M+=64)d.push(N.slice(M,M+64));return d.push("-----END "+x.label+"-----"),d.join("\n")}},3854:function(We,q,m){!function(t,e){"use strict";function g(S,i){if(!S)throw new Error(i||"Assertion failed")}function T(S,i){S.super_=i;var a=function(){};a.prototype=i.prototype,S.prototype=new a,S.prototype.constructor=S}function s(S,i,a){if(s.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(S||0,i||10,a||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(950).Buffer}catch{}function h(S,i){var a=S.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(S,i,a){var u=h(S,a);return a-1>=i&&(u|=h(S,a-1)<<4),u}function d(S,i,a,u){for(var l=0,_=Math.min(S.length,a),O=i;O<_;O++){var R=S.charCodeAt(O)-48;l*=u,l+=R>=49?R-49+10:R>=17?R-17+10:R}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),g(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(g("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var _,O,R=0;if("be"===u)for(l=i.length-1,_=0;l>=0;l-=3)this.words[_]|=(O=i[l]|i[l-1]<<8|i[l-2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);else if("le"===u)for(l=0,_=0;l<i.length;l+=3)this.words[_]|=(O=i[l]|i[l+1]<<8|i[l+2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var R,_=0,O=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,_=1;_<=67108863;_*=a)l++;l--,_=_/a|0;for(var O=i.length-u,R=O%l,C=Math.min(O,O-R)+u,n=0,v=u;v<C;v+=l)n=d(i,v,v+l,a),this.imuln(_),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==R){var K=1;for(n=d(i,v,i.length,a),v=0;v<R;v++)K*=a;this.imuln(K),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[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 V(S,i,a){a.negative=i.negative^S.negative;var u=S.length+i.length|0;a.length=u,u=u-1|0;var l=0|S.words[0],_=0|i.words[0],O=l*_,C=O/67108864|0;a.words[0]=67108863&O;for(var n=1;n<u;n++){for(var v=C>>>26,K=67108863&C,F=Math.min(n,i.length-1),G=Math.max(0,n-S.length+1);G<=F;G++)v+=(O=(l=0|S.words[n-G|0])*(_=0|i.words[G])+K)/67108864|0,K=67108863&O;a.words[n]=0|K,C=0|v}return 0!==C?a.words[n]=0|C:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,_=0,O=0;O<this.length;O++){var R=this.words[O],C=(16777215&(R<<l|_)).toString(16);u=0!=(_=R>>>24-l&16777215)||O!==this.length-1?M[6-C.length]+C+u:C+u,(l+=2)>=26&&(l-=26,O--)}for(0!==_&&(u=_.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],v=L[i];u="";var K=this.clone();for(K.negative=0;!K.isZero();){var F=K.modn(v).toString(i);u=(K=K.idivn(v)).isZero()?F+u:M[n-F.length]+F+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}g(!1,"Base should be between 2 and 36")},s.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&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return g(typeof x<"u"),this.toArrayLike(x,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),_=u||Math.max(1,l);g(l<=_,"byte array longer than desired length"),g(_>0,"Requested array length <= 0"),this.strip();var C,n,O="le"===a,R=new i(_),v=this.clone();if(O){for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[n]=C;for(;n<_;n++)R[n]=0}else{for(n=0;n<_-l;n++)R[n]=0;for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[_-n-1]=C}return R},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return g(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return g(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return g(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){g("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){g("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var _=0,O=0;O<l.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+(0|l.words[O])+_),_=a>>>26;for(;0!==_&&O<u.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+_),_=a>>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;O<u.length;O++)this.words[O]=u.words[O];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,_=i):(l=i,_=this);for(var O=0,R=0;R<_.length;R++)O=(a=(0|l.words[R])-(0|_.words[R])+O)>>26,this.words[R]=67108863&a;for(;0!==O&&R<l.length;R++)O=(a=(0|l.words[R])+O)>>26,this.words[R]=67108863&a;if(0===O&&R<l.length&&l!==this)for(;R<l.length;R++)this.words[R]=l.words[R];return this.length=Math.max(this.length,R),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var B=function(i,a,u){var C,n,v,l=i.words,_=a.words,O=u.words,R=0,K=0|l[0],F=8191&K,G=K>>>13,ye=0|l[1],Ee=8191&ye,pe=ye>>>13,qe=0|l[2],Ce=8191&qe,Se=qe>>>13,fe=0|l[3],Fe=8191&fe,oe=fe>>>13,ze=0|l[4],Oe=8191&ze,he=ze>>>13,Ae=0|l[5],ge=8191&Ae,Ue=Ae>>>13,Je=0|l[6],Re=8191&Je,le=Je>>>13,rt=0|l[7],Qe=8191&rt,ct=rt>>>13,Gt=0|l[8],ut=8191&Gt,Ze=Gt>>>13,xt=0|l[9],Me=8191&xt,$e=xt>>>13,Pe=0|_[0],J=8191&Pe,mt=Pe>>>13,Et=0|_[1],at=8191&Et,je=Et>>>13,Ht=0|_[2],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|_[3],Ne=8191&Bt,$=Bt>>>13,ue=0|_[4],Ie=8191&ue,Xe=ue>>>13,ei=0|_[5],zt=8191&ei,ni=ei>>>13,pt=0|_[6],ot=8191&pt,ft=pt>>>13,St=0|_[7],gt=8191&St,tt=St>>>13,_t=0|_[8],vt=8191&_t,Ve=_t>>>13,Tt=0|_[9],Lt=8191&Tt,Qt=Tt>>>13;u.negative=i.negative^a.negative,u.length=19;var Bi=(R+(C=Math.imul(F,J))|0)+((8191&(n=(n=Math.imul(F,mt))+Math.imul(G,J)|0))<<13)|0;R=((v=Math.imul(G,mt))+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,C=Math.imul(Ee,J),n=(n=Math.imul(Ee,mt))+Math.imul(pe,J)|0,v=Math.imul(pe,mt);var Hi=(R+(C=C+Math.imul(F,at)|0)|0)+((8191&(n=(n=n+Math.imul(F,je)|0)+Math.imul(G,at)|0))<<13)|0;R=((v=v+Math.imul(G,je)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,C=Math.imul(Ce,J),n=(n=Math.imul(Ce,mt))+Math.imul(Se,J)|0,v=Math.imul(Se,mt),C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,je)|0)+Math.imul(pe,at)|0,v=v+Math.imul(pe,je)|0;var Si=(R+(C=C+Math.imul(F,Ct)|0)|0)+((8191&(n=(n=n+Math.imul(F,Nt)|0)+Math.imul(G,Ct)|0))<<13)|0;R=((v=v+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,C=Math.imul(Fe,J),n=(n=Math.imul(Fe,mt))+Math.imul(oe,J)|0,v=Math.imul(oe,mt),C=C+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,je)|0)+Math.imul(Se,at)|0,v=v+Math.imul(Se,je)|0,C=C+Math.imul(Ee,Ct)|0,n=(n=n+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0,v=v+Math.imul(pe,Nt)|0;var Wi=(R+(C=C+Math.imul(F,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(F,$)|0)+Math.imul(G,Ne)|0))<<13)|0;R=((v=v+Math.imul(G,$)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(Oe,J),n=(n=Math.imul(Oe,mt))+Math.imul(he,J)|0,v=Math.imul(he,mt),C=C+Math.imul(Fe,at)|0,n=(n=n+Math.imul(Fe,je)|0)+Math.imul(oe,at)|0,v=v+Math.imul(oe,je)|0,C=C+Math.imul(Ce,Ct)|0,n=(n=n+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,v=v+Math.imul(Se,Nt)|0,C=C+Math.imul(Ee,Ne)|0,n=(n=n+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0,v=v+Math.imul(pe,$)|0;var et=(R+(C=C+Math.imul(F,Ie)|0)|0)+((8191&(n=(n=n+Math.imul(F,Xe)|0)+Math.imul(G,Ie)|0))<<13)|0;R=((v=v+Math.imul(G,Xe)|0)+(n>>>13)|0)+(et>>>26)|0,et&=67108863,C=Math.imul(ge,J),n=(n=Math.imul(ge,mt))+Math.imul(Ue,J)|0,v=Math.imul(Ue,mt),C=C+Math.imul(Oe,at)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(he,at)|0,v=v+Math.imul(he,je)|0,C=C+Math.imul(Fe,Ct)|0,n=(n=n+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,v=v+Math.imul(oe,Nt)|0,C=C+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,v=v+Math.imul(Se,$)|0,C=C+Math.imul(Ee,Ie)|0,n=(n=n+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,Xe)|0;var It=(R+(C=C+Math.imul(F,zt)|0)|0)+((8191&(n=(n=n+Math.imul(F,ni)|0)+Math.imul(G,zt)|0))<<13)|0;R=((v=v+Math.imul(G,ni)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(Re,J),n=(n=Math.imul(Re,mt))+Math.imul(le,J)|0,v=Math.imul(le,mt),C=C+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,je)|0)+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,je)|0,C=C+Math.imul(Oe,Ct)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,v=v+Math.imul(he,Nt)|0,C=C+Math.imul(Fe,Ne)|0,n=(n=n+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,v=v+Math.imul(oe,$)|0,C=C+Math.imul(Ce,Ie)|0,n=(n=n+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,v=v+Math.imul(Se,Xe)|0,C=C+Math.imul(Ee,zt)|0,n=(n=n+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0,v=v+Math.imul(pe,ni)|0;var Le=(R+(C=C+Math.imul(F,ot)|0)|0)+((8191&(n=(n=n+Math.imul(F,ft)|0)+Math.imul(G,ot)|0))<<13)|0;R=((v=v+Math.imul(G,ft)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(Qe,J),n=(n=Math.imul(Qe,mt))+Math.imul(ct,J)|0,v=Math.imul(ct,mt),C=C+Math.imul(Re,at)|0,n=(n=n+Math.imul(Re,je)|0)+Math.imul(le,at)|0,v=v+Math.imul(le,je)|0,C=C+Math.imul(ge,Ct)|0,n=(n=n+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,v=v+Math.imul(Ue,Nt)|0,C=C+Math.imul(Oe,Ne)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,v=v+Math.imul(he,$)|0,C=C+Math.imul(Fe,Ie)|0,n=(n=n+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,v=v+Math.imul(oe,Xe)|0,C=C+Math.imul(Ce,zt)|0,n=(n=n+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,v=v+Math.imul(Se,ni)|0,C=C+Math.imul(Ee,ot)|0,n=(n=n+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0,v=v+Math.imul(pe,ft)|0;var Mt=(R+(C=C+Math.imul(F,gt)|0)|0)+((8191&(n=(n=n+Math.imul(F,tt)|0)+Math.imul(G,gt)|0))<<13)|0;R=((v=v+Math.imul(G,tt)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(ut,J),n=(n=Math.imul(ut,mt))+Math.imul(Ze,J)|0,v=Math.imul(Ze,mt),C=C+Math.imul(Qe,at)|0,n=(n=n+Math.imul(Qe,je)|0)+Math.imul(ct,at)|0,v=v+Math.imul(ct,je)|0,C=C+Math.imul(Re,Ct)|0,n=(n=n+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,v=v+Math.imul(le,Nt)|0,C=C+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,v=v+Math.imul(Ue,$)|0,C=C+Math.imul(Oe,Ie)|0,n=(n=n+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,v=v+Math.imul(he,Xe)|0,C=C+Math.imul(Fe,zt)|0,n=(n=n+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,v=v+Math.imul(oe,ni)|0,C=C+Math.imul(Ce,ot)|0,n=(n=n+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,v=v+Math.imul(Se,ft)|0,C=C+Math.imul(Ee,gt)|0,n=(n=n+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0,v=v+Math.imul(pe,tt)|0;var Wt=(R+(C=C+Math.imul(F,vt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Ve)|0)+Math.imul(G,vt)|0))<<13)|0;R=((v=v+Math.imul(G,Ve)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,C=Math.imul(Me,J),n=(n=Math.imul(Me,mt))+Math.imul($e,J)|0,v=Math.imul($e,mt),C=C+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,je)|0)+Math.imul(Ze,at)|0,v=v+Math.imul(Ze,je)|0,C=C+Math.imul(Qe,Ct)|0,n=(n=n+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,v=v+Math.imul(ct,Nt)|0,C=C+Math.imul(Re,Ne)|0,n=(n=n+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,v=v+Math.imul(le,$)|0,C=C+Math.imul(ge,Ie)|0,n=(n=n+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,v=v+Math.imul(Ue,Xe)|0,C=C+Math.imul(Oe,zt)|0,n=(n=n+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,v=v+Math.imul(he,ni)|0,C=C+Math.imul(Fe,ot)|0,n=(n=n+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,v=v+Math.imul(oe,ft)|0,C=C+Math.imul(Ce,gt)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,v=v+Math.imul(Se,tt)|0,C=C+Math.imul(Ee,vt)|0,n=(n=n+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0,v=v+Math.imul(pe,Ve)|0;var si=(R+(C=C+Math.imul(F,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Qt)|0)+Math.imul(G,Lt)|0))<<13)|0;R=((v=v+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,C=Math.imul(Me,at),n=(n=Math.imul(Me,je))+Math.imul($e,at)|0,v=Math.imul($e,je),C=C+Math.imul(ut,Ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,v=v+Math.imul(Ze,Nt)|0,C=C+Math.imul(Qe,Ne)|0,n=(n=n+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,v=v+Math.imul(ct,$)|0,C=C+Math.imul(Re,Ie)|0,n=(n=n+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,v=v+Math.imul(le,Xe)|0,C=C+Math.imul(ge,zt)|0,n=(n=n+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,v=v+Math.imul(Ue,ni)|0,C=C+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,v=v+Math.imul(he,ft)|0,C=C+Math.imul(Fe,gt)|0,n=(n=n+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,v=v+Math.imul(oe,tt)|0,C=C+Math.imul(Ce,vt)|0,n=(n=n+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,v=v+Math.imul(Se,Ve)|0;var Ai=(R+(C=C+Math.imul(Ee,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;R=((v=v+Math.imul(pe,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,C=Math.imul(Me,Ct),n=(n=Math.imul(Me,Nt))+Math.imul($e,Ct)|0,v=Math.imul($e,Nt),C=C+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,v=v+Math.imul(Ze,$)|0,C=C+Math.imul(Qe,Ie)|0,n=(n=n+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,v=v+Math.imul(ct,Xe)|0,C=C+Math.imul(Re,zt)|0,n=(n=n+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,v=v+Math.imul(le,ni)|0,C=C+Math.imul(ge,ot)|0,n=(n=n+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,ft)|0,C=C+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,v=v+Math.imul(he,tt)|0,C=C+Math.imul(Fe,vt)|0,n=(n=n+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,v=v+Math.imul(oe,Ve)|0;var Ri=(R+(C=C+Math.imul(Ce,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0))<<13)|0;R=((v=v+Math.imul(Se,Qt)|0)+(n>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,C=Math.imul(Me,Ne),n=(n=Math.imul(Me,$))+Math.imul($e,Ne)|0,v=Math.imul($e,$),C=C+Math.imul(ut,Ie)|0,n=(n=n+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,v=v+Math.imul(Ze,Xe)|0,C=C+Math.imul(Qe,zt)|0,n=(n=n+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,v=v+Math.imul(ct,ni)|0,C=C+Math.imul(Re,ot)|0,n=(n=n+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,v=v+Math.imul(le,ft)|0,C=C+Math.imul(ge,gt)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,v=v+Math.imul(Ue,tt)|0,C=C+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,v=v+Math.imul(he,Ve)|0;var $i=(R+(C=C+Math.imul(Fe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0))<<13)|0;R=((v=v+Math.imul(oe,Qt)|0)+(n>>>13)|0)+($i>>>26)|0,$i&=67108863,C=Math.imul(Me,Ie),n=(n=Math.imul(Me,Xe))+Math.imul($e,Ie)|0,v=Math.imul($e,Xe),C=C+Math.imul(ut,zt)|0,n=(n=n+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,v=v+Math.imul(Ze,ni)|0,C=C+Math.imul(Qe,ot)|0,n=(n=n+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,v=v+Math.imul(ct,ft)|0,C=C+Math.imul(Re,gt)|0,n=(n=n+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,v=v+Math.imul(le,tt)|0,C=C+Math.imul(ge,vt)|0,n=(n=n+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,v=v+Math.imul(Ue,Ve)|0;var nn=(R+(C=C+Math.imul(Oe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0))<<13)|0;R=((v=v+Math.imul(he,Qt)|0)+(n>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Me,zt),n=(n=Math.imul(Me,ni))+Math.imul($e,zt)|0,v=Math.imul($e,ni),C=C+Math.imul(ut,ot)|0,n=(n=n+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,v=v+Math.imul(Ze,ft)|0,C=C+Math.imul(Qe,gt)|0,n=(n=n+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,v=v+Math.imul(ct,tt)|0,C=C+Math.imul(Re,vt)|0,n=(n=n+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,v=v+Math.imul(le,Ve)|0;var Qi=(R+(C=C+Math.imul(ge,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,C=Math.imul(Me,ot),n=(n=Math.imul(Me,ft))+Math.imul($e,ot)|0,v=Math.imul($e,ft),C=C+Math.imul(ut,gt)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,v=v+Math.imul(Ze,tt)|0,C=C+Math.imul(Qe,vt)|0,n=(n=n+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,v=v+Math.imul(ct,Ve)|0;var Yt=(R+(C=C+Math.imul(Re,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0))<<13)|0;R=((v=v+Math.imul(le,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Me,gt),n=(n=Math.imul(Me,tt))+Math.imul($e,gt)|0,v=Math.imul($e,tt),C=C+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,v=v+Math.imul(Ze,Ve)|0;var Xt=(R+(C=C+Math.imul(Qe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0))<<13)|0;R=((v=v+Math.imul(ct,Qt)|0)+(n>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(Me,vt),n=(n=Math.imul(Me,Ve))+Math.imul($e,vt)|0,v=Math.imul($e,Ve);var be=(R+(C=C+Math.imul(ut,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ze,Qt)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863;var dt=(R+(C=Math.imul(Me,Lt))|0)+((8191&(n=(n=Math.imul(Me,Qt))+Math.imul($e,Lt)|0))<<13)|0;return R=((v=Math.imul($e,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,O[0]=Bi,O[1]=Hi,O[2]=Si,O[3]=Wi,O[4]=et,O[5]=It,O[6]=Le,O[7]=Mt,O[8]=Wt,O[9]=si,O[10]=Ai,O[11]=Ri,O[12]=$i,O[13]=nn,O[14]=Qi,O[15]=Yt,O[16]=Xt,O[17]=be,O[18]=dt,0!==R&&(O[19]=R,u.length++),u};function Y(S,i,a){return(new Q).mulp(S,i,a)}function Q(S,i){this.x=S,this.y=i}Math.imul||(B=V),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?B(this,i,a):l<63?V(this,i,a):l<1024?function W(S,i,a){a.negative=i.negative^S.negative,a.length=S.length+i.length;for(var u=0,l=0,_=0;_<a.length-1;_++){var O=l;l=0;for(var R=67108863&u,C=Math.min(_,i.length-1),n=Math.max(0,_-S.length+1);n<=C;n++){var G=(0|S.words[_-n])*(0|i.words[n]),ye=67108863&G;R=67108863&(ye=ye+R|0),l+=(O=(O=O+(G/67108864|0)|0)+(ye>>>26)|0)>>>26,O&=67108863}a.words[_]=R,u=O,O=l}return 0!==u?a.words[_]=u:a.length--,a.strip()}(this,i,a):Y(this,i,a),u},Q.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},Q.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,_=0;_<a;_++)l|=(1&i)<<a-_-1,i>>=1;return l},Q.prototype.permute=function(i,a,u,l,_,O){for(var R=0;R<O;R++)l[R]=a[i[R]],_[R]=u[i[R]]},Q.prototype.transform=function(i,a,u,l,_,O){this.permute(O,i,a,u,l,_);for(var R=1;R<_;R<<=1)for(var C=R<<1,n=Math.cos(2*Math.PI/C),v=Math.sin(2*Math.PI/C),K=0;K<_;K+=C)for(var F=n,G=v,ye=0;ye<R;ye++){var Ee=u[K+ye],pe=l[K+ye],qe=u[K+ye+R],Ce=l[K+ye+R],Se=F*qe-G*Ce;Ce=F*Ce+G*qe,u[K+ye]=Ee+(qe=Se),l[K+ye]=pe+Ce,u[K+ye+R]=Ee-qe,l[K+ye+R]=pe-Ce,ye!==C&&(Se=n*F-v*G,G=n*G+v*F,F=Se)}},Q.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,_=0;for(u=u/2|0;u;u>>>=1)_++;return 1<<_+1+l},Q.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var _=i[l];i[l]=i[u-l-1],i[u-l-1]=_,_=a[l],a[l]=-a[u-l-1],a[u-l-1]=-_}},Q.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var _=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&_,u=_<67108864?0:_/67108864|0}return i},Q.prototype.convert13b=function(i,a,u,l){for(var _=0,O=0;O<a;O++)u[2*O]=8191&(_+=0|i[O]),u[2*O+1]=8191&(_>>>=13),_>>>=13;for(O=2*a;O<l;++O)u[O]=0;g(0===_),g(0==(-8192&_))},Q.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},Q.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(l),O=this.stub(l),R=new Array(l),C=new Array(l),n=new Array(l),v=new Array(l),K=new Array(l),F=new Array(l),G=u.words;G.length=l,this.convert13b(i.words,i.length,R,l),this.convert13b(a.words,a.length,v,l),this.transform(R,O,C,n,l,_),this.transform(v,O,K,F,l,_);for(var ye=0;ye<l;ye++){var Ee=C[ye]*K[ye]-n[ye]*F[ye];n[ye]=C[ye]*F[ye]+n[ye]*K[ye],C[ye]=Ee}return this.conjugate(C,n,l),this.transform(C,n,G,O,l,_),this.conjugate(G,O,l),this.normalize13b(G,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),Y(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){g("number"==typeof i),g(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,_=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=_>>>26,this.words[u]=67108863&_}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function k(S){for(var i=new Array(S.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(S.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var _=u.sqr();l<a.length;l++,_=_.sqr())0!==a[l]&&(u=u.mul(_));return u},s.prototype.iushln=function(i){g("number"==typeof i&&i>=0);var _,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var O=0;for(_=0;_<this.length;_++){var R=this.words[_]&l;this.words[_]=(0|this.words[_])-R<<a|O,O=R>>>26-a}O&&(this.words[_]=O,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_<u;_++)this.words[_]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return g(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;g("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var _=i%26,O=Math.min((i-_)/26,this.length),R=67108863^67108863>>>_<<_,C=u;if(l-=O,l=Math.max(0,l),C){for(var n=0;n<O;n++)C.words[n]=this.words[n];C.length=O}if(0!==O)if(this.length>O)for(this.length-=O,n=0;n<this.length;n++)this.words[n]=this.words[n+O];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(0!==v||n>=l);n--){var K=0|this.words[n];this.words[n]=v<<26-_|K>>>_,v=K&R}return C&&0!==v&&(C.words[C.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return g(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return g("number"==typeof i),g(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[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},s.prototype.isubn=function(i){if(g("number"==typeof i),g(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<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var _;this._expand(i.length+u);var O,R=0;for(_=0;_<i.length;_++){O=(0|this.words[_+u])+R;var C=(0|i.words[_])*a;R=((O-=67108863&C)>>26)-(C/67108864|0),this.words[_+u]=67108863&O}for(;_<this.length-u;_++)R=(O=(0|this.words[_+u])+R)>>26,this.words[_+u]=67108863&O;if(0===R)return this.strip();for(g(-1===R),R=0,_=0;_<this.length;_++)R=(O=-(0|this.words[_])+R)>>26,this.words[_]=67108863&O;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),_=i,O=0|_.words[_.length-1];0!=(u=26-this._countBits(O))&&(_=_.ushln(u),l.iushln(u),O=0|_.words[_.length-1]);var n,C=l.length-_.length;if("mod"!==a){(n=new s(null)).length=C+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var K=l.clone()._ishlnsubmul(_,1,C);0===K.negative&&(l=K,n&&(n.words[C]=1));for(var F=C-1;F>=0;F--){var G=67108864*(0|l.words[_.length+F])+(0|l.words[_.length+F-1]);for(G=Math.min(G/O|0,67108863),l._ishlnsubmul(_,G,F);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(_,1,F),l.isZero()||(l.negative^=1);n&&(n.words[F]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return g(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(O=this.neg().divmod(i,a),"mod"!==a&&(l=O.div.neg()),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:l,mod:_}):0===this.negative&&0!==i.negative?(O=this.divmod(i.neg(),a),"mod"!==a&&(l=O.div.neg()),{div:l,mod:O.mod}):this.negative&i.negative?(O=this.neg().divmod(i.neg(),a),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:O.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,_,O},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),_=i.andln(1),O=u.cmp(l);return O<0||1===_&&0===O?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){g(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){g(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){g(0===i.negative),g(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=new s(0),R=new s(1),C=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++C;for(var n=u.clone(),v=a.clone();!a.isZero();){for(var K=0,F=1;!(a.words[0]&F)&&K<26;++K,F<<=1);if(K>0)for(a.iushrn(K);K-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(n),_.isub(v)),l.iushrn(1),_.iushrn(1);for(var G=0,ye=1;!(u.words[0]&ye)&&G<26;++G,ye<<=1);if(G>0)for(u.iushrn(G);G-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(n),R.isub(v)),O.iushrn(1),R.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(O),_.isub(R)):(u.isub(a),O.isub(l),R.isub(_))}return{a:O,b:R,gcd:u.iushln(C)}},s.prototype._invmp=function(i){g(0===i.negative),g(!i.isZero());var K,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var R=0,C=1;!(a.words[0]&C)&&R<26;++R,C<<=1);if(R>0)for(a.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(O),l.iushrn(1);for(var n=0,v=1;!(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(_)):(u.isub(a),_.isub(l))}return(K=0===a.cmpn(1)?l:_).cmpn(0)<0&&K.iadd(i),K},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=a.cmp(u);if(_<0){var O=a;a=u,u=O}else if(0===_||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){g("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var _=l,O=u;0!==_&&O<this.length;O++){var R=0|this.words[O];_=(R+=_)>>>26,this.words[O]=R&=67108863}return 0!==_&&(this.words[O]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),g(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],_=0|i.words[u];if(l!==_){l<_?a=-1:l>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var X={k256:null,p224:null,p192:null,p25519:null};function ee(S,i){this.name=S,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(S){if("string"==typeof S){var i=s._prime(S);this.m=i.p,this.prime=i}else g(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function Te(S){ce.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?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)},T(me,ee),me.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),_=0;_<l;_++)a.words[_]=i.words[_];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var O=i.words[9];for(a.words[a.length++]=O&u,_=10;_<i.length;_++){var R=0|i.words[_];i.words[_-10]=(R&u)<<4|O>>>22,O=R}i.words[_-10]=O>>>=22,i.length-=0===O&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},T(re,ee),T(ie,ee),T(se,ee),se.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,_=67108863&l;l>>>=26,i.words[u]=_,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(X[i])return X[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return X[i]=a,a},ce.prototype._verify1=function(i){g(0===i.negative,"red works only with positives"),g(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){g(0==(i.negative|a.negative),"red works only with positives"),g(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},ce.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(g(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),_=0;!l.isZero()&&0===l.andln(1);)_++,l.iushrn(1);g(!l.isZero());var O=new s(1).toRed(this),R=O.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,C).cmp(R);)n.redIAdd(R);for(var v=this.pow(n,l),K=this.pow(i,l.addn(1).iushrn(1)),F=this.pow(i,l),G=_;0!==F.cmp(O);){for(var ye=F,Ee=0;0!==ye.cmp(O);Ee++)ye=ye.redSqr();g(Ee<G);var pe=this.pow(v,new s(1).iushln(G-Ee-1));K=K.redMul(pe),v=pe.redSqr(),F=F.redMul(v),G=Ee}return K},ce.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},ce.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var _=2;_<l.length;_++)l[_]=this.mul(l[_-1],i);var O=l[0],R=0,C=0,n=a.bitLength()%26;for(0===n&&(n=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],K=n-1;K>=0;K--){var F=v>>K&1;O!==l[0]&&(O=this.sqr(O)),0!==F||0!==R?(R<<=1,R|=F,(4==++C||0===_&&0===K)&&(O=this.mul(O,l[R]),C=0,R=0)):C=0}n=26}return O},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Te(i)},T(Te,ce),Te.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Te.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Te.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},5343:(We,q)=>{"use strict";q.byteLength=function h(k){var V=x(k),W=V[1];return 3*(V[0]+W)/4-W},q.toByteArray=function d(k){var V,me,B=x(k),W=B[0],Y=B[1],Q=new e(function N(k,V,B){return 3*(V+B)/4-B}(0,W,Y)),X=0,ee=Y>0?W-4:W;for(me=0;me<ee;me+=4)V=t[k.charCodeAt(me)]<<18|t[k.charCodeAt(me+1)]<<12|t[k.charCodeAt(me+2)]<<6|t[k.charCodeAt(me+3)],Q[X++]=V>>16&255,Q[X++]=V>>8&255,Q[X++]=255&V;return 2===Y&&(V=t[k.charCodeAt(me)]<<2|t[k.charCodeAt(me+1)]>>4,Q[X++]=255&V),1===Y&&(V=t[k.charCodeAt(me)]<<10|t[k.charCodeAt(me+1)]<<4|t[k.charCodeAt(me+2)]>>2,Q[X++]=V>>8&255,Q[X++]=255&V),Q},q.fromByteArray=function L(k){for(var V,B=k.length,W=B%3,Y=[],Q=16383,X=0,ee=B-W;X<ee;X+=Q)Y.push(w(k,X,X+Q>ee?ee:X+Q));return 1===W?Y.push(m[(V=k[B-1])>>2]+m[V<<4&63]+"=="):2===W&&Y.push(m[(V=(k[B-2]<<8)+k[B-1])>>10]+m[V>>4&63]+m[V<<2&63]+"="),Y.join("")};for(var m=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=0,s=g.length;T<s;++T)m[T]=g[T],t[g.charCodeAt(T)]=T;function x(k){var V=k.length;if(V%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var B=k.indexOf("=");return-1===B&&(B=V),[B,B===V?0:4-B%4]}function M(k){return m[k>>18&63]+m[k>>12&63]+m[k>>6&63]+m[63&k]}function w(k,V,B){for(var Y=[],Q=V;Q<B;Q+=3)Y.push(M((k[Q]<<16&16711680)+(k[Q+1]<<8&65280)+(255&k[Q+2])));return Y.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},8538:function(We,q,m){!function(t,e){"use strict";function g(u,l){if(!u)throw new Error(l||"Assertion failed")}function T(u,l){u.super_=l;var _=function(){};_.prototype=l.prototype,u.prototype=new _,u.prototype.constructor=u}function s(u,l,_){if(s.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,null!==u&&(("le"===l||"be"===l)&&(_=l,l=10),this._init(u||0,l||10,_||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(6601).Buffer}catch{}function h(u,l){var _=u.charCodeAt(l);return _>=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void g(!1,"Invalid character in "+u)}function N(u,l,_){var O=h(u,_);return _-1>=l&&(O|=h(u,_-1)<<4),O}function d(u,l,_,O){for(var R=0,C=0,n=Math.min(u.length,_),v=l;v<n;v++){var K=u.charCodeAt(v)-48;R*=O,C=K>=49?K-49+10:K>=17?K-17+10:K,g(K>=0&&C<O,"Invalid character"),R+=C}return R}function M(u,l){u.words=l.words,u.length=l.length,u.negative=l.negative,u.red=l.red}if(s.isBN=function(l){return l instanceof s||null!==l&&"object"==typeof l&&l.constructor.wordSize===s.wordSize&&Array.isArray(l.words)},s.max=function(l,_){return l.cmp(_)>0?l:_},s.min=function(l,_){return l.cmp(_)<0?l:_},s.prototype._init=function(l,_,O){if("number"==typeof l)return this._initNumber(l,_,O);if("object"==typeof l)return this._initArray(l,_,O);"hex"===_&&(_=16),g(_===(0|_)&&_>=2&&_<=36);var R=0;"-"===(l=l.toString().replace(/\s+/g,""))[0]&&(R++,this.negative=1),R<l.length&&(16===_?this._parseHex(l,R,O):(this._parseBase(l,_,R),"le"===O&&this._initArray(this.toArray(),_,O)))},s.prototype._initNumber=function(l,_,O){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[67108863&l],this.length=1):l<4503599627370496?(this.words=[67108863&l,l/67108864&67108863],this.length=2):(g(l<9007199254740992),this.words=[67108863&l,l/67108864&67108863,1],this.length=3),"le"===O&&this._initArray(this.toArray(),_,O)},s.prototype._initArray=function(l,_,O){if(g("number"==typeof l.length),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var C,n,v=0;if("be"===O)for(R=l.length-1,C=0;R>=0;R-=3)this.words[C]|=(n=l[R]|l[R-1]<<8|l[R-2]<<16)<<v&67108863,this.words[C+1]=n>>>26-v&67108863,(v+=24)>=26&&(v-=26,C++);else if("le"===O)for(R=0,C=0;R<l.length;R+=3)this.words[C]|=(n=l[R]|l[R+1]<<8|l[R+2]<<16)<<v&67108863,this.words[C+1]=n>>>26-v&67108863,(v+=24)>=26&&(v-=26,C++);return this._strip()},s.prototype._parseHex=function(l,_,O){this.length=Math.ceil((l.length-_)/6),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var v,C=0,n=0;if("be"===O)for(R=l.length-1;R>=_;R-=2)v=N(l,_,R)<<C,this.words[n]|=67108863&v,C>=18?(C-=18,this.words[n+=1]|=v>>>26):C+=8;else for(R=(l.length-_)%2==0?_+1:_;R<l.length;R+=2)v=N(l,_,R)<<C,this.words[n]|=67108863&v,C>=18?(C-=18,this.words[n+=1]|=v>>>26):C+=8;this._strip()},s.prototype._parseBase=function(l,_,O){this.words=[0],this.length=1;for(var R=0,C=1;C<=67108863;C*=_)R++;R--,C=C/_|0;for(var n=l.length-O,v=n%R,K=Math.min(n,n-v)+O,F=0,G=O;G<K;G+=R)F=d(l,G,G+R,_),this.imuln(C),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(0!==v){var ye=1;for(F=d(l,G,l.length,_),G=0;G<v;G++)ye*=_;this.imuln(ye),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}this._strip()},s.prototype.copy=function(l){l.words=new Array(this.length);for(var _=0;_<this.length;_++)l.words[_]=this.words[_];l.length=this.length,l.negative=this.negative,l.red=this.red},s.prototype._move=function(l){M(l,this)},s.prototype.clone=function(){var l=new s(null);return this.copy(l),l},s.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{s.prototype.inspect=w}else s.prototype.inspect=w;function w(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}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"],k=[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],V=[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 Y(u,l,_){_.negative=l.negative^u.negative;var O=u.length+l.length|0;_.length=O,O=O-1|0;var R=0|u.words[0],C=0|l.words[0],n=R*C,K=n/67108864|0;_.words[0]=67108863&n;for(var F=1;F<O;F++){for(var G=K>>>26,ye=67108863&K,Ee=Math.min(F,l.length-1),pe=Math.max(0,F-u.length+1);pe<=Ee;pe++)G+=(n=(R=0|u.words[F-pe|0])*(C=0|l.words[pe])+ye)/67108864|0,ye=67108863&n;_.words[F]=0|ye,K=0|G}return 0!==K?_.words[F]=0|K:_.length--,_._strip()}s.prototype.toString=function(l,_){var O;if(_=0|_||1,16===(l=l||10)||"hex"===l){O="";for(var R=0,C=0,n=0;n<this.length;n++){var v=this.words[n],K=(16777215&(v<<R|C)).toString(16);C=v>>>24-R&16777215,(R+=2)>=26&&(R-=26,n--),O=0!==C||n!==this.length-1?L[6-K.length]+K+O:K+O}for(0!==C&&(O=C.toString(16)+O);O.length%_!=0;)O="0"+O;return 0!==this.negative&&(O="-"+O),O}if(l===(0|l)&&l>=2&&l<=36){var F=k[l],G=V[l];O="";var ye=this.clone();for(ye.negative=0;!ye.isZero();){var Ee=ye.modrn(G).toString(l);O=(ye=ye.idivn(G)).isZero()?Ee+O:L[F-Ee.length]+Ee+O}for(this.isZero()&&(O="0"+O);O.length%_!=0;)O="0"+O;return 0!==this.negative&&(O="-"+O),O}g(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var l=this.words[0];return 2===this.length?l+=67108864*this.words[1]:3===this.length&&1===this.words[2]?l+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-l:l},s.prototype.toJSON=function(){return this.toString(16,2)},x&&(s.prototype.toBuffer=function(l,_){return this.toArrayLike(x,l,_)}),s.prototype.toArray=function(l,_){return this.toArrayLike(Array,l,_)},s.prototype.toArrayLike=function(l,_,O){this._strip();var R=this.byteLength(),C=O||Math.max(1,R);g(R<=C,"byte array longer than desired length"),g(C>0,"Requested array length <= 0");var n=function(l,_){return l.allocUnsafe?l.allocUnsafe(_):new l(_)}(l,C);return this["_toArrayLike"+("le"===_?"LE":"BE")](n,R),n},s.prototype._toArrayLikeLE=function(l,_){for(var O=0,R=0,C=0,n=0;C<this.length;C++){var v=this.words[C]<<n|R;l[O++]=255&v,O<l.length&&(l[O++]=v>>8&255),O<l.length&&(l[O++]=v>>16&255),6===n?(O<l.length&&(l[O++]=v>>24&255),R=0,n=0):(R=v>>>24,n+=2)}if(O<l.length)for(l[O++]=R;O<l.length;)l[O++]=0},s.prototype._toArrayLikeBE=function(l,_){for(var O=l.length-1,R=0,C=0,n=0;C<this.length;C++){var v=this.words[C]<<n|R;l[O--]=255&v,O>=0&&(l[O--]=v>>8&255),O>=0&&(l[O--]=v>>16&255),6===n?(O>=0&&(l[O--]=v>>24&255),R=0,n=0):(R=v>>>24,n+=2)}if(O>=0)for(l[O--]=R;O>=0;)l[O--]=0},s.prototype._countBits=Math.clz32?function(l){return 32-Math.clz32(l)}:function(l){var _=l,O=0;return _>=4096&&(O+=13,_>>>=13),_>=64&&(O+=7,_>>>=7),_>=8&&(O+=4,_>>>=4),_>=2&&(O+=2,_>>>=2),O+_},s.prototype._zeroBits=function(l){if(0===l)return 26;var _=l,O=0;return 8191&_||(O+=13,_>>>=13),127&_||(O+=7,_>>>=7),15&_||(O+=4,_>>>=4),3&_||(O+=2,_>>>=2),1&_||O++,O},s.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,_=0;_<this.length;_++){var O=this._zeroBits(this.words[_]);if(l+=O,26!==O)break}return l},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(l){return 0!==this.negative?this.abs().inotn(l).iaddn(1):this.clone()},s.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var _=0;_<l.length;_++)this.words[_]=this.words[_]|l.words[_];return this._strip()},s.prototype.ior=function(l){return g(0==(this.negative|l.negative)),this.iuor(l)},s.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},s.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},s.prototype.iuand=function(l){var _;_=this.length>l.length?l:this;for(var O=0;O<_.length;O++)this.words[O]=this.words[O]&l.words[O];return this.length=_.length,this._strip()},s.prototype.iand=function(l){return g(0==(this.negative|l.negative)),this.iuand(l)},s.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},s.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},s.prototype.iuxor=function(l){var _,O;this.length>l.length?(_=this,O=l):(_=l,O=this);for(var R=0;R<O.length;R++)this.words[R]=_.words[R]^O.words[R];if(this!==_)for(;R<_.length;R++)this.words[R]=_.words[R];return this.length=_.length,this._strip()},s.prototype.ixor=function(l){return g(0==(this.negative|l.negative)),this.iuxor(l)},s.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},s.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},s.prototype.inotn=function(l){g("number"==typeof l&&l>=0);var _=0|Math.ceil(l/26),O=l%26;this._expand(_),O>0&&_--;for(var R=0;R<_;R++)this.words[R]=67108863&~this.words[R];return O>0&&(this.words[R]=~this.words[R]&67108863>>26-O),this._strip()},s.prototype.notn=function(l){return this.clone().inotn(l)},s.prototype.setn=function(l,_){g("number"==typeof l&&l>=0);var O=l/26|0,R=l%26;return this._expand(O+1),this.words[O]=_?this.words[O]|1<<R:this.words[O]&~(1<<R),this._strip()},s.prototype.iadd=function(l){var _,O,R;if(0!==this.negative&&0===l.negative)return this.negative=0,_=this.isub(l),this.negative^=1,this._normSign();if(0===this.negative&&0!==l.negative)return l.negative=0,_=this.isub(l),l.negative=1,_._normSign();this.length>l.length?(O=this,R=l):(O=l,R=this);for(var C=0,n=0;n<R.length;n++)this.words[n]=67108863&(_=(0|O.words[n])+(0|R.words[n])+C),C=_>>>26;for(;0!==C&&n<O.length;n++)this.words[n]=67108863&(_=(0|O.words[n])+C),C=_>>>26;if(this.length=O.length,0!==C)this.words[this.length]=C,this.length++;else if(O!==this)for(;n<O.length;n++)this.words[n]=O.words[n];return this},s.prototype.add=function(l){var _;return 0!==l.negative&&0===this.negative?(l.negative=0,_=this.sub(l),l.negative^=1,_):0===l.negative&&0!==this.negative?(this.negative=0,_=l.sub(this),this.negative=1,_):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},s.prototype.isub=function(l){if(0!==l.negative){l.negative=0;var _=this.iadd(l);return l.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var R,C,O=this.cmp(l);if(0===O)return this.negative=0,this.length=1,this.words[0]=0,this;O>0?(R=this,C=l):(R=l,C=this);for(var n=0,v=0;v<C.length;v++)n=(_=(0|R.words[v])-(0|C.words[v])+n)>>26,this.words[v]=67108863&_;for(;0!==n&&v<R.length;v++)n=(_=(0|R.words[v])+n)>>26,this.words[v]=67108863&_;if(0===n&&v<R.length&&R!==this)for(;v<R.length;v++)this.words[v]=R.words[v];return this.length=Math.max(this.length,v),R!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(l){return this.clone().isub(l)};var Q=function(l,_,O){var K,F,G,R=l.words,C=_.words,n=O.words,v=0,ye=0|R[0],Ee=8191&ye,pe=ye>>>13,qe=0|R[1],Ce=8191&qe,Se=qe>>>13,fe=0|R[2],Fe=8191&fe,oe=fe>>>13,ze=0|R[3],Oe=8191&ze,he=ze>>>13,Ae=0|R[4],ge=8191&Ae,Ue=Ae>>>13,Je=0|R[5],Re=8191&Je,le=Je>>>13,rt=0|R[6],Qe=8191&rt,ct=rt>>>13,Gt=0|R[7],ut=8191&Gt,Ze=Gt>>>13,xt=0|R[8],Me=8191&xt,$e=xt>>>13,Pe=0|R[9],J=8191&Pe,mt=Pe>>>13,Et=0|C[0],at=8191&Et,je=Et>>>13,Ht=0|C[1],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|C[2],Ne=8191&Bt,$=Bt>>>13,ue=0|C[3],Ie=8191&ue,Xe=ue>>>13,ei=0|C[4],zt=8191&ei,ni=ei>>>13,pt=0|C[5],ot=8191&pt,ft=pt>>>13,St=0|C[6],gt=8191&St,tt=St>>>13,_t=0|C[7],vt=8191&_t,Ve=_t>>>13,Tt=0|C[8],Lt=8191&Tt,Qt=Tt>>>13,Bi=0|C[9],Hi=8191&Bi,Si=Bi>>>13;O.negative=l.negative^_.negative,O.length=19;var Wi=(v+(K=Math.imul(Ee,at))|0)+((8191&(F=(F=Math.imul(Ee,je))+Math.imul(pe,at)|0))<<13)|0;v=((G=Math.imul(pe,je))+(F>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,K=Math.imul(Ce,at),F=(F=Math.imul(Ce,je))+Math.imul(Se,at)|0,G=Math.imul(Se,je);var et=(v+(K=K+Math.imul(Ee,Ct)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0))<<13)|0;v=((G=G+Math.imul(pe,Nt)|0)+(F>>>13)|0)+(et>>>26)|0,et&=67108863,K=Math.imul(Fe,at),F=(F=Math.imul(Fe,je))+Math.imul(oe,at)|0,G=Math.imul(oe,je),K=K+Math.imul(Ce,Ct)|0,F=(F=F+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,G=G+Math.imul(Se,Nt)|0;var It=(v+(K=K+Math.imul(Ee,Ne)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0))<<13)|0;v=((G=G+Math.imul(pe,$)|0)+(F>>>13)|0)+(It>>>26)|0,It&=67108863,K=Math.imul(Oe,at),F=(F=Math.imul(Oe,je))+Math.imul(he,at)|0,G=Math.imul(he,je),K=K+Math.imul(Fe,Ct)|0,F=(F=F+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,G=G+Math.imul(oe,Nt)|0,K=K+Math.imul(Ce,Ne)|0,F=(F=F+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,G=G+Math.imul(Se,$)|0;var Le=(v+(K=K+Math.imul(Ee,Ie)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0))<<13)|0;v=((G=G+Math.imul(pe,Xe)|0)+(F>>>13)|0)+(Le>>>26)|0,Le&=67108863,K=Math.imul(ge,at),F=(F=Math.imul(ge,je))+Math.imul(Ue,at)|0,G=Math.imul(Ue,je),K=K+Math.imul(Oe,Ct)|0,F=(F=F+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,G=G+Math.imul(he,Nt)|0,K=K+Math.imul(Fe,Ne)|0,F=(F=F+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,G=G+Math.imul(oe,$)|0,K=K+Math.imul(Ce,Ie)|0,F=(F=F+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,G=G+Math.imul(Se,Xe)|0;var Mt=(v+(K=K+Math.imul(Ee,zt)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0))<<13)|0;v=((G=G+Math.imul(pe,ni)|0)+(F>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,K=Math.imul(Re,at),F=(F=Math.imul(Re,je))+Math.imul(le,at)|0,G=Math.imul(le,je),K=K+Math.imul(ge,Ct)|0,F=(F=F+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,G=G+Math.imul(Ue,Nt)|0,K=K+Math.imul(Oe,Ne)|0,F=(F=F+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,G=G+Math.imul(he,$)|0,K=K+Math.imul(Fe,Ie)|0,F=(F=F+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,G=G+Math.imul(oe,Xe)|0,K=K+Math.imul(Ce,zt)|0,F=(F=F+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,G=G+Math.imul(Se,ni)|0;var Wt=(v+(K=K+Math.imul(Ee,ot)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0))<<13)|0;v=((G=G+Math.imul(pe,ft)|0)+(F>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,K=Math.imul(Qe,at),F=(F=Math.imul(Qe,je))+Math.imul(ct,at)|0,G=Math.imul(ct,je),K=K+Math.imul(Re,Ct)|0,F=(F=F+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,G=G+Math.imul(le,Nt)|0,K=K+Math.imul(ge,Ne)|0,F=(F=F+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,G=G+Math.imul(Ue,$)|0,K=K+Math.imul(Oe,Ie)|0,F=(F=F+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,G=G+Math.imul(he,Xe)|0,K=K+Math.imul(Fe,zt)|0,F=(F=F+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,G=G+Math.imul(oe,ni)|0,K=K+Math.imul(Ce,ot)|0,F=(F=F+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,G=G+Math.imul(Se,ft)|0;var si=(v+(K=K+Math.imul(Ee,gt)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0))<<13)|0;v=((G=G+Math.imul(pe,tt)|0)+(F>>>13)|0)+(si>>>26)|0,si&=67108863,K=Math.imul(ut,at),F=(F=Math.imul(ut,je))+Math.imul(Ze,at)|0,G=Math.imul(Ze,je),K=K+Math.imul(Qe,Ct)|0,F=(F=F+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,G=G+Math.imul(ct,Nt)|0,K=K+Math.imul(Re,Ne)|0,F=(F=F+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,G=G+Math.imul(le,$)|0,K=K+Math.imul(ge,Ie)|0,F=(F=F+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,G=G+Math.imul(Ue,Xe)|0,K=K+Math.imul(Oe,zt)|0,F=(F=F+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,G=G+Math.imul(he,ni)|0,K=K+Math.imul(Fe,ot)|0,F=(F=F+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,G=G+Math.imul(oe,ft)|0,K=K+Math.imul(Ce,gt)|0,F=(F=F+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,G=G+Math.imul(Se,tt)|0;var Ai=(v+(K=K+Math.imul(Ee,vt)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0))<<13)|0;v=((G=G+Math.imul(pe,Ve)|0)+(F>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,K=Math.imul(Me,at),F=(F=Math.imul(Me,je))+Math.imul($e,at)|0,G=Math.imul($e,je),K=K+Math.imul(ut,Ct)|0,F=(F=F+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,G=G+Math.imul(Ze,Nt)|0,K=K+Math.imul(Qe,Ne)|0,F=(F=F+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,G=G+Math.imul(ct,$)|0,K=K+Math.imul(Re,Ie)|0,F=(F=F+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,G=G+Math.imul(le,Xe)|0,K=K+Math.imul(ge,zt)|0,F=(F=F+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,G=G+Math.imul(Ue,ni)|0,K=K+Math.imul(Oe,ot)|0,F=(F=F+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,G=G+Math.imul(he,ft)|0,K=K+Math.imul(Fe,gt)|0,F=(F=F+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,G=G+Math.imul(oe,tt)|0,K=K+Math.imul(Ce,vt)|0,F=(F=F+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,G=G+Math.imul(Se,Ve)|0;var Ri=(v+(K=K+Math.imul(Ee,Lt)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;v=((G=G+Math.imul(pe,Qt)|0)+(F>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,K=Math.imul(J,at),F=(F=Math.imul(J,je))+Math.imul(mt,at)|0,G=Math.imul(mt,je),K=K+Math.imul(Me,Ct)|0,F=(F=F+Math.imul(Me,Nt)|0)+Math.imul($e,Ct)|0,G=G+Math.imul($e,Nt)|0,K=K+Math.imul(ut,Ne)|0,F=(F=F+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,G=G+Math.imul(Ze,$)|0,K=K+Math.imul(Qe,Ie)|0,F=(F=F+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,G=G+Math.imul(ct,Xe)|0,K=K+Math.imul(Re,zt)|0,F=(F=F+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,G=G+Math.imul(le,ni)|0,K=K+Math.imul(ge,ot)|0,F=(F=F+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,G=G+Math.imul(Ue,ft)|0,K=K+Math.imul(Oe,gt)|0,F=(F=F+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,G=G+Math.imul(he,tt)|0,K=K+Math.imul(Fe,vt)|0,F=(F=F+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,G=G+Math.imul(oe,Ve)|0,K=K+Math.imul(Ce,Lt)|0,F=(F=F+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0,G=G+Math.imul(Se,Qt)|0;var $i=(v+(K=K+Math.imul(Ee,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Ee,Si)|0)+Math.imul(pe,Hi)|0))<<13)|0;v=((G=G+Math.imul(pe,Si)|0)+(F>>>13)|0)+($i>>>26)|0,$i&=67108863,K=Math.imul(J,Ct),F=(F=Math.imul(J,Nt))+Math.imul(mt,Ct)|0,G=Math.imul(mt,Nt),K=K+Math.imul(Me,Ne)|0,F=(F=F+Math.imul(Me,$)|0)+Math.imul($e,Ne)|0,G=G+Math.imul($e,$)|0,K=K+Math.imul(ut,Ie)|0,F=(F=F+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,G=G+Math.imul(Ze,Xe)|0,K=K+Math.imul(Qe,zt)|0,F=(F=F+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,G=G+Math.imul(ct,ni)|0,K=K+Math.imul(Re,ot)|0,F=(F=F+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,G=G+Math.imul(le,ft)|0,K=K+Math.imul(ge,gt)|0,F=(F=F+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,G=G+Math.imul(Ue,tt)|0,K=K+Math.imul(Oe,vt)|0,F=(F=F+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,G=G+Math.imul(he,Ve)|0,K=K+Math.imul(Fe,Lt)|0,F=(F=F+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0,G=G+Math.imul(oe,Qt)|0;var nn=(v+(K=K+Math.imul(Ce,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Si)|0)+Math.imul(Se,Hi)|0))<<13)|0;v=((G=G+Math.imul(Se,Si)|0)+(F>>>13)|0)+(nn>>>26)|0,nn&=67108863,K=Math.imul(J,Ne),F=(F=Math.imul(J,$))+Math.imul(mt,Ne)|0,G=Math.imul(mt,$),K=K+Math.imul(Me,Ie)|0,F=(F=F+Math.imul(Me,Xe)|0)+Math.imul($e,Ie)|0,G=G+Math.imul($e,Xe)|0,K=K+Math.imul(ut,zt)|0,F=(F=F+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,G=G+Math.imul(Ze,ni)|0,K=K+Math.imul(Qe,ot)|0,F=(F=F+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,G=G+Math.imul(ct,ft)|0,K=K+Math.imul(Re,gt)|0,F=(F=F+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,G=G+Math.imul(le,tt)|0,K=K+Math.imul(ge,vt)|0,F=(F=F+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,G=G+Math.imul(Ue,Ve)|0,K=K+Math.imul(Oe,Lt)|0,F=(F=F+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0,G=G+Math.imul(he,Qt)|0;var Qi=(v+(K=K+Math.imul(Fe,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Fe,Si)|0)+Math.imul(oe,Hi)|0))<<13)|0;v=((G=G+Math.imul(oe,Si)|0)+(F>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,K=Math.imul(J,Ie),F=(F=Math.imul(J,Xe))+Math.imul(mt,Ie)|0,G=Math.imul(mt,Xe),K=K+Math.imul(Me,zt)|0,F=(F=F+Math.imul(Me,ni)|0)+Math.imul($e,zt)|0,G=G+Math.imul($e,ni)|0,K=K+Math.imul(ut,ot)|0,F=(F=F+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,G=G+Math.imul(Ze,ft)|0,K=K+Math.imul(Qe,gt)|0,F=(F=F+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,G=G+Math.imul(ct,tt)|0,K=K+Math.imul(Re,vt)|0,F=(F=F+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,G=G+Math.imul(le,Ve)|0,K=K+Math.imul(ge,Lt)|0,F=(F=F+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0,G=G+Math.imul(Ue,Qt)|0;var Yt=(v+(K=K+Math.imul(Oe,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Oe,Si)|0)+Math.imul(he,Hi)|0))<<13)|0;v=((G=G+Math.imul(he,Si)|0)+(F>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,K=Math.imul(J,zt),F=(F=Math.imul(J,ni))+Math.imul(mt,zt)|0,G=Math.imul(mt,ni),K=K+Math.imul(Me,ot)|0,F=(F=F+Math.imul(Me,ft)|0)+Math.imul($e,ot)|0,G=G+Math.imul($e,ft)|0,K=K+Math.imul(ut,gt)|0,F=(F=F+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,G=G+Math.imul(Ze,tt)|0,K=K+Math.imul(Qe,vt)|0,F=(F=F+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,G=G+Math.imul(ct,Ve)|0,K=K+Math.imul(Re,Lt)|0,F=(F=F+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0,G=G+Math.imul(le,Qt)|0;var Xt=(v+(K=K+Math.imul(ge,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(ge,Si)|0)+Math.imul(Ue,Hi)|0))<<13)|0;v=((G=G+Math.imul(Ue,Si)|0)+(F>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,K=Math.imul(J,ot),F=(F=Math.imul(J,ft))+Math.imul(mt,ot)|0,G=Math.imul(mt,ft),K=K+Math.imul(Me,gt)|0,F=(F=F+Math.imul(Me,tt)|0)+Math.imul($e,gt)|0,G=G+Math.imul($e,tt)|0,K=K+Math.imul(ut,vt)|0,F=(F=F+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,G=G+Math.imul(Ze,Ve)|0,K=K+Math.imul(Qe,Lt)|0,F=(F=F+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0,G=G+Math.imul(ct,Qt)|0;var be=(v+(K=K+Math.imul(Re,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Re,Si)|0)+Math.imul(le,Hi)|0))<<13)|0;v=((G=G+Math.imul(le,Si)|0)+(F>>>13)|0)+(be>>>26)|0,be&=67108863,K=Math.imul(J,gt),F=(F=Math.imul(J,tt))+Math.imul(mt,gt)|0,G=Math.imul(mt,tt),K=K+Math.imul(Me,vt)|0,F=(F=F+Math.imul(Me,Ve)|0)+Math.imul($e,vt)|0,G=G+Math.imul($e,Ve)|0,K=K+Math.imul(ut,Lt)|0,F=(F=F+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0,G=G+Math.imul(Ze,Qt)|0;var dt=(v+(K=K+Math.imul(Qe,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Qe,Si)|0)+Math.imul(ct,Hi)|0))<<13)|0;v=((G=G+Math.imul(ct,Si)|0)+(F>>>13)|0)+(dt>>>26)|0,dt&=67108863,K=Math.imul(J,vt),F=(F=Math.imul(J,Ve))+Math.imul(mt,vt)|0,G=Math.imul(mt,Ve),K=K+Math.imul(Me,Lt)|0,F=(F=F+Math.imul(Me,Qt)|0)+Math.imul($e,Lt)|0,G=G+Math.imul($e,Qt)|0;var Dt=(v+(K=K+Math.imul(ut,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(ut,Si)|0)+Math.imul(Ze,Hi)|0))<<13)|0;v=((G=G+Math.imul(Ze,Si)|0)+(F>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,K=Math.imul(J,Lt),F=(F=Math.imul(J,Qt))+Math.imul(mt,Lt)|0,G=Math.imul(mt,Qt);var Ut=(v+(K=K+Math.imul(Me,Hi)|0)|0)+((8191&(F=(F=F+Math.imul(Me,Si)|0)+Math.imul($e,Hi)|0))<<13)|0;v=((G=G+Math.imul($e,Si)|0)+(F>>>13)|0)+(Ut>>>26)|0,Ut&=67108863;var Ot=(v+(K=Math.imul(J,Hi))|0)+((8191&(F=(F=Math.imul(J,Si))+Math.imul(mt,Hi)|0))<<13)|0;return v=((G=Math.imul(mt,Si))+(F>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n[0]=Wi,n[1]=et,n[2]=It,n[3]=Le,n[4]=Mt,n[5]=Wt,n[6]=si,n[7]=Ai,n[8]=Ri,n[9]=$i,n[10]=nn,n[11]=Qi,n[12]=Yt,n[13]=Xt,n[14]=be,n[15]=dt,n[16]=Dt,n[17]=Ut,n[18]=Ot,0!==v&&(n[19]=v,O.length++),O};function X(u,l,_){_.negative=l.negative^u.negative,_.length=u.length+l.length;for(var O=0,R=0,C=0;C<_.length-1;C++){var n=R;R=0;for(var v=67108863&O,K=Math.min(C,l.length-1),F=Math.max(0,C-u.length+1);F<=K;F++){var pe=(0|u.words[C-F])*(0|l.words[F]),qe=67108863&pe;v=67108863&(qe=qe+v|0),R+=(n=(n=n+(pe/67108864|0)|0)+(qe>>>26)|0)>>>26,n&=67108863}_.words[C]=v,O=n,n=R}return 0!==O?_.words[C]=O:_.length--,_._strip()}function ee(u,l,_){return X(u,l,_)}function me(u,l){this.x=u,this.y=l}Math.imul||(Q=Y),s.prototype.mulTo=function(l,_){var R=this.length+l.length;return 10===this.length&&10===l.length?Q(this,l,_):R<63?Y(this,l,_):R<1024?X(this,l,_):ee(this,l,_)},me.prototype.makeRBT=function(l){for(var _=new Array(l),O=s.prototype._countBits(l)-1,R=0;R<l;R++)_[R]=this.revBin(R,O,l);return _},me.prototype.revBin=function(l,_,O){if(0===l||l===O-1)return l;for(var R=0,C=0;C<_;C++)R|=(1&l)<<_-C-1,l>>=1;return R},me.prototype.permute=function(l,_,O,R,C,n){for(var v=0;v<n;v++)R[v]=_[l[v]],C[v]=O[l[v]]},me.prototype.transform=function(l,_,O,R,C,n){this.permute(n,l,_,O,R,C);for(var v=1;v<C;v<<=1)for(var K=v<<1,F=Math.cos(2*Math.PI/K),G=Math.sin(2*Math.PI/K),ye=0;ye<C;ye+=K)for(var Ee=F,pe=G,qe=0;qe<v;qe++){var Ce=O[ye+qe],Se=R[ye+qe],fe=O[ye+qe+v],Fe=R[ye+qe+v],oe=Ee*fe-pe*Fe;Fe=Ee*Fe+pe*fe,O[ye+qe]=Ce+(fe=oe),R[ye+qe]=Se+Fe,O[ye+qe+v]=Ce-fe,R[ye+qe+v]=Se-Fe,qe!==K&&(oe=F*Ee-G*pe,pe=F*pe+G*Ee,Ee=oe)}},me.prototype.guessLen13b=function(l,_){var O=1|Math.max(_,l),R=1&O,C=0;for(O=O/2|0;O;O>>>=1)C++;return 1<<C+1+R},me.prototype.conjugate=function(l,_,O){if(!(O<=1))for(var R=0;R<O/2;R++){var C=l[R];l[R]=l[O-R-1],l[O-R-1]=C,C=_[R],_[R]=-_[O-R-1],_[O-R-1]=-C}},me.prototype.normalize13b=function(l,_){for(var O=0,R=0;R<_/2;R++){var C=8192*Math.round(l[2*R+1]/_)+Math.round(l[2*R]/_)+O;l[R]=67108863&C,O=C<67108864?0:C/67108864|0}return l},me.prototype.convert13b=function(l,_,O,R){for(var C=0,n=0;n<_;n++)O[2*n]=8191&(C+=0|l[n]),O[2*n+1]=8191&(C>>>=13),C>>>=13;for(n=2*_;n<R;++n)O[n]=0;g(0===C),g(0==(-8192&C))},me.prototype.stub=function(l){for(var _=new Array(l),O=0;O<l;O++)_[O]=0;return _},me.prototype.mulp=function(l,_,O){var R=2*this.guessLen13b(l.length,_.length),C=this.makeRBT(R),n=this.stub(R),v=new Array(R),K=new Array(R),F=new Array(R),G=new Array(R),ye=new Array(R),Ee=new Array(R),pe=O.words;pe.length=R,this.convert13b(l.words,l.length,v,R),this.convert13b(_.words,_.length,G,R),this.transform(v,n,K,F,R,C),this.transform(G,n,ye,Ee,R,C);for(var qe=0;qe<R;qe++){var Ce=K[qe]*ye[qe]-F[qe]*Ee[qe];F[qe]=K[qe]*Ee[qe]+F[qe]*ye[qe],K[qe]=Ce}return this.conjugate(K,F,R),this.transform(K,F,pe,n,R,C),this.conjugate(pe,n,R),this.normalize13b(pe,R),O.negative=l.negative^_.negative,O.length=l.length+_.length,O._strip()},s.prototype.mul=function(l){var _=new s(null);return _.words=new Array(this.length+l.length),this.mulTo(l,_)},s.prototype.mulf=function(l){var _=new s(null);return _.words=new Array(this.length+l.length),ee(this,l,_)},s.prototype.imul=function(l){return this.clone().mulTo(l,this)},s.prototype.imuln=function(l){var _=l<0;_&&(l=-l),g("number"==typeof l),g(l<67108864);for(var O=0,R=0;R<this.length;R++){var C=(0|this.words[R])*l,n=(67108863&C)+(67108863&O);O>>=26,O+=C/67108864|0,O+=n>>>26,this.words[R]=67108863&n}return 0!==O&&(this.words[R]=O,this.length++),_?this.ineg():this},s.prototype.muln=function(l){return this.clone().imuln(l)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(l){var _=function W(u){for(var l=new Array(u.bitLength()),_=0;_<l.length;_++)l[_]=u.words[_/26|0]>>>_%26&1;return l}(l);if(0===_.length)return new s(1);for(var O=this,R=0;R<_.length&&0===_[R];R++,O=O.sqr());if(++R<_.length)for(var C=O.sqr();R<_.length;R++,C=C.sqr())0!==_[R]&&(O=O.mul(C));return O},s.prototype.iushln=function(l){g("number"==typeof l&&l>=0);var C,_=l%26,O=(l-_)/26,R=67108863>>>26-_<<26-_;if(0!==_){var n=0;for(C=0;C<this.length;C++){var v=this.words[C]&R;this.words[C]=(0|this.words[C])-v<<_|n,n=v>>>26-_}n&&(this.words[C]=n,this.length++)}if(0!==O){for(C=this.length-1;C>=0;C--)this.words[C+O]=this.words[C];for(C=0;C<O;C++)this.words[C]=0;this.length+=O}return this._strip()},s.prototype.ishln=function(l){return g(0===this.negative),this.iushln(l)},s.prototype.iushrn=function(l,_,O){var R;g("number"==typeof l&&l>=0),R=_?(_-_%26)/26:0;var C=l%26,n=Math.min((l-C)/26,this.length),v=67108863^67108863>>>C<<C,K=O;if(R-=n,R=Math.max(0,R),K){for(var F=0;F<n;F++)K.words[F]=this.words[F];K.length=n}if(0!==n)if(this.length>n)for(this.length-=n,F=0;F<this.length;F++)this.words[F]=this.words[F+n];else this.words[0]=0,this.length=1;var G=0;for(F=this.length-1;F>=0&&(0!==G||F>=R);F--){var ye=0|this.words[F];this.words[F]=G<<26-C|ye>>>C,G=ye&v}return K&&0!==G&&(K.words[K.length++]=G),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(l,_,O){return g(0===this.negative),this.iushrn(l,_,O)},s.prototype.shln=function(l){return this.clone().ishln(l)},s.prototype.ushln=function(l){return this.clone().iushln(l)},s.prototype.shrn=function(l){return this.clone().ishrn(l)},s.prototype.ushrn=function(l){return this.clone().iushrn(l)},s.prototype.testn=function(l){g("number"==typeof l&&l>=0);var _=l%26,O=(l-_)/26;return!(this.length<=O||!(this.words[O]&1<<_))},s.prototype.imaskn=function(l){g("number"==typeof l&&l>=0);var _=l%26,O=(l-_)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=O?this:(0!==_&&O++,this.length=Math.min(O,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},s.prototype.maskn=function(l){return this.clone().imaskn(l)},s.prototype.iaddn=function(l){return g("number"==typeof l),g(l<67108864),l<0?this.isubn(-l):0!==this.negative?1===this.length&&(0|this.words[0])<=l?(this.words[0]=l-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},s.prototype._iaddn=function(l){this.words[0]+=l;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},s.prototype.isubn=function(l){if(g("number"==typeof l),g(l<67108864),l<0)return this.iaddn(-l);if(0!==this.negative)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this._strip()},s.prototype.addn=function(l){return this.clone().iaddn(l)},s.prototype.subn=function(l){return this.clone().isubn(l)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(l,_,O){var C;this._expand(l.length+O);var n,v=0;for(C=0;C<l.length;C++){n=(0|this.words[C+O])+v;var K=(0|l.words[C])*_;v=((n-=67108863&K)>>26)-(K/67108864|0),this.words[C+O]=67108863&n}for(;C<this.length-O;C++)v=(n=(0|this.words[C+O])+v)>>26,this.words[C+O]=67108863&n;if(0===v)return this._strip();for(g(-1===v),v=0,C=0;C<this.length;C++)v=(n=-(0|this.words[C])+v)>>26,this.words[C]=67108863&n;return this.negative=1,this._strip()},s.prototype._wordDiv=function(l,_){var O,R=this.clone(),C=l,n=0|C.words[C.length-1];0!=(O=26-this._countBits(n))&&(C=C.ushln(O),R.iushln(O),n=0|C.words[C.length-1]);var F,K=R.length-C.length;if("mod"!==_){(F=new s(null)).length=K+1,F.words=new Array(F.length);for(var G=0;G<F.length;G++)F.words[G]=0}var ye=R.clone()._ishlnsubmul(C,1,K);0===ye.negative&&(R=ye,F&&(F.words[K]=1));for(var Ee=K-1;Ee>=0;Ee--){var pe=67108864*(0|R.words[C.length+Ee])+(0|R.words[C.length+Ee-1]);for(pe=Math.min(pe/n|0,67108863),R._ishlnsubmul(C,pe,Ee);0!==R.negative;)pe--,R.negative=0,R._ishlnsubmul(C,1,Ee),R.isZero()||(R.negative^=1);F&&(F.words[Ee]=pe)}return F&&F._strip(),R._strip(),"div"!==_&&0!==O&&R.iushrn(O),{div:F||null,mod:R}},s.prototype.divmod=function(l,_,O){return g(!l.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===l.negative?(n=this.neg().divmod(l,_),"mod"!==_&&(R=n.div.neg()),"div"!==_&&(C=n.mod.neg(),O&&0!==C.negative&&C.iadd(l)),{div:R,mod:C}):0===this.negative&&0!==l.negative?(n=this.divmod(l.neg(),_),"mod"!==_&&(R=n.div.neg()),{div:R,mod:n.mod}):this.negative&l.negative?(n=this.neg().divmod(l.neg(),_),"div"!==_&&(C=n.mod.neg(),O&&0!==C.negative&&C.isub(l)),{div:n.div,mod:C}):l.length>this.length||this.cmp(l)<0?{div:new s(0),mod:this}:1===l.length?"div"===_?{div:this.divn(l.words[0]),mod:null}:"mod"===_?{div:null,mod:new s(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new s(this.modrn(l.words[0]))}:this._wordDiv(l,_);var R,C,n},s.prototype.div=function(l){return this.divmod(l,"div",!1).div},s.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},s.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},s.prototype.divRound=function(l){var _=this.divmod(l);if(_.mod.isZero())return _.div;var O=0!==_.div.negative?_.mod.isub(l):_.mod,R=l.ushrn(1),C=l.andln(1),n=O.cmp(R);return n<0||1===C&&0===n?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},s.prototype.modrn=function(l){var _=l<0;_&&(l=-l),g(l<=67108863);for(var O=(1<<26)%l,R=0,C=this.length-1;C>=0;C--)R=(O*R+(0|this.words[C]))%l;return _?-R:R},s.prototype.modn=function(l){return this.modrn(l)},s.prototype.idivn=function(l){var _=l<0;_&&(l=-l),g(l<=67108863);for(var O=0,R=this.length-1;R>=0;R--){var C=(0|this.words[R])+67108864*O;this.words[R]=C/l|0,O=C%l}return this._strip(),_?this.ineg():this},s.prototype.divn=function(l){return this.clone().idivn(l)},s.prototype.egcd=function(l){g(0===l.negative),g(!l.isZero());var _=this,O=l.clone();_=0!==_.negative?_.umod(l):_.clone();for(var R=new s(1),C=new s(0),n=new s(0),v=new s(1),K=0;_.isEven()&&O.isEven();)_.iushrn(1),O.iushrn(1),++K;for(var F=O.clone(),G=_.clone();!_.isZero();){for(var ye=0,Ee=1;!(_.words[0]&Ee)&&ye<26;++ye,Ee<<=1);if(ye>0)for(_.iushrn(ye);ye-- >0;)(R.isOdd()||C.isOdd())&&(R.iadd(F),C.isub(G)),R.iushrn(1),C.iushrn(1);for(var pe=0,qe=1;!(O.words[0]&qe)&&pe<26;++pe,qe<<=1);if(pe>0)for(O.iushrn(pe);pe-- >0;)(n.isOdd()||v.isOdd())&&(n.iadd(F),v.isub(G)),n.iushrn(1),v.iushrn(1);_.cmp(O)>=0?(_.isub(O),R.isub(n),C.isub(v)):(O.isub(_),n.isub(R),v.isub(C))}return{a:n,b:v,gcd:O.iushln(K)}},s.prototype._invmp=function(l){g(0===l.negative),g(!l.isZero());var ye,_=this,O=l.clone();_=0!==_.negative?_.umod(l):_.clone();for(var R=new s(1),C=new s(0),n=O.clone();_.cmpn(1)>0&&O.cmpn(1)>0;){for(var v=0,K=1;!(_.words[0]&K)&&v<26;++v,K<<=1);if(v>0)for(_.iushrn(v);v-- >0;)R.isOdd()&&R.iadd(n),R.iushrn(1);for(var F=0,G=1;!(O.words[0]&G)&&F<26;++F,G<<=1);if(F>0)for(O.iushrn(F);F-- >0;)C.isOdd()&&C.iadd(n),C.iushrn(1);_.cmp(O)>=0?(_.isub(O),R.isub(C)):(O.isub(_),C.isub(R))}return(ye=0===_.cmpn(1)?R:C).cmpn(0)<0&&ye.iadd(l),ye},s.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var _=this.clone(),O=l.clone();_.negative=0,O.negative=0;for(var R=0;_.isEven()&&O.isEven();R++)_.iushrn(1),O.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;O.isEven();)O.iushrn(1);var C=_.cmp(O);if(C<0){var n=_;_=O,O=n}else if(0===C||0===O.cmpn(1))break;_.isub(O)}return O.iushln(R)},s.prototype.invm=function(l){return this.egcd(l).a.umod(l)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(l){return this.words[0]&l},s.prototype.bincn=function(l){g("number"==typeof l);var _=l%26,O=(l-_)/26,R=1<<_;if(this.length<=O)return this._expand(O+1),this.words[O]|=R,this;for(var C=R,n=O;0!==C&&n<this.length;n++){var v=0|this.words[n];C=(v+=C)>>>26,this.words[n]=v&=67108863}return 0!==C&&(this.words[n]=C,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(l){var O,_=l<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)O=1;else{_&&(l=-l),g(l<=67108863,"Number is too big");var R=0|this.words[0];O=R===l?0:R<l?-1:1}return 0!==this.negative?0|-O:O},s.prototype.cmp=function(l){if(0!==this.negative&&0===l.negative)return-1;if(0===this.negative&&0!==l.negative)return 1;var _=this.ucmp(l);return 0!==this.negative?0|-_:_},s.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var _=0,O=this.length-1;O>=0;O--){var R=0|this.words[O],C=0|l.words[O];if(R!==C){R<C?_=-1:R>C&&(_=1);break}}return _},s.prototype.gtn=function(l){return 1===this.cmpn(l)},s.prototype.gt=function(l){return 1===this.cmp(l)},s.prototype.gten=function(l){return this.cmpn(l)>=0},s.prototype.gte=function(l){return this.cmp(l)>=0},s.prototype.ltn=function(l){return-1===this.cmpn(l)},s.prototype.lt=function(l){return-1===this.cmp(l)},s.prototype.lten=function(l){return this.cmpn(l)<=0},s.prototype.lte=function(l){return this.cmp(l)<=0},s.prototype.eqn=function(l){return 0===this.cmpn(l)},s.prototype.eq=function(l){return 0===this.cmp(l)},s.red=function(l){return new i(l)},s.prototype.toRed=function(l){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),l.convertTo(this)._forceRed(l)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(l){return this.red=l,this},s.prototype.forceRed=function(l){return g(!this.red,"Already a number in reduction context"),this._forceRed(l)},s.prototype.redAdd=function(l){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},s.prototype.redIAdd=function(l){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},s.prototype.redSub=function(l){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},s.prototype.redISub=function(l){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},s.prototype.redShl=function(l){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},s.prototype.redMul=function(l){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},s.prototype.redIMul=function(l){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(l){return g(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(u,l){this.name=u,this.p=new s(l,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Te(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var l=s._prime(u);this.m=l.p,this.prime=l}else g(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function a(u){i.call(this,u),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var l=new s(null);return l.words=new Array(Math.ceil(this.n/13)),l},ie.prototype.ireduce=function(l){var O,_=l;do{this.split(_,this.tmp),O=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(O>this.n);var R=O<this.n?-1:_.ucmp(this.p);return 0===R?(_.words[0]=0,_.length=1):R>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},ie.prototype.split=function(l,_){l.iushrn(this.n,0,_)},ie.prototype.imulK=function(l){return l.imul(this.k)},T(se,ie),se.prototype.split=function(l,_){for(var O=4194303,R=Math.min(l.length,9),C=0;C<R;C++)_.words[C]=l.words[C];if(_.length=R,l.length<=9)return l.words[0]=0,void(l.length=1);var n=l.words[9];for(_.words[_.length++]=n&O,C=10;C<l.length;C++){var v=0|l.words[C];l.words[C-10]=(v&O)<<4|n>>>22,n=v}l.words[C-10]=n>>>=22,l.length-=0===n&&l.length>10?10:9},se.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var _=0,O=0;O<l.length;O++){var R=0|l.words[O];l.words[O]=67108863&(_+=977*R),_=64*R+(_/67108864|0)}return 0===l.words[l.length-1]&&(l.length--,0===l.words[l.length-1]&&l.length--),l},T(ce,ie),T(Te,ie),T(S,ie),S.prototype.imulK=function(l){for(var _=0,O=0;O<l.length;O++){var R=19*(0|l.words[O])+_,C=67108863&R;R>>>=26,l.words[O]=C,_=R}return 0!==_&&(l.words[l.length++]=_),l},s._prime=function(l){if(re[l])return re[l];var _;if("k256"===l)_=new se;else if("p224"===l)_=new ce;else if("p192"===l)_=new Te;else{if("p25519"!==l)throw new Error("Unknown prime "+l);_=new S}return re[l]=_,_},i.prototype._verify1=function(l){g(0===l.negative,"red works only with positives"),g(l.red,"red works only with red numbers")},i.prototype._verify2=function(l,_){g(0==(l.negative|_.negative),"red works only with positives"),g(l.red&&l.red===_.red,"red works only with red numbers")},i.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(M(l,l.umod(this.m)._forceRed(this)),l)},i.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},i.prototype.add=function(l,_){this._verify2(l,_);var O=l.add(_);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},i.prototype.iadd=function(l,_){this._verify2(l,_);var O=l.iadd(_);return O.cmp(this.m)>=0&&O.isub(this.m),O},i.prototype.sub=function(l,_){this._verify2(l,_);var O=l.sub(_);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},i.prototype.isub=function(l,_){this._verify2(l,_);var O=l.isub(_);return O.cmpn(0)<0&&O.iadd(this.m),O},i.prototype.shl=function(l,_){return this._verify1(l),this.imod(l.ushln(_))},i.prototype.imul=function(l,_){return this._verify2(l,_),this.imod(l.imul(_))},i.prototype.mul=function(l,_){return this._verify2(l,_),this.imod(l.mul(_))},i.prototype.isqr=function(l){return this.imul(l,l.clone())},i.prototype.sqr=function(l){return this.mul(l,l)},i.prototype.sqrt=function(l){if(l.isZero())return l.clone();var _=this.m.andln(3);if(g(_%2==1),3===_){var O=this.m.add(new s(1)).iushrn(2);return this.pow(l,O)}for(var R=this.m.subn(1),C=0;!R.isZero()&&0===R.andln(1);)C++,R.iushrn(1);g(!R.isZero());var n=new s(1).toRed(this),v=n.redNeg(),K=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new s(2*F*F).toRed(this);0!==this.pow(F,K).cmp(v);)F.redIAdd(v);for(var G=this.pow(F,R),ye=this.pow(l,R.addn(1).iushrn(1)),Ee=this.pow(l,R),pe=C;0!==Ee.cmp(n);){for(var qe=Ee,Ce=0;0!==qe.cmp(n);Ce++)qe=qe.redSqr();g(Ce<pe);var Se=this.pow(G,new s(1).iushln(pe-Ce-1));ye=ye.redMul(Se),G=Se.redSqr(),Ee=Ee.redMul(G),pe=Ce}return ye},i.prototype.invm=function(l){var _=l._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},i.prototype.pow=function(l,_){if(_.isZero())return new s(1).toRed(this);if(0===_.cmpn(1))return l.clone();var R=new Array(16);R[0]=new s(1).toRed(this),R[1]=l;for(var C=2;C<R.length;C++)R[C]=this.mul(R[C-1],l);var n=R[0],v=0,K=0,F=_.bitLength()%26;for(0===F&&(F=26),C=_.length-1;C>=0;C--){for(var G=_.words[C],ye=F-1;ye>=0;ye--){var Ee=G>>ye&1;n!==R[0]&&(n=this.sqr(n)),0!==Ee||0!==v?(v<<=1,v|=Ee,(4==++K||0===C&&0===ye)&&(n=this.mul(n,R[v]),K=0,v=0)):K=0}F=26}return n},i.prototype.convertTo=function(l){var _=l.umod(this.m);return _===l?_.clone():_},i.prototype.convertFrom=function(l){var _=l.clone();return _.red=null,_},s.mont=function(l){return new a(l)},T(a,i),a.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},a.prototype.convertFrom=function(l){var _=this.imod(l.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(l,_){if(l.isZero()||_.isZero())return l.words[0]=0,l.length=1,l;var O=l.imul(_),R=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=O.isub(R).iushrn(this.shift),n=C;return C.cmp(this.m)>=0?n=C.isub(this.m):C.cmpn(0)<0&&(n=C.iadd(this.m)),n._forceRed(this)},a.prototype.mul=function(l,_){if(l.isZero()||_.isZero())return new s(0)._forceRed(this);var O=l.mul(_),R=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=O.isub(R).iushrn(this.shift),n=C;return C.cmp(this.m)>=0?n=C.isub(this.m):C.cmpn(0)<0&&(n=C.iadd(this.m)),n._forceRed(this)},a.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},7950:(We,q,m)=>{var t;function e(T){this.rand=T}if(We.exports=function(s){return t||(t=new e(null)),t.generate(s)},We.exports.Rand=e,e.prototype.generate=function(s){return this._rand(s)},e.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var x=new Uint8Array(s),h=0;h<x.length;h++)x[h]=this.rand.getByte();return x},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(s){var x=new Uint8Array(s);return self.crypto.getRandomValues(x),x}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(s){var x=new Uint8Array(s);return self.msCrypto.getRandomValues(x),x}:"object"==typeof window&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var g=m(1348);if("function"!=typeof g.randomBytes)throw new Error("Not supported");e.prototype._rand=function(s){return g.randomBytes(s)}}catch{}},1899:(We,q,m)=>{var t=m(3502).Buffer;function e(N){t.isBuffer(N)||(N=t.from(N));for(var d=N.length/4|0,M=new Array(d),w=0;w<d;w++)M[w]=N.readUInt32BE(4*w);return M}function g(N){for(;0<N.length;N++)N[0]=0}function T(N,d,M,w,L){for(var me,re,ie,se,k=M[0],V=M[1],B=M[2],W=M[3],Y=N[0]^d[0],Q=N[1]^d[1],X=N[2]^d[2],ee=N[3]^d[3],ce=4,Te=1;Te<L;Te++)me=k[Y>>>24]^V[Q>>>16&255]^B[X>>>8&255]^W[255&ee]^d[ce++],re=k[Q>>>24]^V[X>>>16&255]^B[ee>>>8&255]^W[255&Y]^d[ce++],ie=k[X>>>24]^V[ee>>>16&255]^B[Y>>>8&255]^W[255&Q]^d[ce++],se=k[ee>>>24]^V[Y>>>16&255]^B[Q>>>8&255]^W[255&X]^d[ce++],Y=me,Q=re,X=ie,ee=se;return me=(w[Y>>>24]<<24|w[Q>>>16&255]<<16|w[X>>>8&255]<<8|w[255&ee])^d[ce++],re=(w[Q>>>24]<<24|w[X>>>16&255]<<16|w[ee>>>8&255]<<8|w[255&Y])^d[ce++],ie=(w[X>>>24]<<24|w[ee>>>16&255]<<16|w[Y>>>8&255]<<8|w[255&Q])^d[ce++],se=(w[ee>>>24]<<24|w[Y>>>16&255]<<16|w[Q>>>8&255]<<8|w[255&X])^d[ce++],[me>>>=0,re>>>=0,ie>>>=0,se>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],x=function(){for(var N=new Array(256),d=0;d<256;d++)N[d]=d<128?d<<1:d<<1^283;for(var M=[],w=[],L=[[],[],[],[]],k=[[],[],[],[]],V=0,B=0,W=0;W<256;++W){var Y=B^B<<1^B<<2^B<<3^B<<4;M[V]=Y=Y>>>8^255&Y^99,w[Y]=V;var Q=N[V],X=N[Q],ee=N[X],me=257*N[Y]^16843008*Y;L[0][V]=me<<24|me>>>8,L[1][V]=me<<16|me>>>16,L[2][V]=me<<8|me>>>24,L[3][V]=me,k[0][Y]=(me=16843009*ee^65537*X^257*Q^16843008*V)<<24|me>>>8,k[1][Y]=me<<16|me>>>16,k[2][Y]=me<<8|me>>>24,k[3][Y]=me,0===V?V=B=1:(V=Q^N[N[N[ee^Q]]],B^=N[N[B]])}return{SBOX:M,INV_SBOX:w,SUB_MIX:L,INV_SUB_MIX:k}}();function h(N){this._key=e(N),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var N=this._key,d=N.length,M=d+6,w=4*(M+1),L=[],k=0;k<d;k++)L[k]=N[k];for(k=d;k<w;k++){var V=L[k-1];k%d==0?(V=x.SBOX[(V=V<<8|V>>>24)>>>24]<<24|x.SBOX[V>>>16&255]<<16|x.SBOX[V>>>8&255]<<8|x.SBOX[255&V],V^=s[k/d|0]<<24):d>6&&k%d==4&&(V=x.SBOX[V>>>24]<<24|x.SBOX[V>>>16&255]<<16|x.SBOX[V>>>8&255]<<8|x.SBOX[255&V]),L[k]=L[k-d]^V}for(var B=[],W=0;W<w;W++){var Y=w-W,Q=L[Y-(W%4?0:4)];B[W]=W<4||Y<=4?Q:x.INV_SUB_MIX[0][x.SBOX[Q>>>24]]^x.INV_SUB_MIX[1][x.SBOX[Q>>>16&255]]^x.INV_SUB_MIX[2][x.SBOX[Q>>>8&255]]^x.INV_SUB_MIX[3][x.SBOX[255&Q]]}this._nRounds=M,this._keySchedule=L,this._invKeySchedule=B},h.prototype.encryptBlockRaw=function(N){return T(N=e(N),this._keySchedule,x.SUB_MIX,x.SBOX,this._nRounds)},h.prototype.encryptBlock=function(N){var d=this.encryptBlockRaw(N),M=t.allocUnsafe(16);return M.writeUInt32BE(d[0],0),M.writeUInt32BE(d[1],4),M.writeUInt32BE(d[2],8),M.writeUInt32BE(d[3],12),M},h.prototype.decryptBlock=function(N){var d=(N=e(N))[1];N[1]=N[3],N[3]=d;var M=T(N,this._invKeySchedule,x.INV_SUB_MIX,x.INV_SBOX,this._nRounds),w=t.allocUnsafe(16);return w.writeUInt32BE(M[0],0),w.writeUInt32BE(M[3],4),w.writeUInt32BE(M[2],8),w.writeUInt32BE(M[1],12),w},h.prototype.scrub=function(){g(this._keySchedule),g(this._invKeySchedule),g(this._key)},We.exports.AES=h},9382:(We,q,m)=>{var t=m(1899),e=m(3502).Buffer,g=m(1052),T=m(3894),s=m(8857),x=m(8789),h=m(7968);function M(w,L,k,V){g.call(this);var B=e.alloc(4,0);this._cipher=new t.AES(L);var W=this._cipher.encryptBlock(B);this._ghash=new s(W),k=function d(w,L,k){if(12===L.length)return w._finID=e.concat([L,e.from([0,0,0,1])]),e.concat([L,e.from([0,0,0,2])]);var V=new s(k),B=L.length,W=B%16;V.update(L),W&&V.update(e.alloc(W=16-W,0)),V.update(e.alloc(8,0));var Y=8*B,Q=e.alloc(8);Q.writeUIntBE(Y,0,8),V.update(Q),w._finID=V.state;var X=e.from(w._finID);return h(X),X}(this,k,W),this._prev=e.from(k),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=V,this._alen=0,this._len=0,this._mode=w,this._authTag=null,this._called=!1}T(M,g),M.prototype._update=function(w){if(!this._called&&this._alen){var L=16-this._alen%16;L<16&&(L=e.alloc(L,0),this._ghash.update(L))}this._called=!0;var k=this._mode.encrypt(this,w);return this._ghash.update(this._decrypt?w:k),this._len+=w.length,k},M.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var w=x(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function N(w,L){var k=0;w.length!==L.length&&k++;for(var V=Math.min(w.length,L.length),B=0;B<V;++B)k+=w[B]^L[B];return k}(w,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=w,this._cipher.scrub()},M.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},M.prototype.setAuthTag=function(L){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=L},M.prototype.setAAD=function(L){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(L),this._alen+=L.length},We.exports=M},4330:(We,q,m)=>{var t=m(6900),e=m(856),g=m(4946);q.createCipher=q.Cipher=t.createCipher,q.createCipheriv=q.Cipheriv=t.createCipheriv,q.createDecipher=q.Decipher=e.createDecipher,q.createDecipheriv=q.Decipheriv=e.createDecipheriv,q.listCiphers=q.getCiphers=function T(){return Object.keys(g)}},856:(We,q,m)=>{var t=m(9382),e=m(3502).Buffer,g=m(9171),T=m(8441),s=m(1052),x=m(1899),h=m(347);function d(V,B,W){s.call(this),this._cache=new M,this._last=void 0,this._cipher=new x.AES(B),this._prev=e.from(W),this._mode=V,this._autopadding=!0}function M(){this.cache=e.allocUnsafe(0)}function L(V,B,W){var Y=g[V.toLowerCase()];if(!Y)throw new TypeError("invalid suite type");if("string"==typeof W&&(W=e.from(W)),"GCM"!==Y.mode&&W.length!==Y.iv)throw new TypeError("invalid iv length "+W.length);if("string"==typeof B&&(B=e.from(B)),B.length!==Y.key/8)throw new TypeError("invalid key length "+B.length);return"stream"===Y.type?new T(Y.module,B,W,!0):"auth"===Y.type?new t(Y.module,B,W,!0):new d(Y.module,B,W)}m(3894)(d,s),d.prototype._update=function(V){this._cache.add(V);for(var B,W,Y=[];B=this._cache.get(this._autopadding);)W=this._mode.decrypt(this,B),Y.push(W);return e.concat(Y)},d.prototype._final=function(){var V=this._cache.flush();if(this._autopadding)return function w(V){var B=V[15];if(B<1||B>16)throw new Error("unable to decrypt data");for(var W=-1;++W<B;)if(V[W+(16-B)]!==B)throw new Error("unable to decrypt data");if(16!==B)return V.slice(0,16-B)}(this._mode.decrypt(this,V));if(V)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(V){return this._autopadding=!!V,this},M.prototype.add=function(V){this.cache=e.concat([this.cache,V])},M.prototype.get=function(V){var B;if(V){if(this.cache.length>16)return B=this.cache.slice(0,16),this.cache=this.cache.slice(16),B}else if(this.cache.length>=16)return B=this.cache.slice(0,16),this.cache=this.cache.slice(16),B;return null},M.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function k(V,B){var W=g[V.toLowerCase()];if(!W)throw new TypeError("invalid suite type");var Y=h(B,!1,W.key,W.iv);return L(V,Y.key,Y.iv)},q.createDecipheriv=L},6900:(We,q,m)=>{var t=m(9171),e=m(9382),g=m(3502).Buffer,T=m(8441),s=m(1052),x=m(1899),h=m(347);function d(V,B,W){s.call(this),this._cache=new w,this._cipher=new x.AES(B),this._prev=g.from(W),this._mode=V,this._autopadding=!0}m(3894)(d,s),d.prototype._update=function(V){this._cache.add(V);for(var B,W,Y=[];B=this._cache.get();)W=this._mode.encrypt(this,B),Y.push(W);return g.concat(Y)};var M=g.alloc(16,16);function w(){this.cache=g.allocUnsafe(0)}function L(V,B,W){var Y=t[V.toLowerCase()];if(!Y)throw new TypeError("invalid suite type");if("string"==typeof B&&(B=g.from(B)),B.length!==Y.key/8)throw new TypeError("invalid key length "+B.length);if("string"==typeof W&&(W=g.from(W)),"GCM"!==Y.mode&&W.length!==Y.iv)throw new TypeError("invalid iv length "+W.length);return"stream"===Y.type?new T(Y.module,B,W):"auth"===Y.type?new e(Y.module,B,W):new d(Y.module,B,W)}d.prototype._final=function(){var V=this._cache.flush();if(this._autopadding)return V=this._mode.encrypt(this,V),this._cipher.scrub(),V;if(!V.equals(M))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(V){return this._autopadding=!!V,this},w.prototype.add=function(V){this.cache=g.concat([this.cache,V])},w.prototype.get=function(){if(this.cache.length>15){var V=this.cache.slice(0,16);return this.cache=this.cache.slice(16),V}return null},w.prototype.flush=function(){for(var V=16-this.cache.length,B=g.allocUnsafe(V),W=-1;++W<V;)B.writeUInt8(V,W);return g.concat([this.cache,B])},q.createCipheriv=L,q.createCipher=function k(V,B){var W=t[V.toLowerCase()];if(!W)throw new TypeError("invalid suite type");var Y=h(B,!1,W.key,W.iv);return L(V,Y.key,Y.iv)}},8857:(We,q,m)=>{var t=m(3502).Buffer,e=t.alloc(16,0);function T(x){var h=t.allocUnsafe(16);return h.writeUInt32BE(x[0]>>>0,0),h.writeUInt32BE(x[1]>>>0,4),h.writeUInt32BE(x[2]>>>0,8),h.writeUInt32BE(x[3]>>>0,12),h}function s(x){this.h=x,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}s.prototype.ghash=function(x){for(var h=-1;++h<x.length;)this.state[h]^=x[h];this._multiply()},s.prototype._multiply=function(){for(var N,M,x=function g(x){return[x.readUInt32BE(0),x.readUInt32BE(4),x.readUInt32BE(8),x.readUInt32BE(12)]}(this.h),h=[0,0,0,0],w=-1;++w<128;){for(0!=(this.state[~~(w/8)]&1<<7-w%8)&&(h[0]^=x[0],h[1]^=x[1],h[2]^=x[2],h[3]^=x[3]),M=0!=(1&x[3]),N=3;N>0;N--)x[N]=x[N]>>>1|(1&x[N-1])<<31;x[0]=x[0]>>>1,M&&(x[0]=x[0]^225<<24)}this.state=T(h)},s.prototype.update=function(x){this.cache=t.concat([this.cache,x]);for(var h;this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},s.prototype.final=function(x,h){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(T([0,x,0,h])),this.state},We.exports=s},7968:We=>{We.exports=function q(m){for(var e,t=m.length;t--;){if(255!==(e=m.readUInt8(t))){e++,m.writeUInt8(e,t);break}m.writeUInt8(0,t)}}},4903:(We,q,m)=>{var t=m(8789);q.encrypt=function(e,g){var T=t(g,e._prev);return e._prev=e._cipher.encryptBlock(T),e._prev},q.decrypt=function(e,g){var T=e._prev;e._prev=g;var s=e._cipher.decryptBlock(g);return t(s,T)}},9885:(We,q,m)=>{var t=m(3502).Buffer,e=m(8789);function g(T,s,x){var h=s.length,N=e(s,T._cache);return T._cache=T._cache.slice(h),T._prev=t.concat([T._prev,x?s:N]),N}q.encrypt=function(T,s,x){for(var N,h=t.allocUnsafe(0);s.length;){if(0===T._cache.length&&(T._cache=T._cipher.encryptBlock(T._prev),T._prev=t.allocUnsafe(0)),!(T._cache.length<=s.length)){h=t.concat([h,g(T,s,x)]);break}h=t.concat([h,g(T,s.slice(0,N=T._cache.length),x)]),s=s.slice(N)}return h}},6531:(We,q,m)=>{var t=m(3502).Buffer;function e(T,s,x){for(var w,L,N=-1,M=0;++N<8;)M+=(128&(L=T._cipher.encryptBlock(T._prev)[0]^(w=s&1<<7-N?128:0)))>>N%8,T._prev=g(T._prev,x?w:L);return M}function g(T,s){var x=T.length,h=-1,N=t.allocUnsafe(T.length);for(T=t.concat([T,t.from([s])]);++h<x;)N[h]=T[h]<<1|T[h+1]>>7;return N}q.encrypt=function(T,s,x){for(var h=s.length,N=t.allocUnsafe(h),d=-1;++d<h;)N[d]=e(T,s[d],x);return N}},1641:(We,q,m)=>{var t=m(3502).Buffer;function e(g,T,s){var h=g._cipher.encryptBlock(g._prev)[0]^T;return g._prev=t.concat([g._prev.slice(1),t.from([s?T:h])]),h}q.encrypt=function(g,T,s){for(var x=T.length,h=t.allocUnsafe(x),N=-1;++N<x;)h[N]=e(g,T[N],s);return h}},1150:(We,q,m)=>{var t=m(8789),e=m(3502).Buffer,g=m(7968);function T(x){var h=x._cipher.encryptBlockRaw(x._prev);return g(x._prev),h}q.encrypt=function(x,h){var N=Math.ceil(h.length/16),d=x._cache.length;x._cache=e.concat([x._cache,e.allocUnsafe(16*N)]);for(var M=0;M<N;M++){var w=T(x),L=d+16*M;x._cache.writeUInt32BE(w[0],L+0),x._cache.writeUInt32BE(w[1],L+4),x._cache.writeUInt32BE(w[2],L+8),x._cache.writeUInt32BE(w[3],L+12)}var k=x._cache.slice(0,h.length);return x._cache=x._cache.slice(h.length),t(h,k)}},1704:(We,q)=>{q.encrypt=function(m,t){return m._cipher.encryptBlock(t)},q.decrypt=function(m,t){return m._cipher.decryptBlock(t)}},9171:(We,q,m)=>{var t={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},e=m(4946);for(var g in e)e[g].module=t[e[g].mode];We.exports=e},6816:(We,q,m)=>{var t=m(8789);function e(g){return g._prev=g._cipher.encryptBlock(g._prev),g._prev}q.encrypt=function(g,T){for(;g._cache.length<T.length;)g._cache=Buffer.concat([g._cache,e(g)]);var s=g._cache.slice(0,T.length);return g._cache=g._cache.slice(T.length),t(T,s)}},8441:(We,q,m)=>{var t=m(1899),e=m(3502).Buffer,g=m(1052);function s(x,h,N,d){g.call(this),this._cipher=new t.AES(h),this._prev=e.from(N),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=d,this._mode=x}m(3894)(s,g),s.prototype._update=function(x){return this._mode.encrypt(this,x,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},We.exports=s},5255:(We,q,m)=>{var t=m(9004),e=m(4330),g=m(9171),T=m(1115),s=m(347);function N(w,L,k){if(w=w.toLowerCase(),g[w])return e.createCipheriv(w,L,k);if(T[w])return new t({key:L,iv:k,mode:w});throw new TypeError("invalid suite type")}function d(w,L,k){if(w=w.toLowerCase(),g[w])return e.createDecipheriv(w,L,k);if(T[w])return new t({key:L,iv:k,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}q.createCipher=q.Cipher=function x(w,L){var k,V;if(w=w.toLowerCase(),g[w])k=g[w].key,V=g[w].iv;else{if(!T[w])throw new TypeError("invalid suite type");k=8*T[w].key,V=T[w].iv}var B=s(L,!1,k,V);return N(w,B.key,B.iv)},q.createCipheriv=q.Cipheriv=N,q.createDecipher=q.Decipher=function h(w,L){var k,V;if(w=w.toLowerCase(),g[w])k=g[w].key,V=g[w].iv;else{if(!T[w])throw new TypeError("invalid suite type");k=8*T[w].key,V=T[w].iv}var B=s(L,!1,k,V);return d(w,B.key,B.iv)},q.createDecipheriv=q.Decipheriv=d,q.listCiphers=q.getCiphers=function M(){return Object.keys(T).concat(e.getCiphers())}},9004:(We,q,m)=>{var t=m(1052),e=m(3684),g=m(3894),T=m(3502).Buffer,s={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function x(h){t.call(this);var M,N=h.mode.toLowerCase(),d=s[N];M=h.decrypt?"decrypt":"encrypt";var w=h.key;T.isBuffer(w)||(w=T.from(w)),("des-ede"===N||"des-ede-cbc"===N)&&(w=T.concat([w,w.slice(0,8)]));var L=h.iv;T.isBuffer(L)||(L=T.from(L)),this._des=d.create({key:w,iv:L,type:M})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],We.exports=x,g(x,t),x.prototype._update=function(h){return T.from(this._des.update(h))},x.prototype._final=function(){return T.from(this._des.final())}},1115:(We,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:(We,q,m)=>{var t=m(8538),e=m(3753);function T(x){var N,h=x.modulus.byteLength();do{N=new t(e(h))}while(N.cmp(x.modulus)>=0||!N.umod(x.prime1)||!N.umod(x.prime2));return N}function s(x,h){var N=function g(x){var h=T(x);return{blinder:h.toRed(t.mont(x.modulus)).redPow(new t(x.publicExponent)).fromRed(),unblinder:h.invm(x.modulus)}}(h),d=h.modulus.byteLength(),M=new t(x).mul(N.blinder).umod(h.modulus),w=M.toRed(t.mont(h.prime1)),L=M.toRed(t.mont(h.prime2)),k=h.coefficient,V=h.prime1,B=h.prime2,W=w.redPow(h.exponent1).fromRed(),Y=L.redPow(h.exponent2).fromRed(),Q=W.isub(Y).imul(k).umod(V).imul(B);return Y.iadd(Q).imul(N.unblinder).umod(h.modulus).toArrayLike(Buffer,"be",d)}s.getr=T,We.exports=s},7793:(We,q,m)=>{We.exports=m(5207)},3923:(We,q,m)=>{var t=m(3502).Buffer,e=m(6386),g=m(5685),T=m(3894),s=m(9947),x=m(3946),h=m(5207);function N(L){g.Writable.call(this);var k=h[L];if(!k)throw new Error("Unknown message digest");this._hashType=k.hash,this._hash=e(k.hash),this._tag=k.id,this._signType=k.sign}function d(L){g.Writable.call(this);var k=h[L];if(!k)throw new Error("Unknown message digest");this._hash=e(k.hash),this._tag=k.id,this._signType=k.sign}function M(L){return new N(L)}function w(L){return new d(L)}Object.keys(h).forEach(function(L){h[L].id=t.from(h[L].id,"hex"),h[L.toLowerCase()]=h[L]}),T(N,g.Writable),N.prototype._write=function(k,V,B){this._hash.update(k),B()},N.prototype.update=function(k,V){return"string"==typeof k&&(k=t.from(k,V)),this._hash.update(k),this},N.prototype.sign=function(k,V){this.end();var B=this._hash.digest(),W=s(B,k,this._hashType,this._signType,this._tag);return V?W.toString(V):W},T(d,g.Writable),d.prototype._write=function(k,V,B){this._hash.update(k),B()},d.prototype.update=function(k,V){return"string"==typeof k&&(k=t.from(k,V)),this._hash.update(k),this},d.prototype.verify=function(k,V,B){"string"==typeof V&&(V=t.from(V,B)),this.end();var W=this._hash.digest();return x(V,W,k,this._signType,this._tag)},We.exports={Sign:M,Verify:w,createSign:M,createVerify:w}},9947:(We,q,m)=>{var t=m(3502).Buffer,e=m(4529),g=m(8466),T=m(7715).ec,s=m(8538),x=m(2772),h=m(1308);function L(Y,Q,X,ee){if((Y=t.from(Y.toArray())).length<Q.byteLength()){var me=t.alloc(Q.byteLength()-Y.length);Y=t.concat([me,Y])}var re=X.length,ie=function V(Y,Q){Y=(Y=k(Y,Q)).mod(Q);var X=t.from(Y.toArray());if(X.length<Q.byteLength()){var ee=t.alloc(Q.byteLength()-X.length);X=t.concat([ee,X])}return X}(X,Q),se=t.alloc(re);se.fill(1);var ce=t.alloc(re);return ce=e(ee,ce).update(se).update(t.from([0])).update(Y).update(ie).digest(),se=e(ee,ce).update(se).digest(),{k:ce=e(ee,ce).update(se).update(t.from([1])).update(Y).update(ie).digest(),v:se=e(ee,ce).update(se).digest()}}function k(Y,Q){var X=new s(Y),ee=(Y.length<<3)-Q.bitLength();return ee>0&&X.ishrn(ee),X}function B(Y,Q,X){var ee,me;do{for(ee=t.alloc(0);8*ee.length<Y.bitLength();)Q.v=e(X,Q.k).update(Q.v).digest(),ee=t.concat([ee,Q.v]);me=k(ee,Y),Q.k=e(X,Q.k).update(Q.v).update(t.from([0])).digest(),Q.v=e(X,Q.k).update(Q.v).digest()}while(-1!==me.cmp(Y));return me}function W(Y,Q,X,ee){return Y.toRed(s.mont(X)).redPow(Q).fromRed().mod(ee)}We.exports=function N(Y,Q,X,ee,me){var re=x(Q);if(re.curve){if("ecdsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");return function d(Y,Q){var X=h[Q.curve.join(".")];if(!X)throw new Error("unknown curve "+Q.curve.join("."));var re=new T(X).keyFromPrivate(Q.privateKey).sign(Y);return t.from(re.toDER())}(Y,re)}if("dsa"===re.type){if("dsa"!==ee)throw new Error("wrong private key type");return function M(Y,Q,X){for(var ce,ee=Q.params.priv_key,me=Q.params.p,re=Q.params.q,ie=Q.params.g,se=new s(0),Te=k(Y,re).mod(re),S=!1,i=L(ee,re,Y,X);!1===S;)se=W(ie,ce=B(re,i,X),me,re),0===(S=ce.invm(re).imul(Te.add(ee.mul(se))).mod(re)).cmpn(0)&&(S=!1,se=new s(0));return function w(Y,Q){Y=Y.toArray(),Q=Q.toArray(),128&Y[0]&&(Y=[0].concat(Y)),128&Q[0]&&(Q=[0].concat(Q));var ee=[48,Y.length+Q.length+4,2,Y.length];return ee=ee.concat(Y,[2,Q.length],Q),t.from(ee)}(se,S)}(Y,re,X)}if("rsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");Y=t.concat([me,Y]);for(var ie=re.modulus.byteLength(),se=[0,1];Y.length+se.length+1<ie;)se.push(255);se.push(0);for(var ce=-1;++ce<Y.length;)se.push(Y[ce]);return g(se,re)},We.exports.getKey=L,We.exports.makeKey=B},3946:(We,q,m)=>{var t=m(3502).Buffer,e=m(8538),g=m(7715).ec,T=m(2772),s=m(1308);function d(M,w){if(M.cmpn(0)<=0)throw new Error("invalid sig");if(M.cmp(w)>=w)throw new Error("invalid sig")}We.exports=function x(M,w,L,k,V){var B=T(L);if("ec"===B.type){if("ecdsa"!==k&&"ecdsa/rsa"!==k)throw new Error("wrong public key type");return function h(M,w,L){var k=s[L.data.algorithm.curve.join(".")];if(!k)throw new Error("unknown curve "+L.data.algorithm.curve.join("."));return new g(k).verify(w,M,L.data.subjectPrivateKey.data)}(M,w,B)}if("dsa"===B.type){if("dsa"!==k)throw new Error("wrong public key type");return function N(M,w,L){var k=L.data.p,V=L.data.q,B=L.data.g,W=L.data.pub_key,Y=T.signature.decode(M,"der"),Q=Y.s,X=Y.r;d(Q,V),d(X,V);var ee=e.mont(k),me=Q.invm(V);return 0===B.toRed(ee).redPow(new e(w).mul(me).mod(V)).fromRed().mul(W.toRed(ee).redPow(X.mul(me).mod(V)).fromRed()).mod(k).mod(V).cmp(X)}(M,w,B)}if("rsa"!==k&&"ecdsa/rsa"!==k)throw new Error("wrong public key type");w=t.concat([V,w]);for(var W=B.modulus.byteLength(),Y=[1],Q=0;w.length+Y.length+2<W;)Y.push(255),Q++;Y.push(0);for(var X=-1;++X<w.length;)Y.push(w[X]);Y=t.from(Y);var ee=e.mont(B.modulus);M=(M=new e(M).toRed(ee)).redPow(new e(B.publicExponent)),M=t.from(M.fromRed().toArray());var me=Q<8?1:0;for(W=Math.min(M.length,Y.length),M.length!==Y.length&&(me=1),X=-1;++X<W;)me|=M[X]^Y[X];return 0===me}},8789:We=>{We.exports=function(m,t){for(var e=Math.min(m.length,t.length),g=new Buffer(e),T=0;T<e;++T)g[T]=m[T]^t[T];return g}},3172:(We,q,m)=>{"use strict";var t=m(5343),e=m(8461),g="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=h,q.SlowBuffer=function Q(he){return+he!=he&&(he=0),h.alloc(+he)},q.INSPECT_MAX_BYTES=50;var T=2147483647;function x(he){if(he>T)throw new RangeError('The value "'+he+'" is invalid for option "size"');var Ae=new Uint8Array(he);return Object.setPrototypeOf(Ae,h.prototype),Ae}function h(he,Ae,ge){if("number"==typeof he){if("string"==typeof Ae)throw new TypeError('The "string" argument must be of type string. Received type number');return w(he)}return N(he,Ae,ge)}function N(he,Ae,ge){if("string"==typeof he)return function L(he,Ae){if(("string"!=typeof Ae||""===Ae)&&(Ae="utf8"),!h.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);var ge=0|X(he,Ae),Ue=x(ge),Je=Ue.write(he,Ae);return Je!==ge&&(Ue=Ue.slice(0,Je)),Ue}(he,Ae);if(ArrayBuffer.isView(he))return function V(he){if(oe(he,Uint8Array)){var Ae=new Uint8Array(he);return B(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return k(he)}(he);if(null==he)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he);if(oe(he,ArrayBuffer)||he&&oe(he.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(he,SharedArrayBuffer)||he&&oe(he.buffer,SharedArrayBuffer)))return B(he,Ae,ge);if("number"==typeof he)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ue=he.valueOf&&he.valueOf();if(null!=Ue&&Ue!==he)return h.from(Ue,Ae,ge);var Je=function W(he){if(h.isBuffer(he)){var Ae=0|Y(he.length),ge=x(Ae);return 0===ge.length||he.copy(ge,0,0,Ae),ge}return void 0!==he.length?"number"!=typeof he.length||ze(he.length)?x(0):k(he):"Buffer"===he.type&&Array.isArray(he.data)?k(he.data):void 0}(he);if(Je)return Je;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof he[Symbol.toPrimitive])return h.from(he[Symbol.toPrimitive]("string"),Ae,ge);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he)}function d(he){if("number"!=typeof he)throw new TypeError('"size" argument must be of type number');if(he<0)throw new RangeError('The value "'+he+'" is invalid for option "size"')}function w(he){return d(he),x(he<0?0:0|Y(he))}function k(he){for(var Ae=he.length<0?0:0|Y(he.length),ge=x(Ae),Ue=0;Ue<Ae;Ue+=1)ge[Ue]=255&he[Ue];return ge}function B(he,Ae,ge){if(Ae<0||he.byteLength<Ae)throw new RangeError('"offset" is outside of buffer bounds');if(he.byteLength<Ae+(ge||0))throw new RangeError('"length" is outside of buffer bounds');var Ue;return Ue=void 0===Ae&&void 0===ge?new Uint8Array(he):void 0===ge?new Uint8Array(he,Ae):new Uint8Array(he,Ae,ge),Object.setPrototypeOf(Ue,h.prototype),Ue}function Y(he){if(he>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return 0|he}function X(he,Ae){if(h.isBuffer(he))return he.length;if(ArrayBuffer.isView(he)||oe(he,ArrayBuffer))return he.byteLength;if("string"!=typeof he)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof he);var ge=he.length,Ue=arguments.length>2&&!0===arguments[2];if(!Ue&&0===ge)return 0;for(var Je=!1;;)switch(Ae){case"ascii":case"latin1":case"binary":return ge;case"utf8":case"utf-8":return qe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ge;case"hex":return ge>>>1;case"base64":return fe(he).length;default:if(Je)return Ue?-1:qe(he).length;Ae=(""+Ae).toLowerCase(),Je=!0}}function ee(he,Ae,ge){var Ue=!1;if((void 0===Ae||Ae<0)&&(Ae=0),Ae>this.length||((void 0===ge||ge>this.length)&&(ge=this.length),ge<=0)||(ge>>>=0)<=(Ae>>>=0))return"";for(he||(he="utf8");;)switch(he){case"hex":return C(this,Ae,ge);case"utf8":case"utf-8":return u(this,Ae,ge);case"ascii":return O(this,Ae,ge);case"latin1":case"binary":return R(this,Ae,ge);case"base64":return a(this,Ae,ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Ae,ge);default:if(Ue)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),Ue=!0}}function me(he,Ae,ge){var Ue=he[Ae];he[Ae]=he[ge],he[ge]=Ue}function re(he,Ae,ge,Ue,Je){if(0===he.length)return-1;if("string"==typeof ge?(Ue=ge,ge=0):ge>2147483647?ge=2147483647:ge<-2147483648&&(ge=-2147483648),ze(ge=+ge)&&(ge=Je?0:he.length-1),ge<0&&(ge=he.length+ge),ge>=he.length){if(Je)return-1;ge=he.length-1}else if(ge<0){if(!Je)return-1;ge=0}if("string"==typeof Ae&&(Ae=h.from(Ae,Ue)),h.isBuffer(Ae))return 0===Ae.length?-1:ie(he,Ae,ge,Ue,Je);if("number"==typeof Ae)return Ae&=255,"function"==typeof Uint8Array.prototype.indexOf?Je?Uint8Array.prototype.indexOf.call(he,Ae,ge):Uint8Array.prototype.lastIndexOf.call(he,Ae,ge):ie(he,[Ae],ge,Ue,Je);throw new TypeError("val must be string, number or Buffer")}function ie(he,Ae,ge,Ue,Je){var ct,Re=1,le=he.length,rt=Ae.length;if(void 0!==Ue&&("ucs2"===(Ue=String(Ue).toLowerCase())||"ucs-2"===Ue||"utf16le"===Ue||"utf-16le"===Ue)){if(he.length<2||Ae.length<2)return-1;Re=2,le/=2,rt/=2,ge/=2}function Qe(xt,Me){return 1===Re?xt[Me]:xt.readUInt16BE(Me*Re)}if(Je){var Gt=-1;for(ct=ge;ct<le;ct++)if(Qe(he,ct)===Qe(Ae,-1===Gt?0:ct-Gt)){if(-1===Gt&&(Gt=ct),ct-Gt+1===rt)return Gt*Re}else-1!==Gt&&(ct-=ct-Gt),Gt=-1}else for(ge+rt>le&&(ge=le-rt),ct=ge;ct>=0;ct--){for(var ut=!0,Ze=0;Ze<rt;Ze++)if(Qe(he,ct+Ze)!==Qe(Ae,Ze)){ut=!1;break}if(ut)return ct}return-1}function se(he,Ae,ge,Ue){ge=Number(ge)||0;var Je=he.length-ge;Ue?(Ue=Number(Ue))>Je&&(Ue=Je):Ue=Je;var Re=Ae.length;Ue>Re/2&&(Ue=Re/2);for(var le=0;le<Ue;++le){var rt=parseInt(Ae.substr(2*le,2),16);if(ze(rt))return le;he[ge+le]=rt}return le}function ce(he,Ae,ge,Ue){return Fe(qe(Ae,he.length-ge),he,ge,Ue)}function Te(he,Ae,ge,Ue){return Fe(function Ce(he){for(var Ae=[],ge=0;ge<he.length;++ge)Ae.push(255&he.charCodeAt(ge));return Ae}(Ae),he,ge,Ue)}function S(he,Ae,ge,Ue){return Fe(fe(Ae),he,ge,Ue)}function i(he,Ae,ge,Ue){return Fe(function Se(he,Ae){for(var ge,Ue,Re=[],le=0;le<he.length&&!((Ae-=2)<0);++le)Ue=(ge=he.charCodeAt(le))>>8,Re.push(ge%256),Re.push(Ue);return Re}(Ae,he.length-ge),he,ge,Ue)}function a(he,Ae,ge){return t.fromByteArray(0===Ae&&ge===he.length?he:he.slice(Ae,ge))}function u(he,Ae,ge){ge=Math.min(he.length,ge);for(var Ue=[],Je=Ae;Je<ge;){var Qe,ct,Gt,ut,Re=he[Je],le=null,rt=Re>239?4:Re>223?3:Re>191?2:1;if(Je+rt<=ge)switch(rt){case 1:Re<128&&(le=Re);break;case 2:128==(192&(Qe=he[Je+1]))&&(ut=(31&Re)<<6|63&Qe)>127&&(le=ut);break;case 3:ct=he[Je+2],128==(192&(Qe=he[Je+1]))&&128==(192&ct)&&(ut=(15&Re)<<12|(63&Qe)<<6|63&ct)>2047&&(ut<55296||ut>57343)&&(le=ut);break;case 4:ct=he[Je+2],Gt=he[Je+3],128==(192&(Qe=he[Je+1]))&&128==(192&ct)&&128==(192&Gt)&&(ut=(15&Re)<<18|(63&Qe)<<12|(63&ct)<<6|63&Gt)>65535&&ut<1114112&&(le=ut)}null===le?(le=65533,rt=1):le>65535&&(Ue.push((le-=65536)>>>10&1023|55296),le=56320|1023&le),Ue.push(le),Je+=rt}return function _(he){var Ae=he.length;if(Ae<=l)return String.fromCharCode.apply(String,he);for(var ge="",Ue=0;Ue<Ae;)ge+=String.fromCharCode.apply(String,he.slice(Ue,Ue+=l));return ge}(Ue)}q.kMaxLength=T,!(h.TYPED_ARRAY_SUPPORT=function s(){try{var he=new Uint8Array(1),Ae={foo:function(){return 42}};return Object.setPrototypeOf(Ae,Uint8Array.prototype),Object.setPrototypeOf(he,Ae),42===he.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(he,Ae,ge){return N(he,Ae,ge)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(he,Ae,ge){return function M(he,Ae,ge){return d(he),he<=0?x(he):void 0!==Ae?"string"==typeof ge?x(he).fill(Ae,ge):x(he).fill(Ae):x(he)}(he,Ae,ge)},h.allocUnsafe=function(he){return w(he)},h.allocUnsafeSlow=function(he){return w(he)},h.isBuffer=function(Ae){return null!=Ae&&!0===Ae._isBuffer&&Ae!==h.prototype},h.compare=function(Ae,ge){if(oe(Ae,Uint8Array)&&(Ae=h.from(Ae,Ae.offset,Ae.byteLength)),oe(ge,Uint8Array)&&(ge=h.from(ge,ge.offset,ge.byteLength)),!h.isBuffer(Ae)||!h.isBuffer(ge))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ae===ge)return 0;for(var Ue=Ae.length,Je=ge.length,Re=0,le=Math.min(Ue,Je);Re<le;++Re)if(Ae[Re]!==ge[Re]){Ue=Ae[Re],Je=ge[Re];break}return Ue<Je?-1:Je<Ue?1:0},h.isEncoding=function(Ae){switch(String(Ae).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(Ae,ge){if(!Array.isArray(Ae))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ae.length)return h.alloc(0);var Ue;if(void 0===ge)for(ge=0,Ue=0;Ue<Ae.length;++Ue)ge+=Ae[Ue].length;var Je=h.allocUnsafe(ge),Re=0;for(Ue=0;Ue<Ae.length;++Ue){var le=Ae[Ue];if(oe(le,Uint8Array))Re+le.length>Je.length?h.from(le).copy(Je,Re):Uint8Array.prototype.set.call(Je,le,Re);else{if(!h.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(Je,Re)}Re+=le.length}return Je},h.byteLength=X,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var Ae=this.length;if(Ae%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ge=0;ge<Ae;ge+=2)me(this,ge,ge+1);return this},h.prototype.swap32=function(){var Ae=this.length;if(Ae%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var ge=0;ge<Ae;ge+=4)me(this,ge,ge+3),me(this,ge+1,ge+2);return this},h.prototype.swap64=function(){var Ae=this.length;if(Ae%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var ge=0;ge<Ae;ge+=8)me(this,ge,ge+7),me(this,ge+1,ge+6),me(this,ge+2,ge+5),me(this,ge+3,ge+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var Ae=this.length;return 0===Ae?"":0===arguments.length?u(this,0,Ae):ee.apply(this,arguments)},h.prototype.equals=function(Ae){if(!h.isBuffer(Ae))throw new TypeError("Argument must be a Buffer");return this===Ae||0===h.compare(this,Ae)},h.prototype.inspect=function(){var Ae="",ge=q.INSPECT_MAX_BYTES;return Ae=this.toString("hex",0,ge).replace(/(.{2})/g,"$1 ").trim(),this.length>ge&&(Ae+=" ... "),"<Buffer "+Ae+">"},g&&(h.prototype[g]=h.prototype.inspect),h.prototype.compare=function(Ae,ge,Ue,Je,Re){if(oe(Ae,Uint8Array)&&(Ae=h.from(Ae,Ae.offset,Ae.byteLength)),!h.isBuffer(Ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ae);if(void 0===ge&&(ge=0),void 0===Ue&&(Ue=Ae?Ae.length:0),void 0===Je&&(Je=0),void 0===Re&&(Re=this.length),ge<0||Ue>Ae.length||Je<0||Re>this.length)throw new RangeError("out of range index");if(Je>=Re&&ge>=Ue)return 0;if(Je>=Re)return-1;if(ge>=Ue)return 1;if(this===Ae)return 0;for(var le=(Re>>>=0)-(Je>>>=0),rt=(Ue>>>=0)-(ge>>>=0),Qe=Math.min(le,rt),ct=this.slice(Je,Re),Gt=Ae.slice(ge,Ue),ut=0;ut<Qe;++ut)if(ct[ut]!==Gt[ut]){le=ct[ut],rt=Gt[ut];break}return le<rt?-1:rt<le?1:0},h.prototype.includes=function(Ae,ge,Ue){return-1!==this.indexOf(Ae,ge,Ue)},h.prototype.indexOf=function(Ae,ge,Ue){return re(this,Ae,ge,Ue,!0)},h.prototype.lastIndexOf=function(Ae,ge,Ue){return re(this,Ae,ge,Ue,!1)},h.prototype.write=function(Ae,ge,Ue,Je){if(void 0===ge)Je="utf8",Ue=this.length,ge=0;else if(void 0===Ue&&"string"==typeof ge)Je=ge,Ue=this.length,ge=0;else{if(!isFinite(ge))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ge>>>=0,isFinite(Ue)?(Ue>>>=0,void 0===Je&&(Je="utf8")):(Je=Ue,Ue=void 0)}var Re=this.length-ge;if((void 0===Ue||Ue>Re)&&(Ue=Re),Ae.length>0&&(Ue<0||ge<0)||ge>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");for(var le=!1;;)switch(Je){case"hex":return se(this,Ae,ge,Ue);case"utf8":case"utf-8":return ce(this,Ae,ge,Ue);case"ascii":case"latin1":case"binary":return Te(this,Ae,ge,Ue);case"base64":return S(this,Ae,ge,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ae,ge,Ue);default:if(le)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),le=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var l=4096;function O(he,Ae,ge){var Ue="";ge=Math.min(he.length,ge);for(var Je=Ae;Je<ge;++Je)Ue+=String.fromCharCode(127&he[Je]);return Ue}function R(he,Ae,ge){var Ue="";ge=Math.min(he.length,ge);for(var Je=Ae;Je<ge;++Je)Ue+=String.fromCharCode(he[Je]);return Ue}function C(he,Ae,ge){var Ue=he.length;(!Ae||Ae<0)&&(Ae=0),(!ge||ge<0||ge>Ue)&&(ge=Ue);for(var Je="",Re=Ae;Re<ge;++Re)Je+=Oe[he[Re]];return Je}function n(he,Ae,ge){for(var Ue=he.slice(Ae,ge),Je="",Re=0;Re<Ue.length-1;Re+=2)Je+=String.fromCharCode(Ue[Re]+256*Ue[Re+1]);return Je}function v(he,Ae,ge){if(he%1!=0||he<0)throw new RangeError("offset is not uint");if(he+Ae>ge)throw new RangeError("Trying to access beyond buffer length")}function K(he,Ae,ge,Ue,Je,Re){if(!h.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ae>Je||Ae<Re)throw new RangeError('"value" argument is out of bounds');if(ge+Ue>he.length)throw new RangeError("Index out of range")}function F(he,Ae,ge,Ue,Je,Re){if(ge+Ue>he.length)throw new RangeError("Index out of range");if(ge<0)throw new RangeError("Index out of range")}function G(he,Ae,ge,Ue,Je){return Ae=+Ae,ge>>>=0,Je||F(he,0,ge,4),e.write(he,Ae,ge,Ue,23,4),ge+4}function ye(he,Ae,ge,Ue,Je){return Ae=+Ae,ge>>>=0,Je||F(he,0,ge,8),e.write(he,Ae,ge,Ue,52,8),ge+8}h.prototype.slice=function(Ae,ge){var Ue=this.length;(Ae=~~Ae)<0?(Ae+=Ue)<0&&(Ae=0):Ae>Ue&&(Ae=Ue),(ge=void 0===ge?Ue:~~ge)<0?(ge+=Ue)<0&&(ge=0):ge>Ue&&(ge=Ue),ge<Ae&&(ge=Ae);var Je=this.subarray(Ae,ge);return Object.setPrototypeOf(Je,h.prototype),Je},h.prototype.readUintLE=h.prototype.readUIntLE=function(Ae,ge,Ue){Ae>>>=0,ge>>>=0,Ue||v(Ae,ge,this.length);for(var Je=this[Ae],Re=1,le=0;++le<ge&&(Re*=256);)Je+=this[Ae+le]*Re;return Je},h.prototype.readUintBE=h.prototype.readUIntBE=function(Ae,ge,Ue){Ae>>>=0,ge>>>=0,Ue||v(Ae,ge,this.length);for(var Je=this[Ae+--ge],Re=1;ge>0&&(Re*=256);)Je+=this[Ae+--ge]*Re;return Je},h.prototype.readUint8=h.prototype.readUInt8=function(Ae,ge){return Ae>>>=0,ge||v(Ae,1,this.length),this[Ae]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,2,this.length),this[Ae]|this[Ae+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,2,this.length),this[Ae]<<8|this[Ae+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,4,this.length),(this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16)+16777216*this[Ae+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,4,this.length),16777216*this[Ae]+(this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3])},h.prototype.readIntLE=function(Ae,ge,Ue){Ae>>>=0,ge>>>=0,Ue||v(Ae,ge,this.length);for(var Je=this[Ae],Re=1,le=0;++le<ge&&(Re*=256);)Je+=this[Ae+le]*Re;return Je>=(Re*=128)&&(Je-=Math.pow(2,8*ge)),Je},h.prototype.readIntBE=function(Ae,ge,Ue){Ae>>>=0,ge>>>=0,Ue||v(Ae,ge,this.length);for(var Je=ge,Re=1,le=this[Ae+--Je];Je>0&&(Re*=256);)le+=this[Ae+--Je]*Re;return le>=(Re*=128)&&(le-=Math.pow(2,8*ge)),le},h.prototype.readInt8=function(Ae,ge){return Ae>>>=0,ge||v(Ae,1,this.length),128&this[Ae]?-1*(255-this[Ae]+1):this[Ae]},h.prototype.readInt16LE=function(Ae,ge){Ae>>>=0,ge||v(Ae,2,this.length);var Ue=this[Ae]|this[Ae+1]<<8;return 32768&Ue?4294901760|Ue:Ue},h.prototype.readInt16BE=function(Ae,ge){Ae>>>=0,ge||v(Ae,2,this.length);var Ue=this[Ae+1]|this[Ae]<<8;return 32768&Ue?4294901760|Ue:Ue},h.prototype.readInt32LE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,4,this.length),this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16|this[Ae+3]<<24},h.prototype.readInt32BE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,4,this.length),this[Ae]<<24|this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3]},h.prototype.readFloatLE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,4,this.length),e.read(this,Ae,!0,23,4)},h.prototype.readFloatBE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,4,this.length),e.read(this,Ae,!1,23,4)},h.prototype.readDoubleLE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,8,this.length),e.read(this,Ae,!0,52,8)},h.prototype.readDoubleBE=function(Ae,ge){return Ae>>>=0,ge||v(Ae,8,this.length),e.read(this,Ae,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(Ae,ge,Ue,Je){Ae=+Ae,ge>>>=0,Ue>>>=0,Je||K(this,Ae,ge,Ue,Math.pow(2,8*Ue)-1,0);var le=1,rt=0;for(this[ge]=255&Ae;++rt<Ue&&(le*=256);)this[ge+rt]=Ae/le&255;return ge+Ue},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(Ae,ge,Ue,Je){Ae=+Ae,ge>>>=0,Ue>>>=0,Je||K(this,Ae,ge,Ue,Math.pow(2,8*Ue)-1,0);var le=Ue-1,rt=1;for(this[ge+le]=255&Ae;--le>=0&&(rt*=256);)this[ge+le]=Ae/rt&255;return ge+Ue},h.prototype.writeUint8=h.prototype.writeUInt8=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,1,255,0),this[ge]=255&Ae,ge+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,2,65535,0),this[ge]=255&Ae,this[ge+1]=Ae>>>8,ge+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,2,65535,0),this[ge]=Ae>>>8,this[ge+1]=255&Ae,ge+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,4,4294967295,0),this[ge+3]=Ae>>>24,this[ge+2]=Ae>>>16,this[ge+1]=Ae>>>8,this[ge]=255&Ae,ge+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,4,4294967295,0),this[ge]=Ae>>>24,this[ge+1]=Ae>>>16,this[ge+2]=Ae>>>8,this[ge+3]=255&Ae,ge+4},h.prototype.writeIntLE=function(Ae,ge,Ue,Je){if(Ae=+Ae,ge>>>=0,!Je){var Re=Math.pow(2,8*Ue-1);K(this,Ae,ge,Ue,Re-1,-Re)}var le=0,rt=1,Qe=0;for(this[ge]=255&Ae;++le<Ue&&(rt*=256);)Ae<0&&0===Qe&&0!==this[ge+le-1]&&(Qe=1),this[ge+le]=(Ae/rt>>0)-Qe&255;return ge+Ue},h.prototype.writeIntBE=function(Ae,ge,Ue,Je){if(Ae=+Ae,ge>>>=0,!Je){var Re=Math.pow(2,8*Ue-1);K(this,Ae,ge,Ue,Re-1,-Re)}var le=Ue-1,rt=1,Qe=0;for(this[ge+le]=255&Ae;--le>=0&&(rt*=256);)Ae<0&&0===Qe&&0!==this[ge+le+1]&&(Qe=1),this[ge+le]=(Ae/rt>>0)-Qe&255;return ge+Ue},h.prototype.writeInt8=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,1,127,-128),Ae<0&&(Ae=255+Ae+1),this[ge]=255&Ae,ge+1},h.prototype.writeInt16LE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,2,32767,-32768),this[ge]=255&Ae,this[ge+1]=Ae>>>8,ge+2},h.prototype.writeInt16BE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,2,32767,-32768),this[ge]=Ae>>>8,this[ge+1]=255&Ae,ge+2},h.prototype.writeInt32LE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,4,2147483647,-2147483648),this[ge]=255&Ae,this[ge+1]=Ae>>>8,this[ge+2]=Ae>>>16,this[ge+3]=Ae>>>24,ge+4},h.prototype.writeInt32BE=function(Ae,ge,Ue){return Ae=+Ae,ge>>>=0,Ue||K(this,Ae,ge,4,2147483647,-2147483648),Ae<0&&(Ae=4294967295+Ae+1),this[ge]=Ae>>>24,this[ge+1]=Ae>>>16,this[ge+2]=Ae>>>8,this[ge+3]=255&Ae,ge+4},h.prototype.writeFloatLE=function(Ae,ge,Ue){return G(this,Ae,ge,!0,Ue)},h.prototype.writeFloatBE=function(Ae,ge,Ue){return G(this,Ae,ge,!1,Ue)},h.prototype.writeDoubleLE=function(Ae,ge,Ue){return ye(this,Ae,ge,!0,Ue)},h.prototype.writeDoubleBE=function(Ae,ge,Ue){return ye(this,Ae,ge,!1,Ue)},h.prototype.copy=function(Ae,ge,Ue,Je){if(!h.isBuffer(Ae))throw new TypeError("argument should be a Buffer");if(Ue||(Ue=0),!Je&&0!==Je&&(Je=this.length),ge>=Ae.length&&(ge=Ae.length),ge||(ge=0),Je>0&&Je<Ue&&(Je=Ue),Je===Ue||0===Ae.length||0===this.length)return 0;if(ge<0)throw new RangeError("targetStart out of bounds");if(Ue<0||Ue>=this.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("sourceEnd out of bounds");Je>this.length&&(Je=this.length),Ae.length-ge<Je-Ue&&(Je=Ae.length-ge+Ue);var Re=Je-Ue;return this===Ae&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(ge,Ue,Je):Uint8Array.prototype.set.call(Ae,this.subarray(Ue,Je),ge),Re},h.prototype.fill=function(Ae,ge,Ue,Je){if("string"==typeof Ae){if("string"==typeof ge?(Je=ge,ge=0,Ue=this.length):"string"==typeof Ue&&(Je=Ue,Ue=this.length),void 0!==Je&&"string"!=typeof Je)throw new TypeError("encoding must be a string");if("string"==typeof Je&&!h.isEncoding(Je))throw new TypeError("Unknown encoding: "+Je);if(1===Ae.length){var Re=Ae.charCodeAt(0);("utf8"===Je&&Re<128||"latin1"===Je)&&(Ae=Re)}}else"number"==typeof Ae?Ae&=255:"boolean"==typeof Ae&&(Ae=Number(Ae));if(ge<0||this.length<ge||this.length<Ue)throw new RangeError("Out of range index");if(Ue<=ge)return this;var le;if(ge>>>=0,Ue=void 0===Ue?this.length:Ue>>>0,Ae||(Ae=0),"number"==typeof Ae)for(le=ge;le<Ue;++le)this[le]=Ae;else{var rt=h.isBuffer(Ae)?Ae:h.from(Ae,Je),Qe=rt.length;if(0===Qe)throw new TypeError('The value "'+Ae+'" is invalid for argument "value"');for(le=0;le<Ue-ge;++le)this[le+ge]=rt[le%Qe]}return this};var Ee=/[^+/0-9A-Za-z-_]/g;function qe(he,Ae){Ae=Ae||1/0;for(var ge,Ue=he.length,Je=null,Re=[],le=0;le<Ue;++le){if((ge=he.charCodeAt(le))>55295&&ge<57344){if(!Je){if(ge>56319){(Ae-=3)>-1&&Re.push(239,191,189);continue}if(le+1===Ue){(Ae-=3)>-1&&Re.push(239,191,189);continue}Je=ge;continue}if(ge<56320){(Ae-=3)>-1&&Re.push(239,191,189),Je=ge;continue}ge=65536+(Je-55296<<10|ge-56320)}else Je&&(Ae-=3)>-1&&Re.push(239,191,189);if(Je=null,ge<128){if((Ae-=1)<0)break;Re.push(ge)}else if(ge<2048){if((Ae-=2)<0)break;Re.push(ge>>6|192,63&ge|128)}else if(ge<65536){if((Ae-=3)<0)break;Re.push(ge>>12|224,ge>>6&63|128,63&ge|128)}else{if(!(ge<1114112))throw new Error("Invalid code point");if((Ae-=4)<0)break;Re.push(ge>>18|240,ge>>12&63|128,ge>>6&63|128,63&ge|128)}}return Re}function fe(he){return t.toByteArray(function pe(he){if((he=(he=he.split("=")[0]).trim().replace(Ee,"")).length<2)return"";for(;he.length%4!=0;)he+="=";return he}(he))}function Fe(he,Ae,ge,Ue){for(var Je=0;Je<Ue&&!(Je+ge>=Ae.length||Je>=he.length);++Je)Ae[Je+ge]=he[Je];return Je}function oe(he,Ae){return he instanceof Ae||null!=he&&null!=he.constructor&&null!=he.constructor.name&&he.constructor.name===Ae.name}function ze(he){return he!=he}var Oe=function(){for(var he="0123456789abcdef",Ae=new Array(256),ge=0;ge<16;++ge)for(var Ue=16*ge,Je=0;Je<16;++Je)Ae[Ue+Je]=he[ge]+he[Je];return Ae}()},1052:(We,q,m)=>{var t=m(3502).Buffer,e=m(295).Transform,g=m(3054).s;function s(x){e.call(this),this.hashMode="string"==typeof x,this.hashMode?this[x]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(s,e),s.prototype.update=function(x,h,N){"string"==typeof x&&(x=t.from(x,h));var d=this._update(x);return this.hashMode?this:(N&&(d=this._toString(d,N)),d)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(x,h,N){var d;try{this.hashMode?this._update(x):this.push(this._update(x))}catch(M){d=M}finally{N(d)}},s.prototype._flush=function(x){var h;try{this.push(this.__final())}catch(N){h=N}x(h)},s.prototype._finalOrDigest=function(x){var h=this.__final()||t.alloc(0);return x&&(h=this._toString(h,x,!0)),h},s.prototype._toString=function(x,h,N){if(this._decoder||(this._decoder=new g(h),this._encoding=h),this._encoding!==h)throw new Error("can't switch encodings");var d=this._decoder.write(x);return N&&(d+=this._decoder.end()),d},We.exports=s},6128:function(We){!function(q){"use strict";var m={bytesToHex:function(g){return function t(g){return g.map(function(T){return function e(g,T){return g.length>T?g:Array(T-g.length+1).join("0")+g}(T.toString(16),2)}).join("")}(g)},hexToBytes:function(g){if(g.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===g.indexOf("0x")&&(g=g.slice(2)),g.match(/../g).map(function(T){return parseInt(T,16)})}};We.exports?We.exports=m:q.convertHex=m}(this)},5612:function(We){!function(q){"use strict";var m={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};m.UTF8={bytesToString:function(t){return decodeURIComponent(escape(m.bytesToString(t)))},stringToBytes:function(t){return m.stringToBytes(unescape(encodeURIComponent(t)))}},We.exports?We.exports=m:q.convertString=m}(this)},4746:(We,q,m)=>{var t=m(7715),e=m(6422);We.exports=function(h){return new T(h)};var g={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 T(x){this.curveType=g[x],this.curveType||(this.curveType={name:x}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(x,h,N){Array.isArray(x)||(x=x.toArray());var d=new Buffer(x);if(N&&d.length<N){var M=new Buffer(N-d.length);M.fill(0),d=Buffer.concat([M,d])}return h?d.toString(h):d}g.p224=g.secp224r1,g.p256=g.secp256r1=g.prime256v1,g.p192=g.secp192r1=g.prime192v1,g.p384=g.secp384r1,g.p521=g.secp521r1,T.prototype.generateKeys=function(x,h){return this.keys=this.curve.genKeyPair(),this.getPublicKey(x,h)},T.prototype.computeSecret=function(x,h,N){return h=h||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,h)),s(this.curve.keyFromPublic(x).getPublic().mul(this.keys.getPrivate()).getX(),N,this.curveType.byteLength)},T.prototype.getPublicKey=function(x,h){var N=this.keys.getPublic("compressed"===h,!0);return"hybrid"===h&&(N[0]=N[N.length-1]%2?7:6),s(N,x)},T.prototype.getPrivateKey=function(x){return s(this.keys.getPrivate(),x)},T.prototype.setPublicKey=function(x,h){return h=h||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,h)),this.keys._importPublic(x),this},T.prototype.setPrivateKey=function(x,h){h=h||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,h));var N=new e(x);return N=N.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(N),this}},6422:function(We,q,m){!function(t,e){"use strict";function g(S,i){if(!S)throw new Error(i||"Assertion failed")}function T(S,i){S.super_=i;var a=function(){};a.prototype=i.prototype,S.prototype=new a,S.prototype.constructor=S}function s(S,i,a){if(s.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(S||0,i||10,a||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(8623).Buffer}catch{}function h(S,i){var a=S.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(S,i,a){var u=h(S,a);return a-1>=i&&(u|=h(S,a-1)<<4),u}function d(S,i,a,u){for(var l=0,_=Math.min(S.length,a),O=i;O<_;O++){var R=S.charCodeAt(O)-48;l*=u,l+=R>=49?R-49+10:R>=17?R-17+10:R}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),g(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(g("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var _,O,R=0;if("be"===u)for(l=i.length-1,_=0;l>=0;l-=3)this.words[_]|=(O=i[l]|i[l-1]<<8|i[l-2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);else if("le"===u)for(l=0,_=0;l<i.length;l+=3)this.words[_]|=(O=i[l]|i[l+1]<<8|i[l+2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var R,_=0,O=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,_=1;_<=67108863;_*=a)l++;l--,_=_/a|0;for(var O=i.length-u,R=O%l,C=Math.min(O,O-R)+u,n=0,v=u;v<C;v+=l)n=d(i,v,v+l,a),this.imuln(_),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==R){var K=1;for(n=d(i,v,i.length,a),v=0;v<R;v++)K*=a;this.imuln(K),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[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 V(S,i,a){a.negative=i.negative^S.negative;var u=S.length+i.length|0;a.length=u,u=u-1|0;var l=0|S.words[0],_=0|i.words[0],O=l*_,C=O/67108864|0;a.words[0]=67108863&O;for(var n=1;n<u;n++){for(var v=C>>>26,K=67108863&C,F=Math.min(n,i.length-1),G=Math.max(0,n-S.length+1);G<=F;G++)v+=(O=(l=0|S.words[n-G|0])*(_=0|i.words[G])+K)/67108864|0,K=67108863&O;a.words[n]=0|K,C=0|v}return 0!==C?a.words[n]=0|C:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,_=0,O=0;O<this.length;O++){var R=this.words[O],C=(16777215&(R<<l|_)).toString(16);u=0!=(_=R>>>24-l&16777215)||O!==this.length-1?M[6-C.length]+C+u:C+u,(l+=2)>=26&&(l-=26,O--)}for(0!==_&&(u=_.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],v=L[i];u="";var K=this.clone();for(K.negative=0;!K.isZero();){var F=K.modn(v).toString(i);u=(K=K.idivn(v)).isZero()?F+u:M[n-F.length]+F+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}g(!1,"Base should be between 2 and 36")},s.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&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return g(typeof x<"u"),this.toArrayLike(x,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),_=u||Math.max(1,l);g(l<=_,"byte array longer than desired length"),g(_>0,"Requested array length <= 0"),this.strip();var C,n,O="le"===a,R=new i(_),v=this.clone();if(O){for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[n]=C;for(;n<_;n++)R[n]=0}else{for(n=0;n<_-l;n++)R[n]=0;for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[_-n-1]=C}return R},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return g(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return g(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return g(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){g("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){g("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var _=0,O=0;O<l.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+(0|l.words[O])+_),_=a>>>26;for(;0!==_&&O<u.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+_),_=a>>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;O<u.length;O++)this.words[O]=u.words[O];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,_=i):(l=i,_=this);for(var O=0,R=0;R<_.length;R++)O=(a=(0|l.words[R])-(0|_.words[R])+O)>>26,this.words[R]=67108863&a;for(;0!==O&&R<l.length;R++)O=(a=(0|l.words[R])+O)>>26,this.words[R]=67108863&a;if(0===O&&R<l.length&&l!==this)for(;R<l.length;R++)this.words[R]=l.words[R];return this.length=Math.max(this.length,R),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var B=function(i,a,u){var C,n,v,l=i.words,_=a.words,O=u.words,R=0,K=0|l[0],F=8191&K,G=K>>>13,ye=0|l[1],Ee=8191&ye,pe=ye>>>13,qe=0|l[2],Ce=8191&qe,Se=qe>>>13,fe=0|l[3],Fe=8191&fe,oe=fe>>>13,ze=0|l[4],Oe=8191&ze,he=ze>>>13,Ae=0|l[5],ge=8191&Ae,Ue=Ae>>>13,Je=0|l[6],Re=8191&Je,le=Je>>>13,rt=0|l[7],Qe=8191&rt,ct=rt>>>13,Gt=0|l[8],ut=8191&Gt,Ze=Gt>>>13,xt=0|l[9],Me=8191&xt,$e=xt>>>13,Pe=0|_[0],J=8191&Pe,mt=Pe>>>13,Et=0|_[1],at=8191&Et,je=Et>>>13,Ht=0|_[2],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|_[3],Ne=8191&Bt,$=Bt>>>13,ue=0|_[4],Ie=8191&ue,Xe=ue>>>13,ei=0|_[5],zt=8191&ei,ni=ei>>>13,pt=0|_[6],ot=8191&pt,ft=pt>>>13,St=0|_[7],gt=8191&St,tt=St>>>13,_t=0|_[8],vt=8191&_t,Ve=_t>>>13,Tt=0|_[9],Lt=8191&Tt,Qt=Tt>>>13;u.negative=i.negative^a.negative,u.length=19;var Bi=(R+(C=Math.imul(F,J))|0)+((8191&(n=(n=Math.imul(F,mt))+Math.imul(G,J)|0))<<13)|0;R=((v=Math.imul(G,mt))+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,C=Math.imul(Ee,J),n=(n=Math.imul(Ee,mt))+Math.imul(pe,J)|0,v=Math.imul(pe,mt);var Hi=(R+(C=C+Math.imul(F,at)|0)|0)+((8191&(n=(n=n+Math.imul(F,je)|0)+Math.imul(G,at)|0))<<13)|0;R=((v=v+Math.imul(G,je)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,C=Math.imul(Ce,J),n=(n=Math.imul(Ce,mt))+Math.imul(Se,J)|0,v=Math.imul(Se,mt),C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,je)|0)+Math.imul(pe,at)|0,v=v+Math.imul(pe,je)|0;var Si=(R+(C=C+Math.imul(F,Ct)|0)|0)+((8191&(n=(n=n+Math.imul(F,Nt)|0)+Math.imul(G,Ct)|0))<<13)|0;R=((v=v+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,C=Math.imul(Fe,J),n=(n=Math.imul(Fe,mt))+Math.imul(oe,J)|0,v=Math.imul(oe,mt),C=C+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,je)|0)+Math.imul(Se,at)|0,v=v+Math.imul(Se,je)|0,C=C+Math.imul(Ee,Ct)|0,n=(n=n+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0,v=v+Math.imul(pe,Nt)|0;var Wi=(R+(C=C+Math.imul(F,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(F,$)|0)+Math.imul(G,Ne)|0))<<13)|0;R=((v=v+Math.imul(G,$)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(Oe,J),n=(n=Math.imul(Oe,mt))+Math.imul(he,J)|0,v=Math.imul(he,mt),C=C+Math.imul(Fe,at)|0,n=(n=n+Math.imul(Fe,je)|0)+Math.imul(oe,at)|0,v=v+Math.imul(oe,je)|0,C=C+Math.imul(Ce,Ct)|0,n=(n=n+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,v=v+Math.imul(Se,Nt)|0,C=C+Math.imul(Ee,Ne)|0,n=(n=n+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0,v=v+Math.imul(pe,$)|0;var et=(R+(C=C+Math.imul(F,Ie)|0)|0)+((8191&(n=(n=n+Math.imul(F,Xe)|0)+Math.imul(G,Ie)|0))<<13)|0;R=((v=v+Math.imul(G,Xe)|0)+(n>>>13)|0)+(et>>>26)|0,et&=67108863,C=Math.imul(ge,J),n=(n=Math.imul(ge,mt))+Math.imul(Ue,J)|0,v=Math.imul(Ue,mt),C=C+Math.imul(Oe,at)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(he,at)|0,v=v+Math.imul(he,je)|0,C=C+Math.imul(Fe,Ct)|0,n=(n=n+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,v=v+Math.imul(oe,Nt)|0,C=C+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,v=v+Math.imul(Se,$)|0,C=C+Math.imul(Ee,Ie)|0,n=(n=n+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,Xe)|0;var It=(R+(C=C+Math.imul(F,zt)|0)|0)+((8191&(n=(n=n+Math.imul(F,ni)|0)+Math.imul(G,zt)|0))<<13)|0;R=((v=v+Math.imul(G,ni)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(Re,J),n=(n=Math.imul(Re,mt))+Math.imul(le,J)|0,v=Math.imul(le,mt),C=C+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,je)|0)+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,je)|0,C=C+Math.imul(Oe,Ct)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,v=v+Math.imul(he,Nt)|0,C=C+Math.imul(Fe,Ne)|0,n=(n=n+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,v=v+Math.imul(oe,$)|0,C=C+Math.imul(Ce,Ie)|0,n=(n=n+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,v=v+Math.imul(Se,Xe)|0,C=C+Math.imul(Ee,zt)|0,n=(n=n+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0,v=v+Math.imul(pe,ni)|0;var Le=(R+(C=C+Math.imul(F,ot)|0)|0)+((8191&(n=(n=n+Math.imul(F,ft)|0)+Math.imul(G,ot)|0))<<13)|0;R=((v=v+Math.imul(G,ft)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(Qe,J),n=(n=Math.imul(Qe,mt))+Math.imul(ct,J)|0,v=Math.imul(ct,mt),C=C+Math.imul(Re,at)|0,n=(n=n+Math.imul(Re,je)|0)+Math.imul(le,at)|0,v=v+Math.imul(le,je)|0,C=C+Math.imul(ge,Ct)|0,n=(n=n+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,v=v+Math.imul(Ue,Nt)|0,C=C+Math.imul(Oe,Ne)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,v=v+Math.imul(he,$)|0,C=C+Math.imul(Fe,Ie)|0,n=(n=n+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,v=v+Math.imul(oe,Xe)|0,C=C+Math.imul(Ce,zt)|0,n=(n=n+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,v=v+Math.imul(Se,ni)|0,C=C+Math.imul(Ee,ot)|0,n=(n=n+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0,v=v+Math.imul(pe,ft)|0;var Mt=(R+(C=C+Math.imul(F,gt)|0)|0)+((8191&(n=(n=n+Math.imul(F,tt)|0)+Math.imul(G,gt)|0))<<13)|0;R=((v=v+Math.imul(G,tt)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(ut,J),n=(n=Math.imul(ut,mt))+Math.imul(Ze,J)|0,v=Math.imul(Ze,mt),C=C+Math.imul(Qe,at)|0,n=(n=n+Math.imul(Qe,je)|0)+Math.imul(ct,at)|0,v=v+Math.imul(ct,je)|0,C=C+Math.imul(Re,Ct)|0,n=(n=n+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,v=v+Math.imul(le,Nt)|0,C=C+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,v=v+Math.imul(Ue,$)|0,C=C+Math.imul(Oe,Ie)|0,n=(n=n+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,v=v+Math.imul(he,Xe)|0,C=C+Math.imul(Fe,zt)|0,n=(n=n+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,v=v+Math.imul(oe,ni)|0,C=C+Math.imul(Ce,ot)|0,n=(n=n+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,v=v+Math.imul(Se,ft)|0,C=C+Math.imul(Ee,gt)|0,n=(n=n+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0,v=v+Math.imul(pe,tt)|0;var Wt=(R+(C=C+Math.imul(F,vt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Ve)|0)+Math.imul(G,vt)|0))<<13)|0;R=((v=v+Math.imul(G,Ve)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,C=Math.imul(Me,J),n=(n=Math.imul(Me,mt))+Math.imul($e,J)|0,v=Math.imul($e,mt),C=C+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,je)|0)+Math.imul(Ze,at)|0,v=v+Math.imul(Ze,je)|0,C=C+Math.imul(Qe,Ct)|0,n=(n=n+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,v=v+Math.imul(ct,Nt)|0,C=C+Math.imul(Re,Ne)|0,n=(n=n+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,v=v+Math.imul(le,$)|0,C=C+Math.imul(ge,Ie)|0,n=(n=n+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,v=v+Math.imul(Ue,Xe)|0,C=C+Math.imul(Oe,zt)|0,n=(n=n+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,v=v+Math.imul(he,ni)|0,C=C+Math.imul(Fe,ot)|0,n=(n=n+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,v=v+Math.imul(oe,ft)|0,C=C+Math.imul(Ce,gt)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,v=v+Math.imul(Se,tt)|0,C=C+Math.imul(Ee,vt)|0,n=(n=n+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0,v=v+Math.imul(pe,Ve)|0;var si=(R+(C=C+Math.imul(F,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Qt)|0)+Math.imul(G,Lt)|0))<<13)|0;R=((v=v+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,C=Math.imul(Me,at),n=(n=Math.imul(Me,je))+Math.imul($e,at)|0,v=Math.imul($e,je),C=C+Math.imul(ut,Ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,v=v+Math.imul(Ze,Nt)|0,C=C+Math.imul(Qe,Ne)|0,n=(n=n+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,v=v+Math.imul(ct,$)|0,C=C+Math.imul(Re,Ie)|0,n=(n=n+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,v=v+Math.imul(le,Xe)|0,C=C+Math.imul(ge,zt)|0,n=(n=n+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,v=v+Math.imul(Ue,ni)|0,C=C+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,v=v+Math.imul(he,ft)|0,C=C+Math.imul(Fe,gt)|0,n=(n=n+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,v=v+Math.imul(oe,tt)|0,C=C+Math.imul(Ce,vt)|0,n=(n=n+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,v=v+Math.imul(Se,Ve)|0;var Ai=(R+(C=C+Math.imul(Ee,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;R=((v=v+Math.imul(pe,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,C=Math.imul(Me,Ct),n=(n=Math.imul(Me,Nt))+Math.imul($e,Ct)|0,v=Math.imul($e,Nt),C=C+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,v=v+Math.imul(Ze,$)|0,C=C+Math.imul(Qe,Ie)|0,n=(n=n+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,v=v+Math.imul(ct,Xe)|0,C=C+Math.imul(Re,zt)|0,n=(n=n+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,v=v+Math.imul(le,ni)|0,C=C+Math.imul(ge,ot)|0,n=(n=n+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,ft)|0,C=C+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,v=v+Math.imul(he,tt)|0,C=C+Math.imul(Fe,vt)|0,n=(n=n+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,v=v+Math.imul(oe,Ve)|0;var Ri=(R+(C=C+Math.imul(Ce,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0))<<13)|0;R=((v=v+Math.imul(Se,Qt)|0)+(n>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,C=Math.imul(Me,Ne),n=(n=Math.imul(Me,$))+Math.imul($e,Ne)|0,v=Math.imul($e,$),C=C+Math.imul(ut,Ie)|0,n=(n=n+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,v=v+Math.imul(Ze,Xe)|0,C=C+Math.imul(Qe,zt)|0,n=(n=n+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,v=v+Math.imul(ct,ni)|0,C=C+Math.imul(Re,ot)|0,n=(n=n+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,v=v+Math.imul(le,ft)|0,C=C+Math.imul(ge,gt)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,v=v+Math.imul(Ue,tt)|0,C=C+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,v=v+Math.imul(he,Ve)|0;var $i=(R+(C=C+Math.imul(Fe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0))<<13)|0;R=((v=v+Math.imul(oe,Qt)|0)+(n>>>13)|0)+($i>>>26)|0,$i&=67108863,C=Math.imul(Me,Ie),n=(n=Math.imul(Me,Xe))+Math.imul($e,Ie)|0,v=Math.imul($e,Xe),C=C+Math.imul(ut,zt)|0,n=(n=n+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,v=v+Math.imul(Ze,ni)|0,C=C+Math.imul(Qe,ot)|0,n=(n=n+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,v=v+Math.imul(ct,ft)|0,C=C+Math.imul(Re,gt)|0,n=(n=n+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,v=v+Math.imul(le,tt)|0,C=C+Math.imul(ge,vt)|0,n=(n=n+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,v=v+Math.imul(Ue,Ve)|0;var nn=(R+(C=C+Math.imul(Oe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0))<<13)|0;R=((v=v+Math.imul(he,Qt)|0)+(n>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Me,zt),n=(n=Math.imul(Me,ni))+Math.imul($e,zt)|0,v=Math.imul($e,ni),C=C+Math.imul(ut,ot)|0,n=(n=n+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,v=v+Math.imul(Ze,ft)|0,C=C+Math.imul(Qe,gt)|0,n=(n=n+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,v=v+Math.imul(ct,tt)|0,C=C+Math.imul(Re,vt)|0,n=(n=n+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,v=v+Math.imul(le,Ve)|0;var Qi=(R+(C=C+Math.imul(ge,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,C=Math.imul(Me,ot),n=(n=Math.imul(Me,ft))+Math.imul($e,ot)|0,v=Math.imul($e,ft),C=C+Math.imul(ut,gt)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,v=v+Math.imul(Ze,tt)|0,C=C+Math.imul(Qe,vt)|0,n=(n=n+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,v=v+Math.imul(ct,Ve)|0;var Yt=(R+(C=C+Math.imul(Re,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0))<<13)|0;R=((v=v+Math.imul(le,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Me,gt),n=(n=Math.imul(Me,tt))+Math.imul($e,gt)|0,v=Math.imul($e,tt),C=C+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,v=v+Math.imul(Ze,Ve)|0;var Xt=(R+(C=C+Math.imul(Qe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0))<<13)|0;R=((v=v+Math.imul(ct,Qt)|0)+(n>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(Me,vt),n=(n=Math.imul(Me,Ve))+Math.imul($e,vt)|0,v=Math.imul($e,Ve);var be=(R+(C=C+Math.imul(ut,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ze,Qt)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863;var dt=(R+(C=Math.imul(Me,Lt))|0)+((8191&(n=(n=Math.imul(Me,Qt))+Math.imul($e,Lt)|0))<<13)|0;return R=((v=Math.imul($e,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,O[0]=Bi,O[1]=Hi,O[2]=Si,O[3]=Wi,O[4]=et,O[5]=It,O[6]=Le,O[7]=Mt,O[8]=Wt,O[9]=si,O[10]=Ai,O[11]=Ri,O[12]=$i,O[13]=nn,O[14]=Qi,O[15]=Yt,O[16]=Xt,O[17]=be,O[18]=dt,0!==R&&(O[19]=R,u.length++),u};function Y(S,i,a){return(new Q).mulp(S,i,a)}function Q(S,i){this.x=S,this.y=i}Math.imul||(B=V),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?B(this,i,a):l<63?V(this,i,a):l<1024?function W(S,i,a){a.negative=i.negative^S.negative,a.length=S.length+i.length;for(var u=0,l=0,_=0;_<a.length-1;_++){var O=l;l=0;for(var R=67108863&u,C=Math.min(_,i.length-1),n=Math.max(0,_-S.length+1);n<=C;n++){var G=(0|S.words[_-n])*(0|i.words[n]),ye=67108863&G;R=67108863&(ye=ye+R|0),l+=(O=(O=O+(G/67108864|0)|0)+(ye>>>26)|0)>>>26,O&=67108863}a.words[_]=R,u=O,O=l}return 0!==u?a.words[_]=u:a.length--,a.strip()}(this,i,a):Y(this,i,a),u},Q.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},Q.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,_=0;_<a;_++)l|=(1&i)<<a-_-1,i>>=1;return l},Q.prototype.permute=function(i,a,u,l,_,O){for(var R=0;R<O;R++)l[R]=a[i[R]],_[R]=u[i[R]]},Q.prototype.transform=function(i,a,u,l,_,O){this.permute(O,i,a,u,l,_);for(var R=1;R<_;R<<=1)for(var C=R<<1,n=Math.cos(2*Math.PI/C),v=Math.sin(2*Math.PI/C),K=0;K<_;K+=C)for(var F=n,G=v,ye=0;ye<R;ye++){var Ee=u[K+ye],pe=l[K+ye],qe=u[K+ye+R],Ce=l[K+ye+R],Se=F*qe-G*Ce;Ce=F*Ce+G*qe,u[K+ye]=Ee+(qe=Se),l[K+ye]=pe+Ce,u[K+ye+R]=Ee-qe,l[K+ye+R]=pe-Ce,ye!==C&&(Se=n*F-v*G,G=n*G+v*F,F=Se)}},Q.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,_=0;for(u=u/2|0;u;u>>>=1)_++;return 1<<_+1+l},Q.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var _=i[l];i[l]=i[u-l-1],i[u-l-1]=_,_=a[l],a[l]=-a[u-l-1],a[u-l-1]=-_}},Q.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var _=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&_,u=_<67108864?0:_/67108864|0}return i},Q.prototype.convert13b=function(i,a,u,l){for(var _=0,O=0;O<a;O++)u[2*O]=8191&(_+=0|i[O]),u[2*O+1]=8191&(_>>>=13),_>>>=13;for(O=2*a;O<l;++O)u[O]=0;g(0===_),g(0==(-8192&_))},Q.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},Q.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(l),O=this.stub(l),R=new Array(l),C=new Array(l),n=new Array(l),v=new Array(l),K=new Array(l),F=new Array(l),G=u.words;G.length=l,this.convert13b(i.words,i.length,R,l),this.convert13b(a.words,a.length,v,l),this.transform(R,O,C,n,l,_),this.transform(v,O,K,F,l,_);for(var ye=0;ye<l;ye++){var Ee=C[ye]*K[ye]-n[ye]*F[ye];n[ye]=C[ye]*F[ye]+n[ye]*K[ye],C[ye]=Ee}return this.conjugate(C,n,l),this.transform(C,n,G,O,l,_),this.conjugate(G,O,l),this.normalize13b(G,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),Y(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){g("number"==typeof i),g(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,_=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=_>>>26,this.words[u]=67108863&_}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function k(S){for(var i=new Array(S.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(S.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var _=u.sqr();l<a.length;l++,_=_.sqr())0!==a[l]&&(u=u.mul(_));return u},s.prototype.iushln=function(i){g("number"==typeof i&&i>=0);var _,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var O=0;for(_=0;_<this.length;_++){var R=this.words[_]&l;this.words[_]=(0|this.words[_])-R<<a|O,O=R>>>26-a}O&&(this.words[_]=O,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_<u;_++)this.words[_]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return g(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;g("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var _=i%26,O=Math.min((i-_)/26,this.length),R=67108863^67108863>>>_<<_,C=u;if(l-=O,l=Math.max(0,l),C){for(var n=0;n<O;n++)C.words[n]=this.words[n];C.length=O}if(0!==O)if(this.length>O)for(this.length-=O,n=0;n<this.length;n++)this.words[n]=this.words[n+O];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(0!==v||n>=l);n--){var K=0|this.words[n];this.words[n]=v<<26-_|K>>>_,v=K&R}return C&&0!==v&&(C.words[C.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return g(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return g("number"==typeof i),g(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[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},s.prototype.isubn=function(i){if(g("number"==typeof i),g(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<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var _;this._expand(i.length+u);var O,R=0;for(_=0;_<i.length;_++){O=(0|this.words[_+u])+R;var C=(0|i.words[_])*a;R=((O-=67108863&C)>>26)-(C/67108864|0),this.words[_+u]=67108863&O}for(;_<this.length-u;_++)R=(O=(0|this.words[_+u])+R)>>26,this.words[_+u]=67108863&O;if(0===R)return this.strip();for(g(-1===R),R=0,_=0;_<this.length;_++)R=(O=-(0|this.words[_])+R)>>26,this.words[_]=67108863&O;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),_=i,O=0|_.words[_.length-1];0!=(u=26-this._countBits(O))&&(_=_.ushln(u),l.iushln(u),O=0|_.words[_.length-1]);var n,C=l.length-_.length;if("mod"!==a){(n=new s(null)).length=C+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var K=l.clone()._ishlnsubmul(_,1,C);0===K.negative&&(l=K,n&&(n.words[C]=1));for(var F=C-1;F>=0;F--){var G=67108864*(0|l.words[_.length+F])+(0|l.words[_.length+F-1]);for(G=Math.min(G/O|0,67108863),l._ishlnsubmul(_,G,F);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(_,1,F),l.isZero()||(l.negative^=1);n&&(n.words[F]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return g(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(O=this.neg().divmod(i,a),"mod"!==a&&(l=O.div.neg()),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:l,mod:_}):0===this.negative&&0!==i.negative?(O=this.divmod(i.neg(),a),"mod"!==a&&(l=O.div.neg()),{div:l,mod:O.mod}):this.negative&i.negative?(O=this.neg().divmod(i.neg(),a),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:O.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,_,O},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),_=i.andln(1),O=u.cmp(l);return O<0||1===_&&0===O?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){g(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){g(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){g(0===i.negative),g(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=new s(0),R=new s(1),C=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++C;for(var n=u.clone(),v=a.clone();!a.isZero();){for(var K=0,F=1;!(a.words[0]&F)&&K<26;++K,F<<=1);if(K>0)for(a.iushrn(K);K-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(n),_.isub(v)),l.iushrn(1),_.iushrn(1);for(var G=0,ye=1;!(u.words[0]&ye)&&G<26;++G,ye<<=1);if(G>0)for(u.iushrn(G);G-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(n),R.isub(v)),O.iushrn(1),R.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(O),_.isub(R)):(u.isub(a),O.isub(l),R.isub(_))}return{a:O,b:R,gcd:u.iushln(C)}},s.prototype._invmp=function(i){g(0===i.negative),g(!i.isZero());var K,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var R=0,C=1;!(a.words[0]&C)&&R<26;++R,C<<=1);if(R>0)for(a.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(O),l.iushrn(1);for(var n=0,v=1;!(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(_)):(u.isub(a),_.isub(l))}return(K=0===a.cmpn(1)?l:_).cmpn(0)<0&&K.iadd(i),K},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=a.cmp(u);if(_<0){var O=a;a=u,u=O}else if(0===_||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){g("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var _=l,O=u;0!==_&&O<this.length;O++){var R=0|this.words[O];_=(R+=_)>>>26,this.words[O]=R&=67108863}return 0!==_&&(this.words[O]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),g(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],_=0|i.words[u];if(l!==_){l<_?a=-1:l>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var X={k256:null,p224:null,p192:null,p25519:null};function ee(S,i){this.name=S,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(S){if("string"==typeof S){var i=s._prime(S);this.m=i.p,this.prime=i}else g(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function Te(S){ce.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?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)},T(me,ee),me.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),_=0;_<l;_++)a.words[_]=i.words[_];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var O=i.words[9];for(a.words[a.length++]=O&u,_=10;_<i.length;_++){var R=0|i.words[_];i.words[_-10]=(R&u)<<4|O>>>22,O=R}i.words[_-10]=O>>>=22,i.length-=0===O&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},T(re,ee),T(ie,ee),T(se,ee),se.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,_=67108863&l;l>>>=26,i.words[u]=_,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(X[i])return X[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return X[i]=a,a},ce.prototype._verify1=function(i){g(0===i.negative,"red works only with positives"),g(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){g(0==(i.negative|a.negative),"red works only with positives"),g(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},ce.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(g(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),_=0;!l.isZero()&&0===l.andln(1);)_++,l.iushrn(1);g(!l.isZero());var O=new s(1).toRed(this),R=O.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,C).cmp(R);)n.redIAdd(R);for(var v=this.pow(n,l),K=this.pow(i,l.addn(1).iushrn(1)),F=this.pow(i,l),G=_;0!==F.cmp(O);){for(var ye=F,Ee=0;0!==ye.cmp(O);Ee++)ye=ye.redSqr();g(Ee<G);var pe=this.pow(v,new s(1).iushln(G-Ee-1));K=K.redMul(pe),v=pe.redSqr(),F=F.redMul(v),G=Ee}return K},ce.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},ce.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var _=2;_<l.length;_++)l[_]=this.mul(l[_-1],i);var O=l[0],R=0,C=0,n=a.bitLength()%26;for(0===n&&(n=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],K=n-1;K>=0;K--){var F=v>>K&1;O!==l[0]&&(O=this.sqr(O)),0!==F||0!==R?(R<<=1,R|=F,(4==++C||0===_&&0===K)&&(O=this.mul(O,l[R]),C=0,R=0)):C=0}n=26}return O},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Te(i)},T(Te,ce),Te.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Te.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Te.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},6386:(We,q,m)=>{"use strict";var t=m(3894),e=m(8095),g=m(5634),T=m(5244),s=m(1052);function x(h){s.call(this,"digest"),this._hash=h}t(x,s),x.prototype._update=function(h){this._hash.update(h)},x.prototype._final=function(){return this._hash.digest()},We.exports=function(N){return"md5"===(N=N.toLowerCase())?new e:"rmd160"===N||"ripemd160"===N?new g:new x(T(N))}},5640:(We,q,m)=>{var t=m(8095);We.exports=function(e){return(new t).update(e).digest()}},4529:(We,q,m)=>{"use strict";var t=m(3894),e=m(7309),g=m(1052),T=m(3502).Buffer,s=m(5640),x=m(5634),h=m(5244),N=T.alloc(128);function d(M,w){g.call(this,"digest"),"string"==typeof w&&(w=T.from(w));var L="sha512"===M||"sha384"===M?128:64;this._alg=M,this._key=w,w.length>L?w=("rmd160"===M?new x:h(M)).update(w).digest():w.length<L&&(w=T.concat([w,N],L));for(var V=this._ipad=T.allocUnsafe(L),B=this._opad=T.allocUnsafe(L),W=0;W<L;W++)V[W]=54^w[W],B[W]=92^w[W];this._hash="rmd160"===M?new x:h(M),this._hash.update(V)}t(d,g),d.prototype._update=function(M){this._hash.update(M)},d.prototype._final=function(){var M=this._hash.digest();return("rmd160"===this._alg?new x:h(this._alg)).update(this._opad).update(M).digest()},We.exports=function(w,L){return"rmd160"===(w=w.toLowerCase())||"ripemd160"===w?new d("rmd160",L):"md5"===w?new e(s,L):new d(w,L)}},7309:(We,q,m)=>{"use strict";var t=m(3894),e=m(3502).Buffer,g=m(1052),T=e.alloc(128),s=64;function x(h,N){g.call(this,"digest"),"string"==typeof N&&(N=e.from(N)),this._alg=h,this._key=N,N.length>s?N=h(N):N.length<s&&(N=e.concat([N,T],s));for(var d=this._ipad=e.allocUnsafe(s),M=this._opad=e.allocUnsafe(s),w=0;w<s;w++)d[w]=54^N[w],M[w]=92^N[w];this._hash=[d]}t(x,g),x.prototype._update=function(h){this._hash.push(h)},x.prototype._final=function(){var h=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,h]))},We.exports=x},1348:(We,q,m)=>{"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 t=m(7793),e=Object.keys(t),g=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);q.getHashes=function(){return g};var T=m(9357);q.pbkdf2=T.pbkdf2,q.pbkdf2Sync=T.pbkdf2Sync;var s=m(5255);q.Cipher=s.Cipher,q.createCipher=s.createCipher,q.Cipheriv=s.Cipheriv,q.createCipheriv=s.createCipheriv,q.Decipher=s.Decipher,q.createDecipher=s.createDecipher,q.Decipheriv=s.Decipheriv,q.createDecipheriv=s.createDecipheriv,q.getCiphers=s.getCiphers,q.listCiphers=s.listCiphers;var x=m(8829);q.DiffieHellmanGroup=x.DiffieHellmanGroup,q.createDiffieHellmanGroup=x.createDiffieHellmanGroup,q.getDiffieHellman=x.getDiffieHellman,q.createDiffieHellman=x.createDiffieHellman,q.DiffieHellman=x.DiffieHellman;var h=m(3923);q.createSign=h.createSign,q.Sign=h.Sign,q.createVerify=h.createVerify,q.Verify=h.Verify,q.createECDH=m(4746);var N=m(3701);q.publicEncrypt=N.publicEncrypt,q.privateEncrypt=N.privateEncrypt,q.publicDecrypt=N.publicDecrypt,q.privateDecrypt=N.privateDecrypt;var d=m(4275);q.randomFill=d.randomFill,q.randomFillSync=d.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:(We,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:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),g={};function T(x){t.equal(x.length,8,"Invalid IV length"),this.iv=new Array(8);for(var h=0;h<this.iv.length;h++)this.iv[h]=x[h]}q.instantiate=function s(x){function h(w){x.call(this,w),this._cbcInit()}e(h,x);for(var N=Object.keys(g),d=0;d<N.length;d++){var M=N[d];h.prototype[M]=g[M]}return h.create=function(L){return new h(L)},h},g._cbcInit=function(){var h=new T(this.options.iv);this._cbcState=h},g._update=function(h,N,d,M){var L=this.constructor.super_.prototype,k=this._cbcState.iv;if("encrypt"===this.type){for(var V=0;V<this.blockSize;V++)k[V]^=h[N+V];for(L._update.call(this,k,0,d,M),V=0;V<this.blockSize;V++)k[V]=d[M+V]}else{for(L._update.call(this,h,N,d,M),V=0;V<this.blockSize;V++)d[M+V]^=k[V];for(V=0;V<this.blockSize;V++)k[V]=h[N+V]}}},8170:(We,q,m)=>{"use strict";var t=m(2391);function e(g){this.options=g,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==g.padding}We.exports=e,e.prototype._init=function(){},e.prototype.update=function(T){return 0===T.length?[]:"decrypt"===this.type?this._updateDecrypt(T):this._updateEncrypt(T)},e.prototype._buffer=function(T,s){for(var x=Math.min(this.buffer.length-this.bufferOff,T.length-s),h=0;h<x;h++)this.buffer[this.bufferOff+h]=T[s+h];return this.bufferOff+=x,x},e.prototype._flushBuffer=function(T,s){return this._update(this.buffer,0,T,s),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(T){var s=0,x=0,N=new Array(((this.bufferOff+T.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(s+=this._buffer(T,s),this.bufferOff===this.buffer.length&&(x+=this._flushBuffer(N,x)));for(var d=T.length-(T.length-s)%this.blockSize;s<d;s+=this.blockSize)this._update(T,s,N,x),x+=this.blockSize;for(;s<T.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=T[s];return N},e.prototype._updateDecrypt=function(T){for(var s=0,x=0,h=Math.ceil((this.bufferOff+T.length)/this.blockSize)-1,N=new Array(h*this.blockSize);h>0;h--)s+=this._buffer(T,s),x+=this._flushBuffer(N,x);return s+=this._buffer(T,s),N},e.prototype.final=function(T){var s,x;return T&&(s=this.update(T)),x="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(x):x},e.prototype._pad=function(T,s){if(0===s)return!1;for(;s<T.length;)T[s++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var T=new Array(this.blockSize);return this._update(this.buffer,0,T,0),T},e.prototype._unpad=function(T){return T},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var T=new Array(this.blockSize);return this._flushBuffer(T,0),this._unpad(T)}},4631:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),g=m(7451),T=m(8170);function s(){this.tmp=new Array(2),this.keys=null}function x(N){T.call(this,N);var d=new s;this._desState=d,this.deriveKeys(d,N.key)}e(x,T),We.exports=x,x.create=function(d){return new x(d)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];x.prototype.deriveKeys=function(d,M){d.keys=new Array(32),t.equal(M.length,this.blockSize,"Invalid key length");var w=g.readUInt32BE(M,0),L=g.readUInt32BE(M,4);g.pc1(w,L,d.tmp,0),w=d.tmp[0],L=d.tmp[1];for(var k=0;k<d.keys.length;k+=2){var V=h[k>>>1];w=g.r28shl(w,V),L=g.r28shl(L,V),g.pc2(w,L,d.keys,k)}},x.prototype._update=function(d,M,w,L){var k=this._desState,V=g.readUInt32BE(d,M),B=g.readUInt32BE(d,M+4);g.ip(V,B,k.tmp,0),V=k.tmp[0],B=k.tmp[1],"encrypt"===this.type?this._encrypt(k,V,B,k.tmp,0):this._decrypt(k,V,B,k.tmp,0),B=k.tmp[1],g.writeUInt32BE(w,V=k.tmp[0],L),g.writeUInt32BE(w,B,L+4)},x.prototype._pad=function(d,M){if(!1===this.padding)return!1;for(var w=d.length-M,L=M;L<d.length;L++)d[L]=w;return!0},x.prototype._unpad=function(d){if(!1===this.padding)return d;for(var M=d[d.length-1],w=d.length-M;w<d.length;w++)t.equal(d[w],M);return d.slice(0,d.length-M)},x.prototype._encrypt=function(d,M,w,L,k){for(var V=M,B=w,W=0;W<d.keys.length;W+=2){var Y=d.keys[W],Q=d.keys[W+1];g.expand(B,d.tmp,0);var X=g.substitute(Y^=d.tmp[0],Q^=d.tmp[1]),me=B;B=(V^g.permute(X))>>>0,V=me}g.rip(B,V,L,k)},x.prototype._decrypt=function(d,M,w,L,k){for(var V=w,B=M,W=d.keys.length-2;W>=0;W-=2){var Y=d.keys[W],Q=d.keys[W+1];g.expand(V,d.tmp,0);var X=g.substitute(Y^=d.tmp[0],Q^=d.tmp[1]),me=V;V=(B^g.permute(X))>>>0,B=me}g.rip(V,B,L,k)}},1862:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),g=m(8170),T=m(4631);function s(h,N){t.equal(N.length,24,"Invalid key length");var d=N.slice(0,8),M=N.slice(8,16),w=N.slice(16,24);this.ciphers="encrypt"===h?[T.create({type:"encrypt",key:d}),T.create({type:"decrypt",key:M}),T.create({type:"encrypt",key:w})]:[T.create({type:"decrypt",key:w}),T.create({type:"encrypt",key:M}),T.create({type:"decrypt",key:d})]}function x(h){g.call(this,h);var N=new s(this.type,this.options.key);this._edeState=N}e(x,g),We.exports=x,x.create=function(N){return new x(N)},x.prototype._update=function(N,d,M,w){var L=this._edeState;L.ciphers[0]._update(N,d,M,w),L.ciphers[1]._update(M,w,M,w),L.ciphers[2]._update(M,w,M,w)},x.prototype._pad=T.prototype._pad,x.prototype._unpad=T.prototype._unpad},7451:(We,q)=>{"use strict";q.readUInt32BE=function(T,s){return(T[0+s]<<24|T[1+s]<<16|T[2+s]<<8|T[3+s])>>>0},q.writeUInt32BE=function(T,s,x){T[0+x]=s>>>24,T[1+x]=s>>>16&255,T[2+x]=s>>>8&255,T[3+x]=255&s},q.ip=function(T,s,x,h){for(var N=0,d=0,M=6;M>=0;M-=2){for(var w=0;w<=24;w+=8)N<<=1,N|=s>>>w+M&1;for(w=0;w<=24;w+=8)N<<=1,N|=T>>>w+M&1}for(M=6;M>=0;M-=2){for(w=1;w<=25;w+=8)d<<=1,d|=s>>>w+M&1;for(w=1;w<=25;w+=8)d<<=1,d|=T>>>w+M&1}x[h+0]=N>>>0,x[h+1]=d>>>0},q.rip=function(T,s,x,h){for(var N=0,d=0,M=0;M<4;M++)for(var w=24;w>=0;w-=8)N<<=1,N|=s>>>w+M&1,N<<=1,N|=T>>>w+M&1;for(M=4;M<8;M++)for(w=24;w>=0;w-=8)d<<=1,d|=s>>>w+M&1,d<<=1,d|=T>>>w+M&1;x[h+0]=N>>>0,x[h+1]=d>>>0},q.pc1=function(T,s,x,h){for(var N=0,d=0,M=7;M>=5;M--){for(var w=0;w<=24;w+=8)N<<=1,N|=s>>w+M&1;for(w=0;w<=24;w+=8)N<<=1,N|=T>>w+M&1}for(w=0;w<=24;w+=8)N<<=1,N|=s>>w+M&1;for(M=1;M<=3;M++){for(w=0;w<=24;w+=8)d<<=1,d|=s>>w+M&1;for(w=0;w<=24;w+=8)d<<=1,d|=T>>w+M&1}for(w=0;w<=24;w+=8)d<<=1,d|=T>>w+M&1;x[h+0]=N>>>0,x[h+1]=d>>>0},q.r28shl=function(T,s){return T<<s&268435455|T>>>28-s};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(T,s,x,h){for(var N=0,d=0,M=m.length>>>1,w=0;w<M;w++)N<<=1,N|=T>>>m[w]&1;for(w=M;w<m.length;w++)d<<=1,d|=s>>>m[w]&1;x[h+0]=N>>>0,x[h+1]=d>>>0},q.expand=function(T,s,x){var h=0,N=0;h=(1&T)<<5|T>>>27;for(var d=23;d>=15;d-=4)h<<=6,h|=T>>>d&63;for(d=11;d>=3;d-=4)N|=T>>>d&63,N<<=6;N|=(31&T)<<1|T>>>31,s[x+0]=h>>>0,s[x+1]=N>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];q.substitute=function(T,s){for(var x=0,h=0;h<4;h++)x<<=4,x|=t[64*h+(T>>>18-6*h&63)];for(h=0;h<4;h++)x<<=4,x|=t[256+64*h+(s>>>18-6*h&63)];return x>>>0};var e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];q.permute=function(T){for(var s=0,x=0;x<e.length;x++)s<<=1,s|=T>>>e[x]&1;return s>>>0},q.padSplit=function(T,s,x){for(var h=T.toString(2);h.length<s;)h="0"+h;for(var N=[],d=0;d<s;d+=x)N.push(h.slice(d,d+x));return N.join(" ")}},8829:(We,q,m)=>{var t=m(5563),e=m(9799),g=m(1419),s={binary:!0,hex:!0,base64:!0};q.DiffieHellmanGroup=q.createDiffieHellmanGroup=q.getDiffieHellman=function T(h){var N=new Buffer(e[h].prime,"hex"),d=new Buffer(e[h].gen,"hex");return new g(N,d)},q.createDiffieHellman=q.DiffieHellman=function x(h,N,d,M){return Buffer.isBuffer(N)||void 0===s[N]?x(h,"binary",N,d):(N=N||"binary",M=M||"binary",d=d||new Buffer([2]),Buffer.isBuffer(d)||(d=new Buffer(d,M)),"number"==typeof h?new g(t(h,d),d,!0):(Buffer.isBuffer(h)||(h=new Buffer(h,N)),new g(h,d,!0)))}},1419:(We,q,m)=>{var t=m(8313),g=new(m(7079)),T=new t(24),s=new t(11),x=new t(10),h=new t(3),N=new t(7),d=m(5563),M=m(3753);function w(Y,Q){return Q=Q||"utf8",Buffer.isBuffer(Y)||(Y=new Buffer(Y,Q)),this._pub=new t(Y),this}function L(Y,Q){return Q=Q||"utf8",Buffer.isBuffer(Y)||(Y=new Buffer(Y,Q)),this._priv=new t(Y),this}We.exports=B;var k={};function B(Y,Q,X){this.setGenerator(Q),this.__prime=new t(Y),this._prime=t.mont(this.__prime),this._primeLen=Y.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,X?(this.setPublicKey=w,this.setPrivateKey=L):this._primeCode=8}function W(Y,Q){var X=new Buffer(Y.toArray());return Q?X.toString(Q):X}Object.defineProperty(B.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function V(Y,Q){var X=Q.toString("hex"),ee=[X,Y.toString(16)].join("_");if(ee in k)return k[ee];var re,me=0;if(Y.isEven()||!d.simpleSieve||!d.fermatTest(Y)||!g.test(Y))return me+=1,k[ee]=me+="02"===X||"05"===X?8:4,me;switch(g.test(Y.shrn(1))||(me+=2),X){case"02":Y.mod(T).cmp(s)&&(me+=8);break;case"05":(re=Y.mod(x)).cmp(h)&&re.cmp(N)&&(me+=8);break;default:me+=4}return k[ee]=me,me}(this.__prime,this.__gen)),this._primeCode}}),B.prototype.generateKeys=function(){return this._priv||(this._priv=new t(M(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},B.prototype.computeSecret=function(Y){var Q=(Y=(Y=new t(Y)).toRed(this._prime)).redPow(this._priv).fromRed(),X=new Buffer(Q.toArray()),ee=this.getPrime();if(X.length<ee.length){var me=new Buffer(ee.length-X.length);me.fill(0),X=Buffer.concat([me,X])}return X},B.prototype.getPublicKey=function(Q){return W(this._pub,Q)},B.prototype.getPrivateKey=function(Q){return W(this._priv,Q)},B.prototype.getPrime=function(Y){return W(this.__prime,Y)},B.prototype.getGenerator=function(Y){return W(this._gen,Y)},B.prototype.setGenerator=function(Y,Q){return Q=Q||"utf8",Buffer.isBuffer(Y)||(Y=new Buffer(Y,Q)),this.__gen=Y,this._gen=new t(Y),this}},5563:(We,q,m)=>{var t=m(3753);We.exports=me,me.simpleSieve=X,me.fermatTest=ee;var e=m(8313),g=new e(24),s=new(m(7079)),x=new e(1),h=new e(2),N=new e(5),w=(new e(16),new e(8),new e(10)),L=new e(3),V=(new e(7),new e(11)),B=new e(4),Y=(new e(12),null);function X(re){for(var ie=function Q(){if(null!==Y)return Y;var ie=[];ie[0]=2;for(var se=1,ce=3;ce<1048576;ce+=2){for(var Te=Math.ceil(Math.sqrt(ce)),S=0;S<se&&ie[S]<=Te&&ce%ie[S]!=0;S++);se!==S&&ie[S]<=Te||(ie[se++]=ce)}return Y=ie,ie}(),se=0;se<ie.length;se++)if(0===re.modn(ie[se]))return 0===re.cmpn(ie[se]);return!0}function ee(re){var ie=e.mont(re);return 0===h.toRed(ie).redPow(re.subn(1)).fromRed().cmpn(1)}function me(re,ie){if(re<16)return new e(2===ie||5===ie?[140,123]:[140,39]);ie=new e(ie);for(var se,ce;;){for(se=new e(t(Math.ceil(re/8)));se.bitLength()>re;)se.ishrn(1);if(se.isEven()&&se.iadd(x),se.testn(1)||se.iadd(h),ie.cmp(h)){if(!ie.cmp(N))for(;se.mod(w).cmp(L);)se.iadd(B)}else for(;se.mod(g).cmp(V);)se.iadd(B);if(X(ce=se.shrn(1))&&X(se)&&ee(ce)&&ee(se)&&s.test(ce)&&s.test(se))return se}}},8313:function(We,q,m){!function(t,e){"use strict";function g(S,i){if(!S)throw new Error(i||"Assertion failed")}function T(S,i){S.super_=i;var a=function(){};a.prototype=i.prototype,S.prototype=new a,S.prototype.constructor=S}function s(S,i,a){if(s.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(S||0,i||10,a||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(7748).Buffer}catch{}function h(S,i){var a=S.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(S,i,a){var u=h(S,a);return a-1>=i&&(u|=h(S,a-1)<<4),u}function d(S,i,a,u){for(var l=0,_=Math.min(S.length,a),O=i;O<_;O++){var R=S.charCodeAt(O)-48;l*=u,l+=R>=49?R-49+10:R>=17?R-17+10:R}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),g(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(g("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var _,O,R=0;if("be"===u)for(l=i.length-1,_=0;l>=0;l-=3)this.words[_]|=(O=i[l]|i[l-1]<<8|i[l-2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);else if("le"===u)for(l=0,_=0;l<i.length;l+=3)this.words[_]|=(O=i[l]|i[l+1]<<8|i[l+2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var R,_=0,O=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,_=1;_<=67108863;_*=a)l++;l--,_=_/a|0;for(var O=i.length-u,R=O%l,C=Math.min(O,O-R)+u,n=0,v=u;v<C;v+=l)n=d(i,v,v+l,a),this.imuln(_),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==R){var K=1;for(n=d(i,v,i.length,a),v=0;v<R;v++)K*=a;this.imuln(K),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[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 V(S,i,a){a.negative=i.negative^S.negative;var u=S.length+i.length|0;a.length=u,u=u-1|0;var l=0|S.words[0],_=0|i.words[0],O=l*_,C=O/67108864|0;a.words[0]=67108863&O;for(var n=1;n<u;n++){for(var v=C>>>26,K=67108863&C,F=Math.min(n,i.length-1),G=Math.max(0,n-S.length+1);G<=F;G++)v+=(O=(l=0|S.words[n-G|0])*(_=0|i.words[G])+K)/67108864|0,K=67108863&O;a.words[n]=0|K,C=0|v}return 0!==C?a.words[n]=0|C:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,_=0,O=0;O<this.length;O++){var R=this.words[O],C=(16777215&(R<<l|_)).toString(16);u=0!=(_=R>>>24-l&16777215)||O!==this.length-1?M[6-C.length]+C+u:C+u,(l+=2)>=26&&(l-=26,O--)}for(0!==_&&(u=_.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],v=L[i];u="";var K=this.clone();for(K.negative=0;!K.isZero();){var F=K.modn(v).toString(i);u=(K=K.idivn(v)).isZero()?F+u:M[n-F.length]+F+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}g(!1,"Base should be between 2 and 36")},s.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&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return g(typeof x<"u"),this.toArrayLike(x,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),_=u||Math.max(1,l);g(l<=_,"byte array longer than desired length"),g(_>0,"Requested array length <= 0"),this.strip();var C,n,O="le"===a,R=new i(_),v=this.clone();if(O){for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[n]=C;for(;n<_;n++)R[n]=0}else{for(n=0;n<_-l;n++)R[n]=0;for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[_-n-1]=C}return R},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return g(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return g(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return g(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){g("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){g("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var _=0,O=0;O<l.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+(0|l.words[O])+_),_=a>>>26;for(;0!==_&&O<u.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+_),_=a>>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;O<u.length;O++)this.words[O]=u.words[O];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,_=i):(l=i,_=this);for(var O=0,R=0;R<_.length;R++)O=(a=(0|l.words[R])-(0|_.words[R])+O)>>26,this.words[R]=67108863&a;for(;0!==O&&R<l.length;R++)O=(a=(0|l.words[R])+O)>>26,this.words[R]=67108863&a;if(0===O&&R<l.length&&l!==this)for(;R<l.length;R++)this.words[R]=l.words[R];return this.length=Math.max(this.length,R),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var B=function(i,a,u){var C,n,v,l=i.words,_=a.words,O=u.words,R=0,K=0|l[0],F=8191&K,G=K>>>13,ye=0|l[1],Ee=8191&ye,pe=ye>>>13,qe=0|l[2],Ce=8191&qe,Se=qe>>>13,fe=0|l[3],Fe=8191&fe,oe=fe>>>13,ze=0|l[4],Oe=8191&ze,he=ze>>>13,Ae=0|l[5],ge=8191&Ae,Ue=Ae>>>13,Je=0|l[6],Re=8191&Je,le=Je>>>13,rt=0|l[7],Qe=8191&rt,ct=rt>>>13,Gt=0|l[8],ut=8191&Gt,Ze=Gt>>>13,xt=0|l[9],Me=8191&xt,$e=xt>>>13,Pe=0|_[0],J=8191&Pe,mt=Pe>>>13,Et=0|_[1],at=8191&Et,je=Et>>>13,Ht=0|_[2],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|_[3],Ne=8191&Bt,$=Bt>>>13,ue=0|_[4],Ie=8191&ue,Xe=ue>>>13,ei=0|_[5],zt=8191&ei,ni=ei>>>13,pt=0|_[6],ot=8191&pt,ft=pt>>>13,St=0|_[7],gt=8191&St,tt=St>>>13,_t=0|_[8],vt=8191&_t,Ve=_t>>>13,Tt=0|_[9],Lt=8191&Tt,Qt=Tt>>>13;u.negative=i.negative^a.negative,u.length=19;var Bi=(R+(C=Math.imul(F,J))|0)+((8191&(n=(n=Math.imul(F,mt))+Math.imul(G,J)|0))<<13)|0;R=((v=Math.imul(G,mt))+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,C=Math.imul(Ee,J),n=(n=Math.imul(Ee,mt))+Math.imul(pe,J)|0,v=Math.imul(pe,mt);var Hi=(R+(C=C+Math.imul(F,at)|0)|0)+((8191&(n=(n=n+Math.imul(F,je)|0)+Math.imul(G,at)|0))<<13)|0;R=((v=v+Math.imul(G,je)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,C=Math.imul(Ce,J),n=(n=Math.imul(Ce,mt))+Math.imul(Se,J)|0,v=Math.imul(Se,mt),C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,je)|0)+Math.imul(pe,at)|0,v=v+Math.imul(pe,je)|0;var Si=(R+(C=C+Math.imul(F,Ct)|0)|0)+((8191&(n=(n=n+Math.imul(F,Nt)|0)+Math.imul(G,Ct)|0))<<13)|0;R=((v=v+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,C=Math.imul(Fe,J),n=(n=Math.imul(Fe,mt))+Math.imul(oe,J)|0,v=Math.imul(oe,mt),C=C+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,je)|0)+Math.imul(Se,at)|0,v=v+Math.imul(Se,je)|0,C=C+Math.imul(Ee,Ct)|0,n=(n=n+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0,v=v+Math.imul(pe,Nt)|0;var Wi=(R+(C=C+Math.imul(F,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(F,$)|0)+Math.imul(G,Ne)|0))<<13)|0;R=((v=v+Math.imul(G,$)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(Oe,J),n=(n=Math.imul(Oe,mt))+Math.imul(he,J)|0,v=Math.imul(he,mt),C=C+Math.imul(Fe,at)|0,n=(n=n+Math.imul(Fe,je)|0)+Math.imul(oe,at)|0,v=v+Math.imul(oe,je)|0,C=C+Math.imul(Ce,Ct)|0,n=(n=n+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,v=v+Math.imul(Se,Nt)|0,C=C+Math.imul(Ee,Ne)|0,n=(n=n+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0,v=v+Math.imul(pe,$)|0;var et=(R+(C=C+Math.imul(F,Ie)|0)|0)+((8191&(n=(n=n+Math.imul(F,Xe)|0)+Math.imul(G,Ie)|0))<<13)|0;R=((v=v+Math.imul(G,Xe)|0)+(n>>>13)|0)+(et>>>26)|0,et&=67108863,C=Math.imul(ge,J),n=(n=Math.imul(ge,mt))+Math.imul(Ue,J)|0,v=Math.imul(Ue,mt),C=C+Math.imul(Oe,at)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(he,at)|0,v=v+Math.imul(he,je)|0,C=C+Math.imul(Fe,Ct)|0,n=(n=n+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,v=v+Math.imul(oe,Nt)|0,C=C+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,v=v+Math.imul(Se,$)|0,C=C+Math.imul(Ee,Ie)|0,n=(n=n+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,Xe)|0;var It=(R+(C=C+Math.imul(F,zt)|0)|0)+((8191&(n=(n=n+Math.imul(F,ni)|0)+Math.imul(G,zt)|0))<<13)|0;R=((v=v+Math.imul(G,ni)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(Re,J),n=(n=Math.imul(Re,mt))+Math.imul(le,J)|0,v=Math.imul(le,mt),C=C+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,je)|0)+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,je)|0,C=C+Math.imul(Oe,Ct)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,v=v+Math.imul(he,Nt)|0,C=C+Math.imul(Fe,Ne)|0,n=(n=n+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,v=v+Math.imul(oe,$)|0,C=C+Math.imul(Ce,Ie)|0,n=(n=n+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,v=v+Math.imul(Se,Xe)|0,C=C+Math.imul(Ee,zt)|0,n=(n=n+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0,v=v+Math.imul(pe,ni)|0;var Le=(R+(C=C+Math.imul(F,ot)|0)|0)+((8191&(n=(n=n+Math.imul(F,ft)|0)+Math.imul(G,ot)|0))<<13)|0;R=((v=v+Math.imul(G,ft)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(Qe,J),n=(n=Math.imul(Qe,mt))+Math.imul(ct,J)|0,v=Math.imul(ct,mt),C=C+Math.imul(Re,at)|0,n=(n=n+Math.imul(Re,je)|0)+Math.imul(le,at)|0,v=v+Math.imul(le,je)|0,C=C+Math.imul(ge,Ct)|0,n=(n=n+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,v=v+Math.imul(Ue,Nt)|0,C=C+Math.imul(Oe,Ne)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,v=v+Math.imul(he,$)|0,C=C+Math.imul(Fe,Ie)|0,n=(n=n+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,v=v+Math.imul(oe,Xe)|0,C=C+Math.imul(Ce,zt)|0,n=(n=n+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,v=v+Math.imul(Se,ni)|0,C=C+Math.imul(Ee,ot)|0,n=(n=n+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0,v=v+Math.imul(pe,ft)|0;var Mt=(R+(C=C+Math.imul(F,gt)|0)|0)+((8191&(n=(n=n+Math.imul(F,tt)|0)+Math.imul(G,gt)|0))<<13)|0;R=((v=v+Math.imul(G,tt)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(ut,J),n=(n=Math.imul(ut,mt))+Math.imul(Ze,J)|0,v=Math.imul(Ze,mt),C=C+Math.imul(Qe,at)|0,n=(n=n+Math.imul(Qe,je)|0)+Math.imul(ct,at)|0,v=v+Math.imul(ct,je)|0,C=C+Math.imul(Re,Ct)|0,n=(n=n+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,v=v+Math.imul(le,Nt)|0,C=C+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,v=v+Math.imul(Ue,$)|0,C=C+Math.imul(Oe,Ie)|0,n=(n=n+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,v=v+Math.imul(he,Xe)|0,C=C+Math.imul(Fe,zt)|0,n=(n=n+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,v=v+Math.imul(oe,ni)|0,C=C+Math.imul(Ce,ot)|0,n=(n=n+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,v=v+Math.imul(Se,ft)|0,C=C+Math.imul(Ee,gt)|0,n=(n=n+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0,v=v+Math.imul(pe,tt)|0;var Wt=(R+(C=C+Math.imul(F,vt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Ve)|0)+Math.imul(G,vt)|0))<<13)|0;R=((v=v+Math.imul(G,Ve)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,C=Math.imul(Me,J),n=(n=Math.imul(Me,mt))+Math.imul($e,J)|0,v=Math.imul($e,mt),C=C+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,je)|0)+Math.imul(Ze,at)|0,v=v+Math.imul(Ze,je)|0,C=C+Math.imul(Qe,Ct)|0,n=(n=n+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,v=v+Math.imul(ct,Nt)|0,C=C+Math.imul(Re,Ne)|0,n=(n=n+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,v=v+Math.imul(le,$)|0,C=C+Math.imul(ge,Ie)|0,n=(n=n+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,v=v+Math.imul(Ue,Xe)|0,C=C+Math.imul(Oe,zt)|0,n=(n=n+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,v=v+Math.imul(he,ni)|0,C=C+Math.imul(Fe,ot)|0,n=(n=n+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,v=v+Math.imul(oe,ft)|0,C=C+Math.imul(Ce,gt)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,v=v+Math.imul(Se,tt)|0,C=C+Math.imul(Ee,vt)|0,n=(n=n+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0,v=v+Math.imul(pe,Ve)|0;var si=(R+(C=C+Math.imul(F,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Qt)|0)+Math.imul(G,Lt)|0))<<13)|0;R=((v=v+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,C=Math.imul(Me,at),n=(n=Math.imul(Me,je))+Math.imul($e,at)|0,v=Math.imul($e,je),C=C+Math.imul(ut,Ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,v=v+Math.imul(Ze,Nt)|0,C=C+Math.imul(Qe,Ne)|0,n=(n=n+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,v=v+Math.imul(ct,$)|0,C=C+Math.imul(Re,Ie)|0,n=(n=n+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,v=v+Math.imul(le,Xe)|0,C=C+Math.imul(ge,zt)|0,n=(n=n+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,v=v+Math.imul(Ue,ni)|0,C=C+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,v=v+Math.imul(he,ft)|0,C=C+Math.imul(Fe,gt)|0,n=(n=n+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,v=v+Math.imul(oe,tt)|0,C=C+Math.imul(Ce,vt)|0,n=(n=n+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,v=v+Math.imul(Se,Ve)|0;var Ai=(R+(C=C+Math.imul(Ee,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;R=((v=v+Math.imul(pe,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,C=Math.imul(Me,Ct),n=(n=Math.imul(Me,Nt))+Math.imul($e,Ct)|0,v=Math.imul($e,Nt),C=C+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,v=v+Math.imul(Ze,$)|0,C=C+Math.imul(Qe,Ie)|0,n=(n=n+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,v=v+Math.imul(ct,Xe)|0,C=C+Math.imul(Re,zt)|0,n=(n=n+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,v=v+Math.imul(le,ni)|0,C=C+Math.imul(ge,ot)|0,n=(n=n+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,ft)|0,C=C+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,v=v+Math.imul(he,tt)|0,C=C+Math.imul(Fe,vt)|0,n=(n=n+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,v=v+Math.imul(oe,Ve)|0;var Ri=(R+(C=C+Math.imul(Ce,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0))<<13)|0;R=((v=v+Math.imul(Se,Qt)|0)+(n>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,C=Math.imul(Me,Ne),n=(n=Math.imul(Me,$))+Math.imul($e,Ne)|0,v=Math.imul($e,$),C=C+Math.imul(ut,Ie)|0,n=(n=n+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,v=v+Math.imul(Ze,Xe)|0,C=C+Math.imul(Qe,zt)|0,n=(n=n+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,v=v+Math.imul(ct,ni)|0,C=C+Math.imul(Re,ot)|0,n=(n=n+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,v=v+Math.imul(le,ft)|0,C=C+Math.imul(ge,gt)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,v=v+Math.imul(Ue,tt)|0,C=C+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,v=v+Math.imul(he,Ve)|0;var $i=(R+(C=C+Math.imul(Fe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0))<<13)|0;R=((v=v+Math.imul(oe,Qt)|0)+(n>>>13)|0)+($i>>>26)|0,$i&=67108863,C=Math.imul(Me,Ie),n=(n=Math.imul(Me,Xe))+Math.imul($e,Ie)|0,v=Math.imul($e,Xe),C=C+Math.imul(ut,zt)|0,n=(n=n+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,v=v+Math.imul(Ze,ni)|0,C=C+Math.imul(Qe,ot)|0,n=(n=n+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,v=v+Math.imul(ct,ft)|0,C=C+Math.imul(Re,gt)|0,n=(n=n+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,v=v+Math.imul(le,tt)|0,C=C+Math.imul(ge,vt)|0,n=(n=n+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,v=v+Math.imul(Ue,Ve)|0;var nn=(R+(C=C+Math.imul(Oe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0))<<13)|0;R=((v=v+Math.imul(he,Qt)|0)+(n>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Me,zt),n=(n=Math.imul(Me,ni))+Math.imul($e,zt)|0,v=Math.imul($e,ni),C=C+Math.imul(ut,ot)|0,n=(n=n+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,v=v+Math.imul(Ze,ft)|0,C=C+Math.imul(Qe,gt)|0,n=(n=n+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,v=v+Math.imul(ct,tt)|0,C=C+Math.imul(Re,vt)|0,n=(n=n+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,v=v+Math.imul(le,Ve)|0;var Qi=(R+(C=C+Math.imul(ge,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,C=Math.imul(Me,ot),n=(n=Math.imul(Me,ft))+Math.imul($e,ot)|0,v=Math.imul($e,ft),C=C+Math.imul(ut,gt)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,v=v+Math.imul(Ze,tt)|0,C=C+Math.imul(Qe,vt)|0,n=(n=n+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,v=v+Math.imul(ct,Ve)|0;var Yt=(R+(C=C+Math.imul(Re,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0))<<13)|0;R=((v=v+Math.imul(le,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Me,gt),n=(n=Math.imul(Me,tt))+Math.imul($e,gt)|0,v=Math.imul($e,tt),C=C+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,v=v+Math.imul(Ze,Ve)|0;var Xt=(R+(C=C+Math.imul(Qe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0))<<13)|0;R=((v=v+Math.imul(ct,Qt)|0)+(n>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(Me,vt),n=(n=Math.imul(Me,Ve))+Math.imul($e,vt)|0,v=Math.imul($e,Ve);var be=(R+(C=C+Math.imul(ut,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ze,Qt)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863;var dt=(R+(C=Math.imul(Me,Lt))|0)+((8191&(n=(n=Math.imul(Me,Qt))+Math.imul($e,Lt)|0))<<13)|0;return R=((v=Math.imul($e,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,O[0]=Bi,O[1]=Hi,O[2]=Si,O[3]=Wi,O[4]=et,O[5]=It,O[6]=Le,O[7]=Mt,O[8]=Wt,O[9]=si,O[10]=Ai,O[11]=Ri,O[12]=$i,O[13]=nn,O[14]=Qi,O[15]=Yt,O[16]=Xt,O[17]=be,O[18]=dt,0!==R&&(O[19]=R,u.length++),u};function Y(S,i,a){return(new Q).mulp(S,i,a)}function Q(S,i){this.x=S,this.y=i}Math.imul||(B=V),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?B(this,i,a):l<63?V(this,i,a):l<1024?function W(S,i,a){a.negative=i.negative^S.negative,a.length=S.length+i.length;for(var u=0,l=0,_=0;_<a.length-1;_++){var O=l;l=0;for(var R=67108863&u,C=Math.min(_,i.length-1),n=Math.max(0,_-S.length+1);n<=C;n++){var G=(0|S.words[_-n])*(0|i.words[n]),ye=67108863&G;R=67108863&(ye=ye+R|0),l+=(O=(O=O+(G/67108864|0)|0)+(ye>>>26)|0)>>>26,O&=67108863}a.words[_]=R,u=O,O=l}return 0!==u?a.words[_]=u:a.length--,a.strip()}(this,i,a):Y(this,i,a),u},Q.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},Q.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,_=0;_<a;_++)l|=(1&i)<<a-_-1,i>>=1;return l},Q.prototype.permute=function(i,a,u,l,_,O){for(var R=0;R<O;R++)l[R]=a[i[R]],_[R]=u[i[R]]},Q.prototype.transform=function(i,a,u,l,_,O){this.permute(O,i,a,u,l,_);for(var R=1;R<_;R<<=1)for(var C=R<<1,n=Math.cos(2*Math.PI/C),v=Math.sin(2*Math.PI/C),K=0;K<_;K+=C)for(var F=n,G=v,ye=0;ye<R;ye++){var Ee=u[K+ye],pe=l[K+ye],qe=u[K+ye+R],Ce=l[K+ye+R],Se=F*qe-G*Ce;Ce=F*Ce+G*qe,u[K+ye]=Ee+(qe=Se),l[K+ye]=pe+Ce,u[K+ye+R]=Ee-qe,l[K+ye+R]=pe-Ce,ye!==C&&(Se=n*F-v*G,G=n*G+v*F,F=Se)}},Q.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,_=0;for(u=u/2|0;u;u>>>=1)_++;return 1<<_+1+l},Q.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var _=i[l];i[l]=i[u-l-1],i[u-l-1]=_,_=a[l],a[l]=-a[u-l-1],a[u-l-1]=-_}},Q.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var _=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&_,u=_<67108864?0:_/67108864|0}return i},Q.prototype.convert13b=function(i,a,u,l){for(var _=0,O=0;O<a;O++)u[2*O]=8191&(_+=0|i[O]),u[2*O+1]=8191&(_>>>=13),_>>>=13;for(O=2*a;O<l;++O)u[O]=0;g(0===_),g(0==(-8192&_))},Q.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},Q.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(l),O=this.stub(l),R=new Array(l),C=new Array(l),n=new Array(l),v=new Array(l),K=new Array(l),F=new Array(l),G=u.words;G.length=l,this.convert13b(i.words,i.length,R,l),this.convert13b(a.words,a.length,v,l),this.transform(R,O,C,n,l,_),this.transform(v,O,K,F,l,_);for(var ye=0;ye<l;ye++){var Ee=C[ye]*K[ye]-n[ye]*F[ye];n[ye]=C[ye]*F[ye]+n[ye]*K[ye],C[ye]=Ee}return this.conjugate(C,n,l),this.transform(C,n,G,O,l,_),this.conjugate(G,O,l),this.normalize13b(G,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),Y(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){g("number"==typeof i),g(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,_=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=_>>>26,this.words[u]=67108863&_}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function k(S){for(var i=new Array(S.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(S.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var _=u.sqr();l<a.length;l++,_=_.sqr())0!==a[l]&&(u=u.mul(_));return u},s.prototype.iushln=function(i){g("number"==typeof i&&i>=0);var _,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var O=0;for(_=0;_<this.length;_++){var R=this.words[_]&l;this.words[_]=(0|this.words[_])-R<<a|O,O=R>>>26-a}O&&(this.words[_]=O,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_<u;_++)this.words[_]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return g(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;g("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var _=i%26,O=Math.min((i-_)/26,this.length),R=67108863^67108863>>>_<<_,C=u;if(l-=O,l=Math.max(0,l),C){for(var n=0;n<O;n++)C.words[n]=this.words[n];C.length=O}if(0!==O)if(this.length>O)for(this.length-=O,n=0;n<this.length;n++)this.words[n]=this.words[n+O];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(0!==v||n>=l);n--){var K=0|this.words[n];this.words[n]=v<<26-_|K>>>_,v=K&R}return C&&0!==v&&(C.words[C.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return g(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return g("number"==typeof i),g(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[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},s.prototype.isubn=function(i){if(g("number"==typeof i),g(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<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var _;this._expand(i.length+u);var O,R=0;for(_=0;_<i.length;_++){O=(0|this.words[_+u])+R;var C=(0|i.words[_])*a;R=((O-=67108863&C)>>26)-(C/67108864|0),this.words[_+u]=67108863&O}for(;_<this.length-u;_++)R=(O=(0|this.words[_+u])+R)>>26,this.words[_+u]=67108863&O;if(0===R)return this.strip();for(g(-1===R),R=0,_=0;_<this.length;_++)R=(O=-(0|this.words[_])+R)>>26,this.words[_]=67108863&O;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),_=i,O=0|_.words[_.length-1];0!=(u=26-this._countBits(O))&&(_=_.ushln(u),l.iushln(u),O=0|_.words[_.length-1]);var n,C=l.length-_.length;if("mod"!==a){(n=new s(null)).length=C+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var K=l.clone()._ishlnsubmul(_,1,C);0===K.negative&&(l=K,n&&(n.words[C]=1));for(var F=C-1;F>=0;F--){var G=67108864*(0|l.words[_.length+F])+(0|l.words[_.length+F-1]);for(G=Math.min(G/O|0,67108863),l._ishlnsubmul(_,G,F);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(_,1,F),l.isZero()||(l.negative^=1);n&&(n.words[F]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return g(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(O=this.neg().divmod(i,a),"mod"!==a&&(l=O.div.neg()),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:l,mod:_}):0===this.negative&&0!==i.negative?(O=this.divmod(i.neg(),a),"mod"!==a&&(l=O.div.neg()),{div:l,mod:O.mod}):this.negative&i.negative?(O=this.neg().divmod(i.neg(),a),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:O.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,_,O},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),_=i.andln(1),O=u.cmp(l);return O<0||1===_&&0===O?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){g(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){g(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){g(0===i.negative),g(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=new s(0),R=new s(1),C=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++C;for(var n=u.clone(),v=a.clone();!a.isZero();){for(var K=0,F=1;!(a.words[0]&F)&&K<26;++K,F<<=1);if(K>0)for(a.iushrn(K);K-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(n),_.isub(v)),l.iushrn(1),_.iushrn(1);for(var G=0,ye=1;!(u.words[0]&ye)&&G<26;++G,ye<<=1);if(G>0)for(u.iushrn(G);G-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(n),R.isub(v)),O.iushrn(1),R.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(O),_.isub(R)):(u.isub(a),O.isub(l),R.isub(_))}return{a:O,b:R,gcd:u.iushln(C)}},s.prototype._invmp=function(i){g(0===i.negative),g(!i.isZero());var K,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var R=0,C=1;!(a.words[0]&C)&&R<26;++R,C<<=1);if(R>0)for(a.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(O),l.iushrn(1);for(var n=0,v=1;!(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(_)):(u.isub(a),_.isub(l))}return(K=0===a.cmpn(1)?l:_).cmpn(0)<0&&K.iadd(i),K},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=a.cmp(u);if(_<0){var O=a;a=u,u=O}else if(0===_||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){g("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var _=l,O=u;0!==_&&O<this.length;O++){var R=0|this.words[O];_=(R+=_)>>>26,this.words[O]=R&=67108863}return 0!==_&&(this.words[O]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),g(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],_=0|i.words[u];if(l!==_){l<_?a=-1:l>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var X={k256:null,p224:null,p192:null,p25519:null};function ee(S,i){this.name=S,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(S){if("string"==typeof S){var i=s._prime(S);this.m=i.p,this.prime=i}else g(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function Te(S){ce.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?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)},T(me,ee),me.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),_=0;_<l;_++)a.words[_]=i.words[_];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var O=i.words[9];for(a.words[a.length++]=O&u,_=10;_<i.length;_++){var R=0|i.words[_];i.words[_-10]=(R&u)<<4|O>>>22,O=R}i.words[_-10]=O>>>=22,i.length-=0===O&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},T(re,ee),T(ie,ee),T(se,ee),se.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,_=67108863&l;l>>>=26,i.words[u]=_,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(X[i])return X[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return X[i]=a,a},ce.prototype._verify1=function(i){g(0===i.negative,"red works only with positives"),g(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){g(0==(i.negative|a.negative),"red works only with positives"),g(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},ce.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(g(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),_=0;!l.isZero()&&0===l.andln(1);)_++,l.iushrn(1);g(!l.isZero());var O=new s(1).toRed(this),R=O.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,C).cmp(R);)n.redIAdd(R);for(var v=this.pow(n,l),K=this.pow(i,l.addn(1).iushrn(1)),F=this.pow(i,l),G=_;0!==F.cmp(O);){for(var ye=F,Ee=0;0!==ye.cmp(O);Ee++)ye=ye.redSqr();g(Ee<G);var pe=this.pow(v,new s(1).iushln(G-Ee-1));K=K.redMul(pe),v=pe.redSqr(),F=F.redMul(v),G=Ee}return K},ce.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},ce.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var _=2;_<l.length;_++)l[_]=this.mul(l[_-1],i);var O=l[0],R=0,C=0,n=a.bitLength()%26;for(0===n&&(n=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],K=n-1;K>=0;K--){var F=v>>K&1;O!==l[0]&&(O=this.sqr(O)),0!==F||0!==R?(R<<=1,R|=F,(4==++C||0===_&&0===K)&&(O=this.mul(O,l[R]),C=0,R=0)):C=0}n=26}return O},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Te(i)},T(Te,ce),Te.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Te.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Te.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},4901:We=>{"use strict";var q={single_source_shortest_paths:function(m,t,e){var g={},T={};T[t]=0;var x,h,N,d,M,L,s=q.PriorityQueue.make();for(s.push(t,0);!s.empty();)for(N in d=(x=s.pop()).cost,M=m[h=x.value]||{})M.hasOwnProperty(N)&&(L=d+M[N],(typeof T[N]>"u"||T[N]>L)&&(T[N]=L,s.push(N,L),g[N]=h));if(typeof e<"u"&&typeof T[e]>"u"){var B=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(B)}return g},extract_shortest_path_from_predecessor_list:function(m,t){for(var e=[],g=t;g;)e.push(g),g=m[g];return e.reverse(),e},find_path:function(m,t,e){var g=q.single_source_shortest_paths(m,t,e);return q.extract_shortest_path_from_predecessor_list(g,e)},PriorityQueue:{make:function(m){var g,t=q.PriorityQueue,e={};for(g in m=m||{},t)t.hasOwnProperty(g)&&(e[g]=t[g]);return e.queue=[],e.sorter=m.sorter||t.default_sorter,e},default_sorter:function(m,t){return m.cost-t.cost},push:function(m,t){this.queue.push({value:m,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};We.exports=q},7715:(We,q,m)=>{"use strict";var t=q;t.version=m(8597).i8,t.utils=m(1970),t.rand=m(7950),t.curve=m(6270),t.curves=m(2916),t.ec=m(7626),t.eddsa=m(1885)},7902:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),g=e.getNAF,T=e.getJSF,s=e.assert;function x(N,d){this.type=N,this.p=new t(d.p,16),this.red=d.prime?t.red(d.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=d.n&&new t(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var M=this.n&&this.p.div(this.n);!M||M.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(N,d){this.curve=N,this.type=d,this.precomputed=null}We.exports=x,x.prototype.point=function(){throw new Error("Not implemented")},x.prototype.validate=function(){throw new Error("Not implemented")},x.prototype._fixedNafMul=function(d,M){s(d.precomputed);var w=d._getDoubles(),L=g(M,1,this._bitLength),k=(1<<w.step+1)-(w.step%2==0?2:1);k/=3;var B,W,V=[];for(B=0;B<L.length;B+=w.step){W=0;for(var Y=B+w.step-1;Y>=B;Y--)W=(W<<1)+L[Y];V.push(W)}for(var Q=this.jpoint(null,null,null),X=this.jpoint(null,null,null),ee=k;ee>0;ee--){for(B=0;B<V.length;B++)(W=V[B])===ee?X=X.mixedAdd(w.points[B]):W===-ee&&(X=X.mixedAdd(w.points[B].neg()));Q=Q.add(X)}return Q.toP()},x.prototype._wnafMul=function(d,M){for(var w=4,L=d._getNAFPoints(w),k=L.points,V=g(M,w=L.wnd,this._bitLength),B=this.jpoint(null,null,null),W=V.length-1;W>=0;W--){for(var Y=0;W>=0&&0===V[W];W--)Y++;if(W>=0&&Y++,B=B.dblp(Y),W<0)break;var Q=V[W];s(0!==Q),B="affine"===d.type?B.mixedAdd(Q>0?k[Q-1>>1]:k[-Q-1>>1].neg()):B.add(Q>0?k[Q-1>>1]:k[-Q-1>>1].neg())}return"affine"===d.type?B.toP():B},x.prototype._wnafMulAdd=function(d,M,w,L,k){var Q,X,ee,V=this._wnafT1,B=this._wnafT2,W=this._wnafT3,Y=0;for(Q=0;Q<L;Q++){var me=(ee=M[Q])._getNAFPoints(d);V[Q]=me.wnd,B[Q]=me.points}for(Q=L-1;Q>=1;Q-=2){var re=Q-1,ie=Q;if(1===V[re]&&1===V[ie]){var se=[M[re],null,null,M[ie]];0===M[re].y.cmp(M[ie].y)?(se[1]=M[re].add(M[ie]),se[2]=M[re].toJ().mixedAdd(M[ie].neg())):0===M[re].y.cmp(M[ie].y.redNeg())?(se[1]=M[re].toJ().mixedAdd(M[ie]),se[2]=M[re].add(M[ie].neg())):(se[1]=M[re].toJ().mixedAdd(M[ie]),se[2]=M[re].toJ().mixedAdd(M[ie].neg()));var ce=[-3,-1,-5,-7,0,7,5,1,3],Te=T(w[re],w[ie]);for(Y=Math.max(Te[0].length,Y),W[re]=new Array(Y),W[ie]=new Array(Y),X=0;X<Y;X++)W[re][X]=ce[3*(1+(0|Te[0][X]))+(1+(0|Te[1][X]))],W[ie][X]=0,B[re]=se}else W[re]=g(w[re],V[re],this._bitLength),W[ie]=g(w[ie],V[ie],this._bitLength),Y=Math.max(W[re].length,Y),Y=Math.max(W[ie].length,Y)}var a=this.jpoint(null,null,null),u=this._wnafT4;for(Q=Y;Q>=0;Q--){for(var l=0;Q>=0;){var _=!0;for(X=0;X<L;X++)u[X]=0|W[X][Q],0!==u[X]&&(_=!1);if(!_)break;l++,Q--}if(Q>=0&&l++,a=a.dblp(l),Q<0)break;for(X=0;X<L;X++){var O=u[X];0!==O&&(O>0?ee=B[X][O-1>>1]:O<0&&(ee=B[X][-O-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(Q=0;Q<L;Q++)B[Q]=null;return k?a:a.toP()},x.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},x.prototype.decodePoint=function(d,M){d=e.toArray(d,M);var w=this.p.byteLength();if((4===d[0]||6===d[0]||7===d[0])&&d.length-1==2*w)return 6===d[0]?s(d[d.length-1]%2==0):7===d[0]&&s(d[d.length-1]%2==1),this.point(d.slice(1,1+w),d.slice(1+w,1+2*w));if((2===d[0]||3===d[0])&&d.length-1===w)return this.pointFromX(d.slice(1,1+w),3===d[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(d){return this.encode(d,!0)},h.prototype._encode=function(d){var M=this.curve.p.byteLength(),w=this.getX().toArray("be",M);return d?[this.getY().isEven()?2:3].concat(w):[4].concat(w,this.getY().toArray("be",M))},h.prototype.encode=function(d,M){return e.encode(this._encode(M),d)},h.prototype.precompute=function(d){if(this.precomputed)return this;var M={doubles:null,naf:null,beta:null};return M.naf=this._getNAFPoints(8),M.doubles=this._getDoubles(4,d),M.beta=this._getBeta(),this.precomputed=M,this},h.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var M=this.precomputed.doubles;return!!M&&M.points.length>=Math.ceil((d.bitLength()+1)/M.step)},h.prototype._getDoubles=function(d,M){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var w=[this],L=this,k=0;k<M;k+=d){for(var V=0;V<d;V++)L=L.dbl();w.push(L)}return{step:d,points:w}},h.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var M=[this],w=(1<<d)-1,L=1===w?null:this.dbl(),k=1;k<w;k++)M[k]=M[k-1].add(L);return{wnd:d,points:M}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(d){for(var M=this,w=0;w<d;w++)M=M.dbl();return M}},3835:(We,q,m)=>{"use strict";var t=m(1970),e=m(7433),g=m(3894),T=m(7902),s=t.assert;function x(N){this.twisted=1!=(0|N.a),this.mOneA=this.twisted&&-1==(0|N.a),this.extended=this.mOneA,T.call(this,"edwards",N),this.a=new e(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|N.c)}function h(N,d,M,w,L){T.BasePoint.call(this,N,"projective"),null===d&&null===M&&null===w?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(d,16),this.y=new e(M,16),this.z=w?new e(w,16):this.curve.one,this.t=L&&new e(L,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()))))}g(x,T),We.exports=x,x.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},x.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},x.prototype.jpoint=function(d,M,w,L){return this.point(d,M,w,L)},x.prototype.pointFromX=function(d,M){(d=new e(d,16)).red||(d=d.toRed(this.red));var w=d.redSqr(),L=this.c2.redSub(this.a.redMul(w)),k=this.one.redSub(this.c2.redMul(this.d).redMul(w)),V=L.redMul(k.redInvm()),B=V.redSqrt();if(0!==B.redSqr().redSub(V).cmp(this.zero))throw new Error("invalid point");var W=B.fromRed().isOdd();return(M&&!W||!M&&W)&&(B=B.redNeg()),this.point(d,B)},x.prototype.pointFromY=function(d,M){(d=new e(d,16)).red||(d=d.toRed(this.red));var w=d.redSqr(),L=w.redSub(this.c2),k=w.redMul(this.d).redMul(this.c2).redSub(this.a),V=L.redMul(k.redInvm());if(0===V.cmp(this.zero)){if(M)throw new Error("invalid point");return this.point(this.zero,d)}var B=V.redSqrt();if(0!==B.redSqr().redSub(V).cmp(this.zero))throw new Error("invalid point");return B.fromRed().isOdd()!==M&&(B=B.redNeg()),this.point(B,d)},x.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var M=d.x.redSqr(),w=d.y.redSqr(),L=M.redMul(this.a).redAdd(w),k=this.c2.redMul(this.one.redAdd(this.d.redMul(M).redMul(w)));return 0===L.cmp(k)},g(h,T.BasePoint),x.prototype.pointFromJSON=function(d){return h.fromJSON(this,d)},x.prototype.point=function(d,M,w,L){return new h(this,d,M,w,L)},h.fromJSON=function(d,M){return new h(d,M[0],M[1],M[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var d=this.x.redSqr(),M=this.y.redSqr(),w=this.z.redSqr();w=w.redIAdd(w);var L=this.curve._mulA(d),k=this.x.redAdd(this.y).redSqr().redISub(d).redISub(M),V=L.redAdd(M),B=V.redSub(w),W=L.redSub(M),Y=k.redMul(B),Q=V.redMul(W),X=k.redMul(W),ee=B.redMul(V);return this.curve.point(Y,Q,ee,X)},h.prototype._projDbl=function(){var L,k,V,B,W,Y,d=this.x.redAdd(this.y).redSqr(),M=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var Q=(B=this.curve._mulA(M)).redAdd(w);this.zOne?(L=d.redSub(M).redSub(w).redMul(Q.redSub(this.curve.two)),k=Q.redMul(B.redSub(w)),V=Q.redSqr().redSub(Q).redSub(Q)):(W=this.z.redSqr(),Y=Q.redSub(W).redISub(W),L=d.redSub(M).redISub(w).redMul(Y),k=Q.redMul(B.redSub(w)),V=Q.redMul(Y))}else B=M.redAdd(w),W=this.curve._mulC(this.z).redSqr(),Y=B.redSub(W).redSub(W),L=this.curve._mulC(d.redISub(B)).redMul(Y),k=this.curve._mulC(B).redMul(M.redISub(w)),V=B.redMul(Y);return this.curve.point(L,k,V)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(d){var M=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),w=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),L=this.t.redMul(this.curve.dd).redMul(d.t),k=this.z.redMul(d.z.redAdd(d.z)),V=w.redSub(M),B=k.redSub(L),W=k.redAdd(L),Y=w.redAdd(M),Q=V.redMul(B),X=W.redMul(Y),ee=V.redMul(Y),me=B.redMul(W);return this.curve.point(Q,X,me,ee)},h.prototype._projAdd=function(d){var X,ee,M=this.z.redMul(d.z),w=M.redSqr(),L=this.x.redMul(d.x),k=this.y.redMul(d.y),V=this.curve.d.redMul(L).redMul(k),B=w.redSub(V),W=w.redAdd(V),Y=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(L).redISub(k),Q=M.redMul(B).redMul(Y);return this.curve.twisted?(X=M.redMul(W).redMul(k.redSub(this.curve._mulA(L))),ee=B.redMul(W)):(X=M.redMul(W).redMul(k.redSub(L)),ee=this.curve._mulC(B).redMul(W)),this.curve.point(Q,X,ee)},h.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},h.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},h.prototype.mulAdd=function(d,M,w){return this.curve._wnafMulAdd(1,[this,M],[d,w],2,!1)},h.prototype.jmulAdd=function(d,M,w){return this.curve._wnafMulAdd(1,[this,M],[d,w],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},h.prototype.eqXToP=function(d){var M=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(M))return!0;for(var w=d.clone(),L=this.curve.redN.redMul(this.z);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(M.redIAdd(L),0===this.x.cmp(M))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},6270:(We,q,m)=>{"use strict";var t=q;t.base=m(7902),t.short=m(1781),t.mont=m(7064),t.edwards=m(3835)},7064:(We,q,m)=>{"use strict";var t=m(7433),e=m(3894),g=m(7902),T=m(1970);function s(h){g.call(this,"mont",h),this.a=new t(h.a,16).toRed(this.red),this.b=new t(h.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function x(h,N,d){g.BasePoint.call(this,h,"projective"),null===N&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(N,16),this.z=new t(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(s,g),We.exports=s,s.prototype.validate=function(N){var d=N.normalize().x,M=d.redSqr(),w=M.redMul(d).redAdd(M.redMul(this.a)).redAdd(d);return 0===w.redSqrt().redSqr().cmp(w)},e(x,g.BasePoint),s.prototype.decodePoint=function(N,d){return this.point(T.toArray(N,d),1)},s.prototype.point=function(N,d){return new x(this,N,d)},s.prototype.pointFromJSON=function(N){return x.fromJSON(this,N)},x.prototype.precompute=function(){},x.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},x.fromJSON=function(N,d){return new x(N,d[0],d[1]||N.one)},x.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},x.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},x.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),L=d.redSub(w),k=d.redMul(w),V=L.redMul(w.redAdd(this.curve.a24.redMul(L)));return this.curve.point(k,V)},x.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},x.prototype.diffAdd=function(N,d){var M=this.x.redAdd(this.z),w=this.x.redSub(this.z),L=N.x.redAdd(N.z),V=N.x.redSub(N.z).redMul(M),B=L.redMul(w),W=d.z.redMul(V.redAdd(B).redSqr()),Y=d.x.redMul(V.redISub(B).redSqr());return this.curve.point(W,Y)},x.prototype.mul=function(N){for(var d=N.clone(),M=this,w=this.curve.point(null,null),k=[];0!==d.cmpn(0);d.iushrn(1))k.push(d.andln(1));for(var V=k.length-1;V>=0;V--)0===k[V]?(M=M.diffAdd(w,this),w=w.dbl()):(w=M.diffAdd(w,this),M=M.dbl());return w},x.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},x.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},x.prototype.eq=function(N){return 0===this.getX().cmp(N.getX())},x.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},x.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(We,q,m)=>{"use strict";var t=m(1970),e=m(7433),g=m(3894),T=m(7902),s=t.assert;function x(d){T.call(this,"short",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(d,M,w,L){T.BasePoint.call(this,d,"affine"),null===M&&null===w?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(M,16),this.y=new e(w,16),L&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function N(d,M,w,L){T.BasePoint.call(this,d,"jacobian"),null===M&&null===w&&null===L?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(M,16),this.y=new e(w,16),this.z=new e(L,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}g(x,T),We.exports=x,x.prototype._getEndomorphism=function(M){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var w,L;if(M.beta)w=new e(M.beta,16).toRed(this.red);else{var k=this._getEndoRoots(this.p);w=(w=k[0].cmp(k[1])<0?k[0]:k[1]).toRed(this.red)}if(M.lambda)L=new e(M.lambda,16);else{var V=this._getEndoRoots(this.n);0===this.g.mul(V[0]).x.cmp(this.g.x.redMul(w))?L=V[0]:s(0===this.g.mul(L=V[1]).x.cmp(this.g.x.redMul(w)))}return{beta:w,lambda:L,basis:M.basis?M.basis.map(function(W){return{a:new e(W.a,16),b:new e(W.b,16)}}):this._getEndoBasis(L)}}},x.prototype._getEndoRoots=function(M){var w=M===this.p?this.red:e.mont(M),L=new e(2).toRed(w).redInvm(),k=L.redNeg(),V=new e(3).toRed(w).redNeg().redSqrt().redMul(L);return[k.redAdd(V).fromRed(),k.redSub(V).fromRed()]},x.prototype._getEndoBasis=function(M){for(var Q,X,ee,me,re,ie,se,Te,S,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),L=M,k=this.n.clone(),V=new e(1),B=new e(0),W=new e(0),Y=new e(1),ce=0;0!==L.cmpn(0);){var i=k.div(L);Te=k.sub(i.mul(L)),S=W.sub(i.mul(V));var a=Y.sub(i.mul(B));if(!ee&&Te.cmp(w)<0)Q=se.neg(),X=V,ee=Te.neg(),me=S;else if(ee&&2==++ce)break;se=Te,k=L,L=Te,W=V,V=S,Y=B,B=a}re=Te.neg(),ie=S;var u=ee.sqr().add(me.sqr());return re.sqr().add(ie.sqr()).cmp(u)>=0&&(re=Q,ie=X),ee.negative&&(ee=ee.neg(),me=me.neg()),re.negative&&(re=re.neg(),ie=ie.neg()),[{a:ee,b:me},{a:re,b:ie}]},x.prototype._endoSplit=function(M){var w=this.endo.basis,L=w[0],k=w[1],V=k.b.mul(M).divRound(this.n),B=L.b.neg().mul(M).divRound(this.n),W=V.mul(L.a),Y=B.mul(k.a),Q=V.mul(L.b),X=B.mul(k.b);return{k1:M.sub(W).sub(Y),k2:Q.add(X).neg()}},x.prototype.pointFromX=function(M,w){(M=new e(M,16)).red||(M=M.toRed(this.red));var L=M.redSqr().redMul(M).redIAdd(M.redMul(this.a)).redIAdd(this.b),k=L.redSqrt();if(0!==k.redSqr().redSub(L).cmp(this.zero))throw new Error("invalid point");var V=k.fromRed().isOdd();return(w&&!V||!w&&V)&&(k=k.redNeg()),this.point(M,k)},x.prototype.validate=function(M){if(M.inf)return!0;var w=M.x,L=M.y,k=this.a.redMul(w),V=w.redSqr().redMul(w).redIAdd(k).redIAdd(this.b);return 0===L.redSqr().redISub(V).cmpn(0)},x.prototype._endoWnafMulAdd=function(M,w,L){for(var k=this._endoWnafT1,V=this._endoWnafT2,B=0;B<M.length;B++){var W=this._endoSplit(w[B]),Y=M[B],Q=Y._getBeta();W.k1.negative&&(W.k1.ineg(),Y=Y.neg(!0)),W.k2.negative&&(W.k2.ineg(),Q=Q.neg(!0)),k[2*B]=Y,k[2*B+1]=Q,V[2*B]=W.k1,V[2*B+1]=W.k2}for(var X=this._wnafMulAdd(1,k,V,2*B,L),ee=0;ee<2*B;ee++)k[ee]=null,V[ee]=null;return X},g(h,T.BasePoint),x.prototype.point=function(M,w,L){return new h(this,M,w,L)},x.prototype.pointFromJSON=function(M,w){return h.fromJSON(this,M,w)},h.prototype._getBeta=function(){if(this.curve.endo){var M=this.precomputed;if(M&&M.beta)return M.beta;var w=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(M){var L=this.curve,k=function(V){return L.point(V.x.redMul(L.endo.beta),V.y)};M.beta=w,w.precomputed={beta:null,naf:M.naf&&{wnd:M.naf.wnd,points:M.naf.points.map(k)},doubles:M.doubles&&{step:M.doubles.step,points:M.doubles.points.map(k)}}}return w}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(M,w,L){"string"==typeof w&&(w=JSON.parse(w));var k=M.point(w[0],w[1],L);if(!w[2])return k;function V(W){return M.point(W[0],W[1],L)}var B=w[2];return k.precomputed={beta:null,doubles:B.doubles&&{step:B.doubles.step,points:[k].concat(B.doubles.points.map(V))},naf:B.naf&&{wnd:B.naf.wnd,points:[k].concat(B.naf.points.map(V))}},k},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(M){if(this.inf)return M;if(M.inf)return this;if(this.eq(M))return this.dbl();if(this.neg().eq(M))return this.curve.point(null,null);if(0===this.x.cmp(M.x))return this.curve.point(null,null);var w=this.y.redSub(M.y);0!==w.cmpn(0)&&(w=w.redMul(this.x.redSub(M.x).redInvm()));var L=w.redSqr().redISub(this.x).redISub(M.x),k=w.redMul(this.x.redSub(L)).redISub(this.y);return this.curve.point(L,k)},h.prototype.dbl=function(){if(this.inf)return this;var M=this.y.redAdd(this.y);if(0===M.cmpn(0))return this.curve.point(null,null);var w=this.curve.a,L=this.x.redSqr(),k=M.redInvm(),V=L.redAdd(L).redIAdd(L).redIAdd(w).redMul(k),B=V.redSqr().redISub(this.x.redAdd(this.x)),W=V.redMul(this.x.redSub(B)).redISub(this.y);return this.curve.point(B,W)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(M){return M=new e(M,16),this.isInfinity()?this:this._hasDoubles(M)?this.curve._fixedNafMul(this,M):this.curve.endo?this.curve._endoWnafMulAdd([this],[M]):this.curve._wnafMul(this,M)},h.prototype.mulAdd=function(M,w,L){var k=[this,w],V=[M,L];return this.curve.endo?this.curve._endoWnafMulAdd(k,V):this.curve._wnafMulAdd(1,k,V,2)},h.prototype.jmulAdd=function(M,w,L){var k=[this,w],V=[M,L];return this.curve.endo?this.curve._endoWnafMulAdd(k,V,!0):this.curve._wnafMulAdd(1,k,V,2,!0)},h.prototype.eq=function(M){return this===M||this.inf===M.inf&&(this.inf||0===this.x.cmp(M.x)&&0===this.y.cmp(M.y))},h.prototype.neg=function(M){if(this.inf)return this;var w=this.curve.point(this.x,this.y.redNeg());if(M&&this.precomputed){var L=this.precomputed,k=function(V){return V.neg()};w.precomputed={naf:L.naf&&{wnd:L.naf.wnd,points:L.naf.points.map(k)},doubles:L.doubles&&{step:L.doubles.step,points:L.doubles.points.map(k)}}}return w},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(N,T.BasePoint),x.prototype.jpoint=function(M,w,L){return new N(this,M,w,L)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var M=this.z.redInvm(),w=M.redSqr(),L=this.x.redMul(w),k=this.y.redMul(w).redMul(M);return this.curve.point(L,k)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(M){if(this.isInfinity())return M;if(M.isInfinity())return this;var w=M.z.redSqr(),L=this.z.redSqr(),k=this.x.redMul(w),V=M.x.redMul(L),B=this.y.redMul(w.redMul(M.z)),W=M.y.redMul(L.redMul(this.z)),Y=k.redSub(V),Q=B.redSub(W);if(0===Y.cmpn(0))return 0!==Q.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var X=Y.redSqr(),ee=X.redMul(Y),me=k.redMul(X),re=Q.redSqr().redIAdd(ee).redISub(me).redISub(me),ie=Q.redMul(me.redISub(re)).redISub(B.redMul(ee)),se=this.z.redMul(M.z).redMul(Y);return this.curve.jpoint(re,ie,se)},N.prototype.mixedAdd=function(M){if(this.isInfinity())return M.toJ();if(M.isInfinity())return this;var w=this.z.redSqr(),L=this.x,k=M.x.redMul(w),V=this.y,B=M.y.redMul(w).redMul(this.z),W=L.redSub(k),Y=V.redSub(B);if(0===W.cmpn(0))return 0!==Y.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=W.redSqr(),X=Q.redMul(W),ee=L.redMul(Q),me=Y.redSqr().redIAdd(X).redISub(ee).redISub(ee),re=Y.redMul(ee.redISub(me)).redISub(V.redMul(X)),ie=this.z.redMul(W);return this.curve.jpoint(me,re,ie)},N.prototype.dblp=function(M){if(0===M)return this;if(this.isInfinity())return this;if(!M)return this.dbl();var w;if(this.curve.zeroA||this.curve.threeA){var L=this;for(w=0;w<M;w++)L=L.dbl();return L}var k=this.curve.a,V=this.curve.tinv,B=this.x,W=this.y,Y=this.z,Q=Y.redSqr().redSqr(),X=W.redAdd(W);for(w=0;w<M;w++){var ee=B.redSqr(),me=X.redSqr(),re=me.redSqr(),ie=ee.redAdd(ee).redIAdd(ee).redIAdd(k.redMul(Q)),se=B.redMul(me),ce=ie.redSqr().redISub(se.redAdd(se)),Te=se.redISub(ce),S=ie.redMul(Te);S=S.redIAdd(S).redISub(re);var i=X.redMul(Y);w+1<M&&(Q=Q.redMul(re)),B=ce,Y=i,X=S}return this.curve.jpoint(B,X.redMul(V),Y)},N.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},N.prototype._zeroDbl=function(){var M,w,L;if(this.zOne){var k=this.x.redSqr(),V=this.y.redSqr(),B=V.redSqr(),W=this.x.redAdd(V).redSqr().redISub(k).redISub(B);W=W.redIAdd(W);var Y=k.redAdd(k).redIAdd(k),Q=Y.redSqr().redISub(W).redISub(W),X=B.redIAdd(B);X=(X=X.redIAdd(X)).redIAdd(X),M=Q,w=Y.redMul(W.redISub(Q)).redISub(X),L=this.y.redAdd(this.y)}else{var ee=this.x.redSqr(),me=this.y.redSqr(),re=me.redSqr(),ie=this.x.redAdd(me).redSqr().redISub(ee).redISub(re);ie=ie.redIAdd(ie);var se=ee.redAdd(ee).redIAdd(ee),ce=se.redSqr(),Te=re.redIAdd(re);Te=(Te=Te.redIAdd(Te)).redIAdd(Te),M=ce.redISub(ie).redISub(ie),w=se.redMul(ie.redISub(M)).redISub(Te),L=(L=this.y.redMul(this.z)).redIAdd(L)}return this.curve.jpoint(M,w,L)},N.prototype._threeDbl=function(){var M,w,L;if(this.zOne){var k=this.x.redSqr(),V=this.y.redSqr(),B=V.redSqr(),W=this.x.redAdd(V).redSqr().redISub(k).redISub(B);W=W.redIAdd(W);var Y=k.redAdd(k).redIAdd(k).redIAdd(this.curve.a),Q=Y.redSqr().redISub(W).redISub(W);M=Q;var X=B.redIAdd(B);X=(X=X.redIAdd(X)).redIAdd(X),w=Y.redMul(W.redISub(Q)).redISub(X),L=this.y.redAdd(this.y)}else{var ee=this.z.redSqr(),me=this.y.redSqr(),re=this.x.redMul(me),ie=this.x.redSub(ee).redMul(this.x.redAdd(ee));ie=ie.redAdd(ie).redIAdd(ie);var se=re.redIAdd(re),ce=(se=se.redIAdd(se)).redAdd(se);M=ie.redSqr().redISub(ce),L=this.y.redAdd(this.z).redSqr().redISub(me).redISub(ee);var Te=me.redSqr();Te=(Te=(Te=Te.redIAdd(Te)).redIAdd(Te)).redIAdd(Te),w=ie.redMul(se.redISub(M)).redISub(Te)}return this.curve.jpoint(M,w,L)},N.prototype._dbl=function(){var M=this.curve.a,w=this.x,L=this.y,k=this.z,V=k.redSqr().redSqr(),B=w.redSqr(),W=L.redSqr(),Y=B.redAdd(B).redIAdd(B).redIAdd(M.redMul(V)),Q=w.redAdd(w),X=(Q=Q.redIAdd(Q)).redMul(W),ee=Y.redSqr().redISub(X.redAdd(X)),me=X.redISub(ee),re=W.redSqr();re=(re=(re=re.redIAdd(re)).redIAdd(re)).redIAdd(re);var ie=Y.redMul(me).redISub(re),se=L.redAdd(L).redMul(k);return this.curve.jpoint(ee,ie,se)},N.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var M=this.x.redSqr(),w=this.y.redSqr(),L=this.z.redSqr(),k=w.redSqr(),V=M.redAdd(M).redIAdd(M),B=V.redSqr(),W=this.x.redAdd(w).redSqr().redISub(M).redISub(k),Y=(W=(W=(W=W.redIAdd(W)).redAdd(W).redIAdd(W)).redISub(B)).redSqr(),Q=k.redIAdd(k);Q=(Q=(Q=Q.redIAdd(Q)).redIAdd(Q)).redIAdd(Q);var X=V.redIAdd(W).redSqr().redISub(B).redISub(Y).redISub(Q),ee=w.redMul(X);ee=(ee=ee.redIAdd(ee)).redIAdd(ee);var me=this.x.redMul(Y).redISub(ee);me=(me=me.redIAdd(me)).redIAdd(me);var re=this.y.redMul(X.redMul(Q.redISub(X)).redISub(W.redMul(Y)));re=(re=(re=re.redIAdd(re)).redIAdd(re)).redIAdd(re);var ie=this.z.redAdd(W).redSqr().redISub(L).redISub(Y);return this.curve.jpoint(me,re,ie)},N.prototype.mul=function(M,w){return M=new e(M,w),this.curve._wnafMul(this,M)},N.prototype.eq=function(M){if("affine"===M.type)return this.eq(M.toJ());if(this===M)return!0;var w=this.z.redSqr(),L=M.z.redSqr();if(0!==this.x.redMul(L).redISub(M.x.redMul(w)).cmpn(0))return!1;var k=w.redMul(this.z),V=L.redMul(M.z);return 0===this.y.redMul(V).redISub(M.y.redMul(k)).cmpn(0)},N.prototype.eqXToP=function(M){var w=this.z.redSqr(),L=M.toRed(this.curve.red).redMul(w);if(0===this.x.cmp(L))return!0;for(var k=M.clone(),V=this.curve.redN.redMul(w);;){if(k.iadd(this.curve.n),k.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(V),0===this.x.cmp(L))return!0}},N.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},N.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(We,q,m)=>{"use strict";var N,t=q,e=m(7084),g=m(6270),s=m(1970).assert;function x(d){this.curve="short"===d.type?new g.short(d):"edwards"===d.type?new g.edwards(d):new g.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(d,M){Object.defineProperty(t,d,{configurable:!0,enumerable:!0,get:function(){var w=new x(M);return Object.defineProperty(t,d,{configurable:!0,enumerable:!0,value:w}),w}})}t.PresetCurve=x,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{N=m(5150)}catch{N=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",N]})},7626:(We,q,m)=>{"use strict";var t=m(7433),e=m(2438),g=m(1970),T=m(2916),s=m(7950),x=g.assert,h=m(1259),N=m(5957);function d(M){if(!(this instanceof d))return new d(M);"string"==typeof M&&(x(Object.prototype.hasOwnProperty.call(T,M),"Unknown curve "+M),M=T[M]),M instanceof T.PresetCurve&&(M={curve:M}),this.curve=M.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=M.curve.g,this.g.precompute(M.curve.n.bitLength()+1),this.hash=M.hash||M.curve.hash}We.exports=d,d.prototype.keyPair=function(w){return new h(this,w)},d.prototype.keyFromPrivate=function(w,L){return h.fromPrivate(this,w,L)},d.prototype.keyFromPublic=function(w,L){return h.fromPublic(this,w,L)},d.prototype.genKeyPair=function(w){w||(w={});for(var L=new e({hash:this.hash,pers:w.pers,persEnc:w.persEnc||"utf8",entropy:w.entropy||s(this.hash.hmacStrength),entropyEnc:w.entropy&&w.entropyEnc||"utf8",nonce:this.n.toArray()}),k=this.n.byteLength(),V=this.n.sub(new t(2));;){var B=new t(L.generate(k));if(!(B.cmp(V)>0))return B.iaddn(1),this.keyFromPrivate(B)}},d.prototype._truncateToN=function(w,L){var k=8*w.byteLength()-this.n.bitLength();return k>0&&(w=w.ushrn(k)),!L&&w.cmp(this.n)>=0?w.sub(this.n):w},d.prototype.sign=function(w,L,k,V){"object"==typeof k&&(V=k,k=null),V||(V={}),L=this.keyFromPrivate(L,k),w=this._truncateToN(new t(w,16));for(var B=this.n.byteLength(),W=L.getPrivate().toArray("be",B),Y=w.toArray("be",B),Q=new e({hash:this.hash,entropy:W,nonce:Y,pers:V.pers,persEnc:V.persEnc||"utf8"}),X=this.n.sub(new t(1)),ee=0;;ee++){var me=V.k?V.k(ee):new t(Q.generate(this.n.byteLength()));if(!((me=this._truncateToN(me,!0)).cmpn(1)<=0||me.cmp(X)>=0)){var re=this.g.mul(me);if(!re.isInfinity()){var ie=re.getX(),se=ie.umod(this.n);if(0!==se.cmpn(0)){var ce=me.invm(this.n).mul(se.mul(L.getPrivate()).iadd(w));if(0!==(ce=ce.umod(this.n)).cmpn(0)){var Te=(re.getY().isOdd()?1:0)|(0!==ie.cmp(se)?2:0);return V.canonical&&ce.cmp(this.nh)>0&&(ce=this.n.sub(ce),Te^=1),new N({r:se,s:ce,recoveryParam:Te})}}}}}},d.prototype.verify=function(w,L,k,V){w=this._truncateToN(new t(w,16)),k=this.keyFromPublic(k,V);var B=(L=new N(L,"hex")).r,W=L.s;if(B.cmpn(1)<0||B.cmp(this.n)>=0||W.cmpn(1)<0||W.cmp(this.n)>=0)return!1;var ee,Y=W.invm(this.n),Q=Y.mul(w).umod(this.n),X=Y.mul(B).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(Q,k.getPublic(),X)).isInfinity()&&ee.eqXToP(B):!(ee=this.g.mulAdd(Q,k.getPublic(),X)).isInfinity()&&0===ee.getX().umod(this.n).cmp(B)},d.prototype.recoverPubKey=function(M,w,L,k){x((3&L)===L,"The recovery param is more than two bits"),w=new N(w,k);var V=this.n,B=new t(M),W=w.r,Y=w.s,Q=1&L,X=L>>1;if(W.cmp(this.curve.p.umod(this.curve.n))>=0&&X)throw new Error("Unable to find sencond key candinate");W=this.curve.pointFromX(X?W.add(this.curve.n):W,Q);var ee=w.r.invm(V),me=V.sub(B).mul(ee).umod(V),re=Y.mul(ee).umod(V);return this.g.mulAdd(me,W,re)},d.prototype.getKeyRecoveryParam=function(M,w,L,k){if(null!==(w=new N(w,k)).recoveryParam)return w.recoveryParam;for(var V=0;V<4;V++){var B;try{B=this.recoverPubKey(M,w,V)}catch{continue}if(B.eq(L))return V}throw new Error("Unable to find valid recovery factor")}},1259:(We,q,m)=>{"use strict";var t=m(7433),g=m(1970).assert;function T(s,x){this.ec=s,this.priv=null,this.pub=null,x.priv&&this._importPrivate(x.priv,x.privEnc),x.pub&&this._importPublic(x.pub,x.pubEnc)}We.exports=T,T.fromPublic=function(x,h,N){return h instanceof T?h:new T(x,{pub:h,pubEnc:N})},T.fromPrivate=function(x,h,N){return h instanceof T?h:new T(x,{priv:h,privEnc:N})},T.prototype.validate=function(){var x=this.getPublic();return x.isInfinity()?{result:!1,reason:"Invalid public key"}:x.validate()?x.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"}},T.prototype.getPublic=function(x,h){return"string"==typeof x&&(h=x,x=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),h?this.pub.encode(h,x):this.pub},T.prototype.getPrivate=function(x){return"hex"===x?this.priv.toString(16,2):this.priv},T.prototype._importPrivate=function(x,h){this.priv=new t(x,h||16),this.priv=this.priv.umod(this.ec.curve.n)},T.prototype._importPublic=function(x,h){if(x.x||x.y)return"mont"===this.ec.curve.type?g(x.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&g(x.x&&x.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(x.x,x.y));this.pub=this.ec.curve.decodePoint(x,h)},T.prototype.derive=function(x){return x.validate()||g(x.validate(),"public point not validated"),x.mul(this.priv).getX()},T.prototype.sign=function(x,h,N){return this.ec.sign(x,this,h,N)},T.prototype.verify=function(x,h){return this.ec.verify(x,h,this)},T.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),g=e.assert;function T(d,M){if(d instanceof T)return d;this._importDER(d,M)||(g(d.r&&d.s,"Signature without r or s"),this.r=new t(d.r,16),this.s=new t(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function s(){this.place=0}function x(d,M){var w=d[M.place++];if(!(128&w))return w;var L=15&w;if(0===L||L>4)return!1;for(var k=0,V=0,B=M.place;V<L;V++,B++)k<<=8,k|=d[B],k>>>=0;return!(k<=127)&&(M.place=B,k)}function h(d){for(var M=0,w=d.length-1;!d[M]&&!(128&d[M+1])&&M<w;)M++;return 0===M?d:d.slice(M)}function N(d,M){if(M<128)d.push(M);else{var w=1+(Math.log(M)/Math.LN2>>>3);for(d.push(128|w);--w;)d.push(M>>>(w<<3)&255);d.push(M)}}We.exports=T,T.prototype._importDER=function(M,w){M=e.toArray(M,w);var L=new s;if(48!==M[L.place++])return!1;var k=x(M,L);if(!1===k||k+L.place!==M.length||2!==M[L.place++])return!1;var V=x(M,L);if(!1===V)return!1;var B=M.slice(L.place,V+L.place);if(L.place+=V,2!==M[L.place++])return!1;var W=x(M,L);if(!1===W||M.length!==W+L.place)return!1;var Y=M.slice(L.place,W+L.place);if(0===B[0]){if(!(128&B[1]))return!1;B=B.slice(1)}if(0===Y[0]){if(!(128&Y[1]))return!1;Y=Y.slice(1)}return this.r=new t(B),this.s=new t(Y),this.recoveryParam=null,!0},T.prototype.toDER=function(M){var w=this.r.toArray(),L=this.s.toArray();for(128&w[0]&&(w=[0].concat(w)),128&L[0]&&(L=[0].concat(L)),w=h(w),L=h(L);!(L[0]||128&L[1]);)L=L.slice(1);var k=[2];N(k,w.length),(k=k.concat(w)).push(2),N(k,L.length);var V=k.concat(L),B=[48];return N(B,V.length),B=B.concat(V),e.encode(B,M)}},1885:(We,q,m)=>{"use strict";var t=m(7084),e=m(2916),g=m(1970),T=g.assert,s=g.parseBytes,x=m(7535),h=m(8241);function N(d){if(T("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof N))return new N(d);this.curve=d=e[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=t.sha512}We.exports=N,N.prototype.sign=function(M,w){M=s(M);var L=this.keyFromSecret(w),k=this.hashInt(L.messagePrefix(),M),V=this.g.mul(k),B=this.encodePoint(V),W=this.hashInt(B,L.pubBytes(),M).mul(L.priv()),Y=k.add(W).umod(this.curve.n);return this.makeSignature({R:V,S:Y,Rencoded:B})},N.prototype.verify=function(M,w,L){M=s(M),w=this.makeSignature(w);var k=this.keyFromPublic(L),V=this.hashInt(w.Rencoded(),k.pubBytes(),M),B=this.g.mul(w.S());return w.R().add(k.pub().mul(V)).eq(B)},N.prototype.hashInt=function(){for(var M=this.hash(),w=0;w<arguments.length;w++)M.update(arguments[w]);return g.intFromLE(M.digest()).umod(this.curve.n)},N.prototype.keyFromPublic=function(M){return x.fromPublic(this,M)},N.prototype.keyFromSecret=function(M){return x.fromSecret(this,M)},N.prototype.makeSignature=function(M){return M instanceof h?M:new h(this,M)},N.prototype.encodePoint=function(M){var w=M.getY().toArray("le",this.encodingLength);return w[this.encodingLength-1]|=M.getX().isOdd()?128:0,w},N.prototype.decodePoint=function(M){var w=(M=g.parseBytes(M)).length-1,L=M.slice(0,w).concat(-129&M[w]),k=0!=(128&M[w]),V=g.intFromLE(L);return this.curve.pointFromY(V,k)},N.prototype.encodeInt=function(M){return M.toArray("le",this.encodingLength)},N.prototype.decodeInt=function(M){return g.intFromLE(M)},N.prototype.isPoint=function(M){return M instanceof this.pointClass}},7535:(We,q,m)=>{"use strict";var t=m(1970),e=t.assert,g=t.parseBytes,T=t.cachedProperty;function s(x,h){this.eddsa=x,this._secret=g(h.secret),x.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=g(h.pub)}s.fromPublic=function(h,N){return N instanceof s?N:new s(h,{pub:N})},s.fromSecret=function(h,N){return N instanceof s?N:new s(h,{secret:N})},s.prototype.secret=function(){return this._secret},T(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),T(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),T(s,"privBytes",function(){var h=this.eddsa,N=this.hash(),d=h.encodingLength-1,M=N.slice(0,h.encodingLength);return M[0]&=248,M[d]&=127,M[d]|=64,M}),T(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),T(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),T(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(h){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(h,this)},s.prototype.verify=function(h,N){return this.eddsa.verify(h,N,this)},s.prototype.getSecret=function(h){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),h)},s.prototype.getPublic=function(h){return t.encode(this.pubBytes(),h)},We.exports=s},8241:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),g=e.assert,T=e.cachedProperty,s=e.parseBytes;function x(h,N){this.eddsa=h,"object"!=typeof N&&(N=s(N)),Array.isArray(N)&&(N={R:N.slice(0,h.encodingLength),S:N.slice(h.encodingLength)}),g(N.R&&N.S,"Signature without R or S"),h.isPoint(N.R)&&(this._R=N.R),N.S instanceof t&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}T(x,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),T(x,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),T(x,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),T(x,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),x.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},x.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},We.exports=x},5150:We=>{We.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:(We,q,m)=>{"use strict";var t=q,e=m(7433),g=m(2391),T=m(8195);t.assert=g,t.toArray=T.toArray,t.zero2=T.zero2,t.toHex=T.toHex,t.encode=T.encode,t.getNAF=function s(M,w,L){var k=new Array(Math.max(M.bitLength(),L)+1);k.fill(0);for(var V=1<<w+1,B=M.clone(),W=0;W<k.length;W++){var Y,Q=B.andln(V-1);B.isOdd()?B.isubn(Y=Q>(V>>1)-1?(V>>1)-Q:Q):Y=0,k[W]=Y,B.iushrn(1)}return k},t.getJSF=function x(M,w){var L=[[],[]];M=M.clone(),w=w.clone();for(var B,k=0,V=0;M.cmpn(-k)>0||w.cmpn(-V)>0;){var Q,X,W=M.andln(3)+k&3,Y=w.andln(3)+V&3;3===W&&(W=-1),3===Y&&(Y=-1),Q=1&W?3!=(B=M.andln(7)+k&7)&&5!==B||2!==Y?W:-W:0,L[0].push(Q),X=1&Y?3!=(B=w.andln(7)+V&7)&&5!==B||2!==W?Y:-Y:0,L[1].push(X),2*k===Q+1&&(k=1-k),2*V===X+1&&(V=1-V),M.iushrn(1),w.iushrn(1)}return L},t.cachedProperty=function h(M,w,L){var k="_"+w;M.prototype[w]=function(){return void 0!==this[k]?this[k]:this[k]=L.call(this)}},t.parseBytes=function N(M){return"string"==typeof M?t.toArray(M,"hex"):M},t.intFromLE=function d(M){return new e(M,"hex","le")}},7433:function(We,q,m){!function(t,e){"use strict";function g(S,i){if(!S)throw new Error(i||"Assertion failed")}function T(S,i){S.super_=i;var a=function(){};a.prototype=i.prototype,S.prototype=new a,S.prototype.constructor=S}function s(S,i,a){if(s.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(S||0,i||10,a||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(5568).Buffer}catch{}function h(S,i){var a=S.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(S,i,a){var u=h(S,a);return a-1>=i&&(u|=h(S,a-1)<<4),u}function d(S,i,a,u){for(var l=0,_=Math.min(S.length,a),O=i;O<_;O++){var R=S.charCodeAt(O)-48;l*=u,l+=R>=49?R-49+10:R>=17?R-17+10:R}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),g(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(g("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var _,O,R=0;if("be"===u)for(l=i.length-1,_=0;l>=0;l-=3)this.words[_]|=(O=i[l]|i[l-1]<<8|i[l-2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);else if("le"===u)for(l=0,_=0;l<i.length;l+=3)this.words[_]|=(O=i[l]|i[l+1]<<8|i[l+2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var R,_=0,O=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,_=1;_<=67108863;_*=a)l++;l--,_=_/a|0;for(var O=i.length-u,R=O%l,C=Math.min(O,O-R)+u,n=0,v=u;v<C;v+=l)n=d(i,v,v+l,a),this.imuln(_),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==R){var K=1;for(n=d(i,v,i.length,a),v=0;v<R;v++)K*=a;this.imuln(K),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[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 V(S,i,a){a.negative=i.negative^S.negative;var u=S.length+i.length|0;a.length=u,u=u-1|0;var l=0|S.words[0],_=0|i.words[0],O=l*_,C=O/67108864|0;a.words[0]=67108863&O;for(var n=1;n<u;n++){for(var v=C>>>26,K=67108863&C,F=Math.min(n,i.length-1),G=Math.max(0,n-S.length+1);G<=F;G++)v+=(O=(l=0|S.words[n-G|0])*(_=0|i.words[G])+K)/67108864|0,K=67108863&O;a.words[n]=0|K,C=0|v}return 0!==C?a.words[n]=0|C:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,_=0,O=0;O<this.length;O++){var R=this.words[O],C=(16777215&(R<<l|_)).toString(16);u=0!=(_=R>>>24-l&16777215)||O!==this.length-1?M[6-C.length]+C+u:C+u,(l+=2)>=26&&(l-=26,O--)}for(0!==_&&(u=_.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],v=L[i];u="";var K=this.clone();for(K.negative=0;!K.isZero();){var F=K.modn(v).toString(i);u=(K=K.idivn(v)).isZero()?F+u:M[n-F.length]+F+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}g(!1,"Base should be between 2 and 36")},s.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&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return g(typeof x<"u"),this.toArrayLike(x,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),_=u||Math.max(1,l);g(l<=_,"byte array longer than desired length"),g(_>0,"Requested array length <= 0"),this.strip();var C,n,O="le"===a,R=new i(_),v=this.clone();if(O){for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[n]=C;for(;n<_;n++)R[n]=0}else{for(n=0;n<_-l;n++)R[n]=0;for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[_-n-1]=C}return R},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return g(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return g(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return g(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){g("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){g("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var _=0,O=0;O<l.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+(0|l.words[O])+_),_=a>>>26;for(;0!==_&&O<u.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+_),_=a>>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;O<u.length;O++)this.words[O]=u.words[O];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,_=i):(l=i,_=this);for(var O=0,R=0;R<_.length;R++)O=(a=(0|l.words[R])-(0|_.words[R])+O)>>26,this.words[R]=67108863&a;for(;0!==O&&R<l.length;R++)O=(a=(0|l.words[R])+O)>>26,this.words[R]=67108863&a;if(0===O&&R<l.length&&l!==this)for(;R<l.length;R++)this.words[R]=l.words[R];return this.length=Math.max(this.length,R),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var B=function(i,a,u){var C,n,v,l=i.words,_=a.words,O=u.words,R=0,K=0|l[0],F=8191&K,G=K>>>13,ye=0|l[1],Ee=8191&ye,pe=ye>>>13,qe=0|l[2],Ce=8191&qe,Se=qe>>>13,fe=0|l[3],Fe=8191&fe,oe=fe>>>13,ze=0|l[4],Oe=8191&ze,he=ze>>>13,Ae=0|l[5],ge=8191&Ae,Ue=Ae>>>13,Je=0|l[6],Re=8191&Je,le=Je>>>13,rt=0|l[7],Qe=8191&rt,ct=rt>>>13,Gt=0|l[8],ut=8191&Gt,Ze=Gt>>>13,xt=0|l[9],Me=8191&xt,$e=xt>>>13,Pe=0|_[0],J=8191&Pe,mt=Pe>>>13,Et=0|_[1],at=8191&Et,je=Et>>>13,Ht=0|_[2],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|_[3],Ne=8191&Bt,$=Bt>>>13,ue=0|_[4],Ie=8191&ue,Xe=ue>>>13,ei=0|_[5],zt=8191&ei,ni=ei>>>13,pt=0|_[6],ot=8191&pt,ft=pt>>>13,St=0|_[7],gt=8191&St,tt=St>>>13,_t=0|_[8],vt=8191&_t,Ve=_t>>>13,Tt=0|_[9],Lt=8191&Tt,Qt=Tt>>>13;u.negative=i.negative^a.negative,u.length=19;var Bi=(R+(C=Math.imul(F,J))|0)+((8191&(n=(n=Math.imul(F,mt))+Math.imul(G,J)|0))<<13)|0;R=((v=Math.imul(G,mt))+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,C=Math.imul(Ee,J),n=(n=Math.imul(Ee,mt))+Math.imul(pe,J)|0,v=Math.imul(pe,mt);var Hi=(R+(C=C+Math.imul(F,at)|0)|0)+((8191&(n=(n=n+Math.imul(F,je)|0)+Math.imul(G,at)|0))<<13)|0;R=((v=v+Math.imul(G,je)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,C=Math.imul(Ce,J),n=(n=Math.imul(Ce,mt))+Math.imul(Se,J)|0,v=Math.imul(Se,mt),C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,je)|0)+Math.imul(pe,at)|0,v=v+Math.imul(pe,je)|0;var Si=(R+(C=C+Math.imul(F,Ct)|0)|0)+((8191&(n=(n=n+Math.imul(F,Nt)|0)+Math.imul(G,Ct)|0))<<13)|0;R=((v=v+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,C=Math.imul(Fe,J),n=(n=Math.imul(Fe,mt))+Math.imul(oe,J)|0,v=Math.imul(oe,mt),C=C+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,je)|0)+Math.imul(Se,at)|0,v=v+Math.imul(Se,je)|0,C=C+Math.imul(Ee,Ct)|0,n=(n=n+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0,v=v+Math.imul(pe,Nt)|0;var Wi=(R+(C=C+Math.imul(F,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(F,$)|0)+Math.imul(G,Ne)|0))<<13)|0;R=((v=v+Math.imul(G,$)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(Oe,J),n=(n=Math.imul(Oe,mt))+Math.imul(he,J)|0,v=Math.imul(he,mt),C=C+Math.imul(Fe,at)|0,n=(n=n+Math.imul(Fe,je)|0)+Math.imul(oe,at)|0,v=v+Math.imul(oe,je)|0,C=C+Math.imul(Ce,Ct)|0,n=(n=n+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,v=v+Math.imul(Se,Nt)|0,C=C+Math.imul(Ee,Ne)|0,n=(n=n+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0,v=v+Math.imul(pe,$)|0;var et=(R+(C=C+Math.imul(F,Ie)|0)|0)+((8191&(n=(n=n+Math.imul(F,Xe)|0)+Math.imul(G,Ie)|0))<<13)|0;R=((v=v+Math.imul(G,Xe)|0)+(n>>>13)|0)+(et>>>26)|0,et&=67108863,C=Math.imul(ge,J),n=(n=Math.imul(ge,mt))+Math.imul(Ue,J)|0,v=Math.imul(Ue,mt),C=C+Math.imul(Oe,at)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(he,at)|0,v=v+Math.imul(he,je)|0,C=C+Math.imul(Fe,Ct)|0,n=(n=n+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,v=v+Math.imul(oe,Nt)|0,C=C+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,v=v+Math.imul(Se,$)|0,C=C+Math.imul(Ee,Ie)|0,n=(n=n+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,Xe)|0;var It=(R+(C=C+Math.imul(F,zt)|0)|0)+((8191&(n=(n=n+Math.imul(F,ni)|0)+Math.imul(G,zt)|0))<<13)|0;R=((v=v+Math.imul(G,ni)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(Re,J),n=(n=Math.imul(Re,mt))+Math.imul(le,J)|0,v=Math.imul(le,mt),C=C+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,je)|0)+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,je)|0,C=C+Math.imul(Oe,Ct)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,v=v+Math.imul(he,Nt)|0,C=C+Math.imul(Fe,Ne)|0,n=(n=n+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,v=v+Math.imul(oe,$)|0,C=C+Math.imul(Ce,Ie)|0,n=(n=n+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,v=v+Math.imul(Se,Xe)|0,C=C+Math.imul(Ee,zt)|0,n=(n=n+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0,v=v+Math.imul(pe,ni)|0;var Le=(R+(C=C+Math.imul(F,ot)|0)|0)+((8191&(n=(n=n+Math.imul(F,ft)|0)+Math.imul(G,ot)|0))<<13)|0;R=((v=v+Math.imul(G,ft)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(Qe,J),n=(n=Math.imul(Qe,mt))+Math.imul(ct,J)|0,v=Math.imul(ct,mt),C=C+Math.imul(Re,at)|0,n=(n=n+Math.imul(Re,je)|0)+Math.imul(le,at)|0,v=v+Math.imul(le,je)|0,C=C+Math.imul(ge,Ct)|0,n=(n=n+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,v=v+Math.imul(Ue,Nt)|0,C=C+Math.imul(Oe,Ne)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,v=v+Math.imul(he,$)|0,C=C+Math.imul(Fe,Ie)|0,n=(n=n+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,v=v+Math.imul(oe,Xe)|0,C=C+Math.imul(Ce,zt)|0,n=(n=n+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,v=v+Math.imul(Se,ni)|0,C=C+Math.imul(Ee,ot)|0,n=(n=n+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0,v=v+Math.imul(pe,ft)|0;var Mt=(R+(C=C+Math.imul(F,gt)|0)|0)+((8191&(n=(n=n+Math.imul(F,tt)|0)+Math.imul(G,gt)|0))<<13)|0;R=((v=v+Math.imul(G,tt)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(ut,J),n=(n=Math.imul(ut,mt))+Math.imul(Ze,J)|0,v=Math.imul(Ze,mt),C=C+Math.imul(Qe,at)|0,n=(n=n+Math.imul(Qe,je)|0)+Math.imul(ct,at)|0,v=v+Math.imul(ct,je)|0,C=C+Math.imul(Re,Ct)|0,n=(n=n+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,v=v+Math.imul(le,Nt)|0,C=C+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,v=v+Math.imul(Ue,$)|0,C=C+Math.imul(Oe,Ie)|0,n=(n=n+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,v=v+Math.imul(he,Xe)|0,C=C+Math.imul(Fe,zt)|0,n=(n=n+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,v=v+Math.imul(oe,ni)|0,C=C+Math.imul(Ce,ot)|0,n=(n=n+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,v=v+Math.imul(Se,ft)|0,C=C+Math.imul(Ee,gt)|0,n=(n=n+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0,v=v+Math.imul(pe,tt)|0;var Wt=(R+(C=C+Math.imul(F,vt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Ve)|0)+Math.imul(G,vt)|0))<<13)|0;R=((v=v+Math.imul(G,Ve)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,C=Math.imul(Me,J),n=(n=Math.imul(Me,mt))+Math.imul($e,J)|0,v=Math.imul($e,mt),C=C+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,je)|0)+Math.imul(Ze,at)|0,v=v+Math.imul(Ze,je)|0,C=C+Math.imul(Qe,Ct)|0,n=(n=n+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,v=v+Math.imul(ct,Nt)|0,C=C+Math.imul(Re,Ne)|0,n=(n=n+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,v=v+Math.imul(le,$)|0,C=C+Math.imul(ge,Ie)|0,n=(n=n+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,v=v+Math.imul(Ue,Xe)|0,C=C+Math.imul(Oe,zt)|0,n=(n=n+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,v=v+Math.imul(he,ni)|0,C=C+Math.imul(Fe,ot)|0,n=(n=n+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,v=v+Math.imul(oe,ft)|0,C=C+Math.imul(Ce,gt)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,v=v+Math.imul(Se,tt)|0,C=C+Math.imul(Ee,vt)|0,n=(n=n+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0,v=v+Math.imul(pe,Ve)|0;var si=(R+(C=C+Math.imul(F,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Qt)|0)+Math.imul(G,Lt)|0))<<13)|0;R=((v=v+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,C=Math.imul(Me,at),n=(n=Math.imul(Me,je))+Math.imul($e,at)|0,v=Math.imul($e,je),C=C+Math.imul(ut,Ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,v=v+Math.imul(Ze,Nt)|0,C=C+Math.imul(Qe,Ne)|0,n=(n=n+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,v=v+Math.imul(ct,$)|0,C=C+Math.imul(Re,Ie)|0,n=(n=n+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,v=v+Math.imul(le,Xe)|0,C=C+Math.imul(ge,zt)|0,n=(n=n+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,v=v+Math.imul(Ue,ni)|0,C=C+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,v=v+Math.imul(he,ft)|0,C=C+Math.imul(Fe,gt)|0,n=(n=n+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,v=v+Math.imul(oe,tt)|0,C=C+Math.imul(Ce,vt)|0,n=(n=n+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,v=v+Math.imul(Se,Ve)|0;var Ai=(R+(C=C+Math.imul(Ee,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;R=((v=v+Math.imul(pe,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,C=Math.imul(Me,Ct),n=(n=Math.imul(Me,Nt))+Math.imul($e,Ct)|0,v=Math.imul($e,Nt),C=C+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,v=v+Math.imul(Ze,$)|0,C=C+Math.imul(Qe,Ie)|0,n=(n=n+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,v=v+Math.imul(ct,Xe)|0,C=C+Math.imul(Re,zt)|0,n=(n=n+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,v=v+Math.imul(le,ni)|0,C=C+Math.imul(ge,ot)|0,n=(n=n+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,ft)|0,C=C+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,v=v+Math.imul(he,tt)|0,C=C+Math.imul(Fe,vt)|0,n=(n=n+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,v=v+Math.imul(oe,Ve)|0;var Ri=(R+(C=C+Math.imul(Ce,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0))<<13)|0;R=((v=v+Math.imul(Se,Qt)|0)+(n>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,C=Math.imul(Me,Ne),n=(n=Math.imul(Me,$))+Math.imul($e,Ne)|0,v=Math.imul($e,$),C=C+Math.imul(ut,Ie)|0,n=(n=n+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,v=v+Math.imul(Ze,Xe)|0,C=C+Math.imul(Qe,zt)|0,n=(n=n+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,v=v+Math.imul(ct,ni)|0,C=C+Math.imul(Re,ot)|0,n=(n=n+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,v=v+Math.imul(le,ft)|0,C=C+Math.imul(ge,gt)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,v=v+Math.imul(Ue,tt)|0,C=C+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,v=v+Math.imul(he,Ve)|0;var $i=(R+(C=C+Math.imul(Fe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0))<<13)|0;R=((v=v+Math.imul(oe,Qt)|0)+(n>>>13)|0)+($i>>>26)|0,$i&=67108863,C=Math.imul(Me,Ie),n=(n=Math.imul(Me,Xe))+Math.imul($e,Ie)|0,v=Math.imul($e,Xe),C=C+Math.imul(ut,zt)|0,n=(n=n+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,v=v+Math.imul(Ze,ni)|0,C=C+Math.imul(Qe,ot)|0,n=(n=n+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,v=v+Math.imul(ct,ft)|0,C=C+Math.imul(Re,gt)|0,n=(n=n+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,v=v+Math.imul(le,tt)|0,C=C+Math.imul(ge,vt)|0,n=(n=n+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,v=v+Math.imul(Ue,Ve)|0;var nn=(R+(C=C+Math.imul(Oe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0))<<13)|0;R=((v=v+Math.imul(he,Qt)|0)+(n>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Me,zt),n=(n=Math.imul(Me,ni))+Math.imul($e,zt)|0,v=Math.imul($e,ni),C=C+Math.imul(ut,ot)|0,n=(n=n+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,v=v+Math.imul(Ze,ft)|0,C=C+Math.imul(Qe,gt)|0,n=(n=n+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,v=v+Math.imul(ct,tt)|0,C=C+Math.imul(Re,vt)|0,n=(n=n+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,v=v+Math.imul(le,Ve)|0;var Qi=(R+(C=C+Math.imul(ge,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,C=Math.imul(Me,ot),n=(n=Math.imul(Me,ft))+Math.imul($e,ot)|0,v=Math.imul($e,ft),C=C+Math.imul(ut,gt)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,v=v+Math.imul(Ze,tt)|0,C=C+Math.imul(Qe,vt)|0,n=(n=n+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,v=v+Math.imul(ct,Ve)|0;var Yt=(R+(C=C+Math.imul(Re,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0))<<13)|0;R=((v=v+Math.imul(le,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Me,gt),n=(n=Math.imul(Me,tt))+Math.imul($e,gt)|0,v=Math.imul($e,tt),C=C+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,v=v+Math.imul(Ze,Ve)|0;var Xt=(R+(C=C+Math.imul(Qe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0))<<13)|0;R=((v=v+Math.imul(ct,Qt)|0)+(n>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(Me,vt),n=(n=Math.imul(Me,Ve))+Math.imul($e,vt)|0,v=Math.imul($e,Ve);var be=(R+(C=C+Math.imul(ut,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ze,Qt)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863;var dt=(R+(C=Math.imul(Me,Lt))|0)+((8191&(n=(n=Math.imul(Me,Qt))+Math.imul($e,Lt)|0))<<13)|0;return R=((v=Math.imul($e,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,O[0]=Bi,O[1]=Hi,O[2]=Si,O[3]=Wi,O[4]=et,O[5]=It,O[6]=Le,O[7]=Mt,O[8]=Wt,O[9]=si,O[10]=Ai,O[11]=Ri,O[12]=$i,O[13]=nn,O[14]=Qi,O[15]=Yt,O[16]=Xt,O[17]=be,O[18]=dt,0!==R&&(O[19]=R,u.length++),u};function Y(S,i,a){return(new Q).mulp(S,i,a)}function Q(S,i){this.x=S,this.y=i}Math.imul||(B=V),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?B(this,i,a):l<63?V(this,i,a):l<1024?function W(S,i,a){a.negative=i.negative^S.negative,a.length=S.length+i.length;for(var u=0,l=0,_=0;_<a.length-1;_++){var O=l;l=0;for(var R=67108863&u,C=Math.min(_,i.length-1),n=Math.max(0,_-S.length+1);n<=C;n++){var G=(0|S.words[_-n])*(0|i.words[n]),ye=67108863&G;R=67108863&(ye=ye+R|0),l+=(O=(O=O+(G/67108864|0)|0)+(ye>>>26)|0)>>>26,O&=67108863}a.words[_]=R,u=O,O=l}return 0!==u?a.words[_]=u:a.length--,a.strip()}(this,i,a):Y(this,i,a),u},Q.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},Q.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,_=0;_<a;_++)l|=(1&i)<<a-_-1,i>>=1;return l},Q.prototype.permute=function(i,a,u,l,_,O){for(var R=0;R<O;R++)l[R]=a[i[R]],_[R]=u[i[R]]},Q.prototype.transform=function(i,a,u,l,_,O){this.permute(O,i,a,u,l,_);for(var R=1;R<_;R<<=1)for(var C=R<<1,n=Math.cos(2*Math.PI/C),v=Math.sin(2*Math.PI/C),K=0;K<_;K+=C)for(var F=n,G=v,ye=0;ye<R;ye++){var Ee=u[K+ye],pe=l[K+ye],qe=u[K+ye+R],Ce=l[K+ye+R],Se=F*qe-G*Ce;Ce=F*Ce+G*qe,u[K+ye]=Ee+(qe=Se),l[K+ye]=pe+Ce,u[K+ye+R]=Ee-qe,l[K+ye+R]=pe-Ce,ye!==C&&(Se=n*F-v*G,G=n*G+v*F,F=Se)}},Q.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,_=0;for(u=u/2|0;u;u>>>=1)_++;return 1<<_+1+l},Q.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var _=i[l];i[l]=i[u-l-1],i[u-l-1]=_,_=a[l],a[l]=-a[u-l-1],a[u-l-1]=-_}},Q.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var _=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&_,u=_<67108864?0:_/67108864|0}return i},Q.prototype.convert13b=function(i,a,u,l){for(var _=0,O=0;O<a;O++)u[2*O]=8191&(_+=0|i[O]),u[2*O+1]=8191&(_>>>=13),_>>>=13;for(O=2*a;O<l;++O)u[O]=0;g(0===_),g(0==(-8192&_))},Q.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},Q.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(l),O=this.stub(l),R=new Array(l),C=new Array(l),n=new Array(l),v=new Array(l),K=new Array(l),F=new Array(l),G=u.words;G.length=l,this.convert13b(i.words,i.length,R,l),this.convert13b(a.words,a.length,v,l),this.transform(R,O,C,n,l,_),this.transform(v,O,K,F,l,_);for(var ye=0;ye<l;ye++){var Ee=C[ye]*K[ye]-n[ye]*F[ye];n[ye]=C[ye]*F[ye]+n[ye]*K[ye],C[ye]=Ee}return this.conjugate(C,n,l),this.transform(C,n,G,O,l,_),this.conjugate(G,O,l),this.normalize13b(G,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),Y(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){g("number"==typeof i),g(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,_=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=_>>>26,this.words[u]=67108863&_}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function k(S){for(var i=new Array(S.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(S.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var _=u.sqr();l<a.length;l++,_=_.sqr())0!==a[l]&&(u=u.mul(_));return u},s.prototype.iushln=function(i){g("number"==typeof i&&i>=0);var _,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var O=0;for(_=0;_<this.length;_++){var R=this.words[_]&l;this.words[_]=(0|this.words[_])-R<<a|O,O=R>>>26-a}O&&(this.words[_]=O,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_<u;_++)this.words[_]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return g(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;g("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var _=i%26,O=Math.min((i-_)/26,this.length),R=67108863^67108863>>>_<<_,C=u;if(l-=O,l=Math.max(0,l),C){for(var n=0;n<O;n++)C.words[n]=this.words[n];C.length=O}if(0!==O)if(this.length>O)for(this.length-=O,n=0;n<this.length;n++)this.words[n]=this.words[n+O];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(0!==v||n>=l);n--){var K=0|this.words[n];this.words[n]=v<<26-_|K>>>_,v=K&R}return C&&0!==v&&(C.words[C.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return g(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return g("number"==typeof i),g(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[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},s.prototype.isubn=function(i){if(g("number"==typeof i),g(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<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var _;this._expand(i.length+u);var O,R=0;for(_=0;_<i.length;_++){O=(0|this.words[_+u])+R;var C=(0|i.words[_])*a;R=((O-=67108863&C)>>26)-(C/67108864|0),this.words[_+u]=67108863&O}for(;_<this.length-u;_++)R=(O=(0|this.words[_+u])+R)>>26,this.words[_+u]=67108863&O;if(0===R)return this.strip();for(g(-1===R),R=0,_=0;_<this.length;_++)R=(O=-(0|this.words[_])+R)>>26,this.words[_]=67108863&O;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),_=i,O=0|_.words[_.length-1];0!=(u=26-this._countBits(O))&&(_=_.ushln(u),l.iushln(u),O=0|_.words[_.length-1]);var n,C=l.length-_.length;if("mod"!==a){(n=new s(null)).length=C+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var K=l.clone()._ishlnsubmul(_,1,C);0===K.negative&&(l=K,n&&(n.words[C]=1));for(var F=C-1;F>=0;F--){var G=67108864*(0|l.words[_.length+F])+(0|l.words[_.length+F-1]);for(G=Math.min(G/O|0,67108863),l._ishlnsubmul(_,G,F);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(_,1,F),l.isZero()||(l.negative^=1);n&&(n.words[F]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return g(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(O=this.neg().divmod(i,a),"mod"!==a&&(l=O.div.neg()),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:l,mod:_}):0===this.negative&&0!==i.negative?(O=this.divmod(i.neg(),a),"mod"!==a&&(l=O.div.neg()),{div:l,mod:O.mod}):this.negative&i.negative?(O=this.neg().divmod(i.neg(),a),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:O.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,_,O},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),_=i.andln(1),O=u.cmp(l);return O<0||1===_&&0===O?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){g(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){g(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){g(0===i.negative),g(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=new s(0),R=new s(1),C=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++C;for(var n=u.clone(),v=a.clone();!a.isZero();){for(var K=0,F=1;!(a.words[0]&F)&&K<26;++K,F<<=1);if(K>0)for(a.iushrn(K);K-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(n),_.isub(v)),l.iushrn(1),_.iushrn(1);for(var G=0,ye=1;!(u.words[0]&ye)&&G<26;++G,ye<<=1);if(G>0)for(u.iushrn(G);G-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(n),R.isub(v)),O.iushrn(1),R.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(O),_.isub(R)):(u.isub(a),O.isub(l),R.isub(_))}return{a:O,b:R,gcd:u.iushln(C)}},s.prototype._invmp=function(i){g(0===i.negative),g(!i.isZero());var K,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var R=0,C=1;!(a.words[0]&C)&&R<26;++R,C<<=1);if(R>0)for(a.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(O),l.iushrn(1);for(var n=0,v=1;!(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(_)):(u.isub(a),_.isub(l))}return(K=0===a.cmpn(1)?l:_).cmpn(0)<0&&K.iadd(i),K},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=a.cmp(u);if(_<0){var O=a;a=u,u=O}else if(0===_||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){g("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var _=l,O=u;0!==_&&O<this.length;O++){var R=0|this.words[O];_=(R+=_)>>>26,this.words[O]=R&=67108863}return 0!==_&&(this.words[O]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),g(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],_=0|i.words[u];if(l!==_){l<_?a=-1:l>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var X={k256:null,p224:null,p192:null,p25519:null};function ee(S,i){this.name=S,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(S){if("string"==typeof S){var i=s._prime(S);this.m=i.p,this.prime=i}else g(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function Te(S){ce.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?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)},T(me,ee),me.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),_=0;_<l;_++)a.words[_]=i.words[_];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var O=i.words[9];for(a.words[a.length++]=O&u,_=10;_<i.length;_++){var R=0|i.words[_];i.words[_-10]=(R&u)<<4|O>>>22,O=R}i.words[_-10]=O>>>=22,i.length-=0===O&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},T(re,ee),T(ie,ee),T(se,ee),se.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,_=67108863&l;l>>>=26,i.words[u]=_,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(X[i])return X[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return X[i]=a,a},ce.prototype._verify1=function(i){g(0===i.negative,"red works only with positives"),g(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){g(0==(i.negative|a.negative),"red works only with positives"),g(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},ce.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(g(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),_=0;!l.isZero()&&0===l.andln(1);)_++,l.iushrn(1);g(!l.isZero());var O=new s(1).toRed(this),R=O.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,C).cmp(R);)n.redIAdd(R);for(var v=this.pow(n,l),K=this.pow(i,l.addn(1).iushrn(1)),F=this.pow(i,l),G=_;0!==F.cmp(O);){for(var ye=F,Ee=0;0!==ye.cmp(O);Ee++)ye=ye.redSqr();g(Ee<G);var pe=this.pow(v,new s(1).iushln(G-Ee-1));K=K.redMul(pe),v=pe.redSqr(),F=F.redMul(v),G=Ee}return K},ce.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},ce.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var _=2;_<l.length;_++)l[_]=this.mul(l[_-1],i);var O=l[0],R=0,C=0,n=a.bitLength()%26;for(0===n&&(n=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],K=n-1;K>=0;K--){var F=v>>K&1;O!==l[0]&&(O=this.sqr(O)),0!==F||0!==R?(R<<=1,R|=F,(4==++C||0===_&&0===K)&&(O=this.mul(O,l[R]),C=0,R=0)):C=0}n=26}return O},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Te(i)},T(Te,ce),Te.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Te.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Te.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},8419:We=>{"use strict";We.exports=function(m){for(var t=[],e=m.length,g=0;g<e;g++){var T=m.charCodeAt(g);if(T>=55296&&T<=56319&&e>g+1){var s=m.charCodeAt(g+1);s>=56320&&s<=57343&&(T=1024*(T-55296)+s-56320+65536,g+=1)}T<128?t.push(T):T<2048?(t.push(T>>6|192),t.push(63&T|128)):T<55296||T>=57344&&T<65536?(t.push(T>>12|224),t.push(T>>6&63|128),t.push(63&T|128)):T>=65536&&T<=1114111?(t.push(T>>18|240),t.push(T>>12&63|128),t.push(T>>6&63|128),t.push(63&T|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:We=>{"use strict";var t,q="object"==typeof Reflect?Reflect:null,m=q&&"function"==typeof q.apply?q.apply:function(ee,me,re){return Function.prototype.apply.call(ee,me,re)};t=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 g=Number.isNaN||function(ee){return ee!=ee};function T(){T.init.call(this)}We.exports=T,We.exports.once=function W(X,ee){return new Promise(function(me,re){function ie(ce){X.removeListener(ee,se),re(ce)}function se(){"function"==typeof X.removeListener&&X.removeListener("error",ie),me([].slice.call(arguments))}Q(X,ee,se,{once:!0}),"error"!==ee&&function Y(X,ee,me){"function"==typeof X.on&&Q(X,"error",ee,me)}(X,ie,{once:!0})})},T.EventEmitter=T,T.prototype._events=void 0,T.prototype._eventsCount=0,T.prototype._maxListeners=void 0;var s=10;function x(X){if("function"!=typeof X)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof X)}function h(X){return void 0===X._maxListeners?T.defaultMaxListeners:X._maxListeners}function N(X,ee,me,re){var ie,se,ce;if(x(me),void 0===(se=X._events)?(se=X._events=Object.create(null),X._eventsCount=0):(void 0!==se.newListener&&(X.emit("newListener",ee,me.listener?me.listener:me),se=X._events),ce=se[ee]),void 0===ce)ce=se[ee]=me,++X._eventsCount;else if("function"==typeof ce?ce=se[ee]=re?[me,ce]:[ce,me]:re?ce.unshift(me):ce.push(me),(ie=h(X))>0&&ce.length>ie&&!ce.warned){ce.warned=!0;var Te=new Error("Possible EventEmitter memory leak detected. "+ce.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Te.name="MaxListenersExceededWarning",Te.emitter=X,Te.type=ee,Te.count=ce.length,function e(X){console&&console.warn&&console.warn(X)}(Te)}return X}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function M(X,ee,me){var re={fired:!1,wrapFn:void 0,target:X,type:ee,listener:me},ie=d.bind(re);return ie.listener=me,re.wrapFn=ie,ie}function w(X,ee,me){var re=X._events;if(void 0===re)return[];var ie=re[ee];return void 0===ie?[]:"function"==typeof ie?me?[ie.listener||ie]:[ie]:me?function B(X){for(var ee=new Array(X.length),me=0;me<ee.length;++me)ee[me]=X[me].listener||X[me];return ee}(ie):k(ie,ie.length)}function L(X){var ee=this._events;if(void 0!==ee){var me=ee[X];if("function"==typeof me)return 1;if(void 0!==me)return me.length}return 0}function k(X,ee){for(var me=new Array(ee),re=0;re<ee;++re)me[re]=X[re];return me}function Q(X,ee,me,re){if("function"==typeof X.on)re.once?X.once(ee,me):X.on(ee,me);else{if("function"!=typeof X.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof X);X.addEventListener(ee,function ie(se){re.once&&X.removeEventListener(ee,ie),me(se)})}}Object.defineProperty(T,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(X){if("number"!=typeof X||X<0||g(X))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+X+".");s=X}}),T.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},T.prototype.setMaxListeners=function(ee){if("number"!=typeof ee||ee<0||g(ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ee+".");return this._maxListeners=ee,this},T.prototype.getMaxListeners=function(){return h(this)},T.prototype.emit=function(ee){for(var me=[],re=1;re<arguments.length;re++)me.push(arguments[re]);var ie="error"===ee,se=this._events;if(void 0!==se)ie=ie&&void 0===se.error;else if(!ie)return!1;if(ie){var ce;if(me.length>0&&(ce=me[0]),ce instanceof Error)throw ce;var Te=new Error("Unhandled error."+(ce?" ("+ce.message+")":""));throw Te.context=ce,Te}var S=se[ee];if(void 0===S)return!1;if("function"==typeof S)m(S,this,me);else{var i=S.length,a=k(S,i);for(re=0;re<i;++re)m(a[re],this,me)}return!0},T.prototype.on=T.prototype.addListener=function(ee,me){return N(this,ee,me,!1)},T.prototype.prependListener=function(ee,me){return N(this,ee,me,!0)},T.prototype.once=function(ee,me){return x(me),this.on(ee,M(this,ee,me)),this},T.prototype.prependOnceListener=function(ee,me){return x(me),this.prependListener(ee,M(this,ee,me)),this},T.prototype.off=T.prototype.removeListener=function(ee,me){var re,ie,se,ce,Te;if(x(me),void 0===(ie=this._events))return this;if(void 0===(re=ie[ee]))return this;if(re===me||re.listener===me)0==--this._eventsCount?this._events=Object.create(null):(delete ie[ee],ie.removeListener&&this.emit("removeListener",ee,re.listener||me));else if("function"!=typeof re){for(se=-1,ce=re.length-1;ce>=0;ce--)if(re[ce]===me||re[ce].listener===me){Te=re[ce].listener,se=ce;break}if(se<0)return this;0===se?re.shift():function V(X,ee){for(;ee+1<X.length;ee++)X[ee]=X[ee+1];X.pop()}(re,se),1===re.length&&(ie[ee]=re[0]),void 0!==ie.removeListener&&this.emit("removeListener",ee,Te||me)}return this},T.prototype.removeAllListeners=function(ee){var me,re,ie;if(void 0===(re=this._events))return this;if(void 0===re.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==re[ee]&&(0==--this._eventsCount?this._events=Object.create(null):delete re[ee]),this;if(0===arguments.length){var ce,se=Object.keys(re);for(ie=0;ie<se.length;++ie)"removeListener"!==(ce=se[ie])&&this.removeAllListeners(ce);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(me=re[ee]))this.removeListener(ee,me);else if(void 0!==me)for(ie=me.length-1;ie>=0;ie--)this.removeListener(ee,me[ie]);return this},T.prototype.listeners=function(ee){return w(this,ee,!0)},T.prototype.rawListeners=function(ee){return w(this,ee,!1)},T.listenerCount=function(X,ee){return"function"==typeof X.listenerCount?X.listenerCount(ee):L.call(X,ee)},T.prototype.listenerCount=L,T.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(We,q,m)=>{var t=m(3502).Buffer,e=m(8095);We.exports=function g(T,s,x,h){if(t.isBuffer(T)||(T=t.from(T,"binary")),s&&(t.isBuffer(s)||(s=t.from(s,"binary")),8!==s.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var N=x/8,d=t.alloc(N),M=t.alloc(h||0),w=t.alloc(0);N>0||h>0;){var L=new e;L.update(w),L.update(T),s&&L.update(s),w=L.digest();var k=0;if(N>0){var V=d.length-N;k=Math.min(N,w.length),w.copy(d,V,0,k),N-=k}if(k<w.length&&h>0){var B=M.length-h,W=Math.min(h,w.length-k);w.copy(M,B,k,k+W),h-=W}}return w.fill(0),{key:d,iv:M}}},9650:(We,q,m)=>{"use strict";var t=m(3502).Buffer,e=m(5685).Transform;function s(x){e.call(this),this._block=t.allocUnsafe(x),this._blockSize=x,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(s,e),s.prototype._transform=function(x,h,N){var d=null;try{this.update(x,h)}catch(M){d=M}N(d)},s.prototype._flush=function(x){var h=null;try{this.push(this.digest())}catch(N){h=N}x(h)},s.prototype.update=function(x,h){if(function T(x,h){if(!t.isBuffer(x)&&"string"!=typeof x)throw new TypeError(h+" must be a string or a buffer")}(x,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(x)||(x=t.from(x,h));for(var N=this._block,d=0;this._blockOffset+x.length-d>=this._blockSize;){for(var M=this._blockOffset;M<this._blockSize;)N[M++]=x[d++];this._update(),this._blockOffset=0}for(;d<x.length;)N[this._blockOffset++]=x[d++];for(var w=0,L=8*x.length;L>0;++w)this._length[w]+=L,(L=this._length[w]/4294967296|0)>0&&(this._length[w]-=4294967296*L);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(x){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var h=this._digest();void 0!==x&&(h=h.toString(x)),this._block.fill(0),this._blockOffset=0;for(var N=0;N<4;++N)this._length[N]=0;return h},s.prototype._digest=function(){throw new Error("_digest is not implemented")},We.exports=s},7084:(We,q,m)=>{var t=q;t.utils=m(9299),t.common=m(3800),t.sha=m(4962),t.ripemd=m(9458),t.hmac=m(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(We,q,m)=>{"use strict";var t=m(9299),e=m(2391);function g(){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=g,g.prototype.update=function(s,x){if(s=t.toArray(s,x),this.pending=this.pending?this.pending.concat(s):s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var h=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-h,s.length),0===this.pending.length&&(this.pending=null),s=t.join32(s,0,s.length-h,this.endian);for(var N=0;N<s.length;N+=this._delta32)this._update(s,N,N+this._delta32)}return this},g.prototype.digest=function(s){return this.update(this._pad()),e(null===this.pending),this._digest(s)},g.prototype._pad=function(){var s=this.pendingTotal,x=this._delta8,h=x-(s+this.padLength)%x,N=new Array(h+this.padLength);N[0]=128;for(var d=1;d<h;d++)N[d]=0;if(s<<=3,"big"===this.endian){for(var M=8;M<this.padLength;M++)N[d++]=0;N[d++]=0,N[d++]=0,N[d++]=0,N[d++]=0,N[d++]=s>>>24&255,N[d++]=s>>>16&255,N[d++]=s>>>8&255,N[d++]=255&s}else for(N[d++]=255&s,N[d++]=s>>>8&255,N[d++]=s>>>16&255,N[d++]=s>>>24&255,N[d++]=0,N[d++]=0,N[d++]=0,N[d++]=0,M=8;M<this.padLength;M++)N[d++]=0;return N}},2194:(We,q,m)=>{"use strict";var t=m(9299),e=m(2391);function g(T,s,x){if(!(this instanceof g))return new g(T,s,x);this.Hash=T,this.blockSize=T.blockSize/8,this.outSize=T.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(s,x))}We.exports=g,g.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),e(s.length<=this.blockSize);for(var x=s.length;x<this.blockSize;x++)s.push(0);for(x=0;x<s.length;x++)s[x]^=54;for(this.inner=(new this.Hash).update(s),x=0;x<s.length;x++)s[x]^=106;this.outer=(new this.Hash).update(s)},g.prototype.update=function(s,x){return this.inner.update(s,x),this},g.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},9458:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),g=t.rotl32,T=t.sum32,s=t.sum32_3,x=t.sum32_4,h=e.BlockHash;function N(){if(!(this instanceof N))return new N;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(W,Y,Q,X){return W<=15?Y^Q^X:W<=31?Y&Q|~Y&X:W<=47?(Y|~Q)^X:W<=63?Y&X|Q&~X:Y^(Q|~X)}function w(W){return W<=15?1352829926:W<=31?1548603684:W<=47?1836072691:W<=63?2053994217:0}t.inherits(N,h),q.ripemd160=N,N.blockSize=512,N.outSize=160,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(Y,Q){for(var X=this.h[0],ee=this.h[1],me=this.h[2],re=this.h[3],ie=this.h[4],se=X,ce=ee,Te=me,S=re,i=ie,a=0;a<80;a++){var u=T(g(x(X,d(a,ee,me,re),Y[L[a]+Q],(W=a)<=15?0:W<=31?1518500249:W<=47?1859775393:W<=63?2400959708:2840853838),V[a]),ie);X=ie,ie=re,re=g(me,10),me=ee,ee=u,u=T(g(x(se,d(79-a,ce,Te,S),Y[k[a]+Q],w(a)),B[a]),i),se=i,i=S,S=g(Te,10),Te=ce,ce=u}var W;u=s(this.h[1],me,S),this.h[1]=s(this.h[2],re,i),this.h[2]=s(this.h[3],ie,se),this.h[3]=s(this.h[4],X,ce),this.h[4]=s(this.h[0],ee,Te),this.h[0]=u},N.prototype._digest=function(Y){return"hex"===Y?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var L=[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],k=[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],V=[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],B=[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:(We,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:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),g=m(3113),T=t.rotl32,s=t.sum32,x=t.sum32_5,h=g.ft_1,N=e.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function M(){if(!(this instanceof M))return new M;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(M,N),We.exports=M,M.blockSize=512,M.outSize=160,M.hmacStrength=80,M.padLength=64,M.prototype._update=function(L,k){for(var V=this.W,B=0;B<16;B++)V[B]=L[k+B];for(;B<V.length;B++)V[B]=T(V[B-3]^V[B-8]^V[B-14]^V[B-16],1);var W=this.h[0],Y=this.h[1],Q=this.h[2],X=this.h[3],ee=this.h[4];for(B=0;B<V.length;B++){var me=~~(B/20),re=x(T(W,5),h(me,Y,Q,X),ee,V[B],d[me]);ee=X,X=Q,Q=T(Y,30),Y=W,W=re}this.h[0]=s(this.h[0],W),this.h[1]=s(this.h[1],Y),this.h[2]=s(this.h[2],Q),this.h[3]=s(this.h[3],X),this.h[4]=s(this.h[4],ee)},M.prototype._digest=function(L){return"hex"===L?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},55:(We,q,m)=>{"use strict";var t=m(9299),e=m(9342);function g(){if(!(this instanceof g))return new g;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(g,e),We.exports=g,g.blockSize=512,g.outSize=224,g.hmacStrength=192,g.padLength=64,g.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),g=m(3113),T=m(2391),s=t.sum32,x=t.sum32_4,h=t.sum32_5,N=g.ch32,d=g.maj32,M=g.s0_256,w=g.s1_256,L=g.g0_256,k=g.g1_256,V=e.BlockHash,B=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function W(){if(!(this instanceof W))return new W;V.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=B,this.W=new Array(64)}t.inherits(W,V),We.exports=W,W.blockSize=512,W.outSize=256,W.hmacStrength=192,W.padLength=64,W.prototype._update=function(Q,X){for(var ee=this.W,me=0;me<16;me++)ee[me]=Q[X+me];for(;me<ee.length;me++)ee[me]=x(k(ee[me-2]),ee[me-7],L(ee[me-15]),ee[me-16]);var re=this.h[0],ie=this.h[1],se=this.h[2],ce=this.h[3],Te=this.h[4],S=this.h[5],i=this.h[6],a=this.h[7];for(T(this.k.length===ee.length),me=0;me<ee.length;me++){var u=h(a,w(Te),N(Te,S,i),this.k[me],ee[me]),l=s(M(re),d(re,ie,se));a=i,i=S,S=Te,Te=s(ce,u),ce=se,se=ie,ie=re,re=s(u,l)}this.h[0]=s(this.h[0],re),this.h[1]=s(this.h[1],ie),this.h[2]=s(this.h[2],se),this.h[3]=s(this.h[3],ce),this.h[4]=s(this.h[4],Te),this.h[5]=s(this.h[5],S),this.h[6]=s(this.h[6],i),this.h[7]=s(this.h[7],a)},W.prototype._digest=function(Q){return"hex"===Q?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},8634:(We,q,m)=>{"use strict";var t=m(9299),e=m(39);function g(){if(!(this instanceof g))return new g;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(g,e),We.exports=g,g.blockSize=1024,g.outSize=384,g.hmacStrength=192,g.padLength=128,g.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),g=m(2391),T=t.rotr64_hi,s=t.rotr64_lo,x=t.shr64_hi,h=t.shr64_lo,N=t.sum64,d=t.sum64_hi,M=t.sum64_lo,w=t.sum64_4_hi,L=t.sum64_4_lo,k=t.sum64_5_hi,V=t.sum64_5_lo,B=e.BlockHash,W=[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 Y(){if(!(this instanceof Y))return new Y;B.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=W,this.W=new Array(160)}function Q(u,l,_,O,R){var C=u&_^~u&R;return C<0&&(C+=4294967296),C}function X(u,l,_,O,R,C){var n=l&O^~l&C;return n<0&&(n+=4294967296),n}function ee(u,l,_,O,R){var C=u&_^u&R^_&R;return C<0&&(C+=4294967296),C}function me(u,l,_,O,R,C){var n=l&O^l&C^O&C;return n<0&&(n+=4294967296),n}function re(u,l){var C=T(u,l,28)^T(l,u,2)^T(l,u,7);return C<0&&(C+=4294967296),C}function ie(u,l){var C=s(u,l,28)^s(l,u,2)^s(l,u,7);return C<0&&(C+=4294967296),C}function se(u,l){var C=T(u,l,14)^T(u,l,18)^T(l,u,9);return C<0&&(C+=4294967296),C}function ce(u,l){var C=s(u,l,14)^s(u,l,18)^s(l,u,9);return C<0&&(C+=4294967296),C}function Te(u,l){var C=T(u,l,1)^T(u,l,8)^x(u,l,7);return C<0&&(C+=4294967296),C}function S(u,l){var C=s(u,l,1)^s(u,l,8)^h(u,l,7);return C<0&&(C+=4294967296),C}function i(u,l){var C=T(u,l,19)^T(l,u,29)^x(u,l,6);return C<0&&(C+=4294967296),C}function a(u,l){var C=s(u,l,19)^s(l,u,29)^h(u,l,6);return C<0&&(C+=4294967296),C}t.inherits(Y,B),We.exports=Y,Y.blockSize=1024,Y.outSize=512,Y.hmacStrength=192,Y.padLength=128,Y.prototype._prepareBlock=function(l,_){for(var O=this.W,R=0;R<32;R++)O[R]=l[_+R];for(;R<O.length;R+=2){var C=i(O[R-4],O[R-3]),n=a(O[R-4],O[R-3]),v=O[R-14],K=O[R-13],F=Te(O[R-30],O[R-29]),G=S(O[R-30],O[R-29]),ye=O[R-32],Ee=O[R-31];O[R]=w(C,n,v,K,F,G,ye,Ee),O[R+1]=L(C,n,v,K,F,G,ye,Ee)}},Y.prototype._update=function(l,_){this._prepareBlock(l,_);var O=this.W,R=this.h[0],C=this.h[1],n=this.h[2],v=this.h[3],K=this.h[4],F=this.h[5],G=this.h[6],ye=this.h[7],Ee=this.h[8],pe=this.h[9],qe=this.h[10],Ce=this.h[11],Se=this.h[12],fe=this.h[13],Fe=this.h[14],oe=this.h[15];g(this.k.length===O.length);for(var ze=0;ze<O.length;ze+=2){var Oe=Fe,he=oe,Ae=se(Ee,pe),ge=ce(Ee,pe),Ue=Q(Ee,0,qe,0,Se),Je=X(0,pe,0,Ce,0,fe),Re=this.k[ze],le=this.k[ze+1],rt=O[ze],Qe=O[ze+1],ct=k(Oe,he,Ae,ge,Ue,Je,Re,le,rt,Qe),Gt=V(Oe,he,Ae,ge,Ue,Je,Re,le,rt,Qe);Oe=re(R,C),he=ie(R,C),Ae=ee(R,0,n,0,K),ge=me(0,C,0,v,0,F);var ut=d(Oe,he,Ae,ge),Ze=M(Oe,he,Ae,ge);Fe=Se,oe=fe,Se=qe,fe=Ce,qe=Ee,Ce=pe,Ee=d(G,ye,ct,Gt),pe=M(ye,ye,ct,Gt),G=K,ye=F,K=n,F=v,n=R,v=C,R=d(ct,Gt,ut,Ze),C=M(ct,Gt,ut,Ze)}N(this.h,0,R,C),N(this.h,2,n,v),N(this.h,4,K,F),N(this.h,6,G,ye),N(this.h,8,Ee,pe),N(this.h,10,qe,Ce),N(this.h,12,Se,fe),N(this.h,14,Fe,oe)},Y.prototype._digest=function(l){return"hex"===l?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},3113:(We,q,m)=>{"use strict";var e=m(9299).rotr32;function T(w,L,k){return w&L^~w&k}function s(w,L,k){return w&L^w&k^L&k}function x(w,L,k){return w^L^k}q.ft_1=function g(w,L,k,V){return 0===w?T(L,k,V):1===w||3===w?x(L,k,V):2===w?s(L,k,V):void 0},q.ch32=T,q.maj32=s,q.p32=x,q.s0_256=function h(w){return e(w,2)^e(w,13)^e(w,22)},q.s1_256=function N(w){return e(w,6)^e(w,11)^e(w,25)},q.g0_256=function d(w){return e(w,7)^e(w,18)^w>>>3},q.g1_256=function M(w){return e(w,17)^e(w,19)^w>>>10}},9299:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894);function g(a,u){return!(55296!=(64512&a.charCodeAt(u))||u<0||u+1>=a.length)&&56320==(64512&a.charCodeAt(u+1))}function x(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function N(a){return 1===a.length?"0"+a:a}function d(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=e,q.toArray=function T(a,u){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if("string"==typeof a)if(u){if("hex"===u)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),O=0;O<a.length;O+=2)l.push(parseInt(a[O]+a[O+1],16))}else for(var _=0,O=0;O<a.length;O++){var R=a.charCodeAt(O);R<128?l[_++]=R:R<2048?(l[_++]=R>>6|192,l[_++]=63&R|128):g(a,O)?(R=65536+((1023&R)<<10)+(1023&a.charCodeAt(++O)),l[_++]=R>>18|240,l[_++]=R>>12&63|128,l[_++]=R>>6&63|128,l[_++]=63&R|128):(l[_++]=R>>12|224,l[_++]=R>>6&63|128,l[_++]=63&R|128)}else for(O=0;O<a.length;O++)l[O]=0|a[O];return l},q.toHex=function s(a){for(var u="",l=0;l<a.length;l++)u+=N(a[l].toString(16));return u},q.htonl=x,q.toHex32=function h(a,u){for(var l="",_=0;_<a.length;_++){var O=a[_];"little"===u&&(O=x(O)),l+=d(O.toString(16))}return l},q.zero2=N,q.zero8=d,q.join32=function M(a,u,l,_){var O=l-u;t(O%4==0);for(var R=new Array(O/4),C=0,n=u;C<R.length;C++,n+=4)R[C]=("big"===_?a[n]<<24|a[n+1]<<16|a[n+2]<<8|a[n+3]:a[n+3]<<24|a[n+2]<<16|a[n+1]<<8|a[n])>>>0;return R},q.split32=function w(a,u){for(var l=new Array(4*a.length),_=0,O=0;_<a.length;_++,O+=4){var R=a[_];"big"===u?(l[O]=R>>>24,l[O+1]=R>>>16&255,l[O+2]=R>>>8&255,l[O+3]=255&R):(l[O+3]=R>>>24,l[O+2]=R>>>16&255,l[O+1]=R>>>8&255,l[O]=255&R)}return l},q.rotr32=function L(a,u){return a>>>u|a<<32-u},q.rotl32=function k(a,u){return a<<u|a>>>32-u},q.sum32=function V(a,u){return a+u>>>0},q.sum32_3=function B(a,u,l){return a+u+l>>>0},q.sum32_4=function W(a,u,l,_){return a+u+l+_>>>0},q.sum32_5=function Y(a,u,l,_,O){return a+u+l+_+O>>>0},q.sum64=function Q(a,u,l,_){var C=_+a[u+1]>>>0;a[u]=(C<_?1:0)+l+a[u]>>>0,a[u+1]=C},q.sum64_hi=function X(a,u,l,_){return(u+_>>>0<u?1:0)+a+l>>>0},q.sum64_lo=function ee(a,u,l,_){return u+_>>>0},q.sum64_4_hi=function me(a,u,l,_,O,R,C,n){var v=0,K=u;return v+=(K=K+_>>>0)<u?1:0,v+=(K=K+R>>>0)<R?1:0,a+l+O+C+(v+=(K=K+n>>>0)<n?1:0)>>>0},q.sum64_4_lo=function re(a,u,l,_,O,R,C,n){return u+_+R+n>>>0},q.sum64_5_hi=function ie(a,u,l,_,O,R,C,n,v,K){var F=0,G=u;return F+=(G=G+_>>>0)<u?1:0,F+=(G=G+R>>>0)<R?1:0,F+=(G=G+n>>>0)<n?1:0,a+l+O+C+v+(F+=(G=G+K>>>0)<K?1:0)>>>0},q.sum64_5_lo=function se(a,u,l,_,O,R,C,n,v,K){return u+_+R+n+K>>>0},q.rotr64_hi=function ce(a,u,l){return(u<<32-l|a>>>l)>>>0},q.rotr64_lo=function Te(a,u,l){return(a<<32-l|u>>>l)>>>0},q.shr64_hi=function S(a,u,l){return a>>>l},q.shr64_lo=function i(a,u,l){return(a<<32-l|u>>>l)>>>0}},2438:(We,q,m)=>{"use strict";var t=m(7084),e=m(8195),g=m(2391);function T(s){if(!(this instanceof T))return new T(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var x=e.toArray(s.entropy,s.entropyEnc||"hex"),h=e.toArray(s.nonce,s.nonceEnc||"hex"),N=e.toArray(s.pers,s.persEnc||"hex");g(x.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(x,h,N)}We.exports=T,T.prototype._init=function(x,h,N){var d=x.concat(h).concat(N);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var M=0;M<this.V.length;M++)this.K[M]=0,this.V[M]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},T.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},T.prototype._update=function(x){var h=this._hmac().update(this.V).update([0]);x&&(h=h.update(x)),this.K=h.digest(),this.V=this._hmac().update(this.V).digest(),x&&(this.K=this._hmac().update(this.V).update([1]).update(x).digest(),this.V=this._hmac().update(this.V).digest())},T.prototype.reseed=function(x,h,N,d){"string"!=typeof h&&(d=N,N=h,h=null),x=e.toArray(x,h),N=e.toArray(N,d),g(x.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(x.concat(N||[])),this._reseed=1},T.prototype.generate=function(x,h,N,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof h&&(d=N,N=h,h=null),N&&(N=e.toArray(N,d||"hex"),this._update(N));for(var M=[];M.length<x;)this.V=this._hmac().update(this.V).digest(),M=M.concat(this.V);var w=M.slice(0,x);return this._update(N),this._reseed++,e.encode(w,h)}},8461:(We,q)=>{q.read=function(m,t,e,g,T){var s,x,h=8*T-g-1,N=(1<<h)-1,d=N>>1,M=-7,w=e?T-1:0,L=e?-1:1,k=m[t+w];for(w+=L,s=k&(1<<-M)-1,k>>=-M,M+=h;M>0;s=256*s+m[t+w],w+=L,M-=8);for(x=s&(1<<-M)-1,s>>=-M,M+=g;M>0;x=256*x+m[t+w],w+=L,M-=8);if(0===s)s=1-d;else{if(s===N)return x?NaN:1/0*(k?-1:1);x+=Math.pow(2,g),s-=d}return(k?-1:1)*x*Math.pow(2,s-g)},q.write=function(m,t,e,g,T,s){var x,h,N,d=8*s-T-1,M=(1<<d)-1,w=M>>1,L=23===T?Math.pow(2,-24)-Math.pow(2,-77):0,k=g?0:s-1,V=g?1:-1,B=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,x=M):(x=Math.floor(Math.log(t)/Math.LN2),t*(N=Math.pow(2,-x))<1&&(x--,N*=2),(t+=x+w>=1?L/N:L*Math.pow(2,1-w))*N>=2&&(x++,N/=2),x+w>=M?(h=0,x=M):x+w>=1?(h=(t*N-1)*Math.pow(2,T),x+=w):(h=t*Math.pow(2,w-1)*Math.pow(2,T),x=0));T>=8;m[e+k]=255&h,k+=V,h/=256,T-=8);for(x=x<<T|h,d+=T;d>0;m[e+k]=255&x,k+=V,x/=256,d-=8);m[e+k-V]|=128*B}},3894:We=>{We.exports="function"==typeof Object.create?function(m,t){t&&(m.super_=t,m.prototype=Object.create(t.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,t){if(t){m.super_=t;var e=function(){};e.prototype=t.prototype,m.prototype=new e,m.prototype.constructor=m}}},8095:(We,q,m)=>{"use strict";var t=m(3894),e=m(9650),g=m(3502).Buffer,T=new Array(16);function s(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function x(w,L){return w<<L|w>>>32-L}function h(w,L,k,V,B,W,Y){return x(w+(L&k|~L&V)+B+W|0,Y)+L|0}function N(w,L,k,V,B,W,Y){return x(w+(L&V|k&~V)+B+W|0,Y)+L|0}function d(w,L,k,V,B,W,Y){return x(w+(L^k^V)+B+W|0,Y)+L|0}function M(w,L,k,V,B,W,Y){return x(w+(k^(L|~V))+B+W|0,Y)+L|0}t(s,e),s.prototype._update=function(){for(var w=T,L=0;L<16;++L)w[L]=this._block.readInt32LE(4*L);var k=this._a,V=this._b,B=this._c,W=this._d;k=h(k,V,B,W,w[0],3614090360,7),W=h(W,k,V,B,w[1],3905402710,12),B=h(B,W,k,V,w[2],606105819,17),V=h(V,B,W,k,w[3],3250441966,22),k=h(k,V,B,W,w[4],4118548399,7),W=h(W,k,V,B,w[5],1200080426,12),B=h(B,W,k,V,w[6],2821735955,17),V=h(V,B,W,k,w[7],4249261313,22),k=h(k,V,B,W,w[8],1770035416,7),W=h(W,k,V,B,w[9],2336552879,12),B=h(B,W,k,V,w[10],4294925233,17),V=h(V,B,W,k,w[11],2304563134,22),k=h(k,V,B,W,w[12],1804603682,7),W=h(W,k,V,B,w[13],4254626195,12),B=h(B,W,k,V,w[14],2792965006,17),k=N(k,V=h(V,B,W,k,w[15],1236535329,22),B,W,w[1],4129170786,5),W=N(W,k,V,B,w[6],3225465664,9),B=N(B,W,k,V,w[11],643717713,14),V=N(V,B,W,k,w[0],3921069994,20),k=N(k,V,B,W,w[5],3593408605,5),W=N(W,k,V,B,w[10],38016083,9),B=N(B,W,k,V,w[15],3634488961,14),V=N(V,B,W,k,w[4],3889429448,20),k=N(k,V,B,W,w[9],568446438,5),W=N(W,k,V,B,w[14],3275163606,9),B=N(B,W,k,V,w[3],4107603335,14),V=N(V,B,W,k,w[8],1163531501,20),k=N(k,V,B,W,w[13],2850285829,5),W=N(W,k,V,B,w[2],4243563512,9),B=N(B,W,k,V,w[7],1735328473,14),k=d(k,V=N(V,B,W,k,w[12],2368359562,20),B,W,w[5],4294588738,4),W=d(W,k,V,B,w[8],2272392833,11),B=d(B,W,k,V,w[11],1839030562,16),V=d(V,B,W,k,w[14],4259657740,23),k=d(k,V,B,W,w[1],2763975236,4),W=d(W,k,V,B,w[4],1272893353,11),B=d(B,W,k,V,w[7],4139469664,16),V=d(V,B,W,k,w[10],3200236656,23),k=d(k,V,B,W,w[13],681279174,4),W=d(W,k,V,B,w[0],3936430074,11),B=d(B,W,k,V,w[3],3572445317,16),V=d(V,B,W,k,w[6],76029189,23),k=d(k,V,B,W,w[9],3654602809,4),W=d(W,k,V,B,w[12],3873151461,11),B=d(B,W,k,V,w[15],530742520,16),k=M(k,V=d(V,B,W,k,w[2],3299628645,23),B,W,w[0],4096336452,6),W=M(W,k,V,B,w[7],1126891415,10),B=M(B,W,k,V,w[14],2878612391,15),V=M(V,B,W,k,w[5],4237533241,21),k=M(k,V,B,W,w[12],1700485571,6),W=M(W,k,V,B,w[3],2399980690,10),B=M(B,W,k,V,w[10],4293915773,15),V=M(V,B,W,k,w[1],2240044497,21),k=M(k,V,B,W,w[8],1873313359,6),W=M(W,k,V,B,w[15],4264355552,10),B=M(B,W,k,V,w[6],2734768916,15),V=M(V,B,W,k,w[13],1309151649,21),k=M(k,V,B,W,w[4],4149444226,6),W=M(W,k,V,B,w[11],3174756917,10),B=M(B,W,k,V,w[2],718787259,15),V=M(V,B,W,k,w[9],3951481745,21),this._a=this._a+k|0,this._b=this._b+V|0,this._c=this._c+B|0,this._d=this._d+W|0},s.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=g.allocUnsafe(16);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w},We.exports=s},7079:(We,q,m)=>{var t=m(1378),e=m(7950);function g(T){this.rand=T||new e.Rand}We.exports=g,g.create=function(s){return new g(s)},g.prototype._randbelow=function(s){var x=s.bitLength(),h=Math.ceil(x/8);do{var N=new t(this.rand.generate(h))}while(N.cmp(s)>=0);return N},g.prototype._randrange=function(s,x){var h=x.sub(s);return s.add(this._randbelow(h))},g.prototype.test=function(s,x,h){var N=s.bitLength(),d=t.mont(s),M=new t(1).toRed(d);x||(x=Math.max(1,N/48|0));for(var w=s.subn(1),L=0;!w.testn(L);L++);for(var k=s.shrn(L),V=w.toRed(d);x>0;x--){var W=this._randrange(new t(2),w);h&&h(W);var Y=W.toRed(d).redPow(k);if(0!==Y.cmp(M)&&0!==Y.cmp(V)){for(var Q=1;Q<L;Q++){if(0===(Y=Y.redSqr()).cmp(M))return!1;if(0===Y.cmp(V))break}if(Q===L)return!1}}return!0},g.prototype.getDivisor=function(s,x){var h=s.bitLength(),N=t.mont(s),d=new t(1).toRed(N);x||(x=Math.max(1,h/48|0));for(var M=s.subn(1),w=0;!M.testn(w);w++);for(var L=s.shrn(w),k=M.toRed(N);x>0;x--){var V=this._randrange(new t(2),M),B=s.gcd(V);if(0!==B.cmpn(1))return B;var W=V.toRed(N).redPow(L);if(0!==W.cmp(d)&&0!==W.cmp(k)){for(var Y=1;Y<w;Y++){if(0===(W=W.redSqr()).cmp(d))return W.fromRed().subn(1).gcd(s);if(0===W.cmp(k))break}if(Y===w)return(W=W.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},1378:function(We,q,m){!function(t,e){"use strict";function g(S,i){if(!S)throw new Error(i||"Assertion failed")}function T(S,i){S.super_=i;var a=function(){};a.prototype=i.prototype,S.prototype=new a,S.prototype.constructor=S}function s(S,i,a){if(s.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(S||0,i||10,a||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(6619).Buffer}catch{}function h(S,i){var a=S.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(S,i,a){var u=h(S,a);return a-1>=i&&(u|=h(S,a-1)<<4),u}function d(S,i,a,u){for(var l=0,_=Math.min(S.length,a),O=i;O<_;O++){var R=S.charCodeAt(O)-48;l*=u,l+=R>=49?R-49+10:R>=17?R-17+10:R}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),g(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(g("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var _,O,R=0;if("be"===u)for(l=i.length-1,_=0;l>=0;l-=3)this.words[_]|=(O=i[l]|i[l-1]<<8|i[l-2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);else if("le"===u)for(l=0,_=0;l<i.length;l+=3)this.words[_]|=(O=i[l]|i[l+1]<<8|i[l+2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var R,_=0,O=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,_=1;_<=67108863;_*=a)l++;l--,_=_/a|0;for(var O=i.length-u,R=O%l,C=Math.min(O,O-R)+u,n=0,v=u;v<C;v+=l)n=d(i,v,v+l,a),this.imuln(_),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==R){var K=1;for(n=d(i,v,i.length,a),v=0;v<R;v++)K*=a;this.imuln(K),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[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 V(S,i,a){a.negative=i.negative^S.negative;var u=S.length+i.length|0;a.length=u,u=u-1|0;var l=0|S.words[0],_=0|i.words[0],O=l*_,C=O/67108864|0;a.words[0]=67108863&O;for(var n=1;n<u;n++){for(var v=C>>>26,K=67108863&C,F=Math.min(n,i.length-1),G=Math.max(0,n-S.length+1);G<=F;G++)v+=(O=(l=0|S.words[n-G|0])*(_=0|i.words[G])+K)/67108864|0,K=67108863&O;a.words[n]=0|K,C=0|v}return 0!==C?a.words[n]=0|C:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,_=0,O=0;O<this.length;O++){var R=this.words[O],C=(16777215&(R<<l|_)).toString(16);u=0!=(_=R>>>24-l&16777215)||O!==this.length-1?M[6-C.length]+C+u:C+u,(l+=2)>=26&&(l-=26,O--)}for(0!==_&&(u=_.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],v=L[i];u="";var K=this.clone();for(K.negative=0;!K.isZero();){var F=K.modn(v).toString(i);u=(K=K.idivn(v)).isZero()?F+u:M[n-F.length]+F+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}g(!1,"Base should be between 2 and 36")},s.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&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return g(typeof x<"u"),this.toArrayLike(x,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),_=u||Math.max(1,l);g(l<=_,"byte array longer than desired length"),g(_>0,"Requested array length <= 0"),this.strip();var C,n,O="le"===a,R=new i(_),v=this.clone();if(O){for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[n]=C;for(;n<_;n++)R[n]=0}else{for(n=0;n<_-l;n++)R[n]=0;for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[_-n-1]=C}return R},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return g(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return g(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return g(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){g("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){g("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var _=0,O=0;O<l.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+(0|l.words[O])+_),_=a>>>26;for(;0!==_&&O<u.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+_),_=a>>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;O<u.length;O++)this.words[O]=u.words[O];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,_=i):(l=i,_=this);for(var O=0,R=0;R<_.length;R++)O=(a=(0|l.words[R])-(0|_.words[R])+O)>>26,this.words[R]=67108863&a;for(;0!==O&&R<l.length;R++)O=(a=(0|l.words[R])+O)>>26,this.words[R]=67108863&a;if(0===O&&R<l.length&&l!==this)for(;R<l.length;R++)this.words[R]=l.words[R];return this.length=Math.max(this.length,R),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var B=function(i,a,u){var C,n,v,l=i.words,_=a.words,O=u.words,R=0,K=0|l[0],F=8191&K,G=K>>>13,ye=0|l[1],Ee=8191&ye,pe=ye>>>13,qe=0|l[2],Ce=8191&qe,Se=qe>>>13,fe=0|l[3],Fe=8191&fe,oe=fe>>>13,ze=0|l[4],Oe=8191&ze,he=ze>>>13,Ae=0|l[5],ge=8191&Ae,Ue=Ae>>>13,Je=0|l[6],Re=8191&Je,le=Je>>>13,rt=0|l[7],Qe=8191&rt,ct=rt>>>13,Gt=0|l[8],ut=8191&Gt,Ze=Gt>>>13,xt=0|l[9],Me=8191&xt,$e=xt>>>13,Pe=0|_[0],J=8191&Pe,mt=Pe>>>13,Et=0|_[1],at=8191&Et,je=Et>>>13,Ht=0|_[2],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|_[3],Ne=8191&Bt,$=Bt>>>13,ue=0|_[4],Ie=8191&ue,Xe=ue>>>13,ei=0|_[5],zt=8191&ei,ni=ei>>>13,pt=0|_[6],ot=8191&pt,ft=pt>>>13,St=0|_[7],gt=8191&St,tt=St>>>13,_t=0|_[8],vt=8191&_t,Ve=_t>>>13,Tt=0|_[9],Lt=8191&Tt,Qt=Tt>>>13;u.negative=i.negative^a.negative,u.length=19;var Bi=(R+(C=Math.imul(F,J))|0)+((8191&(n=(n=Math.imul(F,mt))+Math.imul(G,J)|0))<<13)|0;R=((v=Math.imul(G,mt))+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,C=Math.imul(Ee,J),n=(n=Math.imul(Ee,mt))+Math.imul(pe,J)|0,v=Math.imul(pe,mt);var Hi=(R+(C=C+Math.imul(F,at)|0)|0)+((8191&(n=(n=n+Math.imul(F,je)|0)+Math.imul(G,at)|0))<<13)|0;R=((v=v+Math.imul(G,je)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,C=Math.imul(Ce,J),n=(n=Math.imul(Ce,mt))+Math.imul(Se,J)|0,v=Math.imul(Se,mt),C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,je)|0)+Math.imul(pe,at)|0,v=v+Math.imul(pe,je)|0;var Si=(R+(C=C+Math.imul(F,Ct)|0)|0)+((8191&(n=(n=n+Math.imul(F,Nt)|0)+Math.imul(G,Ct)|0))<<13)|0;R=((v=v+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,C=Math.imul(Fe,J),n=(n=Math.imul(Fe,mt))+Math.imul(oe,J)|0,v=Math.imul(oe,mt),C=C+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,je)|0)+Math.imul(Se,at)|0,v=v+Math.imul(Se,je)|0,C=C+Math.imul(Ee,Ct)|0,n=(n=n+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0,v=v+Math.imul(pe,Nt)|0;var Wi=(R+(C=C+Math.imul(F,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(F,$)|0)+Math.imul(G,Ne)|0))<<13)|0;R=((v=v+Math.imul(G,$)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(Oe,J),n=(n=Math.imul(Oe,mt))+Math.imul(he,J)|0,v=Math.imul(he,mt),C=C+Math.imul(Fe,at)|0,n=(n=n+Math.imul(Fe,je)|0)+Math.imul(oe,at)|0,v=v+Math.imul(oe,je)|0,C=C+Math.imul(Ce,Ct)|0,n=(n=n+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,v=v+Math.imul(Se,Nt)|0,C=C+Math.imul(Ee,Ne)|0,n=(n=n+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0,v=v+Math.imul(pe,$)|0;var et=(R+(C=C+Math.imul(F,Ie)|0)|0)+((8191&(n=(n=n+Math.imul(F,Xe)|0)+Math.imul(G,Ie)|0))<<13)|0;R=((v=v+Math.imul(G,Xe)|0)+(n>>>13)|0)+(et>>>26)|0,et&=67108863,C=Math.imul(ge,J),n=(n=Math.imul(ge,mt))+Math.imul(Ue,J)|0,v=Math.imul(Ue,mt),C=C+Math.imul(Oe,at)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(he,at)|0,v=v+Math.imul(he,je)|0,C=C+Math.imul(Fe,Ct)|0,n=(n=n+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,v=v+Math.imul(oe,Nt)|0,C=C+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,v=v+Math.imul(Se,$)|0,C=C+Math.imul(Ee,Ie)|0,n=(n=n+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,Xe)|0;var It=(R+(C=C+Math.imul(F,zt)|0)|0)+((8191&(n=(n=n+Math.imul(F,ni)|0)+Math.imul(G,zt)|0))<<13)|0;R=((v=v+Math.imul(G,ni)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(Re,J),n=(n=Math.imul(Re,mt))+Math.imul(le,J)|0,v=Math.imul(le,mt),C=C+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,je)|0)+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,je)|0,C=C+Math.imul(Oe,Ct)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,v=v+Math.imul(he,Nt)|0,C=C+Math.imul(Fe,Ne)|0,n=(n=n+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,v=v+Math.imul(oe,$)|0,C=C+Math.imul(Ce,Ie)|0,n=(n=n+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,v=v+Math.imul(Se,Xe)|0,C=C+Math.imul(Ee,zt)|0,n=(n=n+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0,v=v+Math.imul(pe,ni)|0;var Le=(R+(C=C+Math.imul(F,ot)|0)|0)+((8191&(n=(n=n+Math.imul(F,ft)|0)+Math.imul(G,ot)|0))<<13)|0;R=((v=v+Math.imul(G,ft)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(Qe,J),n=(n=Math.imul(Qe,mt))+Math.imul(ct,J)|0,v=Math.imul(ct,mt),C=C+Math.imul(Re,at)|0,n=(n=n+Math.imul(Re,je)|0)+Math.imul(le,at)|0,v=v+Math.imul(le,je)|0,C=C+Math.imul(ge,Ct)|0,n=(n=n+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,v=v+Math.imul(Ue,Nt)|0,C=C+Math.imul(Oe,Ne)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,v=v+Math.imul(he,$)|0,C=C+Math.imul(Fe,Ie)|0,n=(n=n+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,v=v+Math.imul(oe,Xe)|0,C=C+Math.imul(Ce,zt)|0,n=(n=n+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,v=v+Math.imul(Se,ni)|0,C=C+Math.imul(Ee,ot)|0,n=(n=n+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0,v=v+Math.imul(pe,ft)|0;var Mt=(R+(C=C+Math.imul(F,gt)|0)|0)+((8191&(n=(n=n+Math.imul(F,tt)|0)+Math.imul(G,gt)|0))<<13)|0;R=((v=v+Math.imul(G,tt)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(ut,J),n=(n=Math.imul(ut,mt))+Math.imul(Ze,J)|0,v=Math.imul(Ze,mt),C=C+Math.imul(Qe,at)|0,n=(n=n+Math.imul(Qe,je)|0)+Math.imul(ct,at)|0,v=v+Math.imul(ct,je)|0,C=C+Math.imul(Re,Ct)|0,n=(n=n+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,v=v+Math.imul(le,Nt)|0,C=C+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,v=v+Math.imul(Ue,$)|0,C=C+Math.imul(Oe,Ie)|0,n=(n=n+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,v=v+Math.imul(he,Xe)|0,C=C+Math.imul(Fe,zt)|0,n=(n=n+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,v=v+Math.imul(oe,ni)|0,C=C+Math.imul(Ce,ot)|0,n=(n=n+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,v=v+Math.imul(Se,ft)|0,C=C+Math.imul(Ee,gt)|0,n=(n=n+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0,v=v+Math.imul(pe,tt)|0;var Wt=(R+(C=C+Math.imul(F,vt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Ve)|0)+Math.imul(G,vt)|0))<<13)|0;R=((v=v+Math.imul(G,Ve)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,C=Math.imul(Me,J),n=(n=Math.imul(Me,mt))+Math.imul($e,J)|0,v=Math.imul($e,mt),C=C+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,je)|0)+Math.imul(Ze,at)|0,v=v+Math.imul(Ze,je)|0,C=C+Math.imul(Qe,Ct)|0,n=(n=n+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,v=v+Math.imul(ct,Nt)|0,C=C+Math.imul(Re,Ne)|0,n=(n=n+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,v=v+Math.imul(le,$)|0,C=C+Math.imul(ge,Ie)|0,n=(n=n+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,v=v+Math.imul(Ue,Xe)|0,C=C+Math.imul(Oe,zt)|0,n=(n=n+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,v=v+Math.imul(he,ni)|0,C=C+Math.imul(Fe,ot)|0,n=(n=n+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,v=v+Math.imul(oe,ft)|0,C=C+Math.imul(Ce,gt)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,v=v+Math.imul(Se,tt)|0,C=C+Math.imul(Ee,vt)|0,n=(n=n+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0,v=v+Math.imul(pe,Ve)|0;var si=(R+(C=C+Math.imul(F,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Qt)|0)+Math.imul(G,Lt)|0))<<13)|0;R=((v=v+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,C=Math.imul(Me,at),n=(n=Math.imul(Me,je))+Math.imul($e,at)|0,v=Math.imul($e,je),C=C+Math.imul(ut,Ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,v=v+Math.imul(Ze,Nt)|0,C=C+Math.imul(Qe,Ne)|0,n=(n=n+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,v=v+Math.imul(ct,$)|0,C=C+Math.imul(Re,Ie)|0,n=(n=n+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,v=v+Math.imul(le,Xe)|0,C=C+Math.imul(ge,zt)|0,n=(n=n+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,v=v+Math.imul(Ue,ni)|0,C=C+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,v=v+Math.imul(he,ft)|0,C=C+Math.imul(Fe,gt)|0,n=(n=n+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,v=v+Math.imul(oe,tt)|0,C=C+Math.imul(Ce,vt)|0,n=(n=n+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,v=v+Math.imul(Se,Ve)|0;var Ai=(R+(C=C+Math.imul(Ee,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;R=((v=v+Math.imul(pe,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,C=Math.imul(Me,Ct),n=(n=Math.imul(Me,Nt))+Math.imul($e,Ct)|0,v=Math.imul($e,Nt),C=C+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,v=v+Math.imul(Ze,$)|0,C=C+Math.imul(Qe,Ie)|0,n=(n=n+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,v=v+Math.imul(ct,Xe)|0,C=C+Math.imul(Re,zt)|0,n=(n=n+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,v=v+Math.imul(le,ni)|0,C=C+Math.imul(ge,ot)|0,n=(n=n+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,ft)|0,C=C+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,v=v+Math.imul(he,tt)|0,C=C+Math.imul(Fe,vt)|0,n=(n=n+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,v=v+Math.imul(oe,Ve)|0;var Ri=(R+(C=C+Math.imul(Ce,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0))<<13)|0;R=((v=v+Math.imul(Se,Qt)|0)+(n>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,C=Math.imul(Me,Ne),n=(n=Math.imul(Me,$))+Math.imul($e,Ne)|0,v=Math.imul($e,$),C=C+Math.imul(ut,Ie)|0,n=(n=n+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,v=v+Math.imul(Ze,Xe)|0,C=C+Math.imul(Qe,zt)|0,n=(n=n+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,v=v+Math.imul(ct,ni)|0,C=C+Math.imul(Re,ot)|0,n=(n=n+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,v=v+Math.imul(le,ft)|0,C=C+Math.imul(ge,gt)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,v=v+Math.imul(Ue,tt)|0,C=C+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,v=v+Math.imul(he,Ve)|0;var $i=(R+(C=C+Math.imul(Fe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0))<<13)|0;R=((v=v+Math.imul(oe,Qt)|0)+(n>>>13)|0)+($i>>>26)|0,$i&=67108863,C=Math.imul(Me,Ie),n=(n=Math.imul(Me,Xe))+Math.imul($e,Ie)|0,v=Math.imul($e,Xe),C=C+Math.imul(ut,zt)|0,n=(n=n+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,v=v+Math.imul(Ze,ni)|0,C=C+Math.imul(Qe,ot)|0,n=(n=n+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,v=v+Math.imul(ct,ft)|0,C=C+Math.imul(Re,gt)|0,n=(n=n+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,v=v+Math.imul(le,tt)|0,C=C+Math.imul(ge,vt)|0,n=(n=n+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,v=v+Math.imul(Ue,Ve)|0;var nn=(R+(C=C+Math.imul(Oe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0))<<13)|0;R=((v=v+Math.imul(he,Qt)|0)+(n>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Me,zt),n=(n=Math.imul(Me,ni))+Math.imul($e,zt)|0,v=Math.imul($e,ni),C=C+Math.imul(ut,ot)|0,n=(n=n+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,v=v+Math.imul(Ze,ft)|0,C=C+Math.imul(Qe,gt)|0,n=(n=n+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,v=v+Math.imul(ct,tt)|0,C=C+Math.imul(Re,vt)|0,n=(n=n+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,v=v+Math.imul(le,Ve)|0;var Qi=(R+(C=C+Math.imul(ge,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,C=Math.imul(Me,ot),n=(n=Math.imul(Me,ft))+Math.imul($e,ot)|0,v=Math.imul($e,ft),C=C+Math.imul(ut,gt)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,v=v+Math.imul(Ze,tt)|0,C=C+Math.imul(Qe,vt)|0,n=(n=n+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,v=v+Math.imul(ct,Ve)|0;var Yt=(R+(C=C+Math.imul(Re,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0))<<13)|0;R=((v=v+Math.imul(le,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Me,gt),n=(n=Math.imul(Me,tt))+Math.imul($e,gt)|0,v=Math.imul($e,tt),C=C+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,v=v+Math.imul(Ze,Ve)|0;var Xt=(R+(C=C+Math.imul(Qe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0))<<13)|0;R=((v=v+Math.imul(ct,Qt)|0)+(n>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(Me,vt),n=(n=Math.imul(Me,Ve))+Math.imul($e,vt)|0,v=Math.imul($e,Ve);var be=(R+(C=C+Math.imul(ut,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ze,Qt)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863;var dt=(R+(C=Math.imul(Me,Lt))|0)+((8191&(n=(n=Math.imul(Me,Qt))+Math.imul($e,Lt)|0))<<13)|0;return R=((v=Math.imul($e,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,O[0]=Bi,O[1]=Hi,O[2]=Si,O[3]=Wi,O[4]=et,O[5]=It,O[6]=Le,O[7]=Mt,O[8]=Wt,O[9]=si,O[10]=Ai,O[11]=Ri,O[12]=$i,O[13]=nn,O[14]=Qi,O[15]=Yt,O[16]=Xt,O[17]=be,O[18]=dt,0!==R&&(O[19]=R,u.length++),u};function Y(S,i,a){return(new Q).mulp(S,i,a)}function Q(S,i){this.x=S,this.y=i}Math.imul||(B=V),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?B(this,i,a):l<63?V(this,i,a):l<1024?function W(S,i,a){a.negative=i.negative^S.negative,a.length=S.length+i.length;for(var u=0,l=0,_=0;_<a.length-1;_++){var O=l;l=0;for(var R=67108863&u,C=Math.min(_,i.length-1),n=Math.max(0,_-S.length+1);n<=C;n++){var G=(0|S.words[_-n])*(0|i.words[n]),ye=67108863&G;R=67108863&(ye=ye+R|0),l+=(O=(O=O+(G/67108864|0)|0)+(ye>>>26)|0)>>>26,O&=67108863}a.words[_]=R,u=O,O=l}return 0!==u?a.words[_]=u:a.length--,a.strip()}(this,i,a):Y(this,i,a),u},Q.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},Q.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,_=0;_<a;_++)l|=(1&i)<<a-_-1,i>>=1;return l},Q.prototype.permute=function(i,a,u,l,_,O){for(var R=0;R<O;R++)l[R]=a[i[R]],_[R]=u[i[R]]},Q.prototype.transform=function(i,a,u,l,_,O){this.permute(O,i,a,u,l,_);for(var R=1;R<_;R<<=1)for(var C=R<<1,n=Math.cos(2*Math.PI/C),v=Math.sin(2*Math.PI/C),K=0;K<_;K+=C)for(var F=n,G=v,ye=0;ye<R;ye++){var Ee=u[K+ye],pe=l[K+ye],qe=u[K+ye+R],Ce=l[K+ye+R],Se=F*qe-G*Ce;Ce=F*Ce+G*qe,u[K+ye]=Ee+(qe=Se),l[K+ye]=pe+Ce,u[K+ye+R]=Ee-qe,l[K+ye+R]=pe-Ce,ye!==C&&(Se=n*F-v*G,G=n*G+v*F,F=Se)}},Q.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,_=0;for(u=u/2|0;u;u>>>=1)_++;return 1<<_+1+l},Q.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var _=i[l];i[l]=i[u-l-1],i[u-l-1]=_,_=a[l],a[l]=-a[u-l-1],a[u-l-1]=-_}},Q.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var _=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&_,u=_<67108864?0:_/67108864|0}return i},Q.prototype.convert13b=function(i,a,u,l){for(var _=0,O=0;O<a;O++)u[2*O]=8191&(_+=0|i[O]),u[2*O+1]=8191&(_>>>=13),_>>>=13;for(O=2*a;O<l;++O)u[O]=0;g(0===_),g(0==(-8192&_))},Q.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},Q.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(l),O=this.stub(l),R=new Array(l),C=new Array(l),n=new Array(l),v=new Array(l),K=new Array(l),F=new Array(l),G=u.words;G.length=l,this.convert13b(i.words,i.length,R,l),this.convert13b(a.words,a.length,v,l),this.transform(R,O,C,n,l,_),this.transform(v,O,K,F,l,_);for(var ye=0;ye<l;ye++){var Ee=C[ye]*K[ye]-n[ye]*F[ye];n[ye]=C[ye]*F[ye]+n[ye]*K[ye],C[ye]=Ee}return this.conjugate(C,n,l),this.transform(C,n,G,O,l,_),this.conjugate(G,O,l),this.normalize13b(G,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),Y(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){g("number"==typeof i),g(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,_=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=_>>>26,this.words[u]=67108863&_}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function k(S){for(var i=new Array(S.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(S.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var _=u.sqr();l<a.length;l++,_=_.sqr())0!==a[l]&&(u=u.mul(_));return u},s.prototype.iushln=function(i){g("number"==typeof i&&i>=0);var _,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var O=0;for(_=0;_<this.length;_++){var R=this.words[_]&l;this.words[_]=(0|this.words[_])-R<<a|O,O=R>>>26-a}O&&(this.words[_]=O,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_<u;_++)this.words[_]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return g(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;g("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var _=i%26,O=Math.min((i-_)/26,this.length),R=67108863^67108863>>>_<<_,C=u;if(l-=O,l=Math.max(0,l),C){for(var n=0;n<O;n++)C.words[n]=this.words[n];C.length=O}if(0!==O)if(this.length>O)for(this.length-=O,n=0;n<this.length;n++)this.words[n]=this.words[n+O];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(0!==v||n>=l);n--){var K=0|this.words[n];this.words[n]=v<<26-_|K>>>_,v=K&R}return C&&0!==v&&(C.words[C.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return g(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return g("number"==typeof i),g(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[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},s.prototype.isubn=function(i){if(g("number"==typeof i),g(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<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var _;this._expand(i.length+u);var O,R=0;for(_=0;_<i.length;_++){O=(0|this.words[_+u])+R;var C=(0|i.words[_])*a;R=((O-=67108863&C)>>26)-(C/67108864|0),this.words[_+u]=67108863&O}for(;_<this.length-u;_++)R=(O=(0|this.words[_+u])+R)>>26,this.words[_+u]=67108863&O;if(0===R)return this.strip();for(g(-1===R),R=0,_=0;_<this.length;_++)R=(O=-(0|this.words[_])+R)>>26,this.words[_]=67108863&O;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),_=i,O=0|_.words[_.length-1];0!=(u=26-this._countBits(O))&&(_=_.ushln(u),l.iushln(u),O=0|_.words[_.length-1]);var n,C=l.length-_.length;if("mod"!==a){(n=new s(null)).length=C+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var K=l.clone()._ishlnsubmul(_,1,C);0===K.negative&&(l=K,n&&(n.words[C]=1));for(var F=C-1;F>=0;F--){var G=67108864*(0|l.words[_.length+F])+(0|l.words[_.length+F-1]);for(G=Math.min(G/O|0,67108863),l._ishlnsubmul(_,G,F);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(_,1,F),l.isZero()||(l.negative^=1);n&&(n.words[F]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return g(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(O=this.neg().divmod(i,a),"mod"!==a&&(l=O.div.neg()),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:l,mod:_}):0===this.negative&&0!==i.negative?(O=this.divmod(i.neg(),a),"mod"!==a&&(l=O.div.neg()),{div:l,mod:O.mod}):this.negative&i.negative?(O=this.neg().divmod(i.neg(),a),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:O.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,_,O},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),_=i.andln(1),O=u.cmp(l);return O<0||1===_&&0===O?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){g(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){g(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){g(0===i.negative),g(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=new s(0),R=new s(1),C=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++C;for(var n=u.clone(),v=a.clone();!a.isZero();){for(var K=0,F=1;!(a.words[0]&F)&&K<26;++K,F<<=1);if(K>0)for(a.iushrn(K);K-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(n),_.isub(v)),l.iushrn(1),_.iushrn(1);for(var G=0,ye=1;!(u.words[0]&ye)&&G<26;++G,ye<<=1);if(G>0)for(u.iushrn(G);G-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(n),R.isub(v)),O.iushrn(1),R.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(O),_.isub(R)):(u.isub(a),O.isub(l),R.isub(_))}return{a:O,b:R,gcd:u.iushln(C)}},s.prototype._invmp=function(i){g(0===i.negative),g(!i.isZero());var K,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var R=0,C=1;!(a.words[0]&C)&&R<26;++R,C<<=1);if(R>0)for(a.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(O),l.iushrn(1);for(var n=0,v=1;!(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(_)):(u.isub(a),_.isub(l))}return(K=0===a.cmpn(1)?l:_).cmpn(0)<0&&K.iadd(i),K},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=a.cmp(u);if(_<0){var O=a;a=u,u=O}else if(0===_||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){g("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var _=l,O=u;0!==_&&O<this.length;O++){var R=0|this.words[O];_=(R+=_)>>>26,this.words[O]=R&=67108863}return 0!==_&&(this.words[O]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),g(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],_=0|i.words[u];if(l!==_){l<_?a=-1:l>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var X={k256:null,p224:null,p192:null,p25519:null};function ee(S,i){this.name=S,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(S){if("string"==typeof S){var i=s._prime(S);this.m=i.p,this.prime=i}else g(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function Te(S){ce.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?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)},T(me,ee),me.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),_=0;_<l;_++)a.words[_]=i.words[_];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var O=i.words[9];for(a.words[a.length++]=O&u,_=10;_<i.length;_++){var R=0|i.words[_];i.words[_-10]=(R&u)<<4|O>>>22,O=R}i.words[_-10]=O>>>=22,i.length-=0===O&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},T(re,ee),T(ie,ee),T(se,ee),se.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,_=67108863&l;l>>>=26,i.words[u]=_,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(X[i])return X[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return X[i]=a,a},ce.prototype._verify1=function(i){g(0===i.negative,"red works only with positives"),g(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){g(0==(i.negative|a.negative),"red works only with positives"),g(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},ce.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(g(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),_=0;!l.isZero()&&0===l.andln(1);)_++,l.iushrn(1);g(!l.isZero());var O=new s(1).toRed(this),R=O.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,C).cmp(R);)n.redIAdd(R);for(var v=this.pow(n,l),K=this.pow(i,l.addn(1).iushrn(1)),F=this.pow(i,l),G=_;0!==F.cmp(O);){for(var ye=F,Ee=0;0!==ye.cmp(O);Ee++)ye=ye.redSqr();g(Ee<G);var pe=this.pow(v,new s(1).iushln(G-Ee-1));K=K.redMul(pe),v=pe.redSqr(),F=F.redMul(v),G=Ee}return K},ce.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},ce.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var _=2;_<l.length;_++)l[_]=this.mul(l[_-1],i);var O=l[0],R=0,C=0,n=a.bitLength()%26;for(0===n&&(n=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],K=n-1;K>=0;K--){var F=v>>K&1;O!==l[0]&&(O=this.sqr(O)),0!==F||0!==R?(R<<=1,R|=F,(4==++C||0===_&&0===K)&&(O=this.mul(O,l[R]),C=0,R=0)):C=0}n=26}return O},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Te(i)},T(Te,ce),Te.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Te.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Te.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},2391:We=>{function q(m,t){if(!m)throw new Error(t||"Assertion failed")}We.exports=q,q.equal=function(t,e,g){if(t!=e)throw new Error(g||"Assertion failed: "+t+" != "+e)}},8195:(We,q)=>{"use strict";var m=q;function e(T){return 1===T.length?"0"+T:T}function g(T){for(var s="",x=0;x<T.length;x++)s+=e(T[x].toString(16));return s}m.toArray=function t(T,s){if(Array.isArray(T))return T.slice();if(!T)return[];var x=[];if("string"!=typeof T){for(var h=0;h<T.length;h++)x[h]=0|T[h];return x}if("hex"===s)for((T=T.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(T="0"+T),h=0;h<T.length;h+=2)x.push(parseInt(T[h]+T[h+1],16));else for(h=0;h<T.length;h++){var N=T.charCodeAt(h),d=N>>8,M=255&N;d?x.push(d,M):x.push(M)}return x},m.zero2=e,m.toHex=g,m.encode=function(s,x){return"hex"===x?g(s):s}},5768:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=m(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(q,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(We,q,m)=>{"use strict";var t=m(7977);q.certificate=m(2390);var e=t.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});q.RSAPrivateKey=e;var g=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=g;var T=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});q.PublicKey=T;var s=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),x=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});q.PrivateKey=x;var h=t.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});q.EncryptedPrivateKey=h;var N=t.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});q.DSAPrivateKey=N,q.DSAparam=t.define("DSAparam",function(){this.int()});var d=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(M),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=d;var M=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});q.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(We,q,m)=>{"use strict";var t=m(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),g=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),T=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(T),this.key("subjectPublicKey").bitstr())}),x=t.define("RelativeDistinguishedName",function(){this.setof(g)}),h=t.define("RDNSequence",function(){this.seqof(x)}),N=t.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),d=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),M=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),w=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(T),this.key("issuer").use(N),this.key("validity").use(d),this.key("subject").use(N),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(M).optional())}),L=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(T),this.key("signatureValue").bitstr())});We.exports=L},5269:(We,q,m)=>{var t=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,T=m(347),s=m(4330),x=m(3502).Buffer;We.exports=function(h,N){var w,d=h.toString(),M=d.match(t);if(M){var k="aes"+M[1],V=x.from(M[2],"hex"),B=x.from(M[3].replace(/[\r\n]/g,""),"base64"),W=T(N,V.slice(0,8),parseInt(M[1],10)).key,Y=[],Q=s.createDecipheriv(k,W,V);Y.push(Q.update(B)),Y.push(Q.final()),w=x.concat(Y)}else{var L=d.match(g);w=x.from(L[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(e)[1],data:w}}},2772:(We,q,m)=>{var t=m(2999),e=m(2562),g=m(5269),T=m(4330),s=m(9357),x=m(3502).Buffer;function h(d){var M;"object"==typeof d&&!x.isBuffer(d)&&(M=d.passphrase,d=d.key),"string"==typeof d&&(d=x.from(d));var V,B,w=g(d,M),L=w.tag,k=w.data;switch(L){case"CERTIFICATE":B=t.certificate.decode(k,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(B||(B=t.PublicKey.decode(k,"der")),V=B.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(B.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return B.subjectPrivateKey=B.subjectPublicKey,{type:"ec",data:B};case"1.2.840.10040.4.1":return B.algorithm.params.pub_key=t.DSAparam.decode(B.subjectPublicKey.data,"der"),{type:"dsa",data:B.algorithm.params};default:throw new Error("unknown key id "+V)}case"ENCRYPTED PRIVATE KEY":k=function N(d,M){var w=d.algorithm.decrypt.kde.kdeparams.salt,L=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),k=e[d.algorithm.decrypt.cipher.algo.join(".")],V=d.algorithm.decrypt.cipher.iv,B=d.subjectPrivateKey,W=parseInt(k.split("-")[1],10)/8,Y=s.pbkdf2Sync(M,w,L,W,"sha1"),Q=T.createDecipheriv(k,Y,V),X=[];return X.push(Q.update(B)),X.push(Q.final()),x.concat(X)}(k=t.EncryptedPrivateKey.decode(k,"der"),M);case"PRIVATE KEY":switch(V=(B=t.PrivateKey.decode(k,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(B.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:B.algorithm.curve,privateKey:t.ECPrivateKey.decode(B.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return B.algorithm.params.priv_key=t.DSAparam.decode(B.subjectPrivateKey,"der"),{type:"dsa",params:B.algorithm.params};default:throw new Error("unknown key id "+V)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(k,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(k,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(k,"der")};case"EC PRIVATE KEY":return{curve:(k=t.ECPrivateKey.decode(k,"der")).parameters.value,privateKey:k.privateKey};default:throw new Error("unknown key type "+L)}}We.exports=h,h.signature=t.signature},9357:(We,q,m)=>{q.pbkdf2=m(415),q.pbkdf2Sync=m(7472)},415:(We,q,m)=>{var x,w,t=m(3502).Buffer,e=m(2697),g=m(8867),T=m(7472),s=m(4566),h=global.crypto&&global.crypto.subtle,N={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function L(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function k(B,W,Y,Q,X){return h.importKey("raw",B,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return h.deriveBits({name:"PBKDF2",salt:W,iterations:Y,hash:{name:X}},ee,Q<<3)}).then(function(ee){return t.from(ee)})}We.exports=function(B,W,Y,Q,X,ee){"function"==typeof X&&(ee=X,X=void 0);var me=N[(X=X||"sha1").toLowerCase()];if(me&&"function"==typeof global.Promise){if(e(Y,Q),B=s(B,g,"Password"),W=s(W,g,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function V(B,W){B.then(function(Y){L()(function(){W(null,Y)})},function(Y){L()(function(){W(Y)})})}(function M(B){if(global.process&&!global.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==d[B])return d[B];var W=k(x=x||t.alloc(8),x,10,128,B).then(function(){return!0}).catch(function(){return!1});return d[B]=W,W}(me).then(function(re){return re?k(B,W,Y,Q,me):T(B,W,Y,Q,X)}),ee)}else L()(function(){var re;try{re=T(B,W,Y,Q,X)}catch(ie){return ee(ie)}ee(null,re)})}},8867:We=>{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",We.exports=q},2697:We=>{var q=Math.pow(2,30)-1;We.exports=function(m,t){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>q||t!=t)throw new TypeError("Bad key length")}},7472:(We,q,m)=>{var t=m(5640),e=m(5634),g=m(5244),T=m(3502).Buffer,s=m(2697),x=m(8867),h=m(4566),N=T.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function M(k,V,B){var W=function w(k){return"rmd160"===k||"ripemd160"===k?function B(W){return(new e).update(W).digest()}:"md5"===k?t:function V(W){return g(k).update(W).digest()}}(k),Y="sha512"===k||"sha384"===k?128:64;V.length>Y?V=W(V):V.length<Y&&(V=T.concat([V,N],Y));for(var Q=T.allocUnsafe(Y+d[k]),X=T.allocUnsafe(Y+d[k]),ee=0;ee<Y;ee++)Q[ee]=54^V[ee],X[ee]=92^V[ee];var me=T.allocUnsafe(Y+B+4);Q.copy(me,0,0,Y),this.ipad1=me,this.ipad2=Q,this.opad=X,this.alg=k,this.blocksize=Y,this.hash=W,this.size=d[k]}M.prototype.run=function(k,V){return k.copy(V,this.blocksize),this.hash(V).copy(this.opad,this.blocksize),this.hash(this.opad)},We.exports=function L(k,V,B,W,Y){s(B,W);var Q=new M(Y=Y||"sha1",k=h(k,x,"Password"),(V=h(V,x,"Salt")).length),X=T.allocUnsafe(W),ee=T.allocUnsafe(V.length+4);V.copy(ee,0,0,V.length);for(var me=0,re=d[Y],ie=Math.ceil(W/re),se=1;se<=ie;se++){ee.writeUInt32BE(se,V.length);for(var ce=Q.run(ee,Q.ipad1),Te=ce,S=1;S<B;S++){Te=Q.run(Te,Q.ipad2);for(var i=0;i<re;i++)ce[i]^=Te[i]}ce.copy(X,me),me+=re}return X}},4566:(We,q,m)=>{var t=m(3502).Buffer;We.exports=function(e,g,T){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,g);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(T+" must be a string, a Buffer, a typed array or a DataView")}},3701:(We,q,m)=>{q.publicEncrypt=m(6562),q.privateDecrypt=m(6705),q.privateEncrypt=function(e,g){return q.publicEncrypt(e,g,!0)},q.publicDecrypt=function(e,g){return q.privateDecrypt(e,g,!0)}},6945:(We,q,m)=>{var t=m(6386),e=m(3502).Buffer;function g(T){var s=e.allocUnsafe(4);return s.writeUInt32BE(T,0),s}We.exports=function(T,s){for(var N,x=e.alloc(0),h=0;x.length<s;)N=g(h++),x=e.concat([x,t("sha1").update(T).update(N).digest()]);return x.slice(0,s)}},2057:function(We,q,m){!function(t,e){"use strict";function g(S,i){if(!S)throw new Error(i||"Assertion failed")}function T(S,i){S.super_=i;var a=function(){};a.prototype=i.prototype,S.prototype=new a,S.prototype.constructor=S}function s(S,i,a){if(s.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,null!==S&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(S||0,i||10,a||"be"))}var x;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{x=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(7108).Buffer}catch{}function h(S,i){var a=S.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(S,i,a){var u=h(S,a);return a-1>=i&&(u|=h(S,a-1)<<4),u}function d(S,i,a,u){for(var l=0,_=Math.min(S.length,a),O=i;O<_;O++){var R=S.charCodeAt(O)-48;l*=u,l+=R>=49?R-49+10:R>=17?R-17+10:R}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),g(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(g("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var _,O,R=0;if("be"===u)for(l=i.length-1,_=0;l>=0;l-=3)this.words[_]|=(O=i[l]|i[l-1]<<8|i[l-2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);else if("le"===u)for(l=0,_=0;l<i.length;l+=3)this.words[_]|=(O=i[l]|i[l+1]<<8|i[l+2]<<16)<<R&67108863,this.words[_+1]=O>>>26-R&67108863,(R+=24)>=26&&(R-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var R,_=0,O=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)R=N(i,a,l)<<_,this.words[O]|=67108863&R,_>=18?(_-=18,this.words[O+=1]|=R>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,_=1;_<=67108863;_*=a)l++;l--,_=_/a|0;for(var O=i.length-u,R=O%l,C=Math.min(O,O-R)+u,n=0,v=u;v<C;v+=l)n=d(i,v,v+l,a),this.imuln(_),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==R){var K=1;for(n=d(i,v,i.length,a),v=0;v<R;v++)K*=a;this.imuln(K),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],L=[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 V(S,i,a){a.negative=i.negative^S.negative;var u=S.length+i.length|0;a.length=u,u=u-1|0;var l=0|S.words[0],_=0|i.words[0],O=l*_,C=O/67108864|0;a.words[0]=67108863&O;for(var n=1;n<u;n++){for(var v=C>>>26,K=67108863&C,F=Math.min(n,i.length-1),G=Math.max(0,n-S.length+1);G<=F;G++)v+=(O=(l=0|S.words[n-G|0])*(_=0|i.words[G])+K)/67108864|0,K=67108863&O;a.words[n]=0|K,C=0|v}return 0!==C?a.words[n]=0|C:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,_=0,O=0;O<this.length;O++){var R=this.words[O],C=(16777215&(R<<l|_)).toString(16);u=0!=(_=R>>>24-l&16777215)||O!==this.length-1?M[6-C.length]+C+u:C+u,(l+=2)>=26&&(l-=26,O--)}for(0!==_&&(u=_.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],v=L[i];u="";var K=this.clone();for(K.negative=0;!K.isZero();){var F=K.modn(v).toString(i);u=(K=K.idivn(v)).isZero()?F+u:M[n-F.length]+F+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}g(!1,"Base should be between 2 and 36")},s.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&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return g(typeof x<"u"),this.toArrayLike(x,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),_=u||Math.max(1,l);g(l<=_,"byte array longer than desired length"),g(_>0,"Requested array length <= 0"),this.strip();var C,n,O="le"===a,R=new i(_),v=this.clone();if(O){for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[n]=C;for(;n<_;n++)R[n]=0}else{for(n=0;n<_-l;n++)R[n]=0;for(n=0;!v.isZero();n++)C=v.andln(255),v.iushrn(8),R[_-n-1]=C}return R},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return g(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return g(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return g(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){g("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){g("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var _=0,O=0;O<l.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+(0|l.words[O])+_),_=a>>>26;for(;0!==_&&O<u.length;O++)this.words[O]=67108863&(a=(0|u.words[O])+_),_=a>>>26;if(this.length=u.length,0!==_)this.words[this.length]=_,this.length++;else if(u!==this)for(;O<u.length;O++)this.words[O]=u.words[O];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,_,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,_=i):(l=i,_=this);for(var O=0,R=0;R<_.length;R++)O=(a=(0|l.words[R])-(0|_.words[R])+O)>>26,this.words[R]=67108863&a;for(;0!==O&&R<l.length;R++)O=(a=(0|l.words[R])+O)>>26,this.words[R]=67108863&a;if(0===O&&R<l.length&&l!==this)for(;R<l.length;R++)this.words[R]=l.words[R];return this.length=Math.max(this.length,R),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var B=function(i,a,u){var C,n,v,l=i.words,_=a.words,O=u.words,R=0,K=0|l[0],F=8191&K,G=K>>>13,ye=0|l[1],Ee=8191&ye,pe=ye>>>13,qe=0|l[2],Ce=8191&qe,Se=qe>>>13,fe=0|l[3],Fe=8191&fe,oe=fe>>>13,ze=0|l[4],Oe=8191&ze,he=ze>>>13,Ae=0|l[5],ge=8191&Ae,Ue=Ae>>>13,Je=0|l[6],Re=8191&Je,le=Je>>>13,rt=0|l[7],Qe=8191&rt,ct=rt>>>13,Gt=0|l[8],ut=8191&Gt,Ze=Gt>>>13,xt=0|l[9],Me=8191&xt,$e=xt>>>13,Pe=0|_[0],J=8191&Pe,mt=Pe>>>13,Et=0|_[1],at=8191&Et,je=Et>>>13,Ht=0|_[2],Ct=8191&Ht,Nt=Ht>>>13,Bt=0|_[3],Ne=8191&Bt,$=Bt>>>13,ue=0|_[4],Ie=8191&ue,Xe=ue>>>13,ei=0|_[5],zt=8191&ei,ni=ei>>>13,pt=0|_[6],ot=8191&pt,ft=pt>>>13,St=0|_[7],gt=8191&St,tt=St>>>13,_t=0|_[8],vt=8191&_t,Ve=_t>>>13,Tt=0|_[9],Lt=8191&Tt,Qt=Tt>>>13;u.negative=i.negative^a.negative,u.length=19;var Bi=(R+(C=Math.imul(F,J))|0)+((8191&(n=(n=Math.imul(F,mt))+Math.imul(G,J)|0))<<13)|0;R=((v=Math.imul(G,mt))+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,C=Math.imul(Ee,J),n=(n=Math.imul(Ee,mt))+Math.imul(pe,J)|0,v=Math.imul(pe,mt);var Hi=(R+(C=C+Math.imul(F,at)|0)|0)+((8191&(n=(n=n+Math.imul(F,je)|0)+Math.imul(G,at)|0))<<13)|0;R=((v=v+Math.imul(G,je)|0)+(n>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,C=Math.imul(Ce,J),n=(n=Math.imul(Ce,mt))+Math.imul(Se,J)|0,v=Math.imul(Se,mt),C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,je)|0)+Math.imul(pe,at)|0,v=v+Math.imul(pe,je)|0;var Si=(R+(C=C+Math.imul(F,Ct)|0)|0)+((8191&(n=(n=n+Math.imul(F,Nt)|0)+Math.imul(G,Ct)|0))<<13)|0;R=((v=v+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,C=Math.imul(Fe,J),n=(n=Math.imul(Fe,mt))+Math.imul(oe,J)|0,v=Math.imul(oe,mt),C=C+Math.imul(Ce,at)|0,n=(n=n+Math.imul(Ce,je)|0)+Math.imul(Se,at)|0,v=v+Math.imul(Se,je)|0,C=C+Math.imul(Ee,Ct)|0,n=(n=n+Math.imul(Ee,Nt)|0)+Math.imul(pe,Ct)|0,v=v+Math.imul(pe,Nt)|0;var Wi=(R+(C=C+Math.imul(F,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(F,$)|0)+Math.imul(G,Ne)|0))<<13)|0;R=((v=v+Math.imul(G,$)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(Oe,J),n=(n=Math.imul(Oe,mt))+Math.imul(he,J)|0,v=Math.imul(he,mt),C=C+Math.imul(Fe,at)|0,n=(n=n+Math.imul(Fe,je)|0)+Math.imul(oe,at)|0,v=v+Math.imul(oe,je)|0,C=C+Math.imul(Ce,Ct)|0,n=(n=n+Math.imul(Ce,Nt)|0)+Math.imul(Se,Ct)|0,v=v+Math.imul(Se,Nt)|0,C=C+Math.imul(Ee,Ne)|0,n=(n=n+Math.imul(Ee,$)|0)+Math.imul(pe,Ne)|0,v=v+Math.imul(pe,$)|0;var et=(R+(C=C+Math.imul(F,Ie)|0)|0)+((8191&(n=(n=n+Math.imul(F,Xe)|0)+Math.imul(G,Ie)|0))<<13)|0;R=((v=v+Math.imul(G,Xe)|0)+(n>>>13)|0)+(et>>>26)|0,et&=67108863,C=Math.imul(ge,J),n=(n=Math.imul(ge,mt))+Math.imul(Ue,J)|0,v=Math.imul(Ue,mt),C=C+Math.imul(Oe,at)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(he,at)|0,v=v+Math.imul(he,je)|0,C=C+Math.imul(Fe,Ct)|0,n=(n=n+Math.imul(Fe,Nt)|0)+Math.imul(oe,Ct)|0,v=v+Math.imul(oe,Nt)|0,C=C+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,$)|0)+Math.imul(Se,Ne)|0,v=v+Math.imul(Se,$)|0,C=C+Math.imul(Ee,Ie)|0,n=(n=n+Math.imul(Ee,Xe)|0)+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,Xe)|0;var It=(R+(C=C+Math.imul(F,zt)|0)|0)+((8191&(n=(n=n+Math.imul(F,ni)|0)+Math.imul(G,zt)|0))<<13)|0;R=((v=v+Math.imul(G,ni)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(Re,J),n=(n=Math.imul(Re,mt))+Math.imul(le,J)|0,v=Math.imul(le,mt),C=C+Math.imul(ge,at)|0,n=(n=n+Math.imul(ge,je)|0)+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,je)|0,C=C+Math.imul(Oe,Ct)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(he,Ct)|0,v=v+Math.imul(he,Nt)|0,C=C+Math.imul(Fe,Ne)|0,n=(n=n+Math.imul(Fe,$)|0)+Math.imul(oe,Ne)|0,v=v+Math.imul(oe,$)|0,C=C+Math.imul(Ce,Ie)|0,n=(n=n+Math.imul(Ce,Xe)|0)+Math.imul(Se,Ie)|0,v=v+Math.imul(Se,Xe)|0,C=C+Math.imul(Ee,zt)|0,n=(n=n+Math.imul(Ee,ni)|0)+Math.imul(pe,zt)|0,v=v+Math.imul(pe,ni)|0;var Le=(R+(C=C+Math.imul(F,ot)|0)|0)+((8191&(n=(n=n+Math.imul(F,ft)|0)+Math.imul(G,ot)|0))<<13)|0;R=((v=v+Math.imul(G,ft)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(Qe,J),n=(n=Math.imul(Qe,mt))+Math.imul(ct,J)|0,v=Math.imul(ct,mt),C=C+Math.imul(Re,at)|0,n=(n=n+Math.imul(Re,je)|0)+Math.imul(le,at)|0,v=v+Math.imul(le,je)|0,C=C+Math.imul(ge,Ct)|0,n=(n=n+Math.imul(ge,Nt)|0)+Math.imul(Ue,Ct)|0,v=v+Math.imul(Ue,Nt)|0,C=C+Math.imul(Oe,Ne)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(he,Ne)|0,v=v+Math.imul(he,$)|0,C=C+Math.imul(Fe,Ie)|0,n=(n=n+Math.imul(Fe,Xe)|0)+Math.imul(oe,Ie)|0,v=v+Math.imul(oe,Xe)|0,C=C+Math.imul(Ce,zt)|0,n=(n=n+Math.imul(Ce,ni)|0)+Math.imul(Se,zt)|0,v=v+Math.imul(Se,ni)|0,C=C+Math.imul(Ee,ot)|0,n=(n=n+Math.imul(Ee,ft)|0)+Math.imul(pe,ot)|0,v=v+Math.imul(pe,ft)|0;var Mt=(R+(C=C+Math.imul(F,gt)|0)|0)+((8191&(n=(n=n+Math.imul(F,tt)|0)+Math.imul(G,gt)|0))<<13)|0;R=((v=v+Math.imul(G,tt)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,C=Math.imul(ut,J),n=(n=Math.imul(ut,mt))+Math.imul(Ze,J)|0,v=Math.imul(Ze,mt),C=C+Math.imul(Qe,at)|0,n=(n=n+Math.imul(Qe,je)|0)+Math.imul(ct,at)|0,v=v+Math.imul(ct,je)|0,C=C+Math.imul(Re,Ct)|0,n=(n=n+Math.imul(Re,Nt)|0)+Math.imul(le,Ct)|0,v=v+Math.imul(le,Nt)|0,C=C+Math.imul(ge,Ne)|0,n=(n=n+Math.imul(ge,$)|0)+Math.imul(Ue,Ne)|0,v=v+Math.imul(Ue,$)|0,C=C+Math.imul(Oe,Ie)|0,n=(n=n+Math.imul(Oe,Xe)|0)+Math.imul(he,Ie)|0,v=v+Math.imul(he,Xe)|0,C=C+Math.imul(Fe,zt)|0,n=(n=n+Math.imul(Fe,ni)|0)+Math.imul(oe,zt)|0,v=v+Math.imul(oe,ni)|0,C=C+Math.imul(Ce,ot)|0,n=(n=n+Math.imul(Ce,ft)|0)+Math.imul(Se,ot)|0,v=v+Math.imul(Se,ft)|0,C=C+Math.imul(Ee,gt)|0,n=(n=n+Math.imul(Ee,tt)|0)+Math.imul(pe,gt)|0,v=v+Math.imul(pe,tt)|0;var Wt=(R+(C=C+Math.imul(F,vt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Ve)|0)+Math.imul(G,vt)|0))<<13)|0;R=((v=v+Math.imul(G,Ve)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,C=Math.imul(Me,J),n=(n=Math.imul(Me,mt))+Math.imul($e,J)|0,v=Math.imul($e,mt),C=C+Math.imul(ut,at)|0,n=(n=n+Math.imul(ut,je)|0)+Math.imul(Ze,at)|0,v=v+Math.imul(Ze,je)|0,C=C+Math.imul(Qe,Ct)|0,n=(n=n+Math.imul(Qe,Nt)|0)+Math.imul(ct,Ct)|0,v=v+Math.imul(ct,Nt)|0,C=C+Math.imul(Re,Ne)|0,n=(n=n+Math.imul(Re,$)|0)+Math.imul(le,Ne)|0,v=v+Math.imul(le,$)|0,C=C+Math.imul(ge,Ie)|0,n=(n=n+Math.imul(ge,Xe)|0)+Math.imul(Ue,Ie)|0,v=v+Math.imul(Ue,Xe)|0,C=C+Math.imul(Oe,zt)|0,n=(n=n+Math.imul(Oe,ni)|0)+Math.imul(he,zt)|0,v=v+Math.imul(he,ni)|0,C=C+Math.imul(Fe,ot)|0,n=(n=n+Math.imul(Fe,ft)|0)+Math.imul(oe,ot)|0,v=v+Math.imul(oe,ft)|0,C=C+Math.imul(Ce,gt)|0,n=(n=n+Math.imul(Ce,tt)|0)+Math.imul(Se,gt)|0,v=v+Math.imul(Se,tt)|0,C=C+Math.imul(Ee,vt)|0,n=(n=n+Math.imul(Ee,Ve)|0)+Math.imul(pe,vt)|0,v=v+Math.imul(pe,Ve)|0;var si=(R+(C=C+Math.imul(F,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(F,Qt)|0)+Math.imul(G,Lt)|0))<<13)|0;R=((v=v+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,C=Math.imul(Me,at),n=(n=Math.imul(Me,je))+Math.imul($e,at)|0,v=Math.imul($e,je),C=C+Math.imul(ut,Ct)|0,n=(n=n+Math.imul(ut,Nt)|0)+Math.imul(Ze,Ct)|0,v=v+Math.imul(Ze,Nt)|0,C=C+Math.imul(Qe,Ne)|0,n=(n=n+Math.imul(Qe,$)|0)+Math.imul(ct,Ne)|0,v=v+Math.imul(ct,$)|0,C=C+Math.imul(Re,Ie)|0,n=(n=n+Math.imul(Re,Xe)|0)+Math.imul(le,Ie)|0,v=v+Math.imul(le,Xe)|0,C=C+Math.imul(ge,zt)|0,n=(n=n+Math.imul(ge,ni)|0)+Math.imul(Ue,zt)|0,v=v+Math.imul(Ue,ni)|0,C=C+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(he,ot)|0,v=v+Math.imul(he,ft)|0,C=C+Math.imul(Fe,gt)|0,n=(n=n+Math.imul(Fe,tt)|0)+Math.imul(oe,gt)|0,v=v+Math.imul(oe,tt)|0,C=C+Math.imul(Ce,vt)|0,n=(n=n+Math.imul(Ce,Ve)|0)+Math.imul(Se,vt)|0,v=v+Math.imul(Se,Ve)|0;var Ai=(R+(C=C+Math.imul(Ee,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,Qt)|0)+Math.imul(pe,Lt)|0))<<13)|0;R=((v=v+Math.imul(pe,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,C=Math.imul(Me,Ct),n=(n=Math.imul(Me,Nt))+Math.imul($e,Ct)|0,v=Math.imul($e,Nt),C=C+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,$)|0)+Math.imul(Ze,Ne)|0,v=v+Math.imul(Ze,$)|0,C=C+Math.imul(Qe,Ie)|0,n=(n=n+Math.imul(Qe,Xe)|0)+Math.imul(ct,Ie)|0,v=v+Math.imul(ct,Xe)|0,C=C+Math.imul(Re,zt)|0,n=(n=n+Math.imul(Re,ni)|0)+Math.imul(le,zt)|0,v=v+Math.imul(le,ni)|0,C=C+Math.imul(ge,ot)|0,n=(n=n+Math.imul(ge,ft)|0)+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,ft)|0,C=C+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,tt)|0)+Math.imul(he,gt)|0,v=v+Math.imul(he,tt)|0,C=C+Math.imul(Fe,vt)|0,n=(n=n+Math.imul(Fe,Ve)|0)+Math.imul(oe,vt)|0,v=v+Math.imul(oe,Ve)|0;var Ri=(R+(C=C+Math.imul(Ce,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,Qt)|0)+Math.imul(Se,Lt)|0))<<13)|0;R=((v=v+Math.imul(Se,Qt)|0)+(n>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,C=Math.imul(Me,Ne),n=(n=Math.imul(Me,$))+Math.imul($e,Ne)|0,v=Math.imul($e,$),C=C+Math.imul(ut,Ie)|0,n=(n=n+Math.imul(ut,Xe)|0)+Math.imul(Ze,Ie)|0,v=v+Math.imul(Ze,Xe)|0,C=C+Math.imul(Qe,zt)|0,n=(n=n+Math.imul(Qe,ni)|0)+Math.imul(ct,zt)|0,v=v+Math.imul(ct,ni)|0,C=C+Math.imul(Re,ot)|0,n=(n=n+Math.imul(Re,ft)|0)+Math.imul(le,ot)|0,v=v+Math.imul(le,ft)|0,C=C+Math.imul(ge,gt)|0,n=(n=n+Math.imul(ge,tt)|0)+Math.imul(Ue,gt)|0,v=v+Math.imul(Ue,tt)|0,C=C+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,Ve)|0)+Math.imul(he,vt)|0,v=v+Math.imul(he,Ve)|0;var $i=(R+(C=C+Math.imul(Fe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Fe,Qt)|0)+Math.imul(oe,Lt)|0))<<13)|0;R=((v=v+Math.imul(oe,Qt)|0)+(n>>>13)|0)+($i>>>26)|0,$i&=67108863,C=Math.imul(Me,Ie),n=(n=Math.imul(Me,Xe))+Math.imul($e,Ie)|0,v=Math.imul($e,Xe),C=C+Math.imul(ut,zt)|0,n=(n=n+Math.imul(ut,ni)|0)+Math.imul(Ze,zt)|0,v=v+Math.imul(Ze,ni)|0,C=C+Math.imul(Qe,ot)|0,n=(n=n+Math.imul(Qe,ft)|0)+Math.imul(ct,ot)|0,v=v+Math.imul(ct,ft)|0,C=C+Math.imul(Re,gt)|0,n=(n=n+Math.imul(Re,tt)|0)+Math.imul(le,gt)|0,v=v+Math.imul(le,tt)|0,C=C+Math.imul(ge,vt)|0,n=(n=n+Math.imul(ge,Ve)|0)+Math.imul(Ue,vt)|0,v=v+Math.imul(Ue,Ve)|0;var nn=(R+(C=C+Math.imul(Oe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(he,Lt)|0))<<13)|0;R=((v=v+Math.imul(he,Qt)|0)+(n>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Me,zt),n=(n=Math.imul(Me,ni))+Math.imul($e,zt)|0,v=Math.imul($e,ni),C=C+Math.imul(ut,ot)|0,n=(n=n+Math.imul(ut,ft)|0)+Math.imul(Ze,ot)|0,v=v+Math.imul(Ze,ft)|0,C=C+Math.imul(Qe,gt)|0,n=(n=n+Math.imul(Qe,tt)|0)+Math.imul(ct,gt)|0,v=v+Math.imul(ct,tt)|0,C=C+Math.imul(Re,vt)|0,n=(n=n+Math.imul(Re,Ve)|0)+Math.imul(le,vt)|0,v=v+Math.imul(le,Ve)|0;var Qi=(R+(C=C+Math.imul(ge,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ge,Qt)|0)+Math.imul(Ue,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,C=Math.imul(Me,ot),n=(n=Math.imul(Me,ft))+Math.imul($e,ot)|0,v=Math.imul($e,ft),C=C+Math.imul(ut,gt)|0,n=(n=n+Math.imul(ut,tt)|0)+Math.imul(Ze,gt)|0,v=v+Math.imul(Ze,tt)|0,C=C+Math.imul(Qe,vt)|0,n=(n=n+Math.imul(Qe,Ve)|0)+Math.imul(ct,vt)|0,v=v+Math.imul(ct,Ve)|0;var Yt=(R+(C=C+Math.imul(Re,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Re,Qt)|0)+Math.imul(le,Lt)|0))<<13)|0;R=((v=v+Math.imul(le,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Me,gt),n=(n=Math.imul(Me,tt))+Math.imul($e,gt)|0,v=Math.imul($e,tt),C=C+Math.imul(ut,vt)|0,n=(n=n+Math.imul(ut,Ve)|0)+Math.imul(Ze,vt)|0,v=v+Math.imul(Ze,Ve)|0;var Xt=(R+(C=C+Math.imul(Qe,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(Qe,Qt)|0)+Math.imul(ct,Lt)|0))<<13)|0;R=((v=v+Math.imul(ct,Qt)|0)+(n>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,C=Math.imul(Me,vt),n=(n=Math.imul(Me,Ve))+Math.imul($e,vt)|0,v=Math.imul($e,Ve);var be=(R+(C=C+Math.imul(ut,Lt)|0)|0)+((8191&(n=(n=n+Math.imul(ut,Qt)|0)+Math.imul(Ze,Lt)|0))<<13)|0;R=((v=v+Math.imul(Ze,Qt)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863;var dt=(R+(C=Math.imul(Me,Lt))|0)+((8191&(n=(n=Math.imul(Me,Qt))+Math.imul($e,Lt)|0))<<13)|0;return R=((v=Math.imul($e,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,O[0]=Bi,O[1]=Hi,O[2]=Si,O[3]=Wi,O[4]=et,O[5]=It,O[6]=Le,O[7]=Mt,O[8]=Wt,O[9]=si,O[10]=Ai,O[11]=Ri,O[12]=$i,O[13]=nn,O[14]=Qi,O[15]=Yt,O[16]=Xt,O[17]=be,O[18]=dt,0!==R&&(O[19]=R,u.length++),u};function Y(S,i,a){return(new Q).mulp(S,i,a)}function Q(S,i){this.x=S,this.y=i}Math.imul||(B=V),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?B(this,i,a):l<63?V(this,i,a):l<1024?function W(S,i,a){a.negative=i.negative^S.negative,a.length=S.length+i.length;for(var u=0,l=0,_=0;_<a.length-1;_++){var O=l;l=0;for(var R=67108863&u,C=Math.min(_,i.length-1),n=Math.max(0,_-S.length+1);n<=C;n++){var G=(0|S.words[_-n])*(0|i.words[n]),ye=67108863&G;R=67108863&(ye=ye+R|0),l+=(O=(O=O+(G/67108864|0)|0)+(ye>>>26)|0)>>>26,O&=67108863}a.words[_]=R,u=O,O=l}return 0!==u?a.words[_]=u:a.length--,a.strip()}(this,i,a):Y(this,i,a),u},Q.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},Q.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,_=0;_<a;_++)l|=(1&i)<<a-_-1,i>>=1;return l},Q.prototype.permute=function(i,a,u,l,_,O){for(var R=0;R<O;R++)l[R]=a[i[R]],_[R]=u[i[R]]},Q.prototype.transform=function(i,a,u,l,_,O){this.permute(O,i,a,u,l,_);for(var R=1;R<_;R<<=1)for(var C=R<<1,n=Math.cos(2*Math.PI/C),v=Math.sin(2*Math.PI/C),K=0;K<_;K+=C)for(var F=n,G=v,ye=0;ye<R;ye++){var Ee=u[K+ye],pe=l[K+ye],qe=u[K+ye+R],Ce=l[K+ye+R],Se=F*qe-G*Ce;Ce=F*Ce+G*qe,u[K+ye]=Ee+(qe=Se),l[K+ye]=pe+Ce,u[K+ye+R]=Ee-qe,l[K+ye+R]=pe-Ce,ye!==C&&(Se=n*F-v*G,G=n*G+v*F,F=Se)}},Q.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,_=0;for(u=u/2|0;u;u>>>=1)_++;return 1<<_+1+l},Q.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var _=i[l];i[l]=i[u-l-1],i[u-l-1]=_,_=a[l],a[l]=-a[u-l-1],a[u-l-1]=-_}},Q.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var _=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&_,u=_<67108864?0:_/67108864|0}return i},Q.prototype.convert13b=function(i,a,u,l){for(var _=0,O=0;O<a;O++)u[2*O]=8191&(_+=0|i[O]),u[2*O+1]=8191&(_>>>=13),_>>>=13;for(O=2*a;O<l;++O)u[O]=0;g(0===_),g(0==(-8192&_))},Q.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},Q.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(l),O=this.stub(l),R=new Array(l),C=new Array(l),n=new Array(l),v=new Array(l),K=new Array(l),F=new Array(l),G=u.words;G.length=l,this.convert13b(i.words,i.length,R,l),this.convert13b(a.words,a.length,v,l),this.transform(R,O,C,n,l,_),this.transform(v,O,K,F,l,_);for(var ye=0;ye<l;ye++){var Ee=C[ye]*K[ye]-n[ye]*F[ye];n[ye]=C[ye]*F[ye]+n[ye]*K[ye],C[ye]=Ee}return this.conjugate(C,n,l),this.transform(C,n,G,O,l,_),this.conjugate(G,O,l),this.normalize13b(G,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),Y(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){g("number"==typeof i),g(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,_=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=_>>>26,this.words[u]=67108863&_}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function k(S){for(var i=new Array(S.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(S.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var _=u.sqr();l<a.length;l++,_=_.sqr())0!==a[l]&&(u=u.mul(_));return u},s.prototype.iushln=function(i){g("number"==typeof i&&i>=0);var _,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var O=0;for(_=0;_<this.length;_++){var R=this.words[_]&l;this.words[_]=(0|this.words[_])-R<<a|O,O=R>>>26-a}O&&(this.words[_]=O,this.length++)}if(0!==u){for(_=this.length-1;_>=0;_--)this.words[_+u]=this.words[_];for(_=0;_<u;_++)this.words[_]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return g(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;g("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var _=i%26,O=Math.min((i-_)/26,this.length),R=67108863^67108863>>>_<<_,C=u;if(l-=O,l=Math.max(0,l),C){for(var n=0;n<O;n++)C.words[n]=this.words[n];C.length=O}if(0!==O)if(this.length>O)for(this.length-=O,n=0;n<this.length;n++)this.words[n]=this.words[n+O];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(0!==v||n>=l);n--){var K=0|this.words[n];this.words[n]=v<<26-_|K>>>_,v=K&R}return C&&0!==v&&(C.words[C.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return g(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){g("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return g("number"==typeof i),g(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[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},s.prototype.isubn=function(i){if(g("number"==typeof i),g(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<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var _;this._expand(i.length+u);var O,R=0;for(_=0;_<i.length;_++){O=(0|this.words[_+u])+R;var C=(0|i.words[_])*a;R=((O-=67108863&C)>>26)-(C/67108864|0),this.words[_+u]=67108863&O}for(;_<this.length-u;_++)R=(O=(0|this.words[_+u])+R)>>26,this.words[_+u]=67108863&O;if(0===R)return this.strip();for(g(-1===R),R=0,_=0;_<this.length;_++)R=(O=-(0|this.words[_])+R)>>26,this.words[_]=67108863&O;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),_=i,O=0|_.words[_.length-1];0!=(u=26-this._countBits(O))&&(_=_.ushln(u),l.iushln(u),O=0|_.words[_.length-1]);var n,C=l.length-_.length;if("mod"!==a){(n=new s(null)).length=C+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var K=l.clone()._ishlnsubmul(_,1,C);0===K.negative&&(l=K,n&&(n.words[C]=1));for(var F=C-1;F>=0;F--){var G=67108864*(0|l.words[_.length+F])+(0|l.words[_.length+F-1]);for(G=Math.min(G/O|0,67108863),l._ishlnsubmul(_,G,F);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(_,1,F),l.isZero()||(l.negative^=1);n&&(n.words[F]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return g(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(O=this.neg().divmod(i,a),"mod"!==a&&(l=O.div.neg()),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.iadd(i)),{div:l,mod:_}):0===this.negative&&0!==i.negative?(O=this.divmod(i.neg(),a),"mod"!==a&&(l=O.div.neg()),{div:l,mod:O.mod}):this.negative&i.negative?(O=this.neg().divmod(i.neg(),a),"div"!==a&&(_=O.mod.neg(),u&&0!==_.negative&&_.isub(i)),{div:O.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,_,O},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),_=i.andln(1),O=u.cmp(l);return O<0||1===_&&0===O?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){g(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){g(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){g(0===i.negative),g(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=new s(0),R=new s(1),C=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++C;for(var n=u.clone(),v=a.clone();!a.isZero();){for(var K=0,F=1;!(a.words[0]&F)&&K<26;++K,F<<=1);if(K>0)for(a.iushrn(K);K-- >0;)(l.isOdd()||_.isOdd())&&(l.iadd(n),_.isub(v)),l.iushrn(1),_.iushrn(1);for(var G=0,ye=1;!(u.words[0]&ye)&&G<26;++G,ye<<=1);if(G>0)for(u.iushrn(G);G-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(n),R.isub(v)),O.iushrn(1),R.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(O),_.isub(R)):(u.isub(a),O.isub(l),R.isub(_))}return{a:O,b:R,gcd:u.iushln(C)}},s.prototype._invmp=function(i){g(0===i.negative),g(!i.isZero());var K,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),_=new s(0),O=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var R=0,C=1;!(a.words[0]&C)&&R<26;++R,C<<=1);if(R>0)for(a.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(O),l.iushrn(1);for(var n=0,v=1;!(u.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(u.iushrn(n);n-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(_)):(u.isub(a),_.isub(l))}return(K=0===a.cmpn(1)?l:_).cmpn(0)<0&&K.iadd(i),K},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var _=a.cmp(u);if(_<0){var O=a;a=u,u=O}else if(0===_||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){g("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var _=l,O=u;0!==_&&O<this.length;O++){var R=0|this.words[O];_=(R+=_)>>>26,this.words[O]=R&=67108863}return 0!==_&&(this.words[O]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),g(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],_=0|i.words[u];if(l!==_){l<_?a=-1:l>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var X={k256:null,p224:null,p192:null,p25519:null};function ee(S,i){this.name=S,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(S){if("string"==typeof S){var i=s._prime(S);this.m=i.p,this.prime=i}else g(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function Te(S){ce.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?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)},T(me,ee),me.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),_=0;_<l;_++)a.words[_]=i.words[_];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var O=i.words[9];for(a.words[a.length++]=O&u,_=10;_<i.length;_++){var R=0|i.words[_];i.words[_-10]=(R&u)<<4|O>>>22,O=R}i.words[_-10]=O>>>=22,i.length-=0===O&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},T(re,ee),T(ie,ee),T(se,ee),se.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,_=67108863&l;l>>>=26,i.words[u]=_,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(X[i])return X[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return X[i]=a,a},ce.prototype._verify1=function(i){g(0===i.negative,"red works only with positives"),g(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){g(0==(i.negative|a.negative),"red works only with positives"),g(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},ce.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(g(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),_=0;!l.isZero()&&0===l.andln(1);)_++,l.iushrn(1);g(!l.isZero());var O=new s(1).toRed(this),R=O.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,C).cmp(R);)n.redIAdd(R);for(var v=this.pow(n,l),K=this.pow(i,l.addn(1).iushrn(1)),F=this.pow(i,l),G=_;0!==F.cmp(O);){for(var ye=F,Ee=0;0!==ye.cmp(O);Ee++)ye=ye.redSqr();g(Ee<G);var pe=this.pow(v,new s(1).iushln(G-Ee-1));K=K.redMul(pe),v=pe.redSqr(),F=F.redMul(v),G=Ee}return K},ce.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},ce.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var _=2;_<l.length;_++)l[_]=this.mul(l[_-1],i);var O=l[0],R=0,C=0,n=a.bitLength()%26;for(0===n&&(n=26),_=a.length-1;_>=0;_--){for(var v=a.words[_],K=n-1;K>=0;K--){var F=v>>K&1;O!==l[0]&&(O=this.sqr(O)),0!==F||0!==R?(R<<=1,R|=F,(4==++C||0===_&&0===K)&&(O=this.mul(O,l[R]),C=0,R=0)):C=0}n=26}return O},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Te(i)},T(Te,ce),Te.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Te.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Te.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=u.isub(l).iushrn(this.shift),O=_;return _.cmp(this.m)>=0?O=_.isub(this.m):_.cmpn(0)<0&&(O=_.iadd(this.m)),O._forceRed(this)},Te.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},6705:(We,q,m)=>{var t=m(2772),e=m(6945),g=m(9401),T=m(2057),s=m(8466),x=m(6386),h=m(8651),N=m(3502).Buffer;We.exports=function(k,V,B){var W;W=k.padding?k.padding:B?1:4;var X,Y=t(k),Q=Y.modulus.byteLength();if(V.length>Q||new T(V).cmp(Y.modulus)>=0)throw new Error("decryption error");X=B?h(new T(V),Y):s(V,Y);var ee=N.alloc(Q-X.length);if(X=N.concat([ee,X],Q),4===W)return function d(L,k){var V=L.modulus.byteLength(),B=x("sha1").update(N.alloc(0)).digest(),W=B.length;if(0!==k[0])throw new Error("decryption error");var Y=k.slice(1,W+1),Q=k.slice(W+1),X=g(Y,e(Q,W)),ee=g(Q,e(X,V-W-1));if(function w(L,k){L=N.from(L),k=N.from(k);var V=0,B=L.length;L.length!==k.length&&(V++,B=Math.min(L.length,k.length));for(var W=-1;++W<B;)V+=L[W]^k[W];return V}(B,ee.slice(0,W)))throw new Error("decryption error");for(var me=W;0===ee[me];)me++;if(1!==ee[me++])throw new Error("decryption error");return ee.slice(me)}(Y,X);if(1===W)return function M(L,k,V){for(var B=k.slice(0,2),W=2,Y=0;0!==k[W++];)if(W>=k.length){Y++;break}var Q=k.slice(2,W-1);if(("0002"!==B.toString("hex")&&!V||"0001"!==B.toString("hex")&&V)&&Y++,Q.length<8&&Y++,Y)throw new Error("decryption error");return k.slice(W)}(0,X,B);if(3===W)return X;throw new Error("unknown padding")}},6562:(We,q,m)=>{var t=m(2772),e=m(3753),g=m(6386),T=m(6945),s=m(9401),x=m(2057),h=m(8651),N=m(8466),d=m(3502).Buffer;We.exports=function(V,B,W){var Y;Y=V.padding?V.padding:W?1:4;var X,Q=t(V);if(4===Y)X=function M(k,V){var B=k.modulus.byteLength(),W=V.length,Y=g("sha1").update(d.alloc(0)).digest(),Q=Y.length,X=2*Q;if(W>B-X-2)throw new Error("message too long");var ee=d.alloc(B-W-X-2),me=B-Q-1,re=e(Q),ie=s(d.concat([Y,ee,d.alloc(1,1),V],me),T(re,me)),se=s(re,T(ie,Q));return new x(d.concat([d.alloc(1),se,ie],B))}(Q,B);else if(1===Y)X=function w(k,V,B){var Q,W=V.length,Y=k.modulus.byteLength();if(W>Y-11)throw new Error("message too long");return Q=B?d.alloc(Y-W-3,255):function L(k){for(var Q,V=d.allocUnsafe(k),B=0,W=e(2*k),Y=0;B<k;)Y===W.length&&(W=e(2*k),Y=0),(Q=W[Y++])&&(V[B++]=Q);return V}(Y-W-3),new x(d.concat([d.from([0,B?1:2]),Q,d.alloc(1),V],Y))}(Q,B,W);else{if(3!==Y)throw new Error("unknown padding");if((X=new x(B)).cmp(Q.modulus)>=0)throw new Error("data too long for modulus")}return W?N(X,Q):h(X,Q)}},8651:(We,q,m)=>{var t=m(2057),e=m(3502).Buffer;We.exports=function g(T,s){return e.from(T.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed().toArray())}},9401:We=>{We.exports=function(m,t){for(var e=m.length,g=-1;++g<e;)m[g]^=t[g];return m}},3259:(We,q,m)=>{const t=m(8695),e=m(1465),g=m(3210),T=m(2334);function s(x,h,N,d,M){const w=[].slice.call(arguments,1),L=w.length,k="function"==typeof w[L-1];if(!k&&!t())throw new Error("Callback required as last argument");if(!k){if(L<1)throw new Error("Too few arguments provided");return 1===L?(N=h,h=d=void 0):2===L&&!h.getContext&&(d=N,N=h,h=void 0),new Promise(function(V,B){try{const W=e.create(N,d);V(x(W,h,d))}catch(W){B(W)}})}if(L<2)throw new Error("Too few arguments provided");2===L?(M=N,N=h,h=d=void 0):3===L&&(h.getContext&&typeof M>"u"?(M=d,d=void 0):(M=d,d=N,N=h,h=void 0));try{const V=e.create(N,d);M(null,x(V,h,d))}catch(V){M(V)}}q.create=e.create,q.toCanvas=s.bind(null,g.render),q.toDataURL=s.bind(null,g.renderToDataURL),q.toString=s.bind(null,function(x,h,N){return T.render(x,N)})},8695:We=>{We.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(We,q,m)=>{const t=m(4792).getSymbolSize;q.getRowColCoords=function(g){if(1===g)return[];const T=Math.floor(g/7)+2,s=t(g),x=145===s?26:2*Math.ceil((s-13)/(2*T-2)),h=[s-7];for(let N=1;N<T-1;N++)h[N]=h[N-1]-x;return h.push(6),h.reverse()},q.getPositions=function(g){const T=[],s=q.getRowColCoords(g),x=s.length;for(let h=0;h<x;h++)for(let N=0;N<x;N++)0===h&&0===N||0===h&&N===x-1||h===x-1&&0===N||T.push([s[h],s[N]]);return T}},2424:(We,q,m)=>{const t=m(4016),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function g(T){this.mode=t.ALPHANUMERIC,this.data=T}g.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(s){let x;for(x=0;x+2<=this.data.length;x+=2){let h=45*e.indexOf(this.data[x]);h+=e.indexOf(this.data[x+1]),s.put(h,11)}this.data.length%2&&s.put(e.indexOf(this.data[x]),6)},We.exports=g},2118:We=>{function q(){this.buffer=[],this.length=0}q.prototype={get:function(m){const t=Math.floor(m/8);return 1==(this.buffer[t]>>>7-m%8&1)},put:function(m,t){for(let e=0;e<t;e++)this.putBit(1==(m>>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),m&&(this.buffer[t]|=128>>>this.length%8),this.length++}},We.exports=q},4425:We=>{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,t,e,g){const T=m*this.size+t;this.data[T]=e,g&&(this.reservedBit[T]=!0)},q.prototype.get=function(m,t){return this.data[m*this.size+t]},q.prototype.xor=function(m,t,e){this.data[m*this.size+t]^=e},q.prototype.isReserved=function(m,t){return this.reservedBit[m*this.size+t]},We.exports=q},5663:(We,q,m)=>{const t=m(8419),e=m(4016);function g(T){this.mode=e.BYTE,"string"==typeof T&&(T=t(T)),this.data=new Uint8Array(T)}g.getBitsLength=function(s){return 8*s},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(T){for(let s=0,x=this.data.length;s<x;s++)T.put(this.data[s],8)},We.exports=g},4655:(We,q,m)=>{const t=m(2259),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],g=[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(s,x){switch(x){case t.L:return e[4*(s-1)+0];case t.M:return e[4*(s-1)+1];case t.Q:return e[4*(s-1)+2];case t.H:return e[4*(s-1)+3];default:return}},q.getTotalCodewordsCount=function(s,x){switch(x){case t.L:return g[4*(s-1)+0];case t.M:return g[4*(s-1)+1];case t.Q:return g[4*(s-1)+2];case t.H:return g[4*(s-1)+3];default:return}}},2259:(We,q)=>{q.L={bit:1},q.M={bit:0},q.Q={bit:3},q.H={bit:2},q.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},q.from=function(e,g){if(q.isValid(e))return e;try{return function m(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.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: "+t)}}(e)}catch{return g}}},3114:(We,q,m)=>{const t=m(4792).getSymbolSize;q.getPositions=function(T){const s=t(T);return[[0,0],[s-7,0],[0,s-7]]}},7078:(We,q,m)=>{const t=m(4792),T=t.getBCHDigit(1335);q.getEncodedBits=function(x,h){const N=x.bit<<3|h;let d=N<<10;for(;t.getBCHDigit(d)-T>=0;)d^=1335<<t.getBCHDigit(d)-T;return 21522^(N<<10|d)}},5339:(We,q)=>{const m=new Uint8Array(512),t=new Uint8Array(256);(function(){let g=1;for(let T=0;T<255;T++)m[T]=g,t[g]=T,g<<=1,256&g&&(g^=285);for(let T=255;T<512;T++)m[T]=m[T-255]})(),q.log=function(g){if(g<1)throw new Error("log("+g+")");return t[g]},q.exp=function(g){return m[g]},q.mul=function(g,T){return 0===g||0===T?0:m[t[g]+t[T]]}},449:(We,q,m)=>{const t=m(4016),e=m(4792);function g(T){this.mode=t.KANJI,this.data=T}g.getBitsLength=function(s){return 13*s},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(T){let s;for(s=0;s<this.data.length;s++){let x=e.toSJIS(this.data[s]);if(x>=33088&&x<=40956)x-=33088;else{if(!(x>=57408&&x<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");x-=49472}x=192*(x>>>8&255)+(255&x),T.put(x,13)}},We.exports=g},3667:(We,q)=>{q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,g,T){switch(e){case q.Patterns.PATTERN000:return(g+T)%2==0;case q.Patterns.PATTERN001:return g%2==0;case q.Patterns.PATTERN010:return T%3==0;case q.Patterns.PATTERN011:return(g+T)%3==0;case q.Patterns.PATTERN100:return(Math.floor(g/2)+Math.floor(T/3))%2==0;case q.Patterns.PATTERN101:return g*T%2+g*T%3==0;case q.Patterns.PATTERN110:return(g*T%2+g*T%3)%2==0;case q.Patterns.PATTERN111:return(g*T%3+(g+T)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}q.isValid=function(g){return null!=g&&""!==g&&!isNaN(g)&&g>=0&&g<=7},q.from=function(g){return q.isValid(g)?parseInt(g,10):void 0},q.getPenaltyN1=function(g){const T=g.size;let s=0,x=0,h=0,N=null,d=null;for(let M=0;M<T;M++){x=h=0,N=d=null;for(let w=0;w<T;w++){let L=g.get(M,w);L===N?x++:(x>=5&&(s+=x-5+3),N=L,x=1),L=g.get(w,M),L===d?h++:(h>=5&&(s+=h-5+3),d=L,h=1)}x>=5&&(s+=x-5+3),h>=5&&(s+=h-5+3)}return s},q.getPenaltyN2=function(g){const T=g.size;let s=0;for(let x=0;x<T-1;x++)for(let h=0;h<T-1;h++){const N=g.get(x,h)+g.get(x,h+1)+g.get(x+1,h)+g.get(x+1,h+1);(4===N||0===N)&&s++}return 3*s},q.getPenaltyN3=function(g){const T=g.size;let s=0,x=0,h=0;for(let N=0;N<T;N++){x=h=0;for(let d=0;d<T;d++)x=x<<1&2047|g.get(N,d),d>=10&&(1488===x||93===x)&&s++,h=h<<1&2047|g.get(d,N),d>=10&&(1488===h||93===h)&&s++}return 40*s},q.getPenaltyN4=function(g){let T=0;const s=g.data.length;for(let h=0;h<s;h++)T+=g.data[h];return 10*Math.abs(Math.ceil(100*T/s/5)-10)},q.applyMask=function(g,T){const s=T.size;for(let x=0;x<s;x++)for(let h=0;h<s;h++)T.isReserved(h,x)||T.xor(h,x,t(g,h,x))},q.getBestMask=function(g,T){const s=Object.keys(q.Patterns).length;let x=0,h=1/0;for(let N=0;N<s;N++){T(N),q.applyMask(N,g);const d=q.getPenaltyN1(g)+q.getPenaltyN2(g)+q.getPenaltyN3(g)+q.getPenaltyN4(g);q.applyMask(N,g),d<h&&(h=d,x=N)}return x}},4016:(We,q,m)=>{const t=m(4406),e=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(s,x){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(x))throw new Error("Invalid version: "+x);return x>=1&&x<10?s.ccBits[0]:x<27?s.ccBits[1]:s.ccBits[2]},q.getBestModeForData=function(s){return e.testNumeric(s)?q.NUMERIC:e.testAlphanumeric(s)?q.ALPHANUMERIC:e.testKanji(s)?q.KANJI:q.BYTE},q.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},q.isValid=function(s){return s&&s.bit&&s.ccBits},q.from=function(s,x){if(q.isValid(s))return s;try{return function g(T){if("string"!=typeof T)throw new Error("Param is not a string");switch(T.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: "+T)}}(s)}catch{return x}}},7783:(We,q,m)=>{const t=m(4016);function e(g){this.mode=t.NUMERIC,this.data=g.toString()}e.getBitsLength=function(T){return 10*Math.floor(T/3)+(T%3?T%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(T){let s,x,h;for(s=0;s+3<=this.data.length;s+=3)x=this.data.substr(s,3),h=parseInt(x,10),T.put(h,10);const N=this.data.length-s;N>0&&(x=this.data.substr(s),h=parseInt(x,10),T.put(h,3*N+1))},We.exports=e},1106:(We,q,m)=>{const t=m(5339);q.mul=function(g,T){const s=new Uint8Array(g.length+T.length-1);for(let x=0;x<g.length;x++)for(let h=0;h<T.length;h++)s[x+h]^=t.mul(g[x],T[h]);return s},q.mod=function(g,T){let s=new Uint8Array(g);for(;s.length-T.length>=0;){const x=s[0];for(let N=0;N<T.length;N++)s[N]^=t.mul(T[N],x);let h=0;for(;h<s.length&&0===s[h];)h++;s=s.slice(h)}return s},q.generateECPolynomial=function(g){let T=new Uint8Array([1]);for(let s=0;s<g;s++)T=q.mul(T,new Uint8Array([1,t.exp(s)]));return T}},1465:(We,q,m)=>{const t=m(4792),e=m(2259),g=m(2118),T=m(4425),s=m(6221),x=m(3114),h=m(3667),N=m(4655),d=m(2636),M=m(2088),w=m(7078),L=m(4016),k=m(2033);function Q(ie,se,ce){const Te=ie.size,S=w.getEncodedBits(se,ce);let i,a;for(i=0;i<15;i++)a=1==(S>>i&1),ie.set(i<6?i:i<8?i+1:Te-15+i,8,a,!0),ie.set(8,i<8?Te-i-1:i<9?15-i-1+1:15-i-1,a,!0);ie.set(Te-8,8,1,!0)}function re(ie,se,ce,Te){let S;if(Array.isArray(ie))S=k.fromArray(ie);else{if("string"!=typeof ie)throw new Error("Invalid data");{let _=se;if(!_){const O=k.rawSplit(ie);_=M.getBestVersionForData(O,ce)}S=k.fromString(ie,_||40)}}const i=M.getBestVersionForData(S,ce);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else se=i;const a=function ee(ie,se,ce){const Te=new g;ce.forEach(function(l){Te.put(l.mode.bit,4),Te.put(l.getLength(),L.getCharCountIndicator(l.mode,ie)),l.write(Te)});const a=8*(t.getSymbolTotalCodewords(ie)-N.getTotalCodewordsCount(ie,se));for(Te.getLengthInBits()+4<=a&&Te.put(0,4);Te.getLengthInBits()%8!=0;)Te.putBit(0);const u=(a-Te.getLengthInBits())/8;for(let l=0;l<u;l++)Te.put(l%2?17:236,8);return function me(ie,se,ce){const Te=t.getSymbolTotalCodewords(se),i=Te-N.getTotalCodewordsCount(se,ce),a=N.getBlocksCount(se,ce),l=a-Te%a,_=Math.floor(Te/a),O=Math.floor(i/a),R=O+1,C=_-O,n=new d(C);let v=0;const K=new Array(a),F=new Array(a);let G=0;const ye=new Uint8Array(ie.buffer);for(let Se=0;Se<a;Se++){const fe=Se<l?O:R;K[Se]=ye.slice(v,v+fe),F[Se]=n.encode(K[Se]),v+=fe,G=Math.max(G,fe)}const Ee=new Uint8Array(Te);let qe,Ce,pe=0;for(qe=0;qe<G;qe++)for(Ce=0;Ce<a;Ce++)qe<K[Ce].length&&(Ee[pe++]=K[Ce][qe]);for(qe=0;qe<C;qe++)for(Ce=0;Ce<a;Ce++)Ee[pe++]=F[Ce][qe];return Ee}(Te,ie,se)}(se,ce,S),u=t.getSymbolSize(se),l=new T(u);return function V(ie,se){const ce=ie.size,Te=x.getPositions(se);for(let S=0;S<Te.length;S++){const i=Te[S][0],a=Te[S][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||ce<=i+u))for(let l=-1;l<=7;l++)a+l<=-1||ce<=a+l||ie.set(i+u,a+l,u>=0&&u<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===u||6===u)||u>=2&&u<=4&&l>=2&&l<=4,!0)}}(l,se),function B(ie){const se=ie.size;for(let ce=8;ce<se-8;ce++){const Te=ce%2==0;ie.set(ce,6,Te,!0),ie.set(6,ce,Te,!0)}}(l),function W(ie,se){const ce=s.getPositions(se);for(let Te=0;Te<ce.length;Te++){const S=ce[Te][0],i=ce[Te][1];for(let a=-2;a<=2;a++)for(let u=-2;u<=2;u++)ie.set(S+a,i+u,-2===a||2===a||-2===u||2===u||0===a&&0===u,!0)}}(l,se),Q(l,ce,0),se>=7&&function Y(ie,se){const ce=ie.size,Te=M.getEncodedBits(se);let S,i,a;for(let u=0;u<18;u++)S=Math.floor(u/3),i=u%3+ce-8-3,a=1==(Te>>u&1),ie.set(S,i,a,!0),ie.set(i,S,a,!0)}(l,se),function X(ie,se){const ce=ie.size;let Te=-1,S=ce-1,i=7,a=0;for(let u=ce-1;u>0;u-=2)for(6===u&&u--;;){for(let l=0;l<2;l++)if(!ie.isReserved(S,u-l)){let _=!1;a<se.length&&(_=1==(se[a]>>>i&1)),ie.set(S,u-l,_),i--,-1===i&&(a++,i=7)}if(S+=Te,S<0||ce<=S){S-=Te,Te=-Te;break}}}(l,a),isNaN(Te)&&(Te=h.getBestMask(l,Q.bind(null,l,ce))),h.applyMask(Te,l),Q(l,ce,Te),{modules:l,version:se,errorCorrectionLevel:ce,maskPattern:Te,segments:S}}q.create=function(se,ce){if(typeof se>"u"||""===se)throw new Error("No input text");let S,i,Te=e.M;return typeof ce<"u"&&(Te=e.from(ce.errorCorrectionLevel,e.M),S=M.from(ce.version),i=h.from(ce.maskPattern),ce.toSJISFunc&&t.setToSJISFunction(ce.toSJISFunc)),re(se,S,Te,i)}},2636:(We,q,m)=>{const t=m(1106);function e(g){this.genPoly=void 0,this.degree=g,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(T){this.degree=T,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(T){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(T.length+this.degree);s.set(T);const x=t.mod(s,this.genPoly),h=this.degree-x.length;if(h>0){const N=new Uint8Array(this.degree);return N.set(x,h),N}return x},We.exports=e},2699:(We,q)=>{const m="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const g="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";q.KANJI=new RegExp(e,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(g,"g"),q.NUMERIC=new RegExp(m,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const T=new RegExp("^"+e+"$"),s=new RegExp("^"+m+"$"),x=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(N){return T.test(N)},q.testNumeric=function(N){return s.test(N)},q.testAlphanumeric=function(N){return x.test(N)}},2033:(We,q,m)=>{const t=m(4016),e=m(7783),g=m(2424),T=m(5663),s=m(449),x=m(2699),h=m(4792),N=m(4901);function d(Y){return unescape(encodeURIComponent(Y)).length}function M(Y,Q,X){const ee=[];let me;for(;null!==(me=Y.exec(X));)ee.push({data:me[0],index:me.index,mode:Q,length:me[0].length});return ee}function w(Y){const Q=M(x.NUMERIC,t.NUMERIC,Y),X=M(x.ALPHANUMERIC,t.ALPHANUMERIC,Y);let ee,me;return h.isKanjiModeEnabled()?(ee=M(x.BYTE,t.BYTE,Y),me=M(x.KANJI,t.KANJI,Y)):(ee=M(x.BYTE_KANJI,t.BYTE,Y),me=[]),Q.concat(X,ee,me).sort(function(ie,se){return ie.index-se.index}).map(function(ie){return{data:ie.data,mode:ie.mode,length:ie.length}})}function L(Y,Q){switch(Q){case t.NUMERIC:return e.getBitsLength(Y);case t.ALPHANUMERIC:return g.getBitsLength(Y);case t.KANJI:return s.getBitsLength(Y);case t.BYTE:return T.getBitsLength(Y)}}function W(Y,Q){let X;const ee=t.getBestModeForData(Y);if(X=t.from(Q,ee),X!==t.BYTE&&X.bit<ee.bit)throw new Error('"'+Y+'" cannot be encoded with mode '+t.toString(X)+".\n Suggested mode is: "+t.toString(ee));switch(X===t.KANJI&&!h.isKanjiModeEnabled()&&(X=t.BYTE),X){case t.NUMERIC:return new e(Y);case t.ALPHANUMERIC:return new g(Y);case t.KANJI:return new s(Y);case t.BYTE:return new T(Y)}}q.fromArray=function(Q){return Q.reduce(function(X,ee){return"string"==typeof ee?X.push(W(ee,null)):ee.data&&X.push(W(ee.data,ee.mode)),X},[])},q.fromString=function(Q,X){const me=function V(Y){const Q=[];for(let X=0;X<Y.length;X++){const ee=Y[X];switch(ee.mode){case t.NUMERIC:Q.push([ee,{data:ee.data,mode:t.ALPHANUMERIC,length:ee.length},{data:ee.data,mode:t.BYTE,length:ee.length}]);break;case t.ALPHANUMERIC:Q.push([ee,{data:ee.data,mode:t.BYTE,length:ee.length}]);break;case t.KANJI:Q.push([ee,{data:ee.data,mode:t.BYTE,length:d(ee.data)}]);break;case t.BYTE:Q.push([{data:ee.data,mode:t.BYTE,length:d(ee.data)}])}}return Q}(w(Q,h.isKanjiModeEnabled())),re=function B(Y,Q){const X={},ee={start:{}};let me=["start"];for(let re=0;re<Y.length;re++){const ie=Y[re],se=[];for(let ce=0;ce<ie.length;ce++){const Te=ie[ce],S=""+re+ce;se.push(S),X[S]={node:Te,lastCount:0},ee[S]={};for(let i=0;i<me.length;i++){const a=me[i];X[a]&&X[a].node.mode===Te.mode?(ee[a][S]=L(X[a].lastCount+Te.length,Te.mode)-L(X[a].lastCount,Te.mode),X[a].lastCount+=Te.length):(X[a]&&(X[a].lastCount=Te.length),ee[a][S]=L(Te.length,Te.mode)+4+t.getCharCountIndicator(Te.mode,Q))}}me=se}for(let re=0;re<me.length;re++)ee[me[re]].end=0;return{map:ee,table:X}}(me,X),ie=N.find_path(re.map,"start","end"),se=[];for(let ce=1;ce<ie.length-1;ce++)se.push(re.table[ie[ce]].node);return q.fromArray(function k(Y){return Y.reduce(function(Q,X){const ee=Q.length-1>=0?Q[Q.length-1]:null;return ee&&ee.mode===X.mode?(Q[Q.length-1].data+=X.data,Q):(Q.push(X),Q)},[])}(se))},q.rawSplit=function(Q){return q.fromArray(w(Q,h.isKanjiModeEnabled()))}},4792:(We,q)=>{let m;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];q.getSymbolSize=function(g){if(!g)throw new Error('"version" cannot be null or undefined');if(g<1||g>40)throw new Error('"version" should be in range from 1 to 40');return 4*g+17},q.getSymbolTotalCodewords=function(g){return t[g]},q.getBCHDigit=function(e){let g=0;for(;0!==e;)g++,e>>>=1;return g},q.setToSJISFunction=function(g){if("function"!=typeof g)throw new Error('"toSJISFunc" is not a valid function.');m=g},q.isKanjiModeEnabled=function(){return typeof m<"u"},q.toSJIS=function(g){return m(g)}},4406:(We,q)=>{q.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(We,q,m)=>{const t=m(4792),e=m(4655),g=m(2259),T=m(4016),s=m(4406),h=t.getBCHDigit(7973);function d(L,k){return T.getCharCountIndicator(L,k)+4}function M(L,k){let V=0;return L.forEach(function(B){const W=d(B.mode,k);V+=W+B.getBitsLength()}),V}q.from=function(k,V){return s.isValid(k)?parseInt(k,10):V},q.getCapacity=function(k,V,B){if(!s.isValid(k))throw new Error("Invalid QR Code version");typeof B>"u"&&(B=T.BYTE);const Q=8*(t.getSymbolTotalCodewords(k)-e.getTotalCodewordsCount(k,V));if(B===T.MIXED)return Q;const X=Q-d(B,k);switch(B){case T.NUMERIC:return Math.floor(X/10*3);case T.ALPHANUMERIC:return Math.floor(X/11*2);case T.KANJI:return Math.floor(X/13);default:return Math.floor(X/8)}},q.getBestVersionForData=function(k,V){let B;const W=g.from(V,g.M);if(Array.isArray(k)){if(k.length>1)return function w(L,k){for(let V=1;V<=40;V++)if(M(L,V)<=q.getCapacity(V,k,T.MIXED))return V}(k,W);if(0===k.length)return 1;B=k[0]}else B=k;return function N(L,k,V){for(let B=1;B<=40;B++)if(k<=q.getCapacity(B,V,L))return B}(B.mode,B.getLength(),W)},q.getEncodedBits=function(k){if(!s.isValid(k)||k<7)throw new Error("Invalid QR Code version");let V=k<<12;for(;t.getBCHDigit(V)-h>=0;)V^=7973<<t.getBCHDigit(V)-h;return k<<12|V}},3210:(We,q,m)=>{const t=m(6355);q.render=function(s,x,h){let N=h,d=x;typeof N>"u"&&(!x||!x.getContext)&&(N=x,x=void 0),x||(d=function g(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),N=t.getOptions(N);const M=t.getImageWidth(s.modules.size,N),w=d.getContext("2d"),L=w.createImageData(M,M);return t.qrToImageData(L.data,s,N),function e(T,s,x){T.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=x,s.width=x,s.style.height=x+"px",s.style.width=x+"px"}(w,d,M),w.putImageData(L,0,0),d},q.renderToDataURL=function(s,x,h){let N=h;return typeof N>"u"&&(!x||!x.getContext)&&(N=x,x=void 0),N||(N={}),q.render(s,x,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},2334:(We,q,m)=>{const t=m(6355);function e(s,x){const h=s.a/255,N=x+'="'+s.hex+'"';return h<1?N+" "+x+'-opacity="'+h.toFixed(2).slice(1)+'"':N}function g(s,x,h){let N=s+x;return typeof h<"u"&&(N+=" "+h),N}q.render=function(x,h,N){const d=t.getOptions(h),M=x.modules.size,w=x.modules.data,L=M+2*d.margin,k=d.color.light.a?"<path "+e(d.color.light,"fill")+' d="M0 0h'+L+"v"+L+'H0z"/>':"",V="<path "+e(d.color.dark,"stroke")+' d="'+function T(s,x,h){let N="",d=0,M=!1,w=0;for(let L=0;L<s.length;L++){const k=Math.floor(L%x),V=Math.floor(L/x);!k&&!M&&(M=!0),s[L]?(w++,L>0&&k>0&&s[L-1]||(N+=M?g("M",k+h,.5+V+h):g("m",d,0),d=0,M=!1),k+1<x&&s[L+1]||(N+=g("h",w),w=0)):d++}return N}(w,M,d.margin)+'"/>',Y='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+'viewBox="0 0 '+L+" "+L+'" shape-rendering="crispEdges">'+k+V+"</svg>\n";return"function"==typeof N&&N(null,Y),Y}},6355:(We,q)=>{function m(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(T){return[T,T]}))),6===e.length&&e.push("F","F");const g=parseInt(e.join(""),16);return{r:g>>24&255,g:g>>16&255,b:g>>8&255,a:255&g,hex:"#"+e.slice(0,6).join("")}}q.getOptions=function(e){e||(e={}),e.color||(e.color={});const T=e.width&&e.width>=21?e.width:void 0;return{width:T,scale:T?4:e.scale||4,margin:typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,color:{dark:m(e.color.dark||"#000000ff"),light:m(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},q.getScale=function(e,g){return g.width&&g.width>=e+2*g.margin?g.width/(e+2*g.margin):g.scale},q.getImageWidth=function(e,g){const T=q.getScale(e,g);return Math.floor((e+2*g.margin)*T)},q.qrToImageData=function(e,g,T){const s=g.modules.size,x=g.modules.data,h=q.getScale(s,T),N=Math.floor((s+2*T.margin)*h),d=T.margin*h,M=[T.color.light,T.color.dark];for(let w=0;w<N;w++)for(let L=0;L<N;L++){let k=4*(w*N+L),V=T.color.light;w>=d&&L>=d&&w<N-d&&L<N-d&&(V=M[x[Math.floor((w-d)/h)*s+Math.floor((L-d)/h)]?1:0]),e[k++]=V.r,e[k++]=V.g,e[k++]=V.b,e[k]=V.a}}},3753:(We,q,m)=>{"use strict";var t=65536,T=m(3502).Buffer,s=global.crypto||global.msCrypto;We.exports=s&&s.getRandomValues?function x(h,N){if(h>4294967295)throw new RangeError("requested too many random bytes");var d=T.allocUnsafe(h);if(h>0)if(h>t)for(var M=0;M<h;M+=t)s.getRandomValues(d.slice(M,M+t));else s.getRandomValues(d);return"function"==typeof N?process.nextTick(function(){N(null,d)}):d}:function g(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(We,q,m)=>{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=m(3502),g=m(3753),T=e.Buffer,s=e.kMaxLength,x=global.crypto||global.msCrypto,h=Math.pow(2,32)-1;function N(k,V){if("number"!=typeof k||k!=k)throw new TypeError("offset must be a number");if(k>h||k<0)throw new TypeError("offset must be a uint32");if(k>s||k>V)throw new RangeError("offset out of range")}function d(k,V,B){if("number"!=typeof k||k!=k)throw new TypeError("size must be a number");if(k>h||k<0)throw new TypeError("size must be a uint32");if(k+V>B||k>s)throw new RangeError("buffer too small")}function w(k,V,B,W){if(process.browser){var Q=new Uint8Array(k.buffer,V,B);return x.getRandomValues(Q),W?void process.nextTick(function(){W(null,k)}):k}if(!W)return g(B).copy(k,V),k;g(B,function(ee,me){if(ee)return W(ee);me.copy(k,V),W(null,k)})}x&&x.getRandomValues||!process.browser?(q.randomFill=function M(k,V,B,W){if(!(T.isBuffer(k)||k instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof V)W=V,V=0,B=k.length;else if("function"==typeof B)W=B,B=k.length-V;else if("function"!=typeof W)throw new TypeError('"cb" argument must be a function');return N(V,k.length),d(B,V,k.length),w(k,V,B,W)},q.randomFillSync=function L(k,V,B){if(typeof V>"u"&&(V=0),!(T.isBuffer(k)||k instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return N(V,k.length),void 0===B&&(B=k.length-V),d(B,V,k.length),w(k,V,B)}):(q.randomFill=t,q.randomFillSync=t)},891:We=>{"use strict";var m={};function t(x,h,N){N||(N=Error);var M=function(w){function L(k,V,B){return w.call(this,function d(w,L,k){return"string"==typeof h?h:h(w,L,k)}(k,V,B))||this}return function q(x,h){x.prototype=Object.create(h.prototype),x.prototype.constructor=x,x.__proto__=h}(L,w),L}(N);M.prototype.name=N.name,M.prototype.code=x,m[x]=M}function e(x,h){if(Array.isArray(x)){var N=x.length;return x=x.map(function(d){return String(d)}),N>2?"one of ".concat(h," ").concat(x.slice(0,N-1).join(", "),", or ")+x[N-1]:2===N?"one of ".concat(h," ").concat(x[0]," or ").concat(x[1]):"of ".concat(h," ").concat(x[0])}return"of ".concat(h," ").concat(String(x))}t("ERR_INVALID_OPT_VALUE",function(x,h){return'The value "'+h+'" is invalid for option "'+x+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(x,h,N){var d,M;if("string"==typeof h&&function g(x,h,N){return x.substr(!N||N<0?0:+N,h.length)===h}(h,"not ")?(d="must not be",h=h.replace(/^not /,"")):d="must be",function T(x,h,N){return(void 0===N||N>x.length)&&(N=x.length),x.substring(N-h.length,N)===h}(x," argument"))M="The ".concat(x," ").concat(d," ").concat(e(h,"type"));else{var w=function s(x,h,N){return"number"!=typeof N&&(N=0),!(N+h.length>x.length)&&-1!==x.indexOf(h,N)}(x,".")?"property":"argument";M='The "'.concat(x,'" ').concat(w," ").concat(d," ").concat(e(h,"type"))}return M+". Received type ".concat(typeof N)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(x){return"The "+x+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(x){return"Cannot call "+x+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(x){return"Unknown encoding: "+x},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),We.exports.q=m},1339:(We,q,m)=>{"use strict";var t=Object.keys||function(M){var w=[];for(var L in M)w.push(L);return w};We.exports=h;var e=m(3154),g=m(520);m(3894)(h,e);for(var T=t(g.prototype),s=0;s<T.length;s++){var x=T[s];h.prototype[x]||(h.prototype[x]=g.prototype[x])}function h(M){if(!(this instanceof h))return new h(M);e.call(this,M),g.call(this,M),this.allowHalfOpen=!0,M&&(!1===M.readable&&(this.readable=!1),!1===M.writable&&(this.writable=!1),!1===M.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",N)))}function N(){this._writableState.ended||process.nextTick(d,this)}function d(M){M.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(w){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=w,this._writableState.destroyed=w)}})},6071:(We,q,m)=>{"use strict";We.exports=e;var t=m(6025);function e(g){if(!(this instanceof e))return new e(g);t.call(this,g)}m(3894)(e,t),e.prototype._transform=function(g,T,s){s(null,g)}},3154:(We,q,m)=>{"use strict";var t;We.exports=S,S.ReadableState=Te,m(9069);var M,g=function(ze,Oe){return ze.listeners(Oe).length},T=m(4970),s=m(3172).Buffer,x=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d=m(4616);M=d&&d.debuglog?d.debuglog("stream"):function(){};var ee,me,re,w=m(5019),L=m(1920),V=m(7102).getHighWaterMark,B=m(891).q,W=B.ERR_INVALID_ARG_TYPE,Y=B.ERR_STREAM_PUSH_AFTER_EOF,Q=B.ERR_METHOD_NOT_IMPLEMENTED,X=B.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(S,T);var ie=L.errorOrDestroy,se=["error","close","destroy","pause","resume"];function Te(oe,ze,Oe){t=t||m(1339),"boolean"!=typeof Oe&&(Oe=ze instanceof t),this.objectMode=!!(oe=oe||{}).objectMode,Oe&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=V(this,oe,"readableHighWaterMark",Oe),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==oe.emitClose,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(oe.encoding),this.encoding=oe.encoding)}function S(oe){if(t=t||m(1339),!(this instanceof S))return new S(oe);this._readableState=new Te(oe,this,this instanceof t),this.readable=!0,oe&&("function"==typeof oe.read&&(this._read=oe.read),"function"==typeof oe.destroy&&(this._destroy=oe.destroy)),T.call(this)}function i(oe,ze,Oe,he,Ae){M("readableAddChunk",ze);var Ue,ge=oe._readableState;if(null===ze)ge.reading=!1,function R(oe,ze){if(M("onEofChunk"),!ze.ended){if(ze.decoder){var Oe=ze.decoder.end();Oe&&Oe.length&&(ze.buffer.push(Oe),ze.length+=ze.objectMode?1:Oe.length)}ze.ended=!0,ze.sync?C(oe):(ze.needReadable=!1,ze.emittedReadable||(ze.emittedReadable=!0,n(oe)))}}(oe,ge);else if(Ae||(Ue=function u(oe,ze){var Oe;return!function N(oe){return s.isBuffer(oe)||oe instanceof x}(ze)&&"string"!=typeof ze&&void 0!==ze&&!oe.objectMode&&(Oe=new W("chunk",["string","Buffer","Uint8Array"],ze)),Oe}(ge,ze)),Ue)ie(oe,Ue);else if(ge.objectMode||ze&&ze.length>0)if("string"!=typeof ze&&!ge.objectMode&&Object.getPrototypeOf(ze)!==s.prototype&&(ze=function h(oe){return s.from(oe)}(ze)),he)ge.endEmitted?ie(oe,new X):a(oe,ge,ze,!0);else if(ge.ended)ie(oe,new Y);else{if(ge.destroyed)return!1;ge.reading=!1,ge.decoder&&!Oe?(ze=ge.decoder.write(ze),ge.objectMode||0!==ze.length?a(oe,ge,ze,!1):v(oe,ge)):a(oe,ge,ze,!1)}else he||(ge.reading=!1,v(oe,ge));return!ge.ended&&(ge.length<ge.highWaterMark||0===ge.length)}function a(oe,ze,Oe,he){ze.flowing&&0===ze.length&&!ze.sync?(ze.awaitDrain=0,oe.emit("data",Oe)):(ze.length+=ze.objectMode?1:Oe.length,he?ze.buffer.unshift(Oe):ze.buffer.push(Oe),ze.needReadable&&C(oe)),v(oe,ze)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(ze){this._readableState&&(this._readableState.destroyed=ze)}}),S.prototype.destroy=L.destroy,S.prototype._undestroy=L.undestroy,S.prototype._destroy=function(oe,ze){ze(oe)},S.prototype.push=function(oe,ze){var he,Oe=this._readableState;return Oe.objectMode?he=!0:"string"==typeof oe&&((ze=ze||Oe.defaultEncoding)!==Oe.encoding&&(oe=s.from(oe,ze),ze=""),he=!0),i(this,oe,ze,!1,he)},S.prototype.unshift=function(oe){return i(this,oe,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(oe){ee||(ee=m(3054).s);var ze=new ee(oe);this._readableState.decoder=ze,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,he="";null!==Oe;)he+=ze.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),""!==he&&this._readableState.buffer.push(he),this._readableState.length=he.length,this};var l=1073741824;function O(oe,ze){return oe<=0||0===ze.length&&ze.ended?0:ze.objectMode?1:oe!=oe?ze.flowing&&ze.length?ze.buffer.head.data.length:ze.length:(oe>ze.highWaterMark&&(ze.highWaterMark=function _(oe){return oe>=l?oe=l:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}(oe)),oe<=ze.length?oe:ze.ended?ze.length:(ze.needReadable=!0,0))}function C(oe){var ze=oe._readableState;M("emitReadable",ze.needReadable,ze.emittedReadable),ze.needReadable=!1,ze.emittedReadable||(M("emitReadable",ze.flowing),ze.emittedReadable=!0,process.nextTick(n,oe))}function n(oe){var ze=oe._readableState;M("emitReadable_",ze.destroyed,ze.length,ze.ended),!ze.destroyed&&(ze.length||ze.ended)&&(oe.emit("readable"),ze.emittedReadable=!1),ze.needReadable=!ze.flowing&&!ze.ended&&ze.length<=ze.highWaterMark,qe(oe)}function v(oe,ze){ze.readingMore||(ze.readingMore=!0,process.nextTick(K,oe,ze))}function K(oe,ze){for(;!ze.reading&&!ze.ended&&(ze.length<ze.highWaterMark||ze.flowing&&0===ze.length);){var Oe=ze.length;if(M("maybeReadMore read 0"),oe.read(0),Oe===ze.length)break}ze.readingMore=!1}function G(oe){var ze=oe._readableState;ze.readableListening=oe.listenerCount("readable")>0,ze.resumeScheduled&&!ze.paused?ze.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function ye(oe){M("readable nexttick read 0"),oe.read(0)}function pe(oe,ze){M("resume",ze.reading),ze.reading||oe.read(0),ze.resumeScheduled=!1,oe.emit("resume"),qe(oe),ze.flowing&&!ze.reading&&oe.read(0)}function qe(oe){var ze=oe._readableState;for(M("flow",ze.flowing);ze.flowing&&null!==oe.read(););}function Ce(oe,ze){return 0===ze.length?null:(ze.objectMode?Oe=ze.buffer.shift():!oe||oe>=ze.length?(Oe=ze.decoder?ze.buffer.join(""):1===ze.buffer.length?ze.buffer.first():ze.buffer.concat(ze.length),ze.buffer.clear()):Oe=ze.buffer.consume(oe,ze.decoder),Oe);var Oe}function Se(oe){var ze=oe._readableState;M("endReadable",ze.endEmitted),ze.endEmitted||(ze.ended=!0,process.nextTick(fe,ze,oe))}function fe(oe,ze){if(M("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&0===oe.length&&(oe.endEmitted=!0,ze.readable=!1,ze.emit("end"),oe.autoDestroy)){var Oe=ze._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&ze.destroy()}}function Fe(oe,ze){for(var Oe=0,he=oe.length;Oe<he;Oe++)if(oe[Oe]===ze)return Oe;return-1}S.prototype.read=function(oe){M("read",oe),oe=parseInt(oe,10);var ze=this._readableState,Oe=oe;if(0!==oe&&(ze.emittedReadable=!1),0===oe&&ze.needReadable&&((0!==ze.highWaterMark?ze.length>=ze.highWaterMark:ze.length>0)||ze.ended))return M("read: emitReadable",ze.length,ze.ended),0===ze.length&&ze.ended?Se(this):C(this),null;if(0===(oe=O(oe,ze))&&ze.ended)return 0===ze.length&&Se(this),null;var Ae,he=ze.needReadable;return M("need readable",he),(0===ze.length||ze.length-oe<ze.highWaterMark)&&M("length less than watermark",he=!0),ze.ended||ze.reading?M("reading or ended",he=!1):he&&(M("do read"),ze.reading=!0,ze.sync=!0,0===ze.length&&(ze.needReadable=!0),this._read(ze.highWaterMark),ze.sync=!1,ze.reading||(oe=O(Oe,ze))),null===(Ae=oe>0?Ce(oe,ze):null)?(ze.needReadable=ze.length<=ze.highWaterMark,oe=0):(ze.length-=oe,ze.awaitDrain=0),0===ze.length&&(ze.ended||(ze.needReadable=!0),Oe!==oe&&ze.ended&&Se(this)),null!==Ae&&this.emit("data",Ae),Ae},S.prototype._read=function(oe){ie(this,new Q("_read()"))},S.prototype.pipe=function(oe,ze){var Oe=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=oe;break;case 1:he.pipes=[he.pipes,oe];break;default:he.pipes.push(oe)}he.pipesCount+=1,M("pipe count=%d opts=%j",he.pipesCount,ze);var ge=ze&&!1===ze.end||oe===process.stdout||oe===process.stderr?Ze:Je;function Je(){M("onend"),oe.end()}he.endEmitted?process.nextTick(ge):Oe.once("end",ge),oe.on("unpipe",function Ue(xt,Me){M("onunpipe"),xt===Oe&&Me&&!1===Me.hasUnpiped&&(Me.hasUnpiped=!0,function rt(){M("cleanup"),oe.removeListener("close",Gt),oe.removeListener("finish",ut),oe.removeListener("drain",Re),oe.removeListener("error",ct),oe.removeListener("unpipe",Ue),Oe.removeListener("end",Je),Oe.removeListener("end",Ze),Oe.removeListener("data",Qe),le=!0,he.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&Re()}())});var Re=function F(oe){return function(){var Oe=oe._readableState;M("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,0===Oe.awaitDrain&&g(oe,"data")&&(Oe.flowing=!0,qe(oe))}}(Oe);oe.on("drain",Re);var le=!1;function Qe(xt){M("ondata");var Me=oe.write(xt);M("dest.write",Me),!1===Me&&((1===he.pipesCount&&he.pipes===oe||he.pipesCount>1&&-1!==Fe(he.pipes,oe))&&!le&&(M("false write response, pause",he.awaitDrain),he.awaitDrain++),Oe.pause())}function ct(xt){M("onerror",xt),Ze(),oe.removeListener("error",ct),0===g(oe,"error")&&ie(oe,xt)}function Gt(){oe.removeListener("finish",ut),Ze()}function ut(){M("onfinish"),oe.removeListener("close",Gt),Ze()}function Ze(){M("unpipe"),Oe.unpipe(oe)}return Oe.on("data",Qe),function ce(oe,ze,Oe){if("function"==typeof oe.prependListener)return oe.prependListener(ze,Oe);oe._events&&oe._events[ze]?Array.isArray(oe._events[ze])?oe._events[ze].unshift(Oe):oe._events[ze]=[Oe,oe._events[ze]]:oe.on(ze,Oe)}(oe,"error",ct),oe.once("close",Gt),oe.once("finish",ut),oe.emit("pipe",Oe),he.flowing||(M("pipe resume"),Oe.resume()),oe},S.prototype.unpipe=function(oe){var ze=this._readableState,Oe={hasUnpiped:!1};if(0===ze.pipesCount)return this;if(1===ze.pipesCount)return oe&&oe!==ze.pipes||(oe||(oe=ze.pipes),ze.pipes=null,ze.pipesCount=0,ze.flowing=!1,oe&&oe.emit("unpipe",this,Oe)),this;if(!oe){var he=ze.pipes,Ae=ze.pipesCount;ze.pipes=null,ze.pipesCount=0,ze.flowing=!1;for(var ge=0;ge<Ae;ge++)he[ge].emit("unpipe",this,{hasUnpiped:!1});return this}var Ue=Fe(ze.pipes,oe);return-1===Ue||(ze.pipes.splice(Ue,1),ze.pipesCount-=1,1===ze.pipesCount&&(ze.pipes=ze.pipes[0]),oe.emit("unpipe",this,Oe)),this},S.prototype.addListener=S.prototype.on=function(oe,ze){var Oe=T.prototype.on.call(this,oe,ze),he=this._readableState;return"data"===oe?(he.readableListening=this.listenerCount("readable")>0,!1!==he.flowing&&this.resume()):"readable"===oe&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,M("on readable",he.length,he.reading),he.length?C(this):he.reading||process.nextTick(ye,this)),Oe},S.prototype.removeListener=function(oe,ze){var Oe=T.prototype.removeListener.call(this,oe,ze);return"readable"===oe&&process.nextTick(G,this),Oe},S.prototype.removeAllListeners=function(oe){var ze=T.prototype.removeAllListeners.apply(this,arguments);return("readable"===oe||void 0===oe)&&process.nextTick(G,this),ze},S.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(M("resume"),oe.flowing=!oe.readableListening,function Ee(oe,ze){ze.resumeScheduled||(ze.resumeScheduled=!0,process.nextTick(pe,oe,ze))}(this,oe)),oe.paused=!1,this},S.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(oe){var ze=this,Oe=this._readableState,he=!1;for(var Ae in oe.on("end",function(){if(M("wrapped end"),Oe.decoder&&!Oe.ended){var Ue=Oe.decoder.end();Ue&&Ue.length&&ze.push(Ue)}ze.push(null)}),oe.on("data",function(Ue){M("wrapped data"),Oe.decoder&&(Ue=Oe.decoder.write(Ue)),Oe.objectMode&&null==Ue||!(Oe.objectMode||Ue&&Ue.length)||ze.push(Ue)||(he=!0,oe.pause())}),oe)void 0===this[Ae]&&"function"==typeof oe[Ae]&&(this[Ae]=function(Je){return function(){return oe[Je].apply(oe,arguments)}}(Ae));for(var ge=0;ge<se.length;ge++)oe.on(se[ge],this.emit.bind(this,se[ge]));return this._read=function(Ue){M("wrapped _read",Ue),he&&(he=!1,oe.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===me&&(me=m(3872)),me(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ze){this._readableState&&(this._readableState.flowing=ze)}}),S._fromList=Ce,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(oe,ze){return void 0===re&&(re=m(7412)),re(S,oe,ze)})},6025:(We,q,m)=>{"use strict";We.exports=N;var t=m(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,g=t.ERR_MULTIPLE_CALLBACK,T=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,x=m(1339);function h(w,L){var k=this._transformState;k.transforming=!1;var V=k.writecb;if(null===V)return this.emit("error",new g);k.writechunk=null,k.writecb=null,null!=L&&this.push(L),V(w);var B=this._readableState;B.reading=!1,(B.needReadable||B.length<B.highWaterMark)&&this._read(B.highWaterMark)}function N(w){if(!(this instanceof N))return new N(w);x.call(this,w),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,w&&("function"==typeof w.transform&&(this._transform=w.transform),"function"==typeof w.flush&&(this._flush=w.flush)),this.on("prefinish",d)}function d(){var w=this;"function"!=typeof this._flush||this._readableState.destroyed?M(this,null,null):this._flush(function(L,k){M(w,L,k)})}function M(w,L,k){if(L)return w.emit("error",L);if(null!=k&&w.push(k),w._writableState.length)throw new s;if(w._transformState.transforming)throw new T;return w.push(null)}m(3894)(N,x),N.prototype.push=function(w,L){return this._transformState.needTransform=!1,x.prototype.push.call(this,w,L)},N.prototype._transform=function(w,L,k){k(new e("_transform()"))},N.prototype._write=function(w,L,k){var V=this._transformState;if(V.writecb=k,V.writechunk=w,V.writeencoding=L,!V.transforming){var B=this._readableState;(V.needTransform||B.needReadable||B.length<B.highWaterMark)&&this._read(B.highWaterMark)}},N.prototype._read=function(w){var L=this._transformState;null===L.writechunk||L.transforming?L.needTransform=!0:(L.transforming=!0,this._transform(L.writechunk,L.writeencoding,L.afterTransform))},N.prototype._destroy=function(w,L){x.prototype._destroy.call(this,w,function(k){L(k)})}},520:(We,q,m)=>{"use strict";function e(qe){var Ce=this;this.next=null,this.entry=null,this.finish=function(){!function pe(qe,Ce,Se){var fe=qe.entry;for(qe.entry=null;fe;){var Fe=fe.callback;Ce.pendingcb--,Fe(Se),fe=fe.next}Ce.corkedRequestsFree.next=qe}(Ce,qe)}}var g;We.exports=Te,Te.WritableState=se;var ce,T={deprecate:m(4364)},s=m(4970),x=m(3172).Buffer,h=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},M=m(1920),L=m(7102).getHighWaterMark,k=m(891).q,V=k.ERR_INVALID_ARG_TYPE,B=k.ERR_METHOD_NOT_IMPLEMENTED,W=k.ERR_MULTIPLE_CALLBACK,Y=k.ERR_STREAM_CANNOT_PIPE,Q=k.ERR_STREAM_DESTROYED,X=k.ERR_STREAM_NULL_VALUES,ee=k.ERR_STREAM_WRITE_AFTER_END,me=k.ERR_UNKNOWN_ENCODING,re=M.errorOrDestroy;function ie(){}function se(qe,Ce,Se){g=g||m(1339),"boolean"!=typeof Se&&(Se=Ce instanceof g),this.objectMode=!!(qe=qe||{}).objectMode,Se&&(this.objectMode=this.objectMode||!!qe.writableObjectMode),this.highWaterMark=L(this,qe,"writableHighWaterMark",Se),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===qe.decodeStrings),this.defaultEncoding=qe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){!function R(qe,Ce){var Se=qe._writableState,fe=Se.sync,Fe=Se.writecb;if("function"!=typeof Fe)throw new W;if(function O(qe){qe.writing=!1,qe.writecb=null,qe.length-=qe.writelen,qe.writelen=0}(Se),Ce)!function _(qe,Ce,Se,fe,Fe){--Ce.pendingcb,Se?(process.nextTick(Fe,fe),process.nextTick(ye,qe,Ce),qe._writableState.errorEmitted=!0,re(qe,fe)):(Fe(fe),qe._writableState.errorEmitted=!0,re(qe,fe),ye(qe,Ce))}(qe,Se,fe,Ce,Fe);else{var oe=K(Se)||qe.destroyed;!oe&&!Se.corked&&!Se.bufferProcessing&&Se.bufferedRequest&&v(qe,Se),fe?process.nextTick(C,qe,Se,oe,Fe):C(qe,Se,oe,Fe)}}(Ce,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==qe.emitClose,this.autoDestroy=!!qe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function Te(qe){var Ce=this instanceof(g=g||m(1339));if(!Ce&&!ce.call(Te,this))return new Te(qe);this._writableState=new se(qe,this,Ce),this.writable=!0,qe&&("function"==typeof qe.write&&(this._write=qe.write),"function"==typeof qe.writev&&(this._writev=qe.writev),"function"==typeof qe.destroy&&(this._destroy=qe.destroy),"function"==typeof qe.final&&(this._final=qe.final)),s.call(this)}function l(qe,Ce,Se,fe,Fe,oe,ze){Ce.writelen=fe,Ce.writecb=ze,Ce.writing=!0,Ce.sync=!0,Ce.destroyed?Ce.onwrite(new Q("write")):Se?qe._writev(Fe,Ce.onwrite):qe._write(Fe,oe,Ce.onwrite),Ce.sync=!1}function C(qe,Ce,Se,fe){Se||function n(qe,Ce){0===Ce.length&&Ce.needDrain&&(Ce.needDrain=!1,qe.emit("drain"))}(qe,Ce),Ce.pendingcb--,fe(),ye(qe,Ce)}function v(qe,Ce){Ce.bufferProcessing=!0;var Se=Ce.bufferedRequest;if(qe._writev&&Se&&Se.next){var Fe=new Array(Ce.bufferedRequestCount),oe=Ce.corkedRequestsFree;oe.entry=Se;for(var ze=0,Oe=!0;Se;)Fe[ze]=Se,Se.isBuf||(Oe=!1),Se=Se.next,ze+=1;Fe.allBuffers=Oe,l(qe,Ce,!0,Ce.length,Fe,"",oe.finish),Ce.pendingcb++,Ce.lastBufferedRequest=null,oe.next?(Ce.corkedRequestsFree=oe.next,oe.next=null):Ce.corkedRequestsFree=new e(Ce),Ce.bufferedRequestCount=0}else{for(;Se;){var he=Se.chunk;if(l(qe,Ce,!1,Ce.objectMode?1:he.length,he,Se.encoding,Se.callback),Se=Se.next,Ce.bufferedRequestCount--,Ce.writing)break}null===Se&&(Ce.lastBufferedRequest=null)}Ce.bufferedRequest=Se,Ce.bufferProcessing=!1}function K(qe){return qe.ending&&0===qe.length&&null===qe.bufferedRequest&&!qe.finished&&!qe.writing}function F(qe,Ce){qe._final(function(Se){Ce.pendingcb--,Se&&re(qe,Se),Ce.prefinished=!0,qe.emit("prefinish"),ye(qe,Ce)})}function ye(qe,Ce){var Se=K(Ce);if(Se&&(function G(qe,Ce){!Ce.prefinished&&!Ce.finalCalled&&("function"!=typeof qe._final||Ce.destroyed?(Ce.prefinished=!0,qe.emit("prefinish")):(Ce.pendingcb++,Ce.finalCalled=!0,process.nextTick(F,qe,Ce)))}(qe,Ce),0===Ce.pendingcb&&(Ce.finished=!0,qe.emit("finish"),Ce.autoDestroy))){var fe=qe._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&qe.destroy()}return Se}m(3894)(Te,s),se.prototype.getBuffer=function(){for(var Ce=this.bufferedRequest,Se=[];Ce;)Se.push(Ce),Ce=Ce.next;return Se},function(){try{Object.defineProperty(se.prototype,"buffer",{get:T.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(Te,Symbol.hasInstance,{value:function(Ce){return!!ce.call(this,Ce)||this===Te&&Ce&&Ce._writableState instanceof se}})):ce=function(Ce){return Ce instanceof this},Te.prototype.pipe=function(){re(this,new Y)},Te.prototype.write=function(qe,Ce,Se){var fe=this._writableState,Fe=!1,oe=!fe.objectMode&&function d(qe){return x.isBuffer(qe)||qe instanceof h}(qe);return oe&&!x.isBuffer(qe)&&(qe=function N(qe){return x.from(qe)}(qe)),"function"==typeof Ce&&(Se=Ce,Ce=null),oe?Ce="buffer":Ce||(Ce=fe.defaultEncoding),"function"!=typeof Se&&(Se=ie),fe.ending?function S(qe,Ce){var Se=new ee;re(qe,Se),process.nextTick(Ce,Se)}(this,Se):(oe||function i(qe,Ce,Se,fe){var Fe;return null===Se?Fe=new X:"string"!=typeof Se&&!Ce.objectMode&&(Fe=new V("chunk",["string","Buffer"],Se)),!Fe||(re(qe,Fe),process.nextTick(fe,Fe),!1)}(this,fe,qe,Se))&&(fe.pendingcb++,Fe=function u(qe,Ce,Se,fe,Fe,oe){if(!Se){var ze=function a(qe,Ce,Se){return!qe.objectMode&&!1!==qe.decodeStrings&&"string"==typeof Ce&&(Ce=x.from(Ce,Se)),Ce}(Ce,fe,Fe);fe!==ze&&(Se=!0,Fe="buffer",fe=ze)}var Oe=Ce.objectMode?1:fe.length;Ce.length+=Oe;var he=Ce.length<Ce.highWaterMark;if(he||(Ce.needDrain=!0),Ce.writing||Ce.corked){var Ae=Ce.lastBufferedRequest;Ce.lastBufferedRequest={chunk:fe,encoding:Fe,isBuf:Se,callback:oe,next:null},Ae?Ae.next=Ce.lastBufferedRequest:Ce.bufferedRequest=Ce.lastBufferedRequest,Ce.bufferedRequestCount+=1}else l(qe,Ce,!1,Oe,fe,Fe,oe);return he}(this,fe,oe,qe,Ce,Se)),Fe},Te.prototype.cork=function(){this._writableState.corked++},Te.prototype.uncork=function(){var qe=this._writableState;qe.corked&&(qe.corked--,!qe.writing&&!qe.corked&&!qe.bufferProcessing&&qe.bufferedRequest&&v(this,qe))},Te.prototype.setDefaultEncoding=function(Ce){if("string"==typeof Ce&&(Ce=Ce.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ce+"").toLowerCase())>-1))throw new me(Ce);return this._writableState.defaultEncoding=Ce,this},Object.defineProperty(Te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Te.prototype._write=function(qe,Ce,Se){Se(new B("_write()"))},Te.prototype._writev=null,Te.prototype.end=function(qe,Ce,Se){var fe=this._writableState;return"function"==typeof qe?(Se=qe,qe=null,Ce=null):"function"==typeof Ce&&(Se=Ce,Ce=null),null!=qe&&this.write(qe,Ce),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||function Ee(qe,Ce,Se){Ce.ending=!0,ye(qe,Ce),Se&&(Ce.finished?process.nextTick(Se):qe.once("finish",Se)),Ce.ended=!0,qe.writable=!1}(this,fe,Se),this},Object.defineProperty(Te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Te.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ce){this._writableState&&(this._writableState.destroyed=Ce)}}),Te.prototype.destroy=M.destroy,Te.prototype._undestroy=M.undestroy,Te.prototype._destroy=function(qe,Ce){Ce(qe)}},3872:(We,q,m)=>{"use strict";var t;function e(ee,me,re){return me=function g(ee){var me=function T(ee,me){if("object"!=typeof ee||null===ee)return ee;var re=ee[Symbol.toPrimitive];if(void 0!==re){var ie=re.call(ee,me||"default");if("object"!=typeof ie)return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(ee)}(ee,"string");return"symbol"==typeof me?me:String(me)}(me),me in ee?Object.defineProperty(ee,me,{value:re,enumerable:!0,configurable:!0,writable:!0}):ee[me]=re,ee}var s=m(7542),x=Symbol("lastResolve"),h=Symbol("lastReject"),N=Symbol("error"),d=Symbol("ended"),M=Symbol("lastPromise"),w=Symbol("handlePromise"),L=Symbol("stream");function k(ee,me){return{value:ee,done:me}}function V(ee){var me=ee[x];if(null!==me){var re=ee[L].read();null!==re&&(ee[M]=null,ee[x]=null,ee[h]=null,me(k(re,!1)))}}function B(ee){process.nextTick(V,ee)}var Y=Object.getPrototypeOf(function(){}),Q=Object.setPrototypeOf((e(t={get stream(){return this[L]},next:function(){var me=this,re=this[N];if(null!==re)return Promise.reject(re);if(this[d])return Promise.resolve(k(void 0,!0));if(this[L].destroyed)return new Promise(function(Te,S){process.nextTick(function(){me[N]?S(me[N]):Te(k(void 0,!0))})});var se,ie=this[M];if(ie)se=new Promise(function W(ee,me){return function(re,ie){ee.then(function(){me[d]?re(k(void 0,!0)):me[w](re,ie)},ie)}}(ie,this));else{var ce=this[L].read();if(null!==ce)return Promise.resolve(k(ce,!1));se=new Promise(this[w])}return this[M]=se,se}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var me=this;return new Promise(function(re,ie){me[L].destroy(null,function(se){se?ie(se):re(k(void 0,!0))})})}),t),Y);We.exports=function(me){var re,ie=Object.create(Q,(e(re={},L,{value:me,writable:!0}),e(re,x,{value:null,writable:!0}),e(re,h,{value:null,writable:!0}),e(re,N,{value:null,writable:!0}),e(re,d,{value:me._readableState.endEmitted,writable:!0}),e(re,w,{value:function(ce,Te){var S=ie[L].read();S?(ie[M]=null,ie[x]=null,ie[h]=null,ce(k(S,!1))):(ie[x]=ce,ie[h]=Te)},writable:!0}),re));return ie[M]=null,s(me,function(se){if(se&&"ERR_STREAM_PREMATURE_CLOSE"!==se.code){var ce=ie[h];return null!==ce&&(ie[M]=null,ie[x]=null,ie[h]=null,ce(se)),void(ie[N]=se)}var Te=ie[x];null!==Te&&(ie[M]=null,ie[x]=null,ie[h]=null,Te(k(void 0,!0))),ie[d]=!0}),me.on("readable",B.bind(null,ie)),ie}},5019:(We,q,m)=>{"use strict";function t(B,W){var Y=Object.keys(B);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(B);W&&(Q=Q.filter(function(X){return Object.getOwnPropertyDescriptor(B,X).enumerable})),Y.push.apply(Y,Q)}return Y}function e(B){for(var W=1;W<arguments.length;W++){var Y=null!=arguments[W]?arguments[W]:{};W%2?t(Object(Y),!0).forEach(function(Q){g(B,Q,Y[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(Y)):t(Object(Y)).forEach(function(Q){Object.defineProperty(B,Q,Object.getOwnPropertyDescriptor(Y,Q))})}return B}function g(B,W,Y){return(W=h(W))in B?Object.defineProperty(B,W,{value:Y,enumerable:!0,configurable:!0,writable:!0}):B[W]=Y,B}function s(B,W){for(var Y=0;Y<W.length;Y++){var Q=W[Y];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(B,h(Q.key),Q)}}function h(B){var W=function N(B,W){if("object"!=typeof B||null===B)return B;var Y=B[Symbol.toPrimitive];if(void 0!==Y){var Q=Y.call(B,W||"default");if("object"!=typeof Q)return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(B)}(B,"string");return"symbol"==typeof W?W:String(W)}var M=m(3172).Buffer,L=m(2361).inspect,k=L&&L.custom||"inspect";function V(B,W,Y){M.prototype.copy.call(B,W,Y)}We.exports=function(){function B(){(function T(B,W){if(!(B instanceof W))throw new TypeError("Cannot call a class as a function")})(this,B),this.head=null,this.tail=null,this.length=0}return function x(B,W,Y){W&&s(B.prototype,W),Y&&s(B,Y),Object.defineProperty(B,"prototype",{writable:!1})}(B,[{key:"push",value:function(Y){var Q={data:Y,next:null};this.length>0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(Y){var Q={data:Y,next:this.head};0===this.length&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Y=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Y){if(0===this.length)return"";for(var Q=this.head,X=""+Q.data;Q=Q.next;)X+=Y+Q.data;return X}},{key:"concat",value:function(Y){if(0===this.length)return M.alloc(0);for(var Q=M.allocUnsafe(Y>>>0),X=this.head,ee=0;X;)V(X.data,Q,ee),ee+=X.data.length,X=X.next;return Q}},{key:"consume",value:function(Y,Q){var X;return Y<this.head.data.length?(X=this.head.data.slice(0,Y),this.head.data=this.head.data.slice(Y)):X=Y===this.head.data.length?this.shift():Q?this._getString(Y):this._getBuffer(Y),X}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Y){var Q=this.head,X=1,ee=Q.data;for(Y-=ee.length;Q=Q.next;){var me=Q.data,re=Y>me.length?me.length:Y;if(ee+=re===me.length?me:me.slice(0,Y),0==(Y-=re)){re===me.length?(++X,this.head=Q.next?Q.next:this.tail=null):(this.head=Q,Q.data=me.slice(re));break}++X}return this.length-=X,ee}},{key:"_getBuffer",value:function(Y){var Q=M.allocUnsafe(Y),X=this.head,ee=1;for(X.data.copy(Q),Y-=X.data.length;X=X.next;){var me=X.data,re=Y>me.length?me.length:Y;if(me.copy(Q,Q.length-Y,0,re),0==(Y-=re)){re===me.length?(++ee,this.head=X.next?X.next:this.tail=null):(this.head=X,X.data=me.slice(re));break}++ee}return this.length-=ee,Q}},{key:k,value:function(Y,Q){return L(this,e(e({},Q),{},{depth:0,customInspect:!1}))}}]),B}()},1920:We=>{"use strict";function m(s,x){g(s,x),t(s)}function t(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function g(s,x){s.emit("error",x)}We.exports={destroy:function q(s,x){var h=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(x?x(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(g,this,s)):process.nextTick(g,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(M){!x&&M?h._writableState?h._writableState.errorEmitted?process.nextTick(t,h):(h._writableState.errorEmitted=!0,process.nextTick(m,h,M)):process.nextTick(m,h,M):x?(process.nextTick(t,h),x(M)):process.nextTick(t,h)}),this)},undestroy:function e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function T(s,x){var h=s._readableState,N=s._writableState;h&&h.autoDestroy||N&&N.autoDestroy?s.destroy(x):s.emit("error",x)}}},7542:(We,q,m)=>{"use strict";var t=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function g(){}We.exports=function s(x,h,N){if("function"==typeof h)return s(x,null,h);h||(h={}),N=function e(x){var h=!1;return function(){if(!h){h=!0;for(var N=arguments.length,d=new Array(N),M=0;M<N;M++)d[M]=arguments[M];x.apply(this,d)}}}(N||g);var d=h.readable||!1!==h.readable&&x.readable,M=h.writable||!1!==h.writable&&x.writable,w=function(){x.writable||k()},L=x._writableState&&x._writableState.finished,k=function(){M=!1,L=!0,d||N.call(x)},V=x._readableState&&x._readableState.endEmitted,B=function(){d=!1,V=!0,M||N.call(x)},W=function(ee){N.call(x,ee)},Y=function(){var ee;return d&&!V?((!x._readableState||!x._readableState.ended)&&(ee=new t),N.call(x,ee)):M&&!L?((!x._writableState||!x._writableState.ended)&&(ee=new t),N.call(x,ee)):void 0},Q=function(){x.req.on("finish",k)};return function T(x){return x.setHeader&&"function"==typeof x.abort}(x)?(x.on("complete",k),x.on("abort",Y),x.req?Q():x.on("request",Q)):M&&!x._writableState&&(x.on("end",w),x.on("close",w)),x.on("end",B),x.on("finish",k),!1!==h.error&&x.on("error",W),x.on("close",Y),function(){x.removeListener("complete",k),x.removeListener("abort",Y),x.removeListener("request",Q),x.req&&x.req.removeListener("finish",k),x.removeListener("end",w),x.removeListener("close",w),x.removeListener("finish",k),x.removeListener("end",B),x.removeListener("error",W),x.removeListener("close",Y)}}},7412:We=>{We.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(We,q,m)=>{"use strict";var t,g=m(891).q,T=g.ERR_MISSING_ARGS,s=g.ERR_STREAM_DESTROYED;function x(k){if(k)throw k}function d(k){k()}function M(k,V){return k.pipe(V)}We.exports=function L(){for(var k=arguments.length,V=new Array(k),B=0;B<k;B++)V[B]=arguments[B];var W=function w(k){return k.length&&"function"==typeof k[k.length-1]?k.pop():x}(V);if(Array.isArray(V[0])&&(V=V[0]),V.length<2)throw new T("streams");var Y,Q=V.map(function(X,ee){var me=ee<V.length-1;return function N(k,V,B,W){W=function e(k){var V=!1;return function(){V||(V=!0,k.apply(void 0,arguments))}}(W);var Y=!1;k.on("close",function(){Y=!0}),void 0===t&&(t=m(7542)),t(k,{readable:V,writable:B},function(X){if(X)return W(X);Y=!0,W()});var Q=!1;return function(X){if(!Y&&!Q){if(Q=!0,function h(k){return k.setHeader&&"function"==typeof k.abort}(k))return k.abort();if("function"==typeof k.destroy)return k.destroy();W(X||new s("pipe"))}}}(X,me,ee>0,function(ie){Y||(Y=ie),ie&&Q.forEach(d),!me&&(Q.forEach(d),W(Y))})});return V.reduce(M)}},7102:(We,q,m)=>{"use strict";var t=m(891).q.ERR_INVALID_OPT_VALUE;We.exports={getHighWaterMark:function g(T,s,x,h){var N=function e(T,s,x){return null!=T.highWaterMark?T.highWaterMark:s?T[x]:null}(s,h,x);if(null!=N){if(!isFinite(N)||Math.floor(N)!==N||N<0)throw new t(h?x:"highWaterMark",N);return Math.floor(N)}return T.objectMode?16:16384}}},4970:(We,q,m)=>{We.exports=m(9069).EventEmitter},5685:(We,q,m)=>{(q=We.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)},5126:We=>{"use strict";function q(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}We.exports=function m(e){return(e=e||{}).circles?function t(e){var g=[],T=[];return e.proto?function h(N){if("object"!=typeof N||null===N)return N;if(N instanceof Date)return new Date(N);if(Array.isArray(N))return s(N,h);if(N instanceof Map)return new Map(s(Array.from(N),h));if(N instanceof Set)return new Set(s(Array.from(N),h));var d={};for(var M in g.push(N),T.push(d),N){var w=N[M];if("object"!=typeof w||null===w)d[M]=w;else if(w instanceof Date)d[M]=new Date(w);else if(w instanceof Map)d[M]=new Map(s(Array.from(w),h));else if(w instanceof Set)d[M]=new Set(s(Array.from(w),h));else if(ArrayBuffer.isView(w))d[M]=q(w);else{var L=g.indexOf(w);d[M]=-1!==L?T[L]:h(w)}}return g.pop(),T.pop(),d}:function x(N){if("object"!=typeof N||null===N)return N;if(N instanceof Date)return new Date(N);if(Array.isArray(N))return s(N,x);if(N instanceof Map)return new Map(s(Array.from(N),x));if(N instanceof Set)return new Set(s(Array.from(N),x));var d={};for(var M in g.push(N),T.push(d),N)if(!1!==Object.hasOwnProperty.call(N,M)){var w=N[M];if("object"!=typeof w||null===w)d[M]=w;else if(w instanceof Date)d[M]=new Date(w);else if(w instanceof Map)d[M]=new Map(s(Array.from(w),x));else if(w instanceof Set)d[M]=new Set(s(Array.from(w),x));else if(ArrayBuffer.isView(w))d[M]=q(w);else{var L=g.indexOf(w);d[M]=-1!==L?T[L]:x(w)}}return g.pop(),T.pop(),d};function s(N,d){for(var M=Object.keys(N),w=new Array(M.length),L=0;L<M.length;L++){var k=M[L],V=N[k];if("object"!=typeof V||null===V)w[k]=V;else if(V instanceof Date)w[k]=new Date(V);else if(ArrayBuffer.isView(V))w[k]=q(V);else{var B=g.indexOf(V);w[k]=-1!==B?T[B]:d(V)}}return w}}(e):e.proto?function s(x){if("object"!=typeof x||null===x)return x;if(x instanceof Date)return new Date(x);if(Array.isArray(x))return g(x,s);if(x instanceof Map)return new Map(g(Array.from(x),s));if(x instanceof Set)return new Set(g(Array.from(x),s));var h={};for(var N in x){var d=x[N];h[N]="object"!=typeof d||null===d?d:d instanceof Date?new Date(d):d instanceof Map?new Map(g(Array.from(d),s)):d instanceof Set?new Set(g(Array.from(d),s)):ArrayBuffer.isView(d)?q(d):s(d)}return h}:function T(x){if("object"!=typeof x||null===x)return x;if(x instanceof Date)return new Date(x);if(Array.isArray(x))return g(x,T);if(x instanceof Map)return new Map(g(Array.from(x),T));if(x instanceof Set)return new Set(g(Array.from(x),T));var h={};for(var N in x)if(!1!==Object.hasOwnProperty.call(x,N)){var d=x[N];h[N]="object"!=typeof d||null===d?d:d instanceof Date?new Date(d):d instanceof Map?new Map(g(Array.from(d),T)):d instanceof Set?new Set(g(Array.from(d),T)):ArrayBuffer.isView(d)?q(d):T(d)}return h};function g(x,h){for(var N=Object.keys(x),d=new Array(N.length),M=0;M<N.length;M++){var w=N[M],L=x[w];d[w]="object"!=typeof L||null===L?L:L instanceof Date?new Date(L):ArrayBuffer.isView(L)?q(L):h(L)}return d}}},5634:(We,q,m)=>{"use strict";var t=m(3172).Buffer,e=m(3894),g=m(9650),T=new Array(16),s=[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],x=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],N=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],M=[1352829926,1548603684,1836072691,2053994217,0];function w(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function L(Q,X){return Q<<X|Q>>>32-X}function k(Q,X,ee,me,re,ie,se,ce){return L(Q+(X^ee^me)+ie+se|0,ce)+re|0}function V(Q,X,ee,me,re,ie,se,ce){return L(Q+(X&ee|~X&me)+ie+se|0,ce)+re|0}function B(Q,X,ee,me,re,ie,se,ce){return L(Q+((X|~ee)^me)+ie+se|0,ce)+re|0}function W(Q,X,ee,me,re,ie,se,ce){return L(Q+(X&me|ee&~me)+ie+se|0,ce)+re|0}function Y(Q,X,ee,me,re,ie,se,ce){return L(Q+(X^(ee|~me))+ie+se|0,ce)+re|0}e(w,g),w.prototype._update=function(){for(var Q=T,X=0;X<16;++X)Q[X]=this._block.readInt32LE(4*X);for(var ee=0|this._a,me=0|this._b,re=0|this._c,ie=0|this._d,se=0|this._e,ce=0|this._a,Te=0|this._b,S=0|this._c,i=0|this._d,a=0|this._e,u=0;u<80;u+=1){var l,_;u<16?(l=k(ee,me,re,ie,se,Q[s[u]],d[0],h[u]),_=Y(ce,Te,S,i,a,Q[x[u]],M[0],N[u])):u<32?(l=V(ee,me,re,ie,se,Q[s[u]],d[1],h[u]),_=W(ce,Te,S,i,a,Q[x[u]],M[1],N[u])):u<48?(l=B(ee,me,re,ie,se,Q[s[u]],d[2],h[u]),_=B(ce,Te,S,i,a,Q[x[u]],M[2],N[u])):u<64?(l=W(ee,me,re,ie,se,Q[s[u]],d[3],h[u]),_=V(ce,Te,S,i,a,Q[x[u]],M[3],N[u])):(l=Y(ee,me,re,ie,se,Q[s[u]],d[4],h[u]),_=k(ce,Te,S,i,a,Q[x[u]],M[4],N[u])),ee=se,se=ie,ie=L(re,10),re=me,me=l,ce=a,a=i,i=L(S,10),S=Te,Te=_}var O=this._b+re+i|0;this._b=this._c+ie+a|0,this._c=this._d+se+ce|0,this._d=this._e+ee+Te|0,this._e=this._a+me+S|0,this._a=O},w.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Q=t.alloc?t.alloc(20):new t(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q},We.exports=w},1135:(We,q,m)=>{"use strict";m.d(q,{X:()=>e});var t=m(7579);class e extends t.x{constructor(T){super(),this._value=T}get value(){return this.getValue()}_subscribe(T){const s=super._subscribe(T);return!s.closed&&T.next(this._value),s}getValue(){const{hasError:T,thrownError:s,_value:x}=this;if(T)throw s;return this._throwIfClosed(),x}next(T){super.next(this._value=T)}}},9751:(We,q,m)=>{"use strict";m.d(q,{y:()=>N});var t=m(930),e=m(727),g=m(8822),T=m(9635),s=m(2416),x=m(576),h=m(2806);let N=(()=>{class L{constructor(V){V&&(this._subscribe=V)}lift(V){const B=new L;return B.source=this,B.operator=V,B}subscribe(V,B,W){const Y=function w(L){return L&&L instanceof t.Lv||function M(L){return L&&(0,x.m)(L.next)&&(0,x.m)(L.error)&&(0,x.m)(L.complete)}(L)&&(0,e.Nn)(L)}(V)?V:new t.Hp(V,B,W);return(0,h.x)(()=>{const{operator:Q,source:X}=this;Y.add(Q?Q.call(Y,X):X?this._subscribe(Y):this._trySubscribe(Y))}),Y}_trySubscribe(V){try{return this._subscribe(V)}catch(B){V.error(B)}}forEach(V,B){return new(B=d(B))((W,Y)=>{const Q=new t.Hp({next:X=>{try{V(X)}catch(ee){Y(ee),Q.unsubscribe()}},error:Y,complete:W});this.subscribe(Q)})}_subscribe(V){var B;return null===(B=this.source)||void 0===B?void 0:B.subscribe(V)}[g.L](){return this}pipe(...V){return(0,T.U)(V)(this)}toPromise(V){return new(V=d(V))((B,W)=>{let Y;this.subscribe(Q=>Y=Q,Q=>W(Q),()=>B(Y))})}}return L.create=k=>new L(k),L})();function d(L){var k;return null!==(k=L??s.v.Promise)&&void 0!==k?k:Promise}},4707:(We,q,m)=>{"use strict";m.d(q,{t:()=>g});var t=m(7579),e=m(6063);class g extends t.x{constructor(s=1/0,x=1/0,h=e.l){super(),this._bufferSize=s,this._windowTime=x,this._timestampProvider=h,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=x===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,x)}next(s){const{isStopped:x,_buffer:h,_infiniteTimeWindow:N,_timestampProvider:d,_windowTime:M}=this;x||(h.push(s),!N&&h.push(d.now()+M)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const x=this._innerSubscribe(s),{_infiniteTimeWindow:h,_buffer:N}=this,d=N.slice();for(let M=0;M<d.length&&!s.closed;M+=h?1:2)s.next(d[M]);return this._checkFinalizedStatuses(s),x}_trimBuffer(){const{_bufferSize:s,_timestampProvider:x,_buffer:h,_infiniteTimeWindow:N}=this,d=(N?1:2)*s;if(s<1/0&&d<h.length&&h.splice(0,h.length-d),!N){const M=x.now();let w=0;for(let L=1;L<h.length&&h[L]<=M;L+=2)w=L;w&&h.splice(0,w+1)}}}},7579:(We,q,m)=>{"use strict";m.d(q,{u:()=>N,x:()=>h});var t=m(9751),e=m(727);const T=(0,m(3888).d)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=m(8737),x=m(2806);let h=(()=>{class d extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const L=new N(this,this);return L.operator=w,L}_throwIfClosed(){if(this.closed)throw new T}next(w){(0,x.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(w)}})}error(w){(0,x.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:L}=this;for(;L.length;)L.shift().error(w)}})}complete(){(0,x.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:L,isStopped:k,observers:V}=this;return L||k?e.Lc:(this.currentObservers=null,V.push(w),new e.w0(()=>{this.currentObservers=null,(0,s.P)(V,w)}))}_checkFinalizedStatuses(w){const{hasError:L,thrownError:k,isStopped:V}=this;L?w.error(k):V&&w.complete()}asObservable(){const w=new t.y;return w.source=this,w}}return d.create=(M,w)=>new N(M,w),d})();class N extends h{constructor(M,w){super(),this.destination=M,this.source=w}next(M){var w,L;null===(L=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===L||L.call(w,M)}error(M){var w,L;null===(L=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===L||L.call(w,M)}complete(){var M,w;null===(w=null===(M=this.destination)||void 0===M?void 0:M.complete)||void 0===w||w.call(M)}_subscribe(M){var w,L;return null!==(L=null===(w=this.source)||void 0===w?void 0:w.subscribe(M))&&void 0!==L?L:e.Lc}}},930:(We,q,m)=>{"use strict";m.d(q,{Hp:()=>W,Lv:()=>L});var t=m(576),e=m(727),g=m(2416),T=m(7849),s=m(5032);const x=d("C",void 0,void 0);function d(me,re,ie){return{kind:me,value:re,error:ie}}var M=m(3410),w=m(2806);class L extends e.w0{constructor(re){super(),this.isStopped=!1,re?(this.destination=re,(0,e.Nn)(re)&&re.add(this)):this.destination=ee}static create(re,ie,se){return new W(re,ie,se)}next(re){this.isStopped?X(function N(me){return d("N",me,void 0)}(re),this):this._next(re)}error(re){this.isStopped?X(function h(me){return d("E",void 0,me)}(re),this):(this.isStopped=!0,this._error(re))}complete(){this.isStopped?X(x,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(re){this.destination.next(re)}_error(re){try{this.destination.error(re)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const k=Function.prototype.bind;function V(me,re){return k.call(me,re)}class B{constructor(re){this.partialObserver=re}next(re){const{partialObserver:ie}=this;if(ie.next)try{ie.next(re)}catch(se){Y(se)}}error(re){const{partialObserver:ie}=this;if(ie.error)try{ie.error(re)}catch(se){Y(se)}else Y(re)}complete(){const{partialObserver:re}=this;if(re.complete)try{re.complete()}catch(ie){Y(ie)}}}class W extends L{constructor(re,ie,se){let ce;if(super(),(0,t.m)(re)||!re)ce={next:re??void 0,error:ie??void 0,complete:se??void 0};else{let Te;this&&g.v.useDeprecatedNextContext?(Te=Object.create(re),Te.unsubscribe=()=>this.unsubscribe(),ce={next:re.next&&V(re.next,Te),error:re.error&&V(re.error,Te),complete:re.complete&&V(re.complete,Te)}):ce=re}this.destination=new B(ce)}}function Y(me){g.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(me):(0,T.h)(me)}function X(me,re){const{onStoppedNotification:ie}=g.v;ie&&M.z.setTimeout(()=>ie(me,re))}const ee={closed:!0,next:s.Z,error:function Q(me){throw me},complete:s.Z}},727:(We,q,m)=>{"use strict";m.d(q,{Lc:()=>x,w0:()=>s,Nn:()=>h});var t=m(576);const g=(0,m(3888).d)(d=>function(w){d(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((L,k)=>`${k+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var T=m(8737);class s{constructor(M){this.initialTeardown=M,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let M;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const V of w)V.remove(this);else w.remove(this);const{initialTeardown:L}=this;if((0,t.m)(L))try{L()}catch(V){M=V instanceof g?V.errors:[V]}const{_finalizers:k}=this;if(k){this._finalizers=null;for(const V of k)try{N(V)}catch(B){M=M??[],B instanceof g?M=[...M,...B.errors]:M.push(B)}}if(M)throw new g(M)}}add(M){var w;if(M&&M!==this)if(this.closed)N(M);else{if(M instanceof s){if(M.closed||M._hasParent(this))return;M._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(M)}}_hasParent(M){const{_parentage:w}=this;return w===M||Array.isArray(w)&&w.includes(M)}_addParent(M){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(M),w):w?[w,M]:M}_removeParent(M){const{_parentage:w}=this;w===M?this._parentage=null:Array.isArray(w)&&(0,T.P)(w,M)}remove(M){const{_finalizers:w}=this;w&&(0,T.P)(w,M),M instanceof s&&M._removeParent(this)}}s.EMPTY=(()=>{const d=new s;return d.closed=!0,d})();const x=s.EMPTY;function h(d){return d instanceof s||d&&"closed"in d&&(0,t.m)(d.remove)&&(0,t.m)(d.add)&&(0,t.m)(d.unsubscribe)}function N(d){(0,t.m)(d)?d():d.unsubscribe()}},2416:(We,q,m)=>{"use strict";m.d(q,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(We,q,m)=>{"use strict";m.d(q,{c:()=>x});var t=m(9751),e=m(727),g=m(8343),T=m(5403),s=m(4482);class x extends t.y{constructor(N,d){super(),this.source=N,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)(N)&&(this.lift=N.lift)}_subscribe(N){return this.getSubject().subscribe(N)}getSubject(){const N=this._subject;return(!N||N.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:N}=this;this._subject=this._connection=null,N?.unsubscribe()}connect(){let N=this._connection;if(!N){N=this._connection=new e.w0;const d=this.getSubject();N.add(this.source.subscribe((0,T.x)(d,void 0,()=>{this._teardown(),d.complete()},M=>{this._teardown(),d.error(M)},()=>this._teardown()))),N.closed&&(this._connection=null,N=e.w0.EMPTY)}return N}refCount(){return(0,g.x)()(this)}}},9841:(We,q,m)=>{"use strict";m.d(q,{a:()=>M});var t=m(9751),e=m(4742),g=m(457),T=m(4671),s=m(3268),x=m(3269),h=m(1810),N=m(5403),d=m(9672);function M(...k){const V=(0,x.yG)(k),B=(0,x.jO)(k),{args:W,keys:Y}=(0,e.D)(k);if(0===W.length)return(0,g.D)([],V);const Q=new t.y(function w(k,V,B=T.y){return W=>{L(V,()=>{const{length:Y}=k,Q=new Array(Y);let X=Y,ee=Y;for(let me=0;me<Y;me++)L(V,()=>{const re=(0,g.D)(k[me],V);let ie=!1;re.subscribe((0,N.x)(W,se=>{Q[me]=se,ie||(ie=!0,ee--),ee||W.next(B(Q.slice()))},()=>{--X||W.complete()}))},W)},W)}}(W,V,Y?X=>(0,h.n)(Y,X):T.y));return B?Q.pipe((0,s.Z)(B)):Q}function L(k,V,B){k?(0,d.f)(B,k,V):V()}},7272:(We,q,m)=>{"use strict";m.d(q,{z:()=>s});var t=m(8189),g=m(3269),T=m(457);function s(...x){return function e(){return(0,t.J)(1)}()((0,T.D)(x,(0,g.yG)(x)))}},9770:(We,q,m)=>{"use strict";m.d(q,{P:()=>g});var t=m(9751),e=m(8421);function g(T){return new t.y(s=>{(0,e.Xf)(T()).subscribe(s)})}},515:(We,q,m)=>{"use strict";m.d(q,{E:()=>e});const e=new(m(9751).y)(s=>s.complete())},4128:(We,q,m)=>{"use strict";m.d(q,{D:()=>N});var t=m(9751),e=m(4742),g=m(8421),T=m(3269),s=m(5403),x=m(3268),h=m(1810);function N(...d){const M=(0,T.jO)(d),{args:w,keys:L}=(0,e.D)(d),k=new t.y(V=>{const{length:B}=w;if(!B)return void V.complete();const W=new Array(B);let Y=B,Q=B;for(let X=0;X<B;X++){let ee=!1;(0,g.Xf)(w[X]).subscribe((0,s.x)(V,me=>{ee||(ee=!0,Q--),W[X]=me},()=>Y--,void 0,()=>{(!Y||!ee)&&(Q||V.next(L?(0,h.n)(L,W):W),V.complete())}))}});return M?k.pipe((0,x.Z)(M)):k}},457:(We,q,m)=>{"use strict";m.d(q,{D:()=>ie});var t=m(8421),e=m(5363),g=m(4482);function T(se,ce=0){return(0,g.e)((Te,S)=>{S.add(se.schedule(()=>Te.subscribe(S),ce))})}var h=m(9751),d=m(2202),M=m(576),w=m(9672);function k(se,ce){if(!se)throw new Error("Iterable cannot be null");return new h.y(Te=>{(0,w.f)(Te,ce,()=>{const S=se[Symbol.asyncIterator]();(0,w.f)(Te,ce,()=>{S.next().then(i=>{i.done?Te.complete():Te.next(i.value)})},0,!0)})})}var V=m(3670),B=m(8239),W=m(1144),Y=m(6495),Q=m(2206),X=m(4532),ee=m(3260);function ie(se,ce){return ce?function re(se,ce){if(null!=se){if((0,V.c)(se))return function s(se,ce){return(0,t.Xf)(se).pipe(T(ce),(0,e.Q)(ce))}(se,ce);if((0,W.z)(se))return function N(se,ce){return new h.y(Te=>{let S=0;return ce.schedule(function(){S===se.length?Te.complete():(Te.next(se[S++]),Te.closed||this.schedule())})})}(se,ce);if((0,B.t)(se))return function x(se,ce){return(0,t.Xf)(se).pipe(T(ce),(0,e.Q)(ce))}(se,ce);if((0,Q.D)(se))return k(se,ce);if((0,Y.T)(se))return function L(se,ce){return new h.y(Te=>{let S;return(0,w.f)(Te,ce,()=>{S=se[d.h](),(0,w.f)(Te,ce,()=>{let i,a;try{({value:i,done:a}=S.next())}catch(u){return void Te.error(u)}a?Te.complete():Te.next(i)},0,!0)}),()=>(0,M.m)(S?.return)&&S.return()})}(se,ce);if((0,ee.L)(se))return function me(se,ce){return k((0,ee.Q)(se),ce)}(se,ce)}throw(0,X.z)(se)}(se,ce):(0,t.Xf)(se)}},4968:(We,q,m)=>{"use strict";m.d(q,{R:()=>M});var t=m(8421),e=m(9751),g=m(5577),T=m(1144),s=m(576),x=m(3268);const h=["addListener","removeListener"],N=["addEventListener","removeEventListener"],d=["on","off"];function M(B,W,Y,Q){if((0,s.m)(Y)&&(Q=Y,Y=void 0),Q)return M(B,W,Y).pipe((0,x.Z)(Q));const[X,ee]=function V(B){return(0,s.m)(B.addEventListener)&&(0,s.m)(B.removeEventListener)}(B)?N.map(me=>re=>B[me](W,re,Y)):function L(B){return(0,s.m)(B.addListener)&&(0,s.m)(B.removeListener)}(B)?h.map(w(B,W)):function k(B){return(0,s.m)(B.on)&&(0,s.m)(B.off)}(B)?d.map(w(B,W)):[];if(!X&&(0,T.z)(B))return(0,g.z)(me=>M(me,W,Y))((0,t.Xf)(B));if(!X)throw new TypeError("Invalid event target");return new e.y(me=>{const re=(...ie)=>me.next(1<ie.length?ie:ie[0]);return X(re),()=>ee(re)})}function w(B,W){return Y=>Q=>B[Y](W,Q)}},8421:(We,q,m)=>{"use strict";m.d(q,{Xf:()=>k});var t=m(7582),e=m(1144),g=m(8239),T=m(9751),s=m(3670),x=m(2206),h=m(4532),N=m(6495),d=m(3260),M=m(576),w=m(7849),L=m(8822);function k(me){if(me instanceof T.y)return me;if(null!=me){if((0,s.c)(me))return function V(me){return new T.y(re=>{const ie=me[L.L]();if((0,M.m)(ie.subscribe))return ie.subscribe(re);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,e.z)(me))return function B(me){return new T.y(re=>{for(let ie=0;ie<me.length&&!re.closed;ie++)re.next(me[ie]);re.complete()})}(me);if((0,g.t)(me))return function W(me){return new T.y(re=>{me.then(ie=>{re.closed||(re.next(ie),re.complete())},ie=>re.error(ie)).then(null,w.h)})}(me);if((0,x.D)(me))return Q(me);if((0,N.T)(me))return function Y(me){return new T.y(re=>{for(const ie of me)if(re.next(ie),re.closed)return;re.complete()})}(me);if((0,d.L)(me))return function X(me){return Q((0,d.Q)(me))}(me)}throw(0,h.z)(me)}function Q(me){return new T.y(re=>{(function ee(me,re){var ie,se,ce,Te;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ie=(0,t.KL)(me);!(se=yield ie.next()).done;)if(re.next(se.value),re.closed)return}catch(S){ce={error:S}}finally{try{se&&!se.done&&(Te=ie.return)&&(yield Te.call(ie))}finally{if(ce)throw ce.error}}re.complete()})})(me,re).catch(ie=>re.error(ie))})}},6451:(We,q,m)=>{"use strict";m.d(q,{T:()=>x});var t=m(8189),e=m(8421),g=m(515),T=m(3269),s=m(457);function x(...h){const N=(0,T.yG)(h),d=(0,T._6)(h,1/0),M=h;return M.length?1===M.length?(0,e.Xf)(M[0]):(0,t.J)(d)((0,s.D)(M,N)):g.E}},9646:(We,q,m)=>{"use strict";m.d(q,{of:()=>g});var t=m(3269),e=m(457);function g(...T){const s=(0,t.yG)(T);return(0,e.D)(T,s)}},2843:(We,q,m)=>{"use strict";m.d(q,{_:()=>g});var t=m(9751),e=m(576);function g(T,s){const x=(0,e.m)(T)?T:()=>T,h=N=>N.error(x());return new t.y(s?N=>s.schedule(h,0,N):h)}},2805:(We,q,m)=>{"use strict";m.d(q,{H:()=>s});var t=m(9751),e=m(4986),g=m(3532),T=m(1165);function s(x=0,h,N=e.P){let d=-1;return null!=h&&((0,g.K)(h)?N=h:d=h),new t.y(M=>{let w=(0,T.q)(x)?+x-N.now():x;w<0&&(w=0);let L=0;return N.schedule(function(){M.closed||(M.next(L++),0<=d?this.schedule(void 0,d):M.complete())},w)})}},5403:(We,q,m)=>{"use strict";m.d(q,{Q:()=>g,x:()=>e});var t=m(930);function e(T,s,x,h,N){return new g(T,s,x,h,N)}class g extends t.Lv{constructor(s,x,h,N,d,M){super(s),this.onFinalize=d,this.shouldUnsubscribe=M,this._next=x?function(w){try{x(w)}catch(L){s.error(L)}}:super._next,this._error=N?function(w){try{N(w)}catch(L){s.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(w){s.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:x}=this;super.unsubscribe(),!x&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},3601:(We,q,m)=>{"use strict";m.d(q,{e:()=>h});var t=m(4986),e=m(4482),g=m(8421),T=m(5403),x=m(2805);function h(N,d=t.z){return function s(N){return(0,e.e)((d,M)=>{let w=!1,L=null,k=null,V=!1;const B=()=>{if(k?.unsubscribe(),k=null,w){w=!1;const Y=L;L=null,M.next(Y)}V&&M.complete()},W=()=>{k=null,V&&M.complete()};d.subscribe((0,T.x)(M,Y=>{w=!0,L=Y,k||(0,g.Xf)(N(Y)).subscribe(k=(0,T.x)(M,B,W))},()=>{V=!0,(!w||!k||k.closed)&&M.complete()}))})}(()=>(0,x.H)(N,d))}},262:(We,q,m)=>{"use strict";m.d(q,{K:()=>T});var t=m(8421),e=m(5403),g=m(4482);function T(s){return(0,g.e)((x,h)=>{let M,N=null,d=!1;N=x.subscribe((0,e.x)(h,void 0,void 0,w=>{M=(0,t.Xf)(s(w,T(s)(x))),N?(N.unsubscribe(),N=null,M.subscribe(h)):d=!0})),d&&(N.unsubscribe(),N=null,M.subscribe(h))})}},4351:(We,q,m)=>{"use strict";m.d(q,{b:()=>g});var t=m(5577),e=m(576);function g(T,s){return(0,e.m)(s)?(0,t.z)(T,s,1):(0,t.z)(T,1)}},8372:(We,q,m)=>{"use strict";m.d(q,{b:()=>T});var t=m(4986),e=m(4482),g=m(5403);function T(s,x=t.z){return(0,e.e)((h,N)=>{let d=null,M=null,w=null;const L=()=>{if(d){d.unsubscribe(),d=null;const V=M;M=null,N.next(V)}};function k(){const V=w+s,B=x.now();if(B<V)return d=this.schedule(void 0,V-B),void N.add(d);L()}h.subscribe((0,g.x)(N,V=>{M=V,w=x.now(),d||(d=x.schedule(k,s),N.add(d))},()=>{L(),N.complete()},void 0,()=>{M=d=null}))})}},6590:(We,q,m)=>{"use strict";m.d(q,{d:()=>g});var t=m(4482),e=m(5403);function g(T){return(0,t.e)((s,x)=>{let h=!1;s.subscribe((0,e.x)(x,N=>{h=!0,x.next(N)},()=>{h||x.next(T),x.complete()}))})}},4086:(We,q,m)=>{"use strict";m.d(q,{g:()=>d});var t=m(4986),e=m(7272),g=m(5698),T=m(8502),s=m(9718),x=m(5577);function h(M,w){return w?L=>(0,e.z)(w.pipe((0,g.q)(1),(0,T.l)()),L.pipe(h(M))):(0,x.z)((L,k)=>M(L,k).pipe((0,g.q)(1),(0,s.h)(L)))}var N=m(2805);function d(M,w=t.z){const L=(0,N.H)(M,w);return h(()=>L)}},1884:(We,q,m)=>{"use strict";m.d(q,{x:()=>T});var t=m(4671),e=m(4482),g=m(5403);function T(x,h=t.y){return x=x??s,(0,e.e)((N,d)=>{let M,w=!0;N.subscribe((0,g.x)(d,L=>{const k=h(L);(w||!x(M,k))&&(w=!1,M=k,d.next(L))}))})}function s(x,h){return x===h}},9300:(We,q,m)=>{"use strict";m.d(q,{h:()=>g});var t=m(4482),e=m(5403);function g(T,s){return(0,t.e)((x,h)=>{let N=0;x.subscribe((0,e.x)(h,d=>T.call(s,d,N++)&&h.next(d)))})}},8746:(We,q,m)=>{"use strict";m.d(q,{x:()=>e});var t=m(4482);function e(g){return(0,t.e)((T,s)=>{try{T.subscribe(s)}finally{s.add(g)}})}},590:(We,q,m)=>{"use strict";m.d(q,{P:()=>h});var t=m(6805),e=m(9300),g=m(5698),T=m(6590),s=m(8068),x=m(4671);function h(N,d){const M=arguments.length>=2;return w=>w.pipe(N?(0,e.h)((L,k)=>N(L,k,w)):x.y,(0,g.q)(1),M?(0,T.d)(d):(0,s.T)(()=>new t.K))}},8502:(We,q,m)=>{"use strict";m.d(q,{l:()=>T});var t=m(4482),e=m(5403),g=m(5032);function T(){return(0,t.e)((s,x)=>{s.subscribe((0,e.x)(x,g.Z))})}},4004:(We,q,m)=>{"use strict";m.d(q,{U:()=>g});var t=m(4482),e=m(5403);function g(T,s){return(0,t.e)((x,h)=>{let N=0;x.subscribe((0,e.x)(h,d=>{h.next(T.call(s,d,N++))}))})}},9718:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});var t=m(4004);function e(g){return(0,t.U)(()=>g)}},8189:(We,q,m)=>{"use strict";m.d(q,{J:()=>g});var t=m(5577),e=m(4671);function g(T=1/0){return(0,t.z)(e.y,T)}},5577:(We,q,m)=>{"use strict";m.d(q,{z:()=>N});var t=m(4004),e=m(8421),g=m(4482),T=m(9672),s=m(5403),h=m(576);function N(d,M,w=1/0){return(0,h.m)(M)?N((L,k)=>(0,t.U)((V,B)=>M(L,V,k,B))((0,e.Xf)(d(L,k))),w):("number"==typeof M&&(w=M),(0,g.e)((L,k)=>function x(d,M,w,L,k,V,B,W){const Y=[];let Q=0,X=0,ee=!1;const me=()=>{ee&&!Y.length&&!Q&&M.complete()},re=se=>Q<L?ie(se):Y.push(se),ie=se=>{V&&M.next(se),Q++;let ce=!1;(0,e.Xf)(w(se,X++)).subscribe((0,s.x)(M,Te=>{k?.(Te),V?re(Te):M.next(Te)},()=>{ce=!0},void 0,()=>{if(ce)try{for(Q--;Y.length&&Q<L;){const Te=Y.shift();B?(0,T.f)(M,B,()=>ie(Te)):ie(Te)}me()}catch(Te){M.error(Te)}}))};return d.subscribe((0,s.x)(M,re,()=>{ee=!0,me()})),()=>{W?.()}}(L,k,d,w)))}},5363:(We,q,m)=>{"use strict";m.d(q,{Q:()=>T});var t=m(9672),e=m(4482),g=m(5403);function T(s,x=0){return(0,e.e)((h,N)=>{h.subscribe((0,g.x)(N,d=>(0,t.f)(N,s,()=>N.next(d),x),()=>(0,t.f)(N,s,()=>N.complete(),x),d=>(0,t.f)(N,s,()=>N.error(d),x)))})}},8343:(We,q,m)=>{"use strict";m.d(q,{x:()=>g});var t=m(4482),e=m(5403);function g(){return(0,t.e)((T,s)=>{let x=null;T._refCount++;const h=(0,e.x)(s,void 0,void 0,void 0,()=>{if(!T||T._refCount<=0||0<--T._refCount)return void(x=null);const N=T._connection,d=x;x=null,N&&(!d||N===d)&&N.unsubscribe(),s.unsubscribe()});T.subscribe(h),h.closed||(x=T.connect())})}},5026:(We,q,m)=>{"use strict";m.d(q,{R:()=>T});var t=m(4482),e=m(5403);function T(s,x){return(0,t.e)(function g(s,x,h,N,d){return(M,w)=>{let L=h,k=x,V=0;M.subscribe((0,e.x)(w,B=>{const W=V++;k=L?s(k,B,W):(L=!0,B),N&&w.next(k)},d&&(()=>{L&&w.next(k),w.complete()})))}}(s,x,arguments.length>=2,!0))}},3099:(We,q,m)=>{"use strict";m.d(q,{B:()=>s});var t=m(8421),e=m(7579),g=m(930),T=m(4482);function s(h={}){const{connector:N=(()=>new e.x),resetOnError:d=!0,resetOnComplete:M=!0,resetOnRefCountZero:w=!0}=h;return L=>{let k,V,B,W=0,Y=!1,Q=!1;const X=()=>{V?.unsubscribe(),V=void 0},ee=()=>{X(),k=B=void 0,Y=Q=!1},me=()=>{const re=k;ee(),re?.unsubscribe()};return(0,T.e)((re,ie)=>{W++,!Q&&!Y&&X();const se=B=B??N();ie.add(()=>{W--,0===W&&!Q&&!Y&&(V=x(me,w))}),se.subscribe(ie),!k&&W>0&&(k=new g.Hp({next:ce=>se.next(ce),error:ce=>{Q=!0,X(),V=x(ee,d,ce),se.error(ce)},complete:()=>{Y=!0,X(),V=x(ee,M),se.complete()}}),(0,t.Xf)(re).subscribe(k))})(L)}}function x(h,N,...d){if(!0===N)return void h();if(!1===N)return;const M=new g.Hp({next:()=>{M.unsubscribe(),h()}});return N(...d).subscribe(M)}},5684:(We,q,m)=>{"use strict";m.d(q,{T:()=>e});var t=m(9300);function e(g){return(0,t.h)((T,s)=>g<=s)}},8675:(We,q,m)=>{"use strict";m.d(q,{O:()=>T});var t=m(7272),e=m(3269),g=m(4482);function T(...s){const x=(0,e.yG)(s);return(0,g.e)((h,N)=>{(x?(0,t.z)(s,h,x):(0,t.z)(s,h)).subscribe(N)})}},3900:(We,q,m)=>{"use strict";m.d(q,{w:()=>T});var t=m(8421),e=m(4482),g=m(5403);function T(s,x){return(0,e.e)((h,N)=>{let d=null,M=0,w=!1;const L=()=>w&&!d&&N.complete();h.subscribe((0,g.x)(N,k=>{d?.unsubscribe();let V=0;const B=M++;(0,t.Xf)(s(k,B)).subscribe(d=(0,g.x)(N,W=>N.next(x?x(k,W,B,V++):W),()=>{d=null,L()}))},()=>{w=!0,L()}))})}},5698:(We,q,m)=>{"use strict";m.d(q,{q:()=>T});var t=m(515),e=m(4482),g=m(5403);function T(s){return s<=0?()=>t.E:(0,e.e)((x,h)=>{let N=0;x.subscribe((0,g.x)(h,d=>{++N<=s&&(h.next(d),s<=N&&h.complete())}))})}},2722:(We,q,m)=>{"use strict";m.d(q,{R:()=>s});var t=m(4482),e=m(5403),g=m(8421),T=m(5032);function s(x){return(0,t.e)((h,N)=>{(0,g.Xf)(x).subscribe((0,e.x)(N,()=>N.complete(),T.Z)),!N.closed&&h.subscribe(N)})}},2529:(We,q,m)=>{"use strict";m.d(q,{o:()=>g});var t=m(4482),e=m(5403);function g(T,s=!1){return(0,t.e)((x,h)=>{let N=0;x.subscribe((0,e.x)(h,d=>{const M=T(d,N++);(M||s)&&h.next(d),!M&&h.complete()}))})}},8505:(We,q,m)=>{"use strict";m.d(q,{b:()=>s});var t=m(576),e=m(4482),g=m(5403),T=m(4671);function s(x,h,N){const d=(0,t.m)(x)||h||N?{next:x,error:h,complete:N}:x;return d?(0,e.e)((M,w)=>{var L;null===(L=d.subscribe)||void 0===L||L.call(d);let k=!0;M.subscribe((0,g.x)(w,V=>{var B;null===(B=d.next)||void 0===B||B.call(d,V),w.next(V)},()=>{var V;k=!1,null===(V=d.complete)||void 0===V||V.call(d),w.complete()},V=>{var B;k=!1,null===(B=d.error)||void 0===B||B.call(d,V),w.error(V)},()=>{var V,B;k&&(null===(V=d.unsubscribe)||void 0===V||V.call(d)),null===(B=d.finalize)||void 0===B||B.call(d)}))}):T.y}},8068:(We,q,m)=>{"use strict";m.d(q,{T:()=>T});var t=m(6805),e=m(4482),g=m(5403);function T(x=s){return(0,e.e)((h,N)=>{let d=!1;h.subscribe((0,g.x)(N,M=>{d=!0,N.next(M)},()=>d?N.complete():N.error(x())))})}function s(){return new t.K}},7414:(We,q,m)=>{"use strict";m.d(q,{V:()=>d});var t=m(4986),e=m(1165),g=m(4482),T=m(8421),s=m(3888),x=m(5403),h=m(9672);const N=(0,s.d)(w=>function(k=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=k});function d(w,L){const{first:k,each:V,with:B=M,scheduler:W=L??t.z,meta:Y=null}=(0,e.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==k&&null==V)throw new TypeError("No timeout provided.");return(0,g.e)((Q,X)=>{let ee,me,re=null,ie=0;const se=ce=>{me=(0,h.f)(X,W,()=>{try{ee.unsubscribe(),(0,T.Xf)(B({meta:Y,lastValue:re,seen:ie})).subscribe(X)}catch(Te){X.error(Te)}},ce)};ee=Q.subscribe((0,x.x)(X,ce=>{me?.unsubscribe(),ie++,X.next(re=ce),V>0&&se(V)},void 0,void 0,()=>{me?.closed||me?.unsubscribe(),re=null})),!ie&&se(null!=k?"number"==typeof k?k:+k-W.now():V)})}function M(w){throw new N(w)}},1365:(We,q,m)=>{"use strict";m.d(q,{M:()=>h});var t=m(4482),e=m(5403),g=m(8421),T=m(4671),s=m(5032),x=m(3269);function h(...N){const d=(0,x.jO)(N);return(0,t.e)((M,w)=>{const L=N.length,k=new Array(L);let V=N.map(()=>!1),B=!1;for(let W=0;W<L;W++)(0,g.Xf)(N[W]).subscribe((0,e.x)(w,Y=>{k[W]=Y,!B&&!V[W]&&(V[W]=!0,(B=V.every(T.y))&&(V=null))},s.Z));M.subscribe((0,e.x)(w,W=>{if(B){const Y=[W,...k];w.next(d?d(...Y):Y)}}))})}},4408:(We,q,m)=>{"use strict";m.d(q,{o:()=>s});var t=m(727);class e extends t.w0{constructor(h,N){super()}schedule(h,N=0){return this}}const g={setInterval(x,h,...N){const{delegate:d}=g;return d?.setInterval?d.setInterval(x,h,...N):setInterval(x,h,...N)},clearInterval(x){const{delegate:h}=g;return(h?.clearInterval||clearInterval)(x)},delegate:void 0};var T=m(8737);class s extends e{constructor(h,N){super(h,N),this.scheduler=h,this.work=N,this.pending=!1}schedule(h,N=0){var d;if(this.closed)return this;this.state=h;const M=this.id,w=this.scheduler;return null!=M&&(this.id=this.recycleAsyncId(w,M,N)),this.pending=!0,this.delay=N,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(w,this.id,N),this}requestAsyncId(h,N,d=0){return g.setInterval(h.flush.bind(h,this),d)}recycleAsyncId(h,N,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return N;null!=N&&g.clearInterval(N)}execute(h,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(h,N);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,N){let M,d=!1;try{this.work(h)}catch(w){d=!0,M=w||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),M}unsubscribe(){if(!this.closed){const{id:h,scheduler:N}=this,{actions:d}=N;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.P)(d,this),null!=h&&(this.id=this.recycleAsyncId(N,h,null)),this.delay=null,super.unsubscribe()}}}},7565:(We,q,m)=>{"use strict";m.d(q,{v:()=>g});var t=m(6063);class e{constructor(s,x=e.now){this.schedulerActionCtor=s,this.now=x}schedule(s,x=0,h){return new this.schedulerActionCtor(this,s).schedule(h,x)}}e.now=t.l.now;class g extends e{constructor(s,x=e.now){super(s,x),this.actions=[],this._active=!1}flush(s){const{actions:x}=this;if(this._active)return void x.push(s);let h;this._active=!0;do{if(h=s.execute(s.state,s.delay))break}while(s=x.shift());if(this._active=!1,h){for(;s=x.shift();)s.unsubscribe();throw h}}}},3101:(We,q,m)=>{"use strict";m.d(q,{E:()=>V});var t=m(4408);let g,e=1;const T={};function s(W){return W in T&&(delete T[W],!0)}const x={setImmediate(W){const Y=e++;return T[Y]=!0,g||(g=Promise.resolve()),g.then(()=>s(Y)&&W()),Y},clearImmediate(W){s(W)}},{setImmediate:N,clearImmediate:d}=x,M={setImmediate(...W){const{delegate:Y}=M;return(Y?.setImmediate||N)(...W)},clearImmediate(W){const{delegate:Y}=M;return(Y?.clearImmediate||d)(W)},delegate:void 0};var L=m(7565);const V=new class k extends L.v{flush(Y){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let ee;Y=Y||X.shift();do{if(ee=Y.execute(Y.state,Y.delay))break}while((Y=X[0])&&Y.id===Q&&X.shift());if(this._active=!1,ee){for(;(Y=X[0])&&Y.id===Q&&X.shift();)Y.unsubscribe();throw ee}}}(class w extends t.o{constructor(Y,Q){super(Y,Q),this.scheduler=Y,this.work=Q}requestAsyncId(Y,Q,X=0){return null!==X&&X>0?super.requestAsyncId(Y,Q,X):(Y.actions.push(this),Y._scheduled||(Y._scheduled=M.setImmediate(Y.flush.bind(Y,void 0))))}recycleAsyncId(Y,Q,X=0){var ee;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(Y,Q,X);const{actions:me}=Y;null!=Q&&(null===(ee=me[me.length-1])||void 0===ee?void 0:ee.id)!==Q&&(M.clearImmediate(Q),Y._scheduled=void 0)}})},4986:(We,q,m)=>{"use strict";m.d(q,{P:()=>T,z:()=>g});var t=m(4408);const g=new(m(7565).v)(t.o),T=g},6063:(We,q,m)=>{"use strict";m.d(q,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(We,q,m)=>{"use strict";m.d(q,{N:()=>s});var t=m(4408),g=m(7565);const s=new class T extends g.v{}(class e extends t.o{constructor(N,d){super(N,d),this.scheduler=N,this.work=d}schedule(N,d=0){return d>0?super.schedule(N,d):(this.delay=d,this.state=N,this.scheduler.flush(this),this)}execute(N,d){return d>0||this.closed?super.execute(N,d):this._execute(N,d)}requestAsyncId(N,d,M=0){return null!=M&&M>0||null==M&&this.delay>0?super.requestAsyncId(N,d,M):(N.flush(this),0)}})},3410:(We,q,m)=>{"use strict";m.d(q,{z:()=>t});const t={setTimeout(e,g,...T){const{delegate:s}=t;return s?.setTimeout?s.setTimeout(e,g,...T):setTimeout(e,g,...T)},clearTimeout(e){const{delegate:g}=t;return(g?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(We,q,m)=>{"use strict";m.d(q,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(We,q,m)=>{"use strict";m.d(q,{K:()=>e});const e=(0,m(3888).d)(g=>function(){g(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(We,q,m)=>{"use strict";m.d(q,{_6:()=>x,jO:()=>T,yG:()=>s});var t=m(576),e=m(3532);function g(h){return h[h.length-1]}function T(h){return(0,t.m)(g(h))?h.pop():void 0}function s(h){return(0,e.K)(g(h))?h.pop():void 0}function x(h,N){return"number"==typeof g(h)?h.pop():N}},4742:(We,q,m)=>{"use strict";m.d(q,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:e,prototype:g,keys:T}=Object;function s(h){if(1===h.length){const N=h[0];if(t(N))return{args:N,keys:null};if(function x(h){return h&&"object"==typeof h&&e(h)===g}(N)){const d=T(N);return{args:d.map(M=>N[M]),keys:d}}}return{args:h,keys:null}}},8737:(We,q,m)=>{"use strict";function t(e,g){if(e){const T=e.indexOf(g);0<=T&&e.splice(T,1)}}m.d(q,{P:()=>t})},3888:(We,q,m)=>{"use strict";function t(e){const T=e(s=>{Error.call(s),s.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}m.d(q,{d:()=>t})},1810:(We,q,m)=>{"use strict";function t(e,g){return e.reduce((T,s,x)=>(T[s]=g[x],T),{})}m.d(q,{n:()=>t})},2806:(We,q,m)=>{"use strict";m.d(q,{O:()=>T,x:()=>g});var t=m(2416);let e=null;function g(s){if(t.v.useDeprecatedSynchronousErrorHandling){const x=!e;if(x&&(e={errorThrown:!1,error:null}),s(),x){const{errorThrown:h,error:N}=e;if(e=null,h)throw N}}else s()}function T(s){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=s)}},9672:(We,q,m)=>{"use strict";function t(e,g,T,s=0,x=!1){const h=g.schedule(function(){T(),x?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(h),!x)return h}m.d(q,{f:()=>t})},4671:(We,q,m)=>{"use strict";function t(e){return e}m.d(q,{y:()=>t})},1144:(We,q,m)=>{"use strict";m.d(q,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(We,q,m)=>{"use strict";m.d(q,{D:()=>e});var t=m(576);function e(g){return Symbol.asyncIterator&&(0,t.m)(g?.[Symbol.asyncIterator])}},1165:(We,q,m)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}m.d(q,{q:()=>t})},576:(We,q,m)=>{"use strict";function t(e){return"function"==typeof e}m.d(q,{m:()=>t})},3670:(We,q,m)=>{"use strict";m.d(q,{c:()=>g});var t=m(8822),e=m(576);function g(T){return(0,e.m)(T[t.L])}},6495:(We,q,m)=>{"use strict";m.d(q,{T:()=>g});var t=m(2202),e=m(576);function g(T){return(0,e.m)(T?.[t.h])}},5191:(We,q,m)=>{"use strict";m.d(q,{b:()=>g});var t=m(9751),e=m(576);function g(T){return!!T&&(T instanceof t.y||(0,e.m)(T.lift)&&(0,e.m)(T.subscribe))}},8239:(We,q,m)=>{"use strict";m.d(q,{t:()=>e});var t=m(576);function e(g){return(0,t.m)(g?.then)}},3260:(We,q,m)=>{"use strict";m.d(q,{L:()=>T,Q:()=>g});var t=m(7582),e=m(576);function g(s){return(0,t.FC)(this,arguments,function*(){const h=s.getReader();try{for(;;){const{value:N,done:d}=yield(0,t.qq)(h.read());if(d)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(N)}}finally{h.releaseLock()}})}function T(s){return(0,e.m)(s?.getReader)}},3532:(We,q,m)=>{"use strict";m.d(q,{K:()=>e});var t=m(576);function e(g){return g&&(0,t.m)(g.schedule)}},4482:(We,q,m)=>{"use strict";m.d(q,{A:()=>e,e:()=>g});var t=m(576);function e(T){return(0,t.m)(T?.lift)}function g(T){return s=>{if(e(s))return s.lift(function(x){try{return T(x,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(We,q,m)=>{"use strict";m.d(q,{Z:()=>T});var t=m(4004);const{isArray:e}=Array;function T(s){return(0,t.U)(x=>function g(s,x){return e(x)?s(...x):s(x)}(s,x))}},5032:(We,q,m)=>{"use strict";function t(){}m.d(q,{Z:()=>t})},9635:(We,q,m)=>{"use strict";m.d(q,{U:()=>g,z:()=>e});var t=m(4671);function e(...T){return g(T)}function g(T){return 0===T.length?t.y:1===T.length?T[0]:function(x){return T.reduce((h,N)=>N(h),x)}}},7849:(We,q,m)=>{"use strict";m.d(q,{h:()=>g});var t=m(2416),e=m(3410);function g(T){e.z.setTimeout(()=>{const{onUnhandledError:s}=t.v;if(!s)throw T;s(T)})}},4532:(We,q,m)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(q,{z:()=>t})},3502:(We,q,m)=>{var t=m(3172),e=t.Buffer;function g(s,x){for(var h in s)x[h]=s[h]}function T(s,x,h){return e(s,x,h)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?We.exports=t:(g(t,q),q.Buffer=T),T.prototype=Object.create(e.prototype),g(e,T),T.from=function(s,x,h){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,x,h)},T.alloc=function(s,x,h){if("number"!=typeof s)throw new TypeError("Argument must be a number");var N=e(s);return void 0!==x?"string"==typeof h?N.fill(x,h):N.fill(x):N.fill(0),N},T.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},T.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},2038:(We,q,m)=>{"use strict";var T,t=m(3172),e=t.Buffer,g={};for(T in t)t.hasOwnProperty(T)&&("SlowBuffer"===T||"Buffer"===T||(g[T]=t[T]));var s=g.Buffer={};for(T in e)e.hasOwnProperty(T)&&("allocUnsafe"===T||"allocUnsafeSlow"===T||(s[T]=e[T]));if(g.Buffer.prototype=e.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(x,h,N){if("number"==typeof x)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof x);if(x&&typeof x.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);return e(x,h,N)}),s.alloc||(s.alloc=function(x,h,N){if("number"!=typeof x)throw new TypeError('The "size" argument must be of type number. Received type '+typeof x);if(x<0||x>=2*(1<<30))throw new RangeError('The value "'+x+'" is invalid for option "size"');var d=e(x);return h&&0!==h.length?"string"==typeof N?d.fill(h,N):d.fill(h):d.fill(0),d}),!g.kStringMaxLength)try{g.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}g.constants||(g.constants={MAX_LENGTH:g.kMaxLength},g.kStringMaxLength&&(g.constants.MAX_STRING_LENGTH=g.kStringMaxLength)),We.exports=g},6692:(We,q,m)=>{var t=m(3502).Buffer;function e(g,T){this._block=t.alloc(g),this._finalSize=T,this._blockSize=g,this._len=0}e.prototype.update=function(g,T){"string"==typeof g&&(g=t.from(g,T=T||"utf8"));for(var s=this._block,x=this._blockSize,h=g.length,N=this._len,d=0;d<h;){for(var M=N%x,w=Math.min(h-d,x-M),L=0;L<w;L++)s[M+L]=g[d+L];d+=w,(N+=w)%x==0&&this._update(s)}return this._len+=h,this},e.prototype.digest=function(g){var T=this._len%this._blockSize;this._block[T]=128,this._block.fill(0,T+1),T>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=8*this._len;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var x=(4294967295&s)>>>0;this._block.writeUInt32BE((s-x)/4294967296,this._blockSize-8),this._block.writeUInt32BE(x,this._blockSize-4)}this._update(this._block);var N=this._hash();return g?N.toString(g):N},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},We.exports=e},5244:(We,q,m)=>{var t=We.exports=function(g){g=g.toLowerCase();var T=t[g];if(!T)throw new Error(g+" is not supported (we accept pull requests)");return new T};t.sha=m(8932),t.sha1=m(7736),t.sha224=m(5044),t.sha256=m(5014),t.sha384=m(6540),t.sha512=m(117)},8932:(We,q,m)=>{var t=m(3894),e=m(6692),g=m(3502).Buffer,T=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function x(){this.init(),this._w=s,e.call(this,64,56)}function h(M){return M<<5|M>>>27}function N(M){return M<<30|M>>>2}function d(M,w,L,k){return 0===M?w&L|~w&k:2===M?w&L|w&k|L&k:w^L^k}t(x,e),x.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},x.prototype._update=function(M){for(var w=this._w,L=0|this._a,k=0|this._b,V=0|this._c,B=0|this._d,W=0|this._e,Y=0;Y<16;++Y)w[Y]=M.readInt32BE(4*Y);for(;Y<80;++Y)w[Y]=w[Y-3]^w[Y-8]^w[Y-14]^w[Y-16];for(var Q=0;Q<80;++Q){var X=~~(Q/20),ee=h(L)+d(X,k,V,B)+W+w[Q]+T[X]|0;W=B,B=V,V=N(k),k=L,L=ee}this._a=L+this._a|0,this._b=k+this._b|0,this._c=V+this._c|0,this._d=B+this._d|0,this._e=W+this._e|0},x.prototype._hash=function(){var M=g.allocUnsafe(20);return M.writeInt32BE(0|this._a,0),M.writeInt32BE(0|this._b,4),M.writeInt32BE(0|this._c,8),M.writeInt32BE(0|this._d,12),M.writeInt32BE(0|this._e,16),M},We.exports=x},7736:(We,q,m)=>{var t=m(3894),e=m(6692),g=m(3502).Buffer,T=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function x(){this.init(),this._w=s,e.call(this,64,56)}function h(w){return w<<1|w>>>31}function N(w){return w<<5|w>>>27}function d(w){return w<<30|w>>>2}function M(w,L,k,V){return 0===w?L&k|~L&V:2===w?L&k|L&V|k&V:L^k^V}t(x,e),x.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},x.prototype._update=function(w){for(var L=this._w,k=0|this._a,V=0|this._b,B=0|this._c,W=0|this._d,Y=0|this._e,Q=0;Q<16;++Q)L[Q]=w.readInt32BE(4*Q);for(;Q<80;++Q)L[Q]=h(L[Q-3]^L[Q-8]^L[Q-14]^L[Q-16]);for(var X=0;X<80;++X){var ee=~~(X/20),me=N(k)+M(ee,V,B,W)+Y+L[X]+T[ee]|0;Y=W,W=B,B=d(V),V=k,k=me}this._a=k+this._a|0,this._b=V+this._b|0,this._c=B+this._c|0,this._d=W+this._d|0,this._e=Y+this._e|0},x.prototype._hash=function(){var w=g.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},We.exports=x},5044:(We,q,m)=>{var t=m(3894),e=m(5014),g=m(6692),T=m(3502).Buffer,s=new Array(64);function x(){this.init(),this._w=s,g.call(this,64,56)}t(x,e),x.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},x.prototype._hash=function(){var h=T.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},We.exports=x},5014:(We,q,m)=>{var t=m(3894),e=m(6692),g=m(3502).Buffer,T=[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],s=new Array(64);function x(){this.init(),this._w=s,e.call(this,64,56)}function h(k,V,B){return B^k&(V^B)}function N(k,V,B){return k&V|B&(k|V)}function d(k){return(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10)}function M(k){return(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7)}function w(k){return(k>>>7|k<<25)^(k>>>18|k<<14)^k>>>3}function L(k){return(k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10}t(x,e),x.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},x.prototype._update=function(k){for(var V=this._w,B=0|this._a,W=0|this._b,Y=0|this._c,Q=0|this._d,X=0|this._e,ee=0|this._f,me=0|this._g,re=0|this._h,ie=0;ie<16;++ie)V[ie]=k.readInt32BE(4*ie);for(;ie<64;++ie)V[ie]=L(V[ie-2])+V[ie-7]+w(V[ie-15])+V[ie-16]|0;for(var se=0;se<64;++se){var ce=re+M(X)+h(X,ee,me)+T[se]+V[se]|0,Te=d(B)+N(B,W,Y)|0;re=me,me=ee,ee=X,X=Q+ce|0,Q=Y,Y=W,W=B,B=ce+Te|0}this._a=B+this._a|0,this._b=W+this._b|0,this._c=Y+this._c|0,this._d=Q+this._d|0,this._e=X+this._e|0,this._f=ee+this._f|0,this._g=me+this._g|0,this._h=re+this._h|0},x.prototype._hash=function(){var k=g.allocUnsafe(32);return k.writeInt32BE(this._a,0),k.writeInt32BE(this._b,4),k.writeInt32BE(this._c,8),k.writeInt32BE(this._d,12),k.writeInt32BE(this._e,16),k.writeInt32BE(this._f,20),k.writeInt32BE(this._g,24),k.writeInt32BE(this._h,28),k},We.exports=x},6540:(We,q,m)=>{var t=m(3894),e=m(117),g=m(6692),T=m(3502).Buffer,s=new Array(160);function x(){this.init(),this._w=s,g.call(this,128,112)}t(x,e),x.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},x.prototype._hash=function(){var h=T.allocUnsafe(48);function N(d,M,w){h.writeInt32BE(d,w),h.writeInt32BE(M,w+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),h},We.exports=x},117:(We,q,m)=>{var t=m(3894),e=m(6692),g=m(3502).Buffer,T=[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],s=new Array(160);function x(){this.init(),this._w=s,e.call(this,128,112)}function h(W,Y,Q){return Q^W&(Y^Q)}function N(W,Y,Q){return W&Y|Q&(W|Y)}function d(W,Y){return(W>>>28|Y<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25)}function M(W,Y){return(W>>>14|Y<<18)^(W>>>18|Y<<14)^(Y>>>9|W<<23)}function w(W,Y){return(W>>>1|Y<<31)^(W>>>8|Y<<24)^W>>>7}function L(W,Y){return(W>>>1|Y<<31)^(W>>>8|Y<<24)^(W>>>7|Y<<25)}function k(W,Y){return(W>>>19|Y<<13)^(Y>>>29|W<<3)^W>>>6}function V(W,Y){return(W>>>19|Y<<13)^(Y>>>29|W<<3)^(W>>>6|Y<<26)}function B(W,Y){return W>>>0<Y>>>0?1:0}t(x,e),x.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},x.prototype._update=function(W){for(var Y=this._w,Q=0|this._ah,X=0|this._bh,ee=0|this._ch,me=0|this._dh,re=0|this._eh,ie=0|this._fh,se=0|this._gh,ce=0|this._hh,Te=0|this._al,S=0|this._bl,i=0|this._cl,a=0|this._dl,u=0|this._el,l=0|this._fl,_=0|this._gl,O=0|this._hl,R=0;R<32;R+=2)Y[R]=W.readInt32BE(4*R),Y[R+1]=W.readInt32BE(4*R+4);for(;R<160;R+=2){var C=Y[R-30],n=Y[R-30+1],v=w(C,n),K=L(n,C),F=k(C=Y[R-4],n=Y[R-4+1]),G=V(n,C),pe=Y[R-32],qe=Y[R-32+1],Ce=K+Y[R-14+1]|0,Se=v+Y[R-14]+B(Ce,K)|0;Se=(Se=Se+F+B(Ce=Ce+G|0,G)|0)+pe+B(Ce=Ce+qe|0,qe)|0,Y[R]=Se,Y[R+1]=Ce}for(var fe=0;fe<160;fe+=2){Se=Y[fe],Ce=Y[fe+1];var Fe=N(Q,X,ee),oe=N(Te,S,i),ze=d(Q,Te),Oe=d(Te,Q),he=M(re,u),Ae=M(u,re),ge=T[fe],Ue=T[fe+1],Je=h(re,ie,se),Re=h(u,l,_),le=O+Ae|0,rt=ce+he+B(le,O)|0;rt=(rt=(rt=rt+Je+B(le=le+Re|0,Re)|0)+ge+B(le=le+Ue|0,Ue)|0)+Se+B(le=le+Ce|0,Ce)|0;var Qe=Oe+oe|0,ct=ze+Fe+B(Qe,Oe)|0;ce=se,O=_,se=ie,_=l,ie=re,l=u,re=me+rt+B(u=a+le|0,a)|0,me=ee,a=i,ee=X,i=S,X=Q,S=Te,Q=rt+ct+B(Te=le+Qe|0,le)|0}this._al=this._al+Te|0,this._bl=this._bl+S|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+u|0,this._fl=this._fl+l|0,this._gl=this._gl+_|0,this._hl=this._hl+O|0,this._ah=this._ah+Q+B(this._al,Te)|0,this._bh=this._bh+X+B(this._bl,S)|0,this._ch=this._ch+ee+B(this._cl,i)|0,this._dh=this._dh+me+B(this._dl,a)|0,this._eh=this._eh+re+B(this._el,u)|0,this._fh=this._fh+ie+B(this._fl,l)|0,this._gh=this._gh+se+B(this._gl,_)|0,this._hh=this._hh+ce+B(this._hl,O)|0},x.prototype._hash=function(){var W=g.allocUnsafe(64);function Y(Q,X,ee){W.writeInt32BE(Q,ee),W.writeInt32BE(X,ee+4)}return Y(this._ah,this._al,0),Y(this._bh,this._bl,8),Y(this._ch,this._cl,16),Y(this._dh,this._dl,24),Y(this._eh,this._el,32),Y(this._fh,this._fl,40),Y(this._gh,this._gl,48),Y(this._hh,this._hl,56),W},We.exports=x},8012:function(We,q,m){!function(t){"use strict";var e={};We.exports?(e.bytesToHex=m(6128).bytesToHex,e.convertString=m(5612),We.exports=N):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=N);var g=[];!function(){function d(k){for(var V=Math.sqrt(k),B=2;B<=V;B++)if(!(k%B))return!1;return!0}for(var w=2,L=0;L<64;)d(w)&&(g[L]=4294967296*((k=Math.pow(w,1/3))-(0|k))|0,L++),w++;var k}();var T=function(d){for(var M=[],w=0,L=0;w<d.length;w++,L+=8)M[L>>>5]|=d[w]<<24-L%32;return M},s=function(d){for(var M=[],w=0;w<32*d.length;w+=8)M.push(d[w>>>5]>>>24-w%32&255);return M},x=[],h=function(d,M,w){for(var L=d[0],k=d[1],V=d[2],B=d[3],W=d[4],Y=d[5],Q=d[6],X=d[7],ee=0;ee<64;ee++){if(ee<16)x[ee]=0|M[w+ee];else{var me=x[ee-15],ie=x[ee-2];x[ee]=((me<<25|me>>>7)^(me<<14|me>>>18)^me>>>3)+x[ee-7]+((ie<<15|ie>>>17)^(ie<<13|ie>>>19)^ie>>>10)+x[ee-16]}var Te=L&k^L&V^k&V,a=X+((W<<26|W>>>6)^(W<<21|W>>>11)^(W<<7|W>>>25))+(W&Y^~W&Q)+g[ee]+x[ee];X=Q,Q=Y,Y=W,W=B+a|0,B=V,V=k,k=L,L=a+(((L<<30|L>>>2)^(L<<19|L>>>13)^(L<<10|L>>>22))+Te)|0}d[0]=d[0]+L|0,d[1]=d[1]+k|0,d[2]=d[2]+V|0,d[3]=d[3]+B|0,d[4]=d[4]+W|0,d[5]=d[5]+Y|0,d[6]=d[6]+Q|0,d[7]=d[7]+X|0};function N(d,M){d.constructor===String&&(d=e.convertString.UTF8.stringToBytes(d));var w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],L=T(d),k=8*d.length;L[k>>5]|=128<<24-k%32,L[15+(k+64>>9<<4)]=k;for(var V=0;V<L.length;V+=16)h(w,L,V);var B=s(w);return M&&M.asBytes?B:M&&M.asString?e.convertString.bytesToString(B):e.bytesToHex(B)}N.x2=function(d,M){return N(N(d,{asBytes:!0}),M)}}(this)},295:(We,q,m)=>{We.exports=g;var t=m(9069).EventEmitter;function g(){t.call(this)}m(3894)(g,t),g.Readable=m(3154),g.Writable=m(520),g.Duplex=m(1339),g.Transform=m(6025),g.PassThrough=m(6071),g.finished=m(7542),g.pipeline=m(954),g.Stream=g,g.prototype.pipe=function(T,s){var x=this;function h(V){T.writable&&!1===T.write(V)&&x.pause&&x.pause()}function N(){x.readable&&x.resume&&x.resume()}x.on("data",h),T.on("drain",N),!T._isStdio&&(!s||!1!==s.end)&&(x.on("end",M),x.on("close",w));var d=!1;function M(){d||(d=!0,T.end())}function w(){d||(d=!0,"function"==typeof T.destroy&&T.destroy())}function L(V){if(k(),0===t.listenerCount(this,"error"))throw V}function k(){x.removeListener("data",h),T.removeListener("drain",N),x.removeListener("end",M),x.removeListener("close",w),x.removeListener("error",L),T.removeListener("error",L),x.removeListener("end",k),x.removeListener("close",k),T.removeListener("close",k)}return x.on("error",L),T.on("error",L),x.on("end",k),x.on("close",k),T.on("close",k),T.emit("pipe",x),T}},3054:(We,q,m)=>{"use strict";var t=m(3502).Buffer,e=t.isEncoding||function(Q){switch((Q=""+Q)&&Q.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 s(Q){var X;switch(this.encoding=function T(Q){var X=function g(Q){if(!Q)return"utf8";for(var X;;)switch(Q){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 Q;default:if(X)return;Q=(""+Q).toLowerCase(),X=!0}}(Q);if("string"!=typeof X&&(t.isEncoding===e||!e(Q)))throw new Error("Unknown encoding: "+Q);return X||Q}(Q),this.encoding){case"utf16le":this.text=L,this.end=k,X=4;break;case"utf8":this.fillLast=d,X=4;break;case"base64":this.text=V,this.end=B,X=3;break;default:return this.write=W,void(this.end=Y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(X)}function x(Q){return Q<=127?0:Q>>5==6?2:Q>>4==14?3:Q>>3==30?4:Q>>6==2?-1:-2}function d(Q){var X=this.lastTotal-this.lastNeed,ee=function N(Q,X,ee){if(128!=(192&X[0]))return Q.lastNeed=0,"\ufffd";if(Q.lastNeed>1&&X.length>1){if(128!=(192&X[1]))return Q.lastNeed=1,"\ufffd";if(Q.lastNeed>2&&X.length>2&&128!=(192&X[2]))return Q.lastNeed=2,"\ufffd"}}(this,Q);return void 0!==ee?ee:this.lastNeed<=Q.length?(Q.copy(this.lastChar,X,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Q.copy(this.lastChar,X,0,Q.length),void(this.lastNeed-=Q.length))}function L(Q,X){if((Q.length-X)%2==0){var ee=Q.toString("utf16le",X);if(ee){var me=ee.charCodeAt(ee.length-1);if(me>=55296&&me<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",X,Q.length-1)}function k(Q){var X=Q&&Q.length?this.write(Q):"";return this.lastNeed?X+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):X}function V(Q,X){var ee=(Q.length-X)%3;return 0===ee?Q.toString("base64",X):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=Q[Q.length-1]:(this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1]),Q.toString("base64",X,Q.length-ee))}function B(Q){var X=Q&&Q.length?this.write(Q):"";return this.lastNeed?X+this.lastChar.toString("base64",0,3-this.lastNeed):X}function W(Q){return Q.toString(this.encoding)}function Y(Q){return Q&&Q.length?this.write(Q):""}q.s=s,s.prototype.write=function(Q){if(0===Q.length)return"";var X,ee;if(this.lastNeed){if(void 0===(X=this.fillLast(Q)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee<Q.length?X?X+this.text(Q,ee):this.text(Q,ee):X||""},s.prototype.end=function w(Q){var X=Q&&Q.length?this.write(Q):"";return this.lastNeed?X+"\ufffd":X},s.prototype.text=function M(Q,X){var ee=function h(Q,X,ee){var me=X.length-1;if(me<ee)return 0;var re=x(X[me]);return re>=0?(re>0&&(Q.lastNeed=re-1),re):--me<ee||-2===re?0:(re=x(X[me]))>=0?(re>0&&(Q.lastNeed=re-2),re):--me<ee||-2===re?0:(re=x(X[me]))>=0?(re>0&&(2===re?re=0:Q.lastNeed=re-3),re):0}(this,Q,X);if(!this.lastNeed)return Q.toString("utf8",X);this.lastTotal=ee;var me=Q.length-(ee-this.lastNeed);return Q.copy(this.lastChar,0,me),Q.toString("utf8",X,me)},s.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length}},2167:(We,q,m)=>{var t=m(4606);q.encode=t.encode,q.decode=t.decode},4606:(We,q)=>{"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];q.encode=function(g){Buffer.isBuffer(g)||(g=new Buffer(g));for(var T=0,s=0,x=0,h=0,N=new Buffer(8*function e(g){var T=Math.floor(g.length/5);return g.length%5==0?T:T+1}(g));T<g.length;){var d=g[T];x>3?(h=(h=d&255>>x)<<(x=(x+5)%8)|(T+1<g.length?g[T+1]:0)>>8-x,T++):(h=d>>8-(x+5)&31,0==(x=(x+5)%8)&&T++),N[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(h),s++}for(T=s;T<N.length;T++)N[T]=61;return N},q.decode=function(g){var x,T=0,s=0,h=0;Buffer.isBuffer(g)||(g=new Buffer(g));for(var N=new Buffer(Math.ceil(5*g.length/8)),d=0;d<g.length&&61!==g[d];d++){var M=g[d]-48;if(!(M<t.length))throw new Error("Invalid input - it is not base32 encoded string");s=t[M],T<=3?0==(T=(T+5)%8)?(N[h]=x|=s,h++,x=0):x|=255&s<<8-T:(N[h]=x|=255&s>>>(T=(T+5)%8),h++,x=255&s<<8-T)}return N.slice(0,h)}},4364:We=>{function m(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}We.exports=function q(t,e){if(m("noDeprecation"))return t;var g=!1;return function T(){if(!g){if(m("throwDeprecation"))throw new Error(e);m("traceDeprecation")?console.trace(e):console.warn(e),g=!0}return t.apply(this,arguments)}}},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},7340:(We,q,m)=>{"use strict";m.d(q,{F4:()=>M,IO:()=>B,LC:()=>e,SB:()=>d,X$:()=>T,ZE:()=>X,ZN:()=>Q,_j:()=>t,eR:()=>w,jt:()=>s,k1:()=>ee,l3:()=>g,oB:()=>N,pV:()=>k,ru:()=>x,vP:()=>h});class t{}class e{}const g="*";function T(me,re){return{type:7,name:me,definitions:re,options:{}}}function s(me,re=null){return{type:4,styles:re,timings:me}}function x(me,re=null){return{type:3,steps:me,options:re}}function h(me,re=null){return{type:2,steps:me,options:re}}function N(me){return{type:6,styles:me,offset:null}}function d(me,re,ie){return{type:0,name:me,styles:re,options:ie}}function M(me){return{type:5,steps:me}}function w(me,re,ie=null){return{type:1,expr:me,animation:re,options:ie}}function k(me=null){return{type:9,options:me}}function B(me,re,ie=null){return{type:11,selector:me,animation:re,options:ie}}function Y(me){Promise.resolve().then(me)}class Q{constructor(re=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=re+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}onStart(re){this._originalOnStartFns.push(re),this._onStartFns.push(re)}onDone(re){this._originalOnDoneFns.push(re),this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Y(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(re=>re()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(re){this._position=this.totalTime?re*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(re){const ie="start"==re?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}class X{constructor(re){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=re;let ie=0,se=0,ce=0;const Te=this.players.length;0==Te?Y(()=>this._onFinish()):this.players.forEach(S=>{S.onDone(()=>{++ie==Te&&this._onFinish()}),S.onDestroy(()=>{++se==Te&&this._onDestroy()}),S.onStart(()=>{++ce==Te&&this._onStart()})}),this.totalTime=this.players.reduce((S,i)=>Math.max(S,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}init(){this.players.forEach(re=>re.init())}onStart(re){this._onStartFns.push(re)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(re=>re()),this._onStartFns=[])}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(re=>re.play())}pause(){this.players.forEach(re=>re.pause())}restart(){this.players.forEach(re=>re.restart())}finish(){this._onFinish(),this.players.forEach(re=>re.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(re=>re.destroy()),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this.players.forEach(re=>re.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(re){const ie=re*this.totalTime;this.players.forEach(se=>{const ce=se.totalTime?Math.min(1,ie/se.totalTime):1;se.setPosition(ce)})}getPosition(){const re=this.players.reduce((ie,se)=>null===ie||se.totalTime>ie.totalTime?se:ie,null);return null!=re?re.getPosition():0}beforeDestroy(){this.players.forEach(re=>{re.beforeDestroy&&re.beforeDestroy()})}triggerCallback(re){const ie="start"==re?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}const ee="!"},4761:(We,q,m)=>{"use strict";m.d(q,{$s:()=>i,Em:()=>O,Kd:()=>$e,X6:()=>Je,ic:()=>C,kH:()=>at,mK:()=>ze,qV:()=>oe,qm:()=>Nt,rt:()=>Bt,s1:()=>_,tE:()=>Et,yG:()=>Re});var t=m(6895),e=m(4650),g=m(3353),T=m(7579),s=m(727),x=m(1135),h=m(9646),N=m(9521),d=m(8505),M=m(8372),w=m(9300),L=m(4004),k=m(5698),V=m(5684),B=m(1884),W=m(2722),Y=m(1281),Q=m(9643),X=m(2289);function ie(Ne,$){return(Ne.getAttribute($)||"").match(/\S+/g)||[]}const ce="cdk-describedby-message",Te="cdk-describedby-host";let S=0,i=(()=>{class Ne{constructor(ue,Ie){this._platform=Ie,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+S++,this._document=ue,this._id=(0,e.f3M)(e.AFp)+"-"+S++}describe(ue,Ie,Xe){if(!this._canBeDescribed(ue,Ie))return;const ei=a(Ie,Xe);"string"!=typeof Ie?(u(Ie,this._id),this._messageRegistry.set(ei,{messageElement:Ie,referenceCount:0})):this._messageRegistry.has(ei)||this._createMessageElement(Ie,Xe),this._isElementDescribedByMessage(ue,ei)||this._addMessageReference(ue,ei)}removeDescription(ue,Ie,Xe){if(!Ie||!this._isElementNode(ue))return;const ei=a(Ie,Xe);if(this._isElementDescribedByMessage(ue,ei)&&this._removeMessageReference(ue,ei),"string"==typeof Ie){const zt=this._messageRegistry.get(ei);zt&&0===zt.referenceCount&&this._deleteMessageElement(ei)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ue=this._document.querySelectorAll(`[${Te}="${this._id}"]`);for(let Ie=0;Ie<ue.length;Ie++)this._removeCdkDescribedByReferenceIds(ue[Ie]),ue[Ie].removeAttribute(Te);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(ue,Ie){const Xe=this._document.createElement("div");u(Xe,this._id),Xe.textContent=ue,Ie&&Xe.setAttribute("role",Ie),this._createMessagesContainer(),this._messagesContainer.appendChild(Xe),this._messageRegistry.set(a(ue,Ie),{messageElement:Xe,referenceCount:0})}_deleteMessageElement(ue){this._messageRegistry.get(ue)?.messageElement?.remove(),this._messageRegistry.delete(ue)}_createMessagesContainer(){if(this._messagesContainer)return;const ue="cdk-describedby-message-container",Ie=this._document.querySelectorAll(`.${ue}[platform="server"]`);for(let ei=0;ei<Ie.length;ei++)Ie[ei].remove();const Xe=this._document.createElement("div");Xe.style.visibility="hidden",Xe.classList.add(ue),Xe.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Xe.setAttribute("platform","server"),this._document.body.appendChild(Xe),this._messagesContainer=Xe}_removeCdkDescribedByReferenceIds(ue){const Ie=ie(ue,"aria-describedby").filter(Xe=>0!=Xe.indexOf(ce));ue.setAttribute("aria-describedby",Ie.join(" "))}_addMessageReference(ue,Ie){const Xe=this._messageRegistry.get(Ie);(function me(Ne,$,ue){const Ie=ie(Ne,$);Ie.some(Xe=>Xe.trim()==ue.trim())||(Ie.push(ue.trim()),Ne.setAttribute($,Ie.join(" ")))})(ue,"aria-describedby",Xe.messageElement.id),ue.setAttribute(Te,this._id),Xe.referenceCount++}_removeMessageReference(ue,Ie){const Xe=this._messageRegistry.get(Ie);Xe.referenceCount--,function re(Ne,$,ue){const Xe=ie(Ne,$).filter(ei=>ei!=ue.trim());Xe.length?Ne.setAttribute($,Xe.join(" ")):Ne.removeAttribute($)}(ue,"aria-describedby",Xe.messageElement.id),ue.removeAttribute(Te)}_isElementDescribedByMessage(ue,Ie){const Xe=ie(ue,"aria-describedby"),ei=this._messageRegistry.get(Ie),zt=ei&&ei.messageElement.id;return!!zt&&-1!=Xe.indexOf(zt)}_canBeDescribed(ue,Ie){if(!this._isElementNode(ue))return!1;if(Ie&&"object"==typeof Ie)return!0;const Xe=null==Ie?"":`${Ie}`.trim(),ei=ue.getAttribute("aria-label");return!(!Xe||ei&&ei.trim()===Xe)}_isElementNode(ue){return ue.nodeType===this._document.ELEMENT_NODE}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(t.K0),e.LFG(g.t4))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();function a(Ne,$){return"string"==typeof Ne?`${$||""}/${Ne}`:Ne}function u(Ne,$){Ne.id||(Ne.id=`${ce}-${$}-${S++}`)}class l{constructor($){this._items=$,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ue=>ue.disabled,this._pressedLetters=[],this.tabOut=new T.x,this.change=new T.x,$ instanceof e.n_E&&(this._itemChangesSubscription=$.changes.subscribe(ue=>{if(this._activeItem){const Xe=ue.toArray().indexOf(this._activeItem);Xe>-1&&Xe!==this._activeItemIndex&&(this._activeItemIndex=Xe)}}))}skipPredicate($){return this._skipPredicateFn=$,this}withWrap($=!0){return this._wrap=$,this}withVerticalOrientation($=!0){return this._vertical=$,this}withHorizontalOrientation($){return this._horizontal=$,this}withAllowedModifierKeys($){return this._allowedModifierKeys=$,this}withTypeAhead($=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,d.b)(ue=>this._pressedLetters.push(ue)),(0,M.b)($),(0,w.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(ue=>{const Ie=this._getItemsArray();for(let Xe=1;Xe<Ie.length+1;Xe++){const ei=(this._activeItemIndex+Xe)%Ie.length,zt=Ie[ei];if(!this._skipPredicateFn(zt)&&0===zt.getLabel().toUpperCase().trim().indexOf(ue)){this.setActiveItem(ei);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd($=!0){return this._homeAndEnd=$,this}withPageUpDown($=!0,ue=10){return this._pageUpAndDown={enabled:$,delta:ue},this}setActiveItem($){const ue=this._activeItem;this.updateActiveItem($),this._activeItem!==ue&&this.change.next(this._activeItemIndex)}onKeydown($){const ue=$.keyCode,Xe=["altKey","ctrlKey","metaKey","shiftKey"].every(ei=>!$[ei]||this._allowedModifierKeys.indexOf(ei)>-1);switch(ue){case N.Mf:return void this.tabOut.next();case N.JH:if(this._vertical&&Xe){this.setNextItemActive();break}return;case N.LH:if(this._vertical&&Xe){this.setPreviousItemActive();break}return;case N.SV:if(this._horizontal&&Xe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case N.oh:if(this._horizontal&&Xe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case N.Sd:if(this._homeAndEnd&&Xe){this.setFirstItemActive();break}return;case N.uR:if(this._homeAndEnd&&Xe){this.setLastItemActive();break}return;case N.Ku:if(this._pageUpAndDown.enabled&&Xe){const ei=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ei>0?ei:0,1);break}return;case N.VM:if(this._pageUpAndDown.enabled&&Xe){const ei=this._activeItemIndex+this._pageUpAndDown.delta,zt=this._getItemsArray().length;this._setActiveItemByIndex(ei<zt?ei:zt-1,-1);break}return;default:return void((Xe||(0,N.Vb)($,"shiftKey"))&&($.key&&1===$.key.length?this._letterKeyStream.next($.key.toLocaleUpperCase()):(ue>=N.A&&ue<=N.Z||ue>=N.xE&&ue<=N.aO)&&this._letterKeyStream.next(String.fromCharCode(ue))))}this._pressedLetters=[],$.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($){const ue=this._getItemsArray(),Ie="number"==typeof $?$:ue.indexOf($);this._activeItem=ue[Ie]??null,this._activeItemIndex=Ie}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta($){this._wrap?this._setActiveInWrapMode($):this._setActiveInDefaultMode($)}_setActiveInWrapMode($){const ue=this._getItemsArray();for(let Ie=1;Ie<=ue.length;Ie++){const Xe=(this._activeItemIndex+$*Ie+ue.length)%ue.length;if(!this._skipPredicateFn(ue[Xe]))return void this.setActiveItem(Xe)}}_setActiveInDefaultMode($){this._setActiveItemByIndex(this._activeItemIndex+$,$)}_setActiveItemByIndex($,ue){const Ie=this._getItemsArray();if(Ie[$]){for(;this._skipPredicateFn(Ie[$]);)if(!Ie[$+=ue])return;this.setActiveItem($)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class _ extends l{setActiveItem($){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem($),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends l{constructor(){super(...arguments),this._origin="program"}setFocusOrigin($){return this._origin=$,this}setActiveItem($){super.setActiveItem($),this.activeItem&&this.activeItem.focus(this._origin)}}let C=(()=>{class Ne{constructor(ue){this._platform=ue}isDisabled(ue){return ue.hasAttribute("disabled")}isVisible(ue){return function v(Ne){return!!(Ne.offsetWidth||Ne.offsetHeight||"function"==typeof Ne.getClientRects&&Ne.getClientRects().length)}(ue)&&"visible"===getComputedStyle(ue).visibility}isTabbable(ue){if(!this._platform.isBrowser)return!1;const Ie=function n(Ne){try{return Ne.frameElement}catch{return null}}(function fe(Ne){return Ne.ownerDocument&&Ne.ownerDocument.defaultView||window}(ue));if(Ie&&(-1===qe(Ie)||!this.isVisible(Ie)))return!1;let Xe=ue.nodeName.toLowerCase(),ei=qe(ue);return ue.hasAttribute("contenteditable")?-1!==ei:!("iframe"===Xe||"object"===Xe||this._platform.WEBKIT&&this._platform.IOS&&!function Ce(Ne){let $=Ne.nodeName.toLowerCase(),ue="input"===$&&Ne.type;return"text"===ue||"password"===ue||"select"===$||"textarea"===$}(ue))&&("audio"===Xe?!!ue.hasAttribute("controls")&&-1!==ei:"video"===Xe?-1!==ei&&(null!==ei||this._platform.FIREFOX||ue.hasAttribute("controls")):ue.tabIndex>=0)}isFocusable(ue,Ie){return function Se(Ne){return!function F(Ne){return function ye(Ne){return"input"==Ne.nodeName.toLowerCase()}(Ne)&&"hidden"==Ne.type}(Ne)&&(function K(Ne){let $=Ne.nodeName.toLowerCase();return"input"===$||"select"===$||"button"===$||"textarea"===$}(Ne)||function G(Ne){return function Ee(Ne){return"a"==Ne.nodeName.toLowerCase()}(Ne)&&Ne.hasAttribute("href")}(Ne)||Ne.hasAttribute("contenteditable")||pe(Ne))}(ue)&&!this.isDisabled(ue)&&(Ie?.ignoreVisibility||this.isVisible(ue))}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(g.t4))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();function pe(Ne){if(!Ne.hasAttribute("tabindex")||void 0===Ne.tabIndex)return!1;let $=Ne.getAttribute("tabindex");return!(!$||isNaN(parseInt($,10)))}function qe(Ne){if(!pe(Ne))return null;const $=parseInt(Ne.getAttribute("tabindex")||"",10);return isNaN($)?-1:$}class Fe{get enabled(){return this._enabled}set enabled($){this._enabled=$,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($,this._startAnchor),this._toggleAnchorTabIndex($,this._endAnchor))}constructor($,ue,Ie,Xe,ei=!1){this._element=$,this._checker=ue,this._ngZone=Ie,this._document=Xe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ei||this.attachAnchors()}destroy(){const $=this._startAnchor,ue=this._endAnchor;$&&($.removeEventListener("focus",this.startAnchorListener),$.remove()),ue&&(ue.removeEventListener("focus",this.endAnchorListener),ue.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($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusInitialElement($)))})}focusFirstTabbableElementWhenReady($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusFirstTabbableElement($)))})}focusLastTabbableElementWhenReady($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusLastTabbableElement($)))})}_getRegionBoundary($){const ue=this._element.querySelectorAll(`[cdk-focus-region-${$}], [cdkFocusRegion${$}], [cdk-focus-${$}]`);return"start"==$?ue.length?ue[0]:this._getFirstTabbableElement(this._element):ue.length?ue[ue.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement($){const ue=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ue){if(!this._checker.isFocusable(ue)){const Ie=this._getFirstTabbableElement(ue);return Ie?.focus($),!!Ie}return ue.focus($),!0}return this.focusFirstTabbableElement($)}focusFirstTabbableElement($){const ue=this._getRegionBoundary("start");return ue&&ue.focus($),!!ue}focusLastTabbableElement($){const ue=this._getRegionBoundary("end");return ue&&ue.focus($),!!ue}hasAttached(){return this._hasAttached}_getFirstTabbableElement($){if(this._checker.isFocusable($)&&this._checker.isTabbable($))return $;const ue=$.children;for(let Ie=0;Ie<ue.length;Ie++){const Xe=ue[Ie].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ue[Ie]):null;if(Xe)return Xe}return null}_getLastTabbableElement($){if(this._checker.isFocusable($)&&this._checker.isTabbable($))return $;const ue=$.children;for(let Ie=ue.length-1;Ie>=0;Ie--){const Xe=ue[Ie].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ue[Ie]):null;if(Xe)return Xe}return null}_createAnchor(){const $=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,$),$.classList.add("cdk-visually-hidden"),$.classList.add("cdk-focus-trap-anchor"),$.setAttribute("aria-hidden","true"),$}_toggleAnchorTabIndex($,ue){$?ue.setAttribute("tabindex","0"):ue.removeAttribute("tabindex")}toggleAnchors($){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($,this._startAnchor),this._toggleAnchorTabIndex($,this._endAnchor))}_executeOnStable($){this._ngZone.isStable?$():this._ngZone.onStable.pipe((0,k.q)(1)).subscribe($)}}let oe=(()=>{class Ne{constructor(ue,Ie,Xe){this._checker=ue,this._ngZone=Ie,this._document=Xe}create(ue,Ie=!1){return new Fe(ue,this._checker,this._ngZone,this._document,Ie)}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(C),e.LFG(e.R0b),e.LFG(t.K0))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),ze=(()=>{class Ne{get enabled(){return this.focusTrap.enabled}set enabled(ue){this.focusTrap.enabled=(0,Y.Ig)(ue)}get autoCapture(){return this._autoCapture}set autoCapture(ue){this._autoCapture=(0,Y.Ig)(ue)}constructor(ue,Ie,Xe){this._elementRef=ue,this._focusTrapFactory=Ie,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}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(ue){const Ie=ue.autoCapture;Ie&&!Ie.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,g.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.Y36(e.SBq),e.Y36(oe),e.Y36(t.K0))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Ne})();function Je(Ne){return 0===Ne.buttons||0===Ne.offsetX&&0===Ne.offsetY}function Re(Ne){const $=Ne.touches&&Ne.touches[0]||Ne.changedTouches&&Ne.changedTouches[0];return!(!$||-1!==$.identifier||null!=$.radiusX&&1!==$.radiusX||null!=$.radiusY&&1!==$.radiusY)}const le=new e.OlP("cdk-input-modality-detector-options"),rt={ignoreKeys:[N.zL,N.jx,N.b2,N.MW,N.JU]},ct=(0,g.i$)({passive:!0,capture:!0});let Gt=(()=>{class Ne{get mostRecentModality(){return this._modality.value}constructor(ue,Ie,Xe,ei){this._platform=ue,this._mostRecentTarget=null,this._modality=new x.X(null),this._lastTouchMs=0,this._onKeydown=zt=>{this._options?.ignoreKeys?.some(ni=>ni===zt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(zt))},this._onMousedown=zt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Je(zt)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(zt))},this._onTouchstart=zt=>{Re(zt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(zt))},this._options={...rt,...ei},this.modalityDetected=this._modality.pipe((0,V.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,B.x)()),ue.isBrowser&&Ie.runOutsideAngular(()=>{Xe.addEventListener("keydown",this._onKeydown,ct),Xe.addEventListener("mousedown",this._onMousedown,ct),Xe.addEventListener("touchstart",this._onTouchstart,ct)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ct),document.removeEventListener("mousedown",this._onMousedown,ct),document.removeEventListener("touchstart",this._onTouchstart,ct))}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(g.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(le,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();const ut=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ze(){return null}}),xt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Me=0,$e=(()=>{class Ne{constructor(ue,Ie,Xe,ei){this._ngZone=Ie,this._defaultOptions=ei,this._document=Xe,this._liveElement=ue||this._createLiveElement()}announce(ue,...Ie){const Xe=this._defaultOptions;let ei,zt;return 1===Ie.length&&"number"==typeof Ie[0]?zt=Ie[0]:[ei,zt]=Ie,this.clear(),clearTimeout(this._previousTimeout),ei||(ei=Xe&&Xe.politeness?Xe.politeness:"polite"),null==zt&&Xe&&(zt=Xe.duration),this._liveElement.setAttribute("aria-live",ei),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ni=>this._currentResolve=ni)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ue,"number"==typeof zt&&(this._previousTimeout=setTimeout(()=>this.clear(),zt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ue="cdk-live-announcer-element",Ie=this._document.getElementsByClassName(ue),Xe=this._document.createElement("div");for(let ei=0;ei<Ie.length;ei++)Ie[ei].remove();return Xe.classList.add(ue),Xe.classList.add("cdk-visually-hidden"),Xe.setAttribute("aria-atomic","true"),Xe.setAttribute("aria-live","polite"),Xe.id="cdk-live-announcer-"+Me++,this._document.body.appendChild(Xe),Xe}_exposeAnnouncerToModals(ue){const Ie=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Xe=0;Xe<Ie.length;Xe++){const ei=Ie[Xe],zt=ei.getAttribute("aria-owns");zt?-1===zt.indexOf(ue)&&ei.setAttribute("aria-owns",zt+" "+ue):ei.setAttribute("aria-owns",ue)}}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(ut,8),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(xt,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();const J=new e.OlP("cdk-focus-monitor-default-options"),mt=(0,g.i$)({passive:!0,capture:!0});let Et=(()=>{class Ne{constructor(ue,Ie,Xe,ei,zt){this._ngZone=ue,this._platform=Ie,this._inputModalityDetector=Xe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new T.x,this._rootNodeFocusAndBlurListener=ni=>{for(let ot=(0,g.sA)(ni);ot;ot=ot.parentElement)"focus"===ni.type?this._onFocus(ni,ot):this._onBlur(ni,ot)},this._document=ei,this._detectionMode=zt?.detectionMode||0}monitor(ue,Ie=!1){const Xe=(0,Y.fI)(ue);if(!this._platform.isBrowser||1!==Xe.nodeType)return(0,h.of)(null);const ei=(0,g.kV)(Xe)||this._getDocument(),zt=this._elementInfo.get(Xe);if(zt)return Ie&&(zt.checkChildren=!0),zt.subject;const ni={checkChildren:Ie,subject:new T.x,rootNode:ei};return this._elementInfo.set(Xe,ni),this._registerGlobalListeners(ni),ni.subject}stopMonitoring(ue){const Ie=(0,Y.fI)(ue),Xe=this._elementInfo.get(Ie);Xe&&(Xe.subject.complete(),this._setClasses(Ie),this._elementInfo.delete(Ie),this._removeGlobalListeners(Xe))}focusVia(ue,Ie,Xe){const ei=(0,Y.fI)(ue);ei===this._getDocument().activeElement?this._getClosestElementsInfo(ei).forEach(([ni,pt])=>this._originChanged(ni,Ie,pt)):(this._setOrigin(Ie),"function"==typeof ei.focus&&ei.focus(Xe))}ngOnDestroy(){this._elementInfo.forEach((ue,Ie)=>this.stopMonitoring(Ie))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ue){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ue)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ue&&this._isLastInteractionFromInputLabel(ue)?"mouse":"program"}_shouldBeAttributedToTouch(ue){return 1===this._detectionMode||!!ue?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ue,Ie){ue.classList.toggle("cdk-focused",!!Ie),ue.classList.toggle("cdk-touch-focused","touch"===Ie),ue.classList.toggle("cdk-keyboard-focused","keyboard"===Ie),ue.classList.toggle("cdk-mouse-focused","mouse"===Ie),ue.classList.toggle("cdk-program-focused","program"===Ie)}_setOrigin(ue,Ie=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ue,this._originFromTouchInteraction="touch"===ue&&Ie,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ue,Ie){const Xe=this._elementInfo.get(Ie),ei=(0,g.sA)(ue);!Xe||!Xe.checkChildren&&Ie!==ei||this._originChanged(Ie,this._getFocusOrigin(ei),Xe)}_onBlur(ue,Ie){const Xe=this._elementInfo.get(Ie);!Xe||Xe.checkChildren&&ue.relatedTarget instanceof Node&&Ie.contains(ue.relatedTarget)||(this._setClasses(Ie),this._emitOrigin(Xe,null))}_emitOrigin(ue,Ie){ue.subject.observers.length&&this._ngZone.run(()=>ue.subject.next(Ie))}_registerGlobalListeners(ue){if(!this._platform.isBrowser)return;const Ie=ue.rootNode,Xe=this._rootNodeFocusListenerCount.get(Ie)||0;Xe||this._ngZone.runOutsideAngular(()=>{Ie.addEventListener("focus",this._rootNodeFocusAndBlurListener,mt),Ie.addEventListener("blur",this._rootNodeFocusAndBlurListener,mt)}),this._rootNodeFocusListenerCount.set(Ie,Xe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,W.R)(this._stopInputModalityDetector)).subscribe(ei=>{this._setOrigin(ei,!0)}))}_removeGlobalListeners(ue){const Ie=ue.rootNode;if(this._rootNodeFocusListenerCount.has(Ie)){const Xe=this._rootNodeFocusListenerCount.get(Ie);Xe>1?this._rootNodeFocusListenerCount.set(Ie,Xe-1):(Ie.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mt),Ie.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mt),this._rootNodeFocusListenerCount.delete(Ie))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ue,Ie,Xe){this._setClasses(ue,Ie),this._emitOrigin(Xe,Ie),this._lastFocusOrigin=Ie}_getClosestElementsInfo(ue){const Ie=[];return this._elementInfo.forEach((Xe,ei)=>{(ei===ue||Xe.checkChildren&&ei.contains(ue))&&Ie.push([ei,Xe])}),Ie}_isLastInteractionFromInputLabel(ue){const{_mostRecentTarget:Ie,mostRecentModality:Xe}=this._inputModalityDetector;if("mouse"!==Xe||!Ie||Ie===ue||"INPUT"!==ue.nodeName&&"TEXTAREA"!==ue.nodeName||ue.disabled)return!1;const ei=ue.labels;if(ei)for(let zt=0;zt<ei.length;zt++)if(ei[zt].contains(Ie))return!0;return!1}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(e.R0b),e.LFG(g.t4),e.LFG(Gt),e.LFG(t.K0,8),e.LFG(J,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),at=(()=>{class Ne{constructor(ue,Ie){this._elementRef=ue,this._focusMonitor=Ie,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ue=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ue,1===ue.nodeType&&ue.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ie=>{this._focusOrigin=Ie,this.cdkFocusChange.emit(Ie)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.Y36(e.SBq),e.Y36(Et))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),Ne})();const je="cdk-high-contrast-black-on-white",Ht="cdk-high-contrast-white-on-black",Ct="cdk-high-contrast-active";let Nt=(()=>{class Ne{constructor(ue,Ie){this._platform=ue,this._document=Ie,this._breakpointSubscription=(0,e.f3M)(X.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ue=this._document.createElement("div");ue.style.backgroundColor="rgb(1,2,3)",ue.style.position="absolute",this._document.body.appendChild(ue);const Ie=this._document.defaultView||window,Xe=Ie&&Ie.getComputedStyle?Ie.getComputedStyle(ue):null,ei=(Xe&&Xe.backgroundColor||"").replace(/ /g,"");switch(ue.remove(),ei){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ue=this._document.body.classList;ue.remove(Ct,je,Ht),this._hasCheckedHighContrastMode=!0;const Ie=this.getHighContrastMode();1===Ie?ue.add(Ct,je):2===Ie&&ue.add(Ct,Ht)}}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(g.t4),e.LFG(t.K0))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Bt=(()=>{class Ne{constructor(ue){ue._applyBodyHighContrastModeCssClasses()}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(Nt))},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[Q.Q8]}),Ne})()},445:(We,q,m)=>{"use strict";m.d(q,{Is:()=>h,vT:()=>d});var t=m(4650),e=m(6895);const g=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,t.f3M)(e.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class M{constructor(L){this.value="ltr",this.change=new t.vpe,L&&(this.value=function x(M){const w=M?.toLowerCase()||"";return"auto"===w&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((L.body?L.body.dir:null)||(L.documentElement?L.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return M.\u0275fac=function(L){return new(L||M)(t.LFG(g,8))},M.\u0275prov=t.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),d=(()=>{class M{}return M.\u0275fac=function(L){return new(L||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({}),M})()},1281:(We,q,m)=>{"use strict";m.d(q,{Eq:()=>s,HM:()=>x,Ig:()=>e,du:()=>N,fI:()=>h,su:()=>g,t6:()=>T});var t=m(4650);function e(d){return null!=d&&"false"!=`${d}`}function g(d,M=0){return T(d)?Number(d):M}function T(d){return!isNaN(parseFloat(d))&&!isNaN(Number(d))}function s(d){return Array.isArray(d)?d:[d]}function x(d){return null==d?"":"string"==typeof d?d:`${d}px`}function h(d){return d instanceof t.SBq?d.nativeElement:d}function N(d,M=/\s+/){const w=[];if(null!=d){const L=Array.isArray(d)?d:`${d}`.split(M);for(const k of L){const V=`${k}`.trim();V&&w.push(V)}}return w}},5017:(We,q,m)=>{"use strict";m.d(q,{A8:()=>w,Ov:()=>d,Z9:()=>s,eX:()=>N,k:()=>L,o2:()=>T,yy:()=>h});var t=m(4033),e=m(7579),g=m(4650);class T{}function s(k){return k&&"function"==typeof k.connect&&!(k instanceof t.c)}class h{applyChanges(V,B,W,Y,Q){V.forEachOperation((X,ee,me)=>{let re,ie;if(null==X.previousIndex){const se=W(X,ee,me);re=B.createEmbeddedView(se.templateRef,se.context,se.index),ie=1}else null==me?(B.remove(ee),ie=3):(re=B.get(ee),B.move(re,me),ie=2);Q&&Q({context:re?.context,operation:ie,record:X})})}detach(){}}class N{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(V,B,W,Y,Q){V.forEachOperation((X,ee,me)=>{let re,ie;null==X.previousIndex?(re=this._insertView(()=>W(X,ee,me),me,B,Y(X)),ie=re?1:0):null==me?(this._detachAndCacheView(ee,B),ie=3):(re=this._moveView(ee,me,B,Y(X)),ie=2),Q&&Q({context:re?.context,operation:ie,record:X})})}detach(){for(const V of this._viewCache)V.destroy();this._viewCache=[]}_insertView(V,B,W,Y){const Q=this._insertViewFromCache(B,W);if(Q)return void(Q.context.$implicit=Y);const X=V();return W.createEmbeddedView(X.templateRef,X.context,X.index)}_detachAndCacheView(V,B){const W=B.detach(V);this._maybeCacheView(W,B)}_moveView(V,B,W,Y){const Q=W.get(V);return W.move(Q,B),Q.context.$implicit=Y,Q}_maybeCacheView(V,B){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(V);else{const W=B.indexOf(V);-1===W?V.destroy():B.remove(W)}}_insertViewFromCache(V,B){const W=this._viewCache.pop();return W&&B.insert(W,V),W||null}}class d{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(V=!1,B,W=!0,Y){this._multiple=V,this._emitChanges=W,this.compareWith=Y,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,B&&B.length&&(V?B.forEach(Q=>this._markSelected(Q)):this._markSelected(B[0]),this._selectedToEmit.length=0)}select(...V){this._verifyValueAssignment(V),V.forEach(W=>this._markSelected(W));const B=this._hasQueuedChanges();return this._emitChangeEvent(),B}deselect(...V){this._verifyValueAssignment(V),V.forEach(W=>this._unmarkSelected(W));const B=this._hasQueuedChanges();return this._emitChangeEvent(),B}setSelection(...V){this._verifyValueAssignment(V);const B=this.selected,W=new Set(V);V.forEach(Q=>this._markSelected(Q)),B.filter(Q=>!W.has(Q)).forEach(Q=>this._unmarkSelected(Q));const Y=this._hasQueuedChanges();return this._emitChangeEvent(),Y}toggle(V){return this.isSelected(V)?this.deselect(V):this.select(V)}clear(V=!0){this._unmarkAll();const B=this._hasQueuedChanges();return V&&this._emitChangeEvent(),B}isSelected(V){return this._selection.has(this._getConcreteValue(V))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(V){this._multiple&&this.selected&&this._selected.sort(V)}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(V){V=this._getConcreteValue(V),this.isSelected(V)||(this._multiple||this._unmarkAll(),this.isSelected(V)||this._selection.add(V),this._emitChanges&&this._selectedToEmit.push(V))}_unmarkSelected(V){V=this._getConcreteValue(V),this.isSelected(V)&&(this._selection.delete(V),this._emitChanges&&this._deselectedToEmit.push(V))}_unmarkAll(){this.isEmpty()||this._selection.forEach(V=>this._unmarkSelected(V))}_verifyValueAssignment(V){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(V){if(this.compareWith){for(let B of this._selection)if(this.compareWith(V,B))return B;return V}return V}}let w=(()=>{class k{constructor(){this._listeners=[]}notify(B,W){for(let Y of this._listeners)Y(B,W)}listen(B){return this._listeners.push(B),()=>{this._listeners=this._listeners.filter(W=>B!==W)}}ngOnDestroy(){this._listeners=[]}}return k.\u0275fac=function(B){return new(B||k)},k.\u0275prov=g.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();const L=new g.OlP("_ViewRepeater")},9521:(We,q,m)=>{"use strict";m.d(q,{A:()=>F,JH:()=>ee,JU:()=>x,K5:()=>s,Ku:()=>k,LH:()=>Q,L_:()=>L,MW:()=>xt,Mf:()=>g,SV:()=>X,Sd:()=>W,VM:()=>V,Vb:()=>bi,Z:()=>Ze,ZH:()=>e,aO:()=>R,b2:()=>Ot,hY:()=>w,jx:()=>h,oh:()=>Y,uR:()=>B,xE:()=>ce,yY:()=>se,zL:()=>N});const e=8,g=9,s=13,x=16,h=17,N=18,w=27,L=32,k=33,V=34,B=35,W=36,Y=37,Q=38,X=39,ee=40,se=46,ce=48,R=57,F=65,Ze=90,xt=91,Ot=224;function bi(li,...pi){return pi.length?pi.some(gi=>li[gi]):li.altKey||li.shiftKey||li.ctrlKey||li.metaKey}},2289:(We,q,m)=>{"use strict";m.d(q,{Yg:()=>ee,u3:()=>re,xu:()=>V});var t=m(4650),e=m(1281),g=m(7579),T=m(9841),s=m(7272),x=m(9751),h=m(5698),N=m(5684),d=m(8372),M=m(4004),w=m(8675),L=m(2722),k=m(3353);let V=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})();const B=new Set;let W,Y=(()=>{class ie{constructor(ce){this._platform=ce,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):X}matchMedia(ce){return(this._platform.WEBKIT||this._platform.BLINK)&&function Q(ie){if(!B.has(ie))try{W||(W=document.createElement("style"),W.setAttribute("type","text/css"),document.head.appendChild(W)),W.sheet&&(W.sheet.insertRule(`@media ${ie} {body{ }}`,0),B.add(ie))}catch(se){console.error(se)}}(ce),this._matchMedia(ce)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.LFG(k.t4))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function X(ie){return{matches:"all"===ie||""===ie,media:ie,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class ie{constructor(ce,Te){this._mediaMatcher=ce,this._zone=Te,this._queries=new Map,this._destroySubject=new g.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ce){return me((0,e.Eq)(ce)).some(S=>this._registerQuery(S).mql.matches)}observe(ce){const S=me((0,e.Eq)(ce)).map(a=>this._registerQuery(a).observable);let i=(0,T.a)(S);return i=(0,s.z)(i.pipe((0,h.q)(1)),i.pipe((0,N.T)(1),(0,d.b)(0))),i.pipe((0,M.U)(a=>{const u={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:_})=>{u.matches=u.matches||l,u.breakpoints[_]=l}),u}))}_registerQuery(ce){if(this._queries.has(ce))return this._queries.get(ce);const Te=this._mediaMatcher.matchMedia(ce),i={observable:new x.y(a=>{const u=l=>this._zone.run(()=>a.next(l));return Te.addListener(u),()=>{Te.removeListener(u)}}).pipe((0,w.O)(Te),(0,M.U)(({matches:a})=>({query:ce,matches:a})),(0,L.R)(this._destroySubject)),mql:Te};return this._queries.set(ce,i),i}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.LFG(Y),t.LFG(t.R0b))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function me(ie){return ie.map(se=>se.split(",")).reduce((se,ce)=>se.concat(ce)).map(se=>se.trim())}const re={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)"}},9643:(We,q,m)=>{"use strict";m.d(q,{Q8:()=>d,wD:()=>N});var t=m(1281),e=m(4650),g=m(9751),T=m(7579),s=m(8372);let x=(()=>{class M{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return M.\u0275fac=function(L){return new(L||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),h=(()=>{class M{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,k)=>this._cleanupObserver(k))}observe(L){const k=(0,t.fI)(L);return new g.y(V=>{const W=this._observeElement(k).subscribe(V);return()=>{W.unsubscribe(),this._unobserveElement(k)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const k=new T.x,V=this._mutationObserverFactory.create(B=>k.next(B));V&&V.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:V,stream:k,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:k,stream:V}=this._observedElements.get(L);k&&k.disconnect(),V.complete(),this._observedElements.delete(L)}}}return M.\u0275fac=function(L){return new(L||M)(e.LFG(x))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),N=(()=>{class M{get disabled(){return this._disabled}set disabled(L){this._disabled=(0,t.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,t.su)(L),this._subscribe()}constructor(L,k,V){this._contentObserver=L,this._elementRef=k,this._ngZone=V,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,s.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return M.\u0275fac=function(L){return new(L||M)(e.Y36(h),e.Y36(e.SBq),e.Y36(e.R0b))},M.\u0275dir=e.lG2({type:M,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),M})(),d=(()=>{class M{}return M.\u0275fac=function(L){return new(L||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({providers:[x]}),M})()},8184:(We,q,m)=>{"use strict";m.d(q,{Iu:()=>C,U8:()=>Ue,X_:()=>ce,Xj:()=>R,_G:()=>K,aV:()=>Fe,pI:()=>he,xu:()=>Oe});var t=m(531),e=m(6895),g=m(4650),T=m(1281),s=m(3353),x=m(9300),h=m(5698),N=m(2722),d=m(2529),M=m(445),w=m(4080),L=m(7579),k=m(727),V=m(6451),B=m(9521);const W=(0,s.Mq)();class Y{constructor(le,rt){this._viewportRuler=le,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=rt}attach(){}enable(){if(this._canBeEnabled()){const le=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=le.style.left||"",this._previousHTMLStyles.top=le.style.top||"",le.style.left=(0,T.HM)(-this._previousScrollPosition.left),le.style.top=(0,T.HM)(-this._previousScrollPosition.top),le.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const le=this._document.documentElement,Qe=le.style,ct=this._document.body.style,Gt=Qe.scrollBehavior||"",ut=ct.scrollBehavior||"";this._isEnabled=!1,Qe.left=this._previousHTMLStyles.left,Qe.top=this._previousHTMLStyles.top,le.classList.remove("cdk-global-scrollblock"),W&&(Qe.scrollBehavior=ct.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W&&(Qe.scrollBehavior=Gt,ct.scrollBehavior=ut)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const rt=this._document.body,Qe=this._viewportRuler.getViewportSize();return rt.scrollHeight>Qe.height||rt.scrollWidth>Qe.width}}class X{constructor(le,rt,Qe,ct){this._scrollDispatcher=le,this._ngZone=rt,this._viewportRuler=Qe,this._config=ct,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(le){this._overlayRef=le}enable(){if(this._scrollSubscription)return;const le=this._scrollDispatcher.scrolled(0).pipe((0,x.h)(rt=>!rt||!this._overlayRef.overlayElement.contains(rt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=le.subscribe(()=>{const rt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(rt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=le.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ee{enable(){}disable(){}attach(){}}function me(Re,le){return le.some(rt=>Re.bottom<rt.top||Re.top>rt.bottom||Re.right<rt.left||Re.left>rt.right)}function re(Re,le){return le.some(rt=>Re.top<rt.top||Re.bottom>rt.bottom||Re.left<rt.left||Re.right>rt.right)}class ie{constructor(le,rt,Qe,ct){this._scrollDispatcher=le,this._viewportRuler=rt,this._ngZone=Qe,this._config=ct,this._scrollSubscription=null}attach(le){this._overlayRef=le}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 rt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Qe,height:ct}=this._viewportRuler.getViewportSize();me(rt,[{width:Qe,height:ct,bottom:ct,right:Qe,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 Re{constructor(rt,Qe,ct,Gt){this._scrollDispatcher=rt,this._viewportRuler=Qe,this._ngZone=ct,this.noop=()=>new ee,this.close=ut=>new X(this._scrollDispatcher,this._ngZone,this._viewportRuler,ut),this.block=()=>new Y(this._viewportRuler,this._document),this.reposition=ut=>new ie(this._scrollDispatcher,this._viewportRuler,this._ngZone,ut),this._document=Gt}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(t.mF),g.LFG(t.rL),g.LFG(g.R0b),g.LFG(e.K0))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();class ce{constructor(le){if(this.scrollStrategy=new ee,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,le){const rt=Object.keys(le);for(const Qe of rt)void 0!==le[Qe]&&(this[Qe]=le[Qe])}}}class i{constructor(le,rt){this.connectionPair=le,this.scrollableViewProperties=rt}}let l=(()=>{class Re{constructor(rt){this._attachedOverlays=[],this._document=rt}ngOnDestroy(){this.detach()}add(rt){this.remove(rt),this._attachedOverlays.push(rt)}remove(rt){const Qe=this._attachedOverlays.indexOf(rt);Qe>-1&&this._attachedOverlays.splice(Qe,1),0===this._attachedOverlays.length&&this.detach()}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(e.K0))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),_=(()=>{class Re extends l{constructor(rt,Qe){super(rt),this._ngZone=Qe,this._keydownListener=ct=>{const Gt=this._attachedOverlays;for(let ut=Gt.length-1;ut>-1;ut--)if(Gt[ut]._keydownEvents.observers.length>0){const Ze=Gt[ut]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ze.next(ct)):Ze.next(ct);break}}}add(rt){super.add(rt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(e.K0),g.LFG(g.R0b,8))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),O=(()=>{class Re extends l{constructor(rt,Qe,ct){super(rt),this._platform=Qe,this._ngZone=ct,this._cursorStyleIsSet=!1,this._pointerDownListener=Gt=>{this._pointerDownEventTarget=(0,s.sA)(Gt)},this._clickListener=Gt=>{const ut=(0,s.sA)(Gt),Ze="click"===Gt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ut;this._pointerDownEventTarget=null;const xt=this._attachedOverlays.slice();for(let Me=xt.length-1;Me>-1;Me--){const $e=xt[Me];if($e._outsidePointerEvents.observers.length<1||!$e.hasAttached())continue;if($e.overlayElement.contains(ut)||$e.overlayElement.contains(Ze))break;const Pe=$e._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Pe.next(Gt)):Pe.next(Gt)}}}add(rt){if(super.add(rt),!this._isAttached){const Qe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Qe)):this._addEventListeners(Qe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Qe.style.cursor,Qe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const rt=this._document.body;rt.removeEventListener("pointerdown",this._pointerDownListener,!0),rt.removeEventListener("click",this._clickListener,!0),rt.removeEventListener("auxclick",this._clickListener,!0),rt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(rt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(rt){rt.addEventListener("pointerdown",this._pointerDownListener,!0),rt.addEventListener("click",this._clickListener,!0),rt.addEventListener("auxclick",this._clickListener,!0),rt.addEventListener("contextmenu",this._clickListener,!0)}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(e.K0),g.LFG(s.t4),g.LFG(g.R0b,8))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),R=(()=>{class Re{constructor(rt,Qe){this._platform=Qe,this._document=rt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const rt="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const ct=this._document.querySelectorAll(`.${rt}[platform="server"], .${rt}[platform="test"]`);for(let Gt=0;Gt<ct.length;Gt++)ct[Gt].remove()}const Qe=this._document.createElement("div");Qe.classList.add(rt),(0,s.Oy)()?Qe.setAttribute("platform","test"):this._platform.isBrowser||Qe.setAttribute("platform","server"),this._document.body.appendChild(Qe),this._containerElement=Qe}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(e.K0),g.LFG(s.t4))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();class C{constructor(le,rt,Qe,ct,Gt,ut,Ze,xt,Me,$e=!1){this._portalOutlet=le,this._host=rt,this._pane=Qe,this._config=ct,this._ngZone=Gt,this._keyboardDispatcher=ut,this._document=Ze,this._location=xt,this._outsideClickDispatcher=Me,this._animationsDisabled=$e,this._backdropElement=null,this._backdropClick=new L.x,this._attachments=new L.x,this._detachments=new L.x,this._locationChanges=k.w0.EMPTY,this._backdropClickHandler=Pe=>this._backdropClick.next(Pe),this._backdropTransitionendHandler=Pe=>{this._disposeBackdrop(Pe.target)},this._keydownEvents=new L.x,this._outsidePointerEvents=new L.x,ct.scrollStrategy&&(this._scrollStrategy=ct.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ct.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(le){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const rt=this._portalOutlet.attach(le);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,h.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),"function"==typeof rt?.onDestroy&&rt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),rt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const le=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),le}dispose(){const le=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,le&&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(le){le!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=le,this.hasAttached()&&(le.attach(this),this.updatePosition()))}updateSize(le){this._config={...this._config,...le},this._updateElementSize()}setDirection(le){this._config={...this._config,direction:le},this._updateElementDirection()}addPanelClass(le){this._pane&&this._toggleClasses(this._pane,le,!0)}removePanelClass(le){this._pane&&this._toggleClasses(this._pane,le,!1)}getDirection(){const le=this._config.direction;return le?"string"==typeof le?le:le.value:"ltr"}updateScrollStrategy(le){le!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=le,this.hasAttached()&&(le.attach(this),le.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const le=this._pane.style;le.width=(0,T.HM)(this._config.width),le.height=(0,T.HM)(this._config.height),le.minWidth=(0,T.HM)(this._config.minWidth),le.minHeight=(0,T.HM)(this._config.minHeight),le.maxWidth=(0,T.HM)(this._config.maxWidth),le.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(le){this._pane.style.pointerEvents=le?"":"none"}_attachBackdrop(){const le="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(le)})}):this._backdropElement.classList.add(le)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const le=this._backdropElement;if(le){if(this._animationsDisabled)return void this._disposeBackdrop(le);le.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{le.addEventListener("transitionend",this._backdropTransitionendHandler)}),le.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(le)},500))}}_toggleClasses(le,rt,Qe){const ct=(0,T.Eq)(rt||[]).filter(Gt=>!!Gt);ct.length&&(Qe?le.classList.add(...ct):le.classList.remove(...ct))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const le=this._ngZone.onStable.pipe((0,N.R)((0,V.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()),le.unsubscribe())})})}_disposeScrollStrategy(){const le=this._scrollStrategy;le&&(le.disable(),le.detach&&le.detach())}_disposeBackdrop(le){le&&(le.removeEventListener("click",this._backdropClickHandler),le.removeEventListener("transitionend",this._backdropTransitionendHandler),le.remove(),this._backdropElement===le&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const n="cdk-overlay-connected-position-bounding-box",v=/([A-Za-z%]+)$/;class K{get positions(){return this._preferredPositions}constructor(le,rt,Qe,ct,Gt){this._viewportRuler=rt,this._document=Qe,this._platform=ct,this._overlayContainer=Gt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L.x,this._resizeSubscription=k.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(le)}attach(le){this._validatePositions(),le.hostElement.classList.add(n),this._overlayRef=le,this._boundingBox=le.hostElement,this._pane=le.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const le=this._originRect,rt=this._overlayRect,Qe=this._viewportRect,ct=this._containerRect,Gt=[];let ut;for(let Ze of this._preferredPositions){let xt=this._getOriginPoint(le,ct,Ze),Me=this._getOverlayPoint(xt,rt,Ze),$e=this._getOverlayFit(Me,rt,Qe,Ze);if($e.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ze,xt);this._canFitWithFlexibleDimensions($e,Me,Qe)?Gt.push({position:Ze,origin:xt,overlayRect:rt,boundingBoxRect:this._calculateBoundingBoxRect(xt,Ze)}):(!ut||ut.overlayFit.visibleArea<$e.visibleArea)&&(ut={overlayFit:$e,overlayPoint:Me,originPoint:xt,position:Ze,overlayRect:rt})}if(Gt.length){let Ze=null,xt=-1;for(const Me of Gt){const $e=Me.boundingBoxRect.width*Me.boundingBoxRect.height*(Me.position.weight||1);$e>xt&&(xt=$e,Ze=Me)}return this._isPushed=!1,void this._applyPosition(Ze.position,Ze.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ut.position,ut.originPoint);this._applyPosition(ut.position,ut.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(n),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const le=this._lastPosition;if(le){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const rt=this._getOriginPoint(this._originRect,this._containerRect,le);this._applyPosition(le,rt)}else this.apply()}withScrollableContainers(le){return this._scrollables=le,this}withPositions(le){return this._preferredPositions=le,-1===le.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(le){return this._viewportMargin=le,this}withFlexibleDimensions(le=!0){return this._hasFlexibleDimensions=le,this}withGrowAfterOpen(le=!0){return this._growAfterOpen=le,this}withPush(le=!0){return this._canPush=le,this}withLockedPosition(le=!0){return this._positionLocked=le,this}setOrigin(le){return this._origin=le,this}withDefaultOffsetX(le){return this._offsetX=le,this}withDefaultOffsetY(le){return this._offsetY=le,this}withTransformOriginOn(le){return this._transformOriginSelector=le,this}_getOriginPoint(le,rt,Qe){let ct,Gt;if("center"==Qe.originX)ct=le.left+le.width/2;else{const ut=this._isRtl()?le.right:le.left,Ze=this._isRtl()?le.left:le.right;ct="start"==Qe.originX?ut:Ze}return rt.left<0&&(ct-=rt.left),Gt="center"==Qe.originY?le.top+le.height/2:"top"==Qe.originY?le.top:le.bottom,rt.top<0&&(Gt-=rt.top),{x:ct,y:Gt}}_getOverlayPoint(le,rt,Qe){let ct,Gt;return ct="center"==Qe.overlayX?-rt.width/2:"start"===Qe.overlayX?this._isRtl()?-rt.width:0:this._isRtl()?0:-rt.width,Gt="center"==Qe.overlayY?-rt.height/2:"top"==Qe.overlayY?0:-rt.height,{x:le.x+ct,y:le.y+Gt}}_getOverlayFit(le,rt,Qe,ct){const Gt=ye(rt);let{x:ut,y:Ze}=le,xt=this._getOffset(ct,"x"),Me=this._getOffset(ct,"y");xt&&(ut+=xt),Me&&(Ze+=Me);let J=0-Ze,mt=Ze+Gt.height-Qe.height,Et=this._subtractOverflows(Gt.width,0-ut,ut+Gt.width-Qe.width),at=this._subtractOverflows(Gt.height,J,mt),je=Et*at;return{visibleArea:je,isCompletelyWithinViewport:Gt.width*Gt.height===je,fitsInViewportVertically:at===Gt.height,fitsInViewportHorizontally:Et==Gt.width}}_canFitWithFlexibleDimensions(le,rt,Qe){if(this._hasFlexibleDimensions){const ct=Qe.bottom-rt.y,Gt=Qe.right-rt.x,ut=G(this._overlayRef.getConfig().minHeight),Ze=G(this._overlayRef.getConfig().minWidth);return(le.fitsInViewportVertically||null!=ut&&ut<=ct)&&(le.fitsInViewportHorizontally||null!=Ze&&Ze<=Gt)}return!1}_pushOverlayOnScreen(le,rt,Qe){if(this._previousPushAmount&&this._positionLocked)return{x:le.x+this._previousPushAmount.x,y:le.y+this._previousPushAmount.y};const ct=ye(rt),Gt=this._viewportRect,ut=Math.max(le.x+ct.width-Gt.width,0),Ze=Math.max(le.y+ct.height-Gt.height,0),xt=Math.max(Gt.top-Qe.top-le.y,0),Me=Math.max(Gt.left-Qe.left-le.x,0);let $e=0,Pe=0;return $e=ct.width<=Gt.width?Me||-ut:le.x<this._viewportMargin?Gt.left-Qe.left-le.x:0,Pe=ct.height<=Gt.height?xt||-Ze:le.y<this._viewportMargin?Gt.top-Qe.top-le.y:0,this._previousPushAmount={x:$e,y:Pe},{x:le.x+$e,y:le.y+Pe}}_applyPosition(le,rt){if(this._setTransformOrigin(le),this._setOverlayElementStyles(rt,le),this._setBoundingBoxStyles(rt,le),le.panelClass&&this._addPanelClasses(le.panelClass),this._lastPosition=le,this._positionChanges.observers.length){const Qe=this._getScrollVisibility(),ct=new i(le,Qe);this._positionChanges.next(ct)}this._isInitialRender=!1}_setTransformOrigin(le){if(!this._transformOriginSelector)return;const rt=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Qe,ct=le.overlayY;Qe="center"===le.overlayX?"center":this._isRtl()?"start"===le.overlayX?"right":"left":"start"===le.overlayX?"left":"right";for(let Gt=0;Gt<rt.length;Gt++)rt[Gt].style.transformOrigin=`${Qe} ${ct}`}_calculateBoundingBoxRect(le,rt){const Qe=this._viewportRect,ct=this._isRtl();let Gt,ut,Ze,$e,Pe,J;if("top"===rt.overlayY)ut=le.y,Gt=Qe.height-ut+this._viewportMargin;else if("bottom"===rt.overlayY)Ze=Qe.height-le.y+2*this._viewportMargin,Gt=Qe.height-Ze+this._viewportMargin;else{const mt=Math.min(Qe.bottom-le.y+Qe.top,le.y),Et=this._lastBoundingBoxSize.height;Gt=2*mt,ut=le.y-mt,Gt>Et&&!this._isInitialRender&&!this._growAfterOpen&&(ut=le.y-Et/2)}if("end"===rt.overlayX&&!ct||"start"===rt.overlayX&&ct)J=Qe.width-le.x+this._viewportMargin,$e=le.x-this._viewportMargin;else if("start"===rt.overlayX&&!ct||"end"===rt.overlayX&&ct)Pe=le.x,$e=Qe.right-le.x;else{const mt=Math.min(Qe.right-le.x+Qe.left,le.x),Et=this._lastBoundingBoxSize.width;$e=2*mt,Pe=le.x-mt,$e>Et&&!this._isInitialRender&&!this._growAfterOpen&&(Pe=le.x-Et/2)}return{top:ut,left:Pe,bottom:Ze,right:J,width:$e,height:Gt}}_setBoundingBoxStyles(le,rt){const Qe=this._calculateBoundingBoxRect(le,rt);!this._isInitialRender&&!this._growAfterOpen&&(Qe.height=Math.min(Qe.height,this._lastBoundingBoxSize.height),Qe.width=Math.min(Qe.width,this._lastBoundingBoxSize.width));const ct={};if(this._hasExactPosition())ct.top=ct.left="0",ct.bottom=ct.right=ct.maxHeight=ct.maxWidth="",ct.width=ct.height="100%";else{const Gt=this._overlayRef.getConfig().maxHeight,ut=this._overlayRef.getConfig().maxWidth;ct.height=(0,T.HM)(Qe.height),ct.top=(0,T.HM)(Qe.top),ct.bottom=(0,T.HM)(Qe.bottom),ct.width=(0,T.HM)(Qe.width),ct.left=(0,T.HM)(Qe.left),ct.right=(0,T.HM)(Qe.right),ct.alignItems="center"===rt.overlayX?"center":"end"===rt.overlayX?"flex-end":"flex-start",ct.justifyContent="center"===rt.overlayY?"center":"bottom"===rt.overlayY?"flex-end":"flex-start",Gt&&(ct.maxHeight=(0,T.HM)(Gt)),ut&&(ct.maxWidth=(0,T.HM)(ut))}this._lastBoundingBoxSize=Qe,F(this._boundingBox.style,ct)}_resetBoundingBoxStyles(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(le,rt){const Qe={},ct=this._hasExactPosition(),Gt=this._hasFlexibleDimensions,ut=this._overlayRef.getConfig();if(ct){const $e=this._viewportRuler.getViewportScrollPosition();F(Qe,this._getExactOverlayY(rt,le,$e)),F(Qe,this._getExactOverlayX(rt,le,$e))}else Qe.position="static";let Ze="",xt=this._getOffset(rt,"x"),Me=this._getOffset(rt,"y");xt&&(Ze+=`translateX(${xt}px) `),Me&&(Ze+=`translateY(${Me}px)`),Qe.transform=Ze.trim(),ut.maxHeight&&(ct?Qe.maxHeight=(0,T.HM)(ut.maxHeight):Gt&&(Qe.maxHeight="")),ut.maxWidth&&(ct?Qe.maxWidth=(0,T.HM)(ut.maxWidth):Gt&&(Qe.maxWidth="")),F(this._pane.style,Qe)}_getExactOverlayY(le,rt,Qe){let ct={top:"",bottom:""},Gt=this._getOverlayPoint(rt,this._overlayRect,le);return this._isPushed&&(Gt=this._pushOverlayOnScreen(Gt,this._overlayRect,Qe)),"bottom"===le.overlayY?ct.bottom=this._document.documentElement.clientHeight-(Gt.y+this._overlayRect.height)+"px":ct.top=(0,T.HM)(Gt.y),ct}_getExactOverlayX(le,rt,Qe){let ut,ct={left:"",right:""},Gt=this._getOverlayPoint(rt,this._overlayRect,le);return this._isPushed&&(Gt=this._pushOverlayOnScreen(Gt,this._overlayRect,Qe)),ut=this._isRtl()?"end"===le.overlayX?"left":"right":"end"===le.overlayX?"right":"left","right"===ut?ct.right=this._document.documentElement.clientWidth-(Gt.x+this._overlayRect.width)+"px":ct.left=(0,T.HM)(Gt.x),ct}_getScrollVisibility(){const le=this._getOriginRect(),rt=this._pane.getBoundingClientRect(),Qe=this._scrollables.map(ct=>ct.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(le,Qe),isOriginOutsideView:me(le,Qe),isOverlayClipped:re(rt,Qe),isOverlayOutsideView:me(rt,Qe)}}_subtractOverflows(le,...rt){return rt.reduce((Qe,ct)=>Qe-Math.max(ct,0),le)}_getNarrowedViewportRect(){const le=this._document.documentElement.clientWidth,rt=this._document.documentElement.clientHeight,Qe=this._viewportRuler.getViewportScrollPosition();return{top:Qe.top+this._viewportMargin,left:Qe.left+this._viewportMargin,right:Qe.left+le-this._viewportMargin,bottom:Qe.top+rt-this._viewportMargin,width:le-2*this._viewportMargin,height:rt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(le,rt){return"x"===rt?null==le.offsetX?this._offsetX:le.offsetX:null==le.offsetY?this._offsetY:le.offsetY}_validatePositions(){}_addPanelClasses(le){this._pane&&(0,T.Eq)(le).forEach(rt=>{""!==rt&&-1===this._appliedPanelClasses.indexOf(rt)&&(this._appliedPanelClasses.push(rt),this._pane.classList.add(rt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(le=>{this._pane.classList.remove(le)}),this._appliedPanelClasses=[])}_getOriginRect(){const le=this._origin;if(le instanceof g.SBq)return le.nativeElement.getBoundingClientRect();if(le instanceof Element)return le.getBoundingClientRect();const rt=le.width||0,Qe=le.height||0;return{top:le.y,bottom:le.y+Qe,left:le.x,right:le.x+rt,height:Qe,width:rt}}}function F(Re,le){for(let rt in le)le.hasOwnProperty(rt)&&(Re[rt]=le[rt]);return Re}function G(Re){if("number"!=typeof Re&&null!=Re){const[le,rt]=Re.split(v);return rt&&"px"!==rt?null:parseFloat(le)}return Re||null}function ye(Re){return{top:Math.floor(Re.top),right:Math.floor(Re.right),bottom:Math.floor(Re.bottom),left:Math.floor(Re.left),width:Math.floor(Re.width),height:Math.floor(Re.height)}}const qe="cdk-global-overlay-wrapper";class Ce{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(le){const rt=le.getConfig();this._overlayRef=le,this._width&&!rt.width&&le.updateSize({width:this._width}),this._height&&!rt.height&&le.updateSize({height:this._height}),le.hostElement.classList.add(qe),this._isDisposed=!1}top(le=""){return this._bottomOffset="",this._topOffset=le,this._alignItems="flex-start",this}left(le=""){return this._xOffset=le,this._xPosition="left",this}bottom(le=""){return this._topOffset="",this._bottomOffset=le,this._alignItems="flex-end",this}right(le=""){return this._xOffset=le,this._xPosition="right",this}start(le=""){return this._xOffset=le,this._xPosition="start",this}end(le=""){return this._xOffset=le,this._xPosition="end",this}width(le=""){return this._overlayRef?this._overlayRef.updateSize({width:le}):this._width=le,this}height(le=""){return this._overlayRef?this._overlayRef.updateSize({height:le}):this._height=le,this}centerHorizontally(le=""){return this.left(le),this._xPosition="center",this}centerVertically(le=""){return this.top(le),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const le=this._overlayRef.overlayElement.style,rt=this._overlayRef.hostElement.style,Qe=this._overlayRef.getConfig(),{width:ct,height:Gt,maxWidth:ut,maxHeight:Ze}=Qe,xt=!("100%"!==ct&&"100vw"!==ct||ut&&"100%"!==ut&&"100vw"!==ut),Me=!("100%"!==Gt&&"100vh"!==Gt||Ze&&"100%"!==Ze&&"100vh"!==Ze),$e=this._xPosition,Pe=this._xOffset,J="rtl"===this._overlayRef.getConfig().direction;let mt="",Et="",at="";xt?at="flex-start":"center"===$e?(at="center",J?Et=Pe:mt=Pe):J?"left"===$e||"end"===$e?(at="flex-end",mt=Pe):("right"===$e||"start"===$e)&&(at="flex-start",Et=Pe):"left"===$e||"start"===$e?(at="flex-start",mt=Pe):("right"===$e||"end"===$e)&&(at="flex-end",Et=Pe),le.position=this._cssPosition,le.marginLeft=xt?"0":mt,le.marginTop=Me?"0":this._topOffset,le.marginBottom=this._bottomOffset,le.marginRight=xt?"0":Et,rt.justifyContent=at,rt.alignItems=Me?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const le=this._overlayRef.overlayElement.style,rt=this._overlayRef.hostElement,Qe=rt.style;rt.classList.remove(qe),Qe.justifyContent=Qe.alignItems=le.marginTop=le.marginBottom=le.marginLeft=le.marginRight=le.position="",this._overlayRef=null,this._isDisposed=!0}}let Se=(()=>{class Re{constructor(rt,Qe,ct,Gt){this._viewportRuler=rt,this._document=Qe,this._platform=ct,this._overlayContainer=Gt}global(){return new Ce}flexibleConnectedTo(rt){return new K(rt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(t.rL),g.LFG(e.K0),g.LFG(s.t4),g.LFG(R))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),fe=0,Fe=(()=>{class Re{constructor(rt,Qe,ct,Gt,ut,Ze,xt,Me,$e,Pe,J,mt){this.scrollStrategies=rt,this._overlayContainer=Qe,this._componentFactoryResolver=ct,this._positionBuilder=Gt,this._keyboardDispatcher=ut,this._injector=Ze,this._ngZone=xt,this._document=Me,this._directionality=$e,this._location=Pe,this._outsideClickDispatcher=J,this._animationsModuleType=mt}create(rt){const Qe=this._createHostElement(),ct=this._createPaneElement(Qe),Gt=this._createPortalOutlet(ct),ut=new ce(rt);return ut.direction=ut.direction||this._directionality.value,new C(Gt,Qe,ct,ut,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(rt){const Qe=this._document.createElement("div");return Qe.id="cdk-overlay-"+fe++,Qe.classList.add("cdk-overlay-pane"),rt.appendChild(Qe),Qe}_createHostElement(){const rt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(rt),rt}_createPortalOutlet(rt){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new w.u0(rt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.LFG(se),g.LFG(R),g.LFG(g._Vd),g.LFG(Se),g.LFG(_),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(e.K0),g.LFG(M.Is),g.LFG(e.Ye),g.LFG(O),g.LFG(g.QbO,8))},Re.\u0275prov=g.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const oe=[{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"}],ze=new g.OlP("cdk-connected-overlay-scroll-strategy");let Oe=(()=>{class Re{constructor(rt){this.elementRef=rt}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.Y36(g.SBq))},Re.\u0275dir=g.lG2({type:Re,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Re})(),he=(()=>{class Re{get offsetX(){return this._offsetX}set offsetX(rt){this._offsetX=rt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(rt){this._offsetY=rt,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(rt){this._hasBackdrop=(0,T.Ig)(rt)}get lockPosition(){return this._lockPosition}set lockPosition(rt){this._lockPosition=(0,T.Ig)(rt)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(rt){this._flexibleDimensions=(0,T.Ig)(rt)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(rt){this._growAfterOpen=(0,T.Ig)(rt)}get push(){return this._push}set push(rt){this._push=(0,T.Ig)(rt)}constructor(rt,Qe,ct,Gt,ut){this._overlay=rt,this._dir=ut,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w0.EMPTY,this._attachSubscription=k.w0.EMPTY,this._detachSubscription=k.w0.EMPTY,this._positionSubscription=k.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new g.vpe,this.positionChange=new g.vpe,this.attach=new g.vpe,this.detach=new g.vpe,this.overlayKeydown=new g.vpe,this.overlayOutsideClick=new g.vpe,this._templatePortal=new w.UE(Qe,ct),this._scrollStrategyFactory=Gt,this.scrollStrategy=this._scrollStrategyFactory()}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(rt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),rt.origin&&this.open&&this._position.apply()),rt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=oe);const rt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=rt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=rt.detachments().subscribe(()=>this.detach.emit()),rt.keydownEvents().subscribe(Qe=>{this.overlayKeydown.next(Qe),Qe.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(Qe)&&(Qe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Qe=>{this.overlayOutsideClick.next(Qe)})}_buildConfig(){const rt=this._position=this.positionStrategy||this._createPositionStrategy(),Qe=new ce({direction:this._dir,positionStrategy:rt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Qe.width=this.width),(this.height||0===this.height)&&(Qe.height=this.height),(this.minWidth||0===this.minWidth)&&(Qe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Qe.minHeight=this.minHeight),this.backdropClass&&(Qe.backdropClass=this.backdropClass),this.panelClass&&(Qe.panelClass=this.panelClass),Qe}_updatePositionStrategy(rt){const Qe=this.positions.map(ct=>({originX:ct.originX,originY:ct.originY,overlayX:ct.overlayX,overlayY:ct.overlayY,offsetX:ct.offsetX||this.offsetX,offsetY:ct.offsetY||this.offsetY,panelClass:ct.panelClass||void 0}));return rt.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Qe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const rt=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(rt),rt}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Oe?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(rt=>{this.backdropClick.emit(rt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,d.o)(()=>this.positionChange.observers.length>0)).subscribe(rt=>{this.positionChange.emit(rt),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Re.\u0275fac=function(rt){return new(rt||Re)(g.Y36(Fe),g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(ze),g.Y36(M.Is,8))},Re.\u0275dir=g.lG2({type:Re,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"],standalone:!0,features:[g.TTD]}),Re})();const ge={provide:ze,deps:[Fe],useFactory:function Ae(Re){return()=>Re.scrollStrategies.reposition()}};let Ue=(()=>{class Re{}return Re.\u0275fac=function(rt){return new(rt||Re)},Re.\u0275mod=g.oAB({type:Re}),Re.\u0275inj=g.cJS({providers:[Fe,ge],imports:[M.vT,w.eL,t.Cl,t.Cl]}),Re})()},3353:(We,q,m)=>{"use strict";m.d(q,{Mq:()=>V,Oy:()=>me,_i:()=>B,ht:()=>X,i$:()=>w,kV:()=>Q,qK:()=>N,sA:()=>ee,t4:()=>T});var t=m(4650),e=m(6895);let g;try{g=typeof Intl<"u"&&Intl.v8BreakIterator}catch{g=!1}let x,T=(()=>{class re{constructor(se){this._platformId=se,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!g)&&typeof CSS<"u"&&!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 re.\u0275fac=function(se){return new(se||re)(t.LFG(t.Lbi))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();const h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function N(){if(x)return x;if("object"!=typeof document||!document)return x=new Set(h),x;let re=document.createElement("input");return x=new Set(h.filter(ie=>(re.setAttribute("type",ie),re.type===ie))),x}let d,L,k,W;function w(re){return function M(){if(null==d&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?re:!!re.capture}function V(){if(null==k){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return k=!1,k;if("scrollBehavior"in document.documentElement.style)k=!0;else{const re=Element.prototype.scrollTo;k=!!re&&!/\{\s*\[native code\]\s*\}/.test(re.toString())}}return k}function B(){if("object"!=typeof document||!document)return 0;if(null==L){const re=document.createElement("div"),ie=re.style;re.dir="rtl",ie.width="1px",ie.overflow="auto",ie.visibility="hidden",ie.pointerEvents="none",ie.position="absolute";const se=document.createElement("div"),ce=se.style;ce.width="2px",ce.height="1px",re.appendChild(se),document.body.appendChild(re),L=0,0===re.scrollLeft&&(re.scrollLeft=1,L=0===re.scrollLeft?1:2),re.remove()}return L}function Q(re){if(function Y(){if(null==W){const re=typeof document<"u"?document.head:null;W=!(!re||!re.createShadowRoot&&!re.attachShadow)}return W}()){const ie=re.getRootNode?re.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ie instanceof ShadowRoot)return ie}return null}function X(){let re=typeof document<"u"&&document?document.activeElement:null;for(;re&&re.shadowRoot;){const ie=re.shadowRoot.activeElement;if(ie===re)break;re=ie}return re}function ee(re){return re.composedPath?re.composedPath()[0]:re.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(We,q,m)=>{"use strict";m.d(q,{C5:()=>M,Pl:()=>X,UE:()=>w,eL:()=>me,en:()=>k,ig:()=>Y,u0:()=>B});var t=m(4650),e=m(6895);class d{attach(se){return this._attachedHost=se,se.attach(this)}detach(){let se=this._attachedHost;null!=se&&(this._attachedHost=null,se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(se){this._attachedHost=se}}class M extends d{constructor(se,ce,Te,S,i){super(),this.component=se,this.viewContainerRef=ce,this.injector=Te,this.componentFactoryResolver=S,this.projectableNodes=i}}class w extends d{constructor(se,ce,Te,S){super(),this.templateRef=se,this.viewContainerRef=ce,this.context=Te,this.injector=S}get origin(){return this.templateRef.elementRef}attach(se,ce=this.context){return this.context=ce,super.attach(se)}detach(){return this.context=void 0,super.detach()}}class L extends d{constructor(se){super(),this.element=se instanceof t.SBq?se.nativeElement:se}}class k{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(se){return se instanceof M?(this._attachedPortal=se,this.attachComponentPortal(se)):se instanceof w?(this._attachedPortal=se,this.attachTemplatePortal(se)):this.attachDomPortal&&se instanceof L?(this._attachedPortal=se,this.attachDomPortal(se)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(se){this._disposeFn=se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class B extends k{constructor(se,ce,Te,S,i){super(),this.outletElement=se,this._componentFactoryResolver=ce,this._appRef=Te,this._defaultInjector=S,this.attachDomPortal=a=>{const u=a.element,l=this._document.createComment("dom-portal");u.parentNode.insertBefore(l,u),this.outletElement.appendChild(u),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(u,l)})},this._document=i}attachComponentPortal(se){const Te=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component);let S;return se.viewContainerRef?(S=se.viewContainerRef.createComponent(Te,se.viewContainerRef.length,se.injector||se.viewContainerRef.injector,se.projectableNodes||void 0),this.setDisposeFn(()=>S.destroy())):(S=Te.create(se.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(S.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(S.hostView),S.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(S)),this._attachedPortal=se,S}attachTemplatePortal(se){let ce=se.viewContainerRef,Te=ce.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return Te.rootNodes.forEach(S=>this.outletElement.appendChild(S)),Te.detectChanges(),this.setDisposeFn(()=>{let S=ce.indexOf(Te);-1!==S&&ce.remove(S)}),this._attachedPortal=se,Te}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(se){return se.hostView.rootNodes[0]}}let Y=(()=>{class ie extends w{constructor(ce,Te){super(ce,Te)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t.Rgc),t.Y36(t.s_b))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ie})(),X=(()=>{class ie extends k{constructor(ce,Te,S){super(),this._componentFactoryResolver=ce,this._viewContainerRef=Te,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const a=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(u,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(a,u)})},this._document=S}get portal(){return this._attachedPortal}set portal(ce){this.hasAttached()&&!ce&&!this._isInitialized||(this.hasAttached()&&super.detach(),ce&&super.attach(ce),this._attachedPortal=ce||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ce){ce.setAttachedHost(this);const Te=null!=ce.viewContainerRef?ce.viewContainerRef:this._viewContainerRef,i=(ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ce.component),a=Te.createComponent(i,Te.length,ce.injector||Te.injector,ce.projectableNodes||void 0);return Te!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=ce,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(ce){ce.setAttachedHost(this);const Te=this._viewContainerRef.createEmbeddedView(ce.templateRef,ce.context,{injector:ce.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ce,this._attachedRef=Te,this.attached.emit(Te),Te}_getRootNode(){const ce=this._viewContainerRef.element.nativeElement;return ce.nodeType===ce.ELEMENT_NODE?ce:ce.parentNode}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),ie})(),me=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})()},531:(We,q,m)=>{"use strict";m.d(q,{PQ:()=>l,ZD:()=>pe,mF:()=>u,Cl:()=>qe,rL:()=>O});var t=m(1281),e=m(4650),g=m(7579),T=m(9646),s=m(9751),x=m(4968),h=m(4408),N=m(727);const d={schedule(Ce){let Se=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:Fe}=d;Fe&&(Se=Fe.requestAnimationFrame,fe=Fe.cancelAnimationFrame);const oe=Se(ze=>{fe=void 0,Ce(ze)});return new N.w0(()=>fe?.(oe))},requestAnimationFrame(...Ce){const{delegate:Se}=d;return(Se?.requestAnimationFrame||requestAnimationFrame)(...Ce)},cancelAnimationFrame(...Ce){const{delegate:Se}=d;return(Se?.cancelAnimationFrame||cancelAnimationFrame)(...Ce)},delegate:void 0};var w=m(7565);const k=new class L extends w.v{flush(Se){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:Fe}=this;let oe;Se=Se||Fe.shift();do{if(oe=Se.execute(Se.state,Se.delay))break}while((Se=Fe[0])&&Se.id===fe&&Fe.shift());if(this._active=!1,oe){for(;(Se=Fe[0])&&Se.id===fe&&Fe.shift();)Se.unsubscribe();throw oe}}}(class M extends h.o{constructor(Se,fe){super(Se,fe),this.scheduler=Se,this.work=fe}requestAsyncId(Se,fe,Fe=0){return null!==Fe&&Fe>0?super.requestAsyncId(Se,fe,Fe):(Se.actions.push(this),Se._scheduled||(Se._scheduled=d.requestAnimationFrame(()=>Se.flush(void 0))))}recycleAsyncId(Se,fe,Fe=0){var oe;if(null!=Fe?Fe>0:this.delay>0)return super.recycleAsyncId(Se,fe,Fe);const{actions:ze}=Se;null!=fe&&(null===(oe=ze[ze.length-1])||void 0===oe?void 0:oe.id)!==fe&&(d.cancelAnimationFrame(fe),Se._scheduled=void 0)}});var B=m(3101),W=m(3601),Y=m(9300),Q=m(2722),X=m(8675),ee=m(3353),me=m(6895),re=m(445);const ie=["contentWrapper"],se=["*"],ce=new e.OlP("VIRTUAL_SCROLL_STRATEGY");let u=(()=>{class Ce{constructor(fe,Fe,oe){this._ngZone=fe,this._platform=Fe,this._scrolled=new g.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const Fe=this.scrollContainers.get(fe);Fe&&(Fe.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new s.y(Fe=>{this._globalSubscription||this._addGlobalListener();const oe=fe>0?this._scrolled.pipe((0,W.e)(fe)).subscribe(Fe):this._scrolled.subscribe(Fe);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,Fe)=>this.deregister(Fe)),this._scrolled.complete()}ancestorScrolled(fe,Fe){const oe=this.getAncestorScrollContainers(fe);return this.scrolled(Fe).pipe((0,Y.h)(ze=>!ze||oe.indexOf(ze)>-1))}getAncestorScrollContainers(fe){const Fe=[];return this.scrollContainers.forEach((oe,ze)=>{this._scrollableContainsElement(ze,fe)&&Fe.push(ze)}),Fe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,Fe){let oe=(0,t.fI)(Fe),ze=fe.getElementRef().nativeElement;do{if(oe==ze)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,x.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.LFG(e.R0b),e.LFG(ee.t4),e.LFG(me.K0,8))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),l=(()=>{class Ce{constructor(fe,Fe,oe,ze){this.elementRef=fe,this.scrollDispatcher=Fe,this.ngZone=oe,this.dir=ze,this._destroyed=new g.x,this._elementScrolled=new s.y(Oe=>this.ngZone.runOutsideAngular(()=>(0,x.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(Oe)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(fe){const Fe=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=oe?fe.end:fe.start),null==fe.right&&(fe.right=oe?fe.start:fe.end),null!=fe.bottom&&(fe.top=Fe.scrollHeight-Fe.clientHeight-fe.bottom),oe&&0!=(0,ee._i)()?(null!=fe.left&&(fe.right=Fe.scrollWidth-Fe.clientWidth-fe.left),2==(0,ee._i)()?fe.left=fe.right:1==(0,ee._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=Fe.scrollWidth-Fe.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const Fe=this.elementRef.nativeElement;(0,ee.Mq)()?Fe.scrollTo(fe):(null!=fe.top&&(Fe.scrollTop=fe.top),null!=fe.left&&(Fe.scrollLeft=fe.left))}measureScrollOffset(fe){const Fe="left",ze=this.elementRef.nativeElement;if("top"==fe)return ze.scrollTop;if("bottom"==fe)return ze.scrollHeight-ze.clientHeight-ze.scrollTop;const Oe=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=Oe?"right":Fe:"end"==fe&&(fe=Oe?Fe:"right"),Oe&&2==(0,ee._i)()?fe==Fe?ze.scrollWidth-ze.clientWidth-ze.scrollLeft:ze.scrollLeft:Oe&&1==(0,ee._i)()?fe==Fe?ze.scrollLeft+ze.scrollWidth-ze.clientWidth:-ze.scrollLeft:fe==Fe?ze.scrollLeft:ze.scrollWidth-ze.clientWidth-ze.scrollLeft}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(e.SBq),e.Y36(u),e.Y36(e.R0b),e.Y36(re.Is,8))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),Ce})(),O=(()=>{class Ce{constructor(fe,Fe,oe){this._platform=fe,this._change=new g.x,this._changeListener=ze=>{this._change.next(ze)},this._document=oe,Fe.runOutsideAngular(()=>{if(fe.isBrowser){const ze=this._getWindow();ze.addEventListener("resize",this._changeListener),ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:Fe,height:oe}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+oe,right:fe.left+Fe,height:oe,width:Fe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,Fe=this._getWindow(),oe=fe.documentElement,ze=oe.getBoundingClientRect();return{top:-ze.top||fe.body.scrollTop||Fe.scrollY||oe.scrollTop||0,left:-ze.left||fe.body.scrollLeft||Fe.scrollX||oe.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,W.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.LFG(ee.t4),e.LFG(e.R0b),e.LFG(me.K0,8))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const R=new e.OlP("VIRTUAL_SCROLLABLE");let C=(()=>{class Ce extends l{constructor(fe,Fe,oe,ze){super(fe,Fe,oe,ze)}measureViewportSize(fe){const Fe=this.elementRef.nativeElement;return"horizontal"===fe?Fe.clientWidth:Fe.clientHeight}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(e.SBq),e.Y36(u),e.Y36(e.R0b),e.Y36(re.Is,8))},Ce.\u0275dir=e.lG2({type:Ce,features:[e.qOj]}),Ce})();const v=typeof requestAnimationFrame<"u"?k:B.E;let K=(()=>{class Ce extends C{get orientation(){return this._orientation}set orientation(fe){this._orientation!==fe&&(this._orientation=fe,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(fe){this._appendOnly=(0,t.Ig)(fe)}constructor(fe,Fe,oe,ze,Oe,he,Ae,ge){super(fe,he,oe,Oe),this.elementRef=fe,this._changeDetectorRef=Fe,this._scrollStrategy=ze,this.scrollable=ge,this._platform=(0,e.f3M)(ee.t4),this._detachedSubject=new g.x,this._renderedRangeSubject=new g.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(Ue=>this._scrollStrategy.scrolledIndexChange.subscribe(Je=>Promise.resolve().then(()=>this.ngZone.run(()=>Ue.next(Je))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=N.w0.EMPTY,this._viewportChanges=Ae.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,X.O)(null),(0,W.e)(0,v)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(fe){this.ngZone.runOutsideAngular(()=>{this._forOf=fe,this._forOf.dataStream.pipe((0,Q.R)(this._detachedSubject)).subscribe(Fe=>{const oe=Fe.length;oe!==this._dataLength&&(this._dataLength=oe,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(fe){return this.getElementRef().nativeElement.getBoundingClientRect()[fe]}setTotalContentSize(fe){this._totalContentSize!==fe&&(this._totalContentSize=fe,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(fe){(function n(Ce,Se){return Ce.start==Se.start&&Ce.end==Se.end})(this._renderedRange,fe)||(this.appendOnly&&(fe={start:0,end:Math.max(this._renderedRange.end,fe.end)}),this._renderedRangeSubject.next(this._renderedRange=fe),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(fe,Fe="to-start"){fe=this.appendOnly&&"to-start"===Fe?0:fe;const ze="horizontal"==this.orientation,Oe=ze?"X":"Y";let Ae=`translate${Oe}(${Number((ze&&this.dir&&"rtl"==this.dir.value?-1:1)*fe)}px)`;this._renderedContentOffset=fe,"to-end"===Fe&&(Ae+=` translate${Oe}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ae&&(this._renderedContentTransform=Ae,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(fe,Fe="auto"){const oe={behavior:Fe};"horizontal"===this.orientation?oe.start=fe:oe.top=fe,this.scrollable.scrollTo(oe)}scrollToIndex(fe,Fe="auto"){this._scrollStrategy.scrollToIndex(fe,Fe)}measureScrollOffset(fe){let Fe;return Fe=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,Fe(fe??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(fe){let Fe;const Oe="rtl"==this.dir?.value;Fe="start"==fe?Oe?"right":"left":"end"==fe?Oe?"left":"right":fe||("horizontal"===this.orientation?"left":"top");const he=this.scrollable.measureBoundingClientRectWithScrollOffset(Fe);return this.elementRef.nativeElement.getBoundingClientRect()[Fe]-he}measureRenderedContentSize(){const fe=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?fe.offsetWidth:fe.offsetHeight}measureRangeSize(fe){return this._forOf?this._forOf.measureRangeSize(fe,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(fe){fe&&this._runAfterChangeDetection.push(fe),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const fe=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Fe of fe)Fe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(ce,8),e.Y36(re.Is,8),e.Y36(u),e.Y36(O),e.Y36(R,8))},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(fe,Fe){if(1&fe&&e.Gf(ie,7),2&fe){let oe;e.iGM(oe=e.CRH())&&(Fe._contentWrapper=oe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(fe,Fe){2&fe&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Fe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Fe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e._Bn([{provide:l,useFactory:(Se,fe)=>Se||fe,deps:[[new e.FiY,new e.tBr(R)],Ce]}]),e.qOj,e.jDz],ngContentSelectors:se,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(fe,Fe){1&fe&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&fe&&(e.xp6(3),e.Udp("width",Fe._totalContentWidth)("height",Fe._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Ce})(),pe=(()=>{class Ce{}return Ce.\u0275fac=function(fe){return new(fe||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})(),qe=(()=>{class Ce{}return Ce.\u0275fac=function(fe){return new(fe||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({imports:[re.vT,pe,K,re.vT,pe]}),Ce})()},2138:(We,q,m)=>{"use strict";m.d(q,{B8:()=>ee,KL:()=>k,U5:()=>ie,be:()=>X,gx:()=>Q,po:()=>re,st:()=>me,u6:()=>V});var t=m(4761),e=m(445),g=m(1281),T=m(9521),s=m(4650),x=m(3353),h=m(7579),N=m(9646),d=m(8675),M=m(2722);function w(se,ce){1&se&&s.Hsn(0)}const L=["*"];let k=(()=>{class se{constructor(Te){this._elementRef=Te}focus(){this._elementRef.nativeElement.focus()}}return se.\u0275fac=function(Te){return new(Te||se)(s.Y36(s.SBq))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),se})(),V=(()=>{class se{constructor(Te){this.template=Te}}return se.\u0275fac=function(Te){return new(Te||se)(s.Y36(s.Rgc))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepLabel",""]]}),se})(),B=0;const Q=new s.OlP("STEPPER_GLOBAL_OPTIONS");let X=(()=>{class se{get editable(){return this._editable}set editable(Te){this._editable=(0,g.Ig)(Te)}get optional(){return this._optional}set optional(Te){this._optional=(0,g.Ig)(Te)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(Te){this._completedOverride=(0,g.Ig)(Te)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(Te){this._customError=(0,g.Ig)(Te)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(Te,S){this._stepper=Te,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=S||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}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(){return this._stepperOptions.showError??null!=this._customError}}return se.\u0275fac=function(Te){return new(Te||se)(s.Y36((0,s.Gpc)(()=>ee)),s.Y36(Q,8))},se.\u0275cmp=s.Xpm({type:se,selectors:[["cdk-step"]],contentQueries:function(Te,S,i){if(1&Te&&s.Suo(i,V,5),2&Te){let a;s.iGM(a=s.CRH())&&(S.stepLabel=a.first)}},viewQuery:function(Te,S){if(1&Te&&s.Gf(s.Rgc,7),2&Te){let i;s.iGM(i=s.CRH())&&(S.content=i.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:[s.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(Te,S){1&Te&&(s.F$t(),s.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),se})(),ee=(()=>{class se{get linear(){return this._linear}set linear(Te){this._linear=(0,g.Ig)(Te)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Te){const S=(0,g.su)(Te);this.steps&&this._steps?(this._isValidIndex(S),this.selected?._markAsInteracted(),this._selectedIndex!==S&&!this._anyControlsInvalidOrPending(S)&&(S>=this._selectedIndex||this.steps.toArray()[S].editable)&&this._updateSelectedItemIndex(S)):this._selectedIndex=S}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Te){this.selectedIndex=Te&&this.steps?this.steps.toArray().indexOf(Te):-1}get orientation(){return this._orientation}set orientation(Te){this._orientation=Te,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Te)}constructor(Te,S,i){this._dir=Te,this._changeDetectorRef=S,this._elementRef=i,this._destroyed=new h.x,this.steps=new s.n_E,this._sortedHeaders=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=B++}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,M.R)(this._destroyed)).subscribe(Te=>{this.steps.reset(Te.filter(S=>S._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,d.O)(this._stepHeader),(0,M.R)(this._destroyed)).subscribe(Te=>{this._sortedHeaders.reset(Te.toArray().sort((S,i)=>S._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,N.of)()).pipe((0,d.O)(this._layoutDirection()),(0,M.R)(this._destroyed)).subscribe(Te=>this._keyManager.withHorizontalOrientation(Te)),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._keyManager?.destroy(),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(Te=>Te.reset()),this._stateChanged()}_getStepLabelId(Te){return`cdk-step-label-${this._groupId}-${Te}`}_getStepContentId(Te){return`cdk-step-content-${this._groupId}-${Te}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Te){const S=Te-this._selectedIndex;return S<0?"rtl"===this._layoutDirection()?"next":"previous":S>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Te,S="number"){const i=this.steps.toArray()[Te],a=this._isCurrentStep(Te);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,a):this._getGuidelineLogic(i,a,S)}_getDefaultIndicatorLogic(Te,S){return Te._showError()&&Te.hasError&&!S?"error":!Te.completed||S?"number":Te.editable?"edit":"done"}_getGuidelineLogic(Te,S,i="number"){return Te._showError()&&Te.hasError&&!S?"error":Te.completed&&!S?"done":Te.completed&&S?i:Te.editable&&S?"edit":i}_isCurrentStep(Te){return this._selectedIndex===Te}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Te){const S=this.steps.toArray();this.selectionChange.emit({selectedIndex:Te,previouslySelectedIndex:this._selectedIndex,selectedStep:S[Te],previouslySelectedStep:S[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Te):this._keyManager.updateActiveItem(Te),this._selectedIndex=Te,this._stateChanged()}_onKeydown(Te){const S=(0,T.Vb)(Te),i=Te.keyCode,a=this._keyManager;null==a.activeItemIndex||S||i!==T.L_&&i!==T.K5?a.setFocusOrigin("keyboard").onKeydown(Te):(this.selectedIndex=a.activeItemIndex,Te.preventDefault())}_anyControlsInvalidOrPending(Te){return!!(this._linear&&Te>=0)&&this.steps.toArray().slice(0,Te).some(S=>{const i=S.stepControl;return(i?i.invalid||i.pending||!S.interacted:!S.completed)&&!S.optional&&!S._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Te=this._elementRef.nativeElement,S=(0,x.ht)();return Te===S||Te.contains(S)}_isValidIndex(Te){return Te>-1&&(!this.steps||Te<this.steps.length)}}return se.\u0275fac=function(Te){return new(Te||se)(s.Y36(e.Is,8),s.Y36(s.sBO),s.Y36(s.SBq))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepper",""]],contentQueries:function(Te,S,i){if(1&Te&&(s.Suo(i,X,5),s.Suo(i,k,5)),2&Te){let a;s.iGM(a=s.CRH())&&(S._steps=a),s.iGM(a=s.CRH())&&(S._stepHeader=a)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),se})(),me=(()=>{class se{constructor(Te){this._stepper=Te,this.type="submit"}}return se.\u0275fac=function(Te){return new(Te||se)(s.Y36(ee))},se.\u0275dir=s.lG2({type:se,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(Te,S){1&Te&&s.NdJ("click",function(){return S._stepper.next()}),2&Te&&s.Ikx("type",S.type)},inputs:{type:"type"}}),se})(),re=(()=>{class se{constructor(Te){this._stepper=Te,this.type="button"}}return se.\u0275fac=function(Te){return new(Te||se)(s.Y36(ee))},se.\u0275dir=s.lG2({type:se,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(Te,S){1&Te&&s.NdJ("click",function(){return S._stepper.previous()}),2&Te&&s.Ikx("type",S.type)},inputs:{type:"type"}}),se})(),ie=(()=>{class se{}return se.\u0275fac=function(Te){return new(Te||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[e.vT]}),se})()},7851:(We,q,m)=>{"use strict";m.d(q,{HI:()=>B,Hs:()=>ce,Ud:()=>l,VY:()=>V,XJ:()=>u,Xx:()=>i,_0:()=>se,cu:()=>W,nZ:()=>O,rO:()=>Q});var t=m(5017),e=m(5191),g=m(7579),T=m(1135),s=m(9646),x=m(5698),h=m(9300),N=m(2722),d=m(4650),M=m(1281),w=m(445);class L{constructor(){this.expansionModel=new t.Ov(!0)}toggle(C){this.expansionModel.toggle(this._trackByValue(C))}expand(C){this.expansionModel.select(this._trackByValue(C))}collapse(C){this.expansionModel.deselect(this._trackByValue(C))}isExpanded(C){return this.expansionModel.isSelected(this._trackByValue(C))}toggleDescendants(C){this.expansionModel.isSelected(this._trackByValue(C))?this.collapseDescendants(C):this.expandDescendants(C)}collapseAll(){this.expansionModel.clear()}expandDescendants(C){let n=[C];n.push(...this.getDescendants(C)),this.expansionModel.select(...n.map(v=>this._trackByValue(v)))}collapseDescendants(C){let n=[C];n.push(...this.getDescendants(C)),this.expansionModel.deselect(...n.map(v=>this._trackByValue(v)))}_trackByValue(C){return this.trackBy?this.trackBy(C):C}}class V extends L{constructor(C,n){super(),this.getChildren=C,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const C=this.dataNodes.reduce((n,v)=>[...n,...this.getDescendants(v),v],[]);this.expansionModel.select(...C.map(n=>this._trackByValue(n)))}getDescendants(C){const n=[];return this._getDescendants(n,C),n.splice(1)}_getDescendants(C,n){C.push(n);const v=this.getChildren(n);Array.isArray(v)?v.forEach(K=>this._getDescendants(C,K)):(0,e.b)(v)&&v.pipe((0,x.q)(1),(0,h.h)(Boolean)).subscribe(K=>{for(const F of K)this._getDescendants(C,F)})}}const B=new d.OlP("CDK_TREE_NODE_OUTLET_NODE");let W=(()=>{class R{constructor(n,v){this.viewContainer=n,this._node=v}}return R.\u0275fac=function(n){return new(n||R)(d.Y36(d.s_b),d.Y36(B,8))},R.\u0275dir=d.lG2({type:R,selectors:[["","cdkTreeNodeOutlet",""]]}),R})();class Y{constructor(C){this.$implicit=C}}let Q=(()=>{class R{constructor(n){this.template=n}}return R.\u0275fac=function(n){return new(n||R)(d.Y36(d.Rgc))},R.\u0275dir=d.lG2({type:R,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),R})(),se=(()=>{class R{get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}constructor(n,v){this._differs=n,this._changeDetectorRef=v,this._onDestroy=new g.x,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(v=>!v.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,s.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,N.R)(this._onDestroy)).subscribe(v=>this.renderNodeChanges(v)))}renderNodeChanges(n,v=this._dataDiffer,K=this._nodeOutlet.viewContainer,F){const G=v.diff(n);G&&(G.forEachOperation((ye,Ee,pe)=>{if(null==ye.previousIndex)this.insertNode(n[pe],pe,K,F);else if(null==pe)K.remove(Ee),this._levels.delete(ye.item);else{const qe=K.get(Ee);K.move(qe,pe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,v){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(F=>F.when&&F.when(v,n))||this._defaultNodeDef}insertNode(n,v,K,F){const G=this._getNodeDef(n,v),ye=new Y(n);ye.level=this.treeControl.getLevel?this.treeControl.getLevel(n):typeof F<"u"&&this._levels.has(F)?this._levels.get(F)+1:0,this._levels.set(n,ye.level),(K||this._nodeOutlet.viewContainer).createEmbeddedView(G.template,ye,v),ce.mostRecentTreeNode&&(ce.mostRecentTreeNode.data=n)}}return R.\u0275fac=function(n){return new(n||R)(d.Y36(d.ZZ4),d.Y36(d.sBO))},R.\u0275cmp=d.Xpm({type:R,selectors:[["cdk-tree"]],contentQueries:function(n,v,K){if(1&n&&d.Suo(K,Q,5),2&n){let F;d.iGM(F=d.CRH())&&(v._nodeDefs=F)}},viewQuery:function(n,v){if(1&n&&d.Gf(W,7),2&n){let K;d.iGM(K=d.CRH())&&(v._nodeOutlet=K.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,v){1&n&&d.GkF(0,0)},dependencies:[W],encapsulation:2}),R})(),ce=(()=>{class R{get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(n,v){this._elementRef=n,this._tree=v,this._destroyed=new g.x,this._dataChanges=new g.x,R.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function Te(R){let C=R.parentElement;for(;C&&!S(C);)C=C.parentElement;return C?C.classList.contains("cdk-nested-tree-node")?(0,M.su)(C.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){R.mostRecentTreeNode===this&&(R.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return R.mostRecentTreeNode=null,R.\u0275fac=function(n){return new(n||R)(d.Y36(d.SBq),d.Y36(se))},R.\u0275dir=d.lG2({type:R,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,v){2&n&&d.uIk("aria-expanded",v.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),R})();function S(R){const C=R.classList;return!(!C?.contains("cdk-nested-tree-node")&&!C?.contains("cdk-tree"))}let i=(()=>{class R extends ce{constructor(n,v,K){super(n,v),this._differs=K}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,N.R)(this._destroyed)).subscribe(v=>this.updateChildrenNodes(v)),this.nodeOutlet.changes.pipe((0,N.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const v=this._getNodeOutlet();n&&(this._children=n),v&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,v.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(v=>!v._node||v._node===this)}}return R.\u0275fac=function(n){return new(n||R)(d.Y36(d.SBq),d.Y36(se),d.Y36(d.ZZ4))},R.\u0275dir=d.lG2({type:R,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,v,K){if(1&n&&d.Suo(K,W,5),2&n){let F;d.iGM(F=d.CRH())&&(v.nodeOutlet=F)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[d._Bn([{provide:ce,useExisting:R},{provide:B,useExisting:R}]),d.qOj]}),R})();const a=/([A-Za-z%]+)$/;let u=(()=>{class R{get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}constructor(n,v,K,F){this._treeNode=n,this._tree=v,this._element=K,this._dir=F,this._destroyed=new g.x,this.indentUnits="px",this._indent=40,this._setPadding(),F&&F.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,v=null==this._level?n:this._level;return"number"==typeof v?`${v*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const v=this._paddingIndent();if(v!==this._currentPadding||n){const K=this._element.nativeElement,F=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",G="paddingLeft"===F?"paddingRight":"paddingLeft";K.style[F]=v||"",K.style[G]="",this._currentPadding=v}}_setLevelInput(n){this._level=(0,M.su)(n,null),this._setPadding()}_setIndentInput(n){let v=n,K="px";if("string"==typeof n){const F=n.split(a);v=F[0],K=F[1]||K}this.indentUnits=K,this._indent=(0,M.su)(v),this._setPadding()}}return R.\u0275fac=function(n){return new(n||R)(d.Y36(ce),d.Y36(se),d.Y36(d.SBq),d.Y36(w.Is,8))},R.\u0275dir=d.lG2({type:R,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),R})(),l=(()=>{class R{get recursive(){return this._recursive}set recursive(n){this._recursive=(0,M.Ig)(n)}constructor(n,v){this._tree=n,this._treeNode=v,this._recursive=!1}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return R.\u0275fac=function(n){return new(n||R)(d.Y36(se),d.Y36(ce))},R.\u0275dir=d.lG2({type:R,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,v){1&n&&d.NdJ("click",function(F){return v._toggle(F)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),R})(),O=(()=>{class R{}return R.\u0275fac=function(n){return new(n||R)},R.\u0275mod=d.oAB({type:R}),R.\u0275inj=d.cJS({}),R})()},6895:(We,q,m)=>{"use strict";m.d(q,{Do:()=>X,ED:()=>ta,EM:()=>Er,HT:()=>T,JF:()=>ur,JJ:()=>Ro,K0:()=>x,Mx:()=>Qi,NF:()=>Br,Nd:()=>Ra,O5:()=>gi,OU:()=>ro,Ov:()=>Ln,PC:()=>jt,PM:()=>sa,RF:()=>oa,S$:()=>W,Ts:()=>zr,V_:()=>d,Ye:()=>ee,b0:()=>Q,bD:()=>Da,ez:()=>No,gd:()=>ia,i8:()=>Gn,mk:()=>be,n9:()=>Aa,q:()=>g,rS:()=>Un,sg:()=>bi,tP:()=>oi,uU:()=>jn,w_:()=>s});var t=m(4650);let e=null;function g(){return e}function T(Be){e||(e=Be)}class s{}const x=new t.OlP("DocumentToken");let h=(()=>{class Be{historyGo(te){throw new Error("Not implemented")}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275prov=t.Yz7({token:Be,factory:function(){return function N(){return(0,t.LFG)(M)}()},providedIn:"platform"}),Be})();const d=new t.OlP("Location Initialized");let M=(()=>{class Be extends h{constructor(te){super(),this._doc=te,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(te){const De=g().getGlobalEventTarget(this._doc,"window");return De.addEventListener("popstate",te,!1),()=>De.removeEventListener("popstate",te)}onHashChange(te){const De=g().getGlobalEventTarget(this._doc,"window");return De.addEventListener("hashchange",te,!1),()=>De.removeEventListener("hashchange",te)}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(te){this._location.pathname=te}pushState(te,De,nt){w()?this._history.pushState(te,De,nt):this._location.hash=nt}replaceState(te,De,nt){w()?this._history.replaceState(te,De,nt):this._location.hash=nt}forward(){this._history.forward()}back(){this._history.back()}historyGo(te=0){this._history.go(te)}getState(){return this._history.state}}return Be.\u0275fac=function(te){return new(te||Be)(t.LFG(x))},Be.\u0275prov=t.Yz7({token:Be,factory:function(){return function L(){return new M((0,t.LFG)(x))}()},providedIn:"platform"}),Be})();function w(){return!!window.history.pushState}function k(Be,ne){if(0==Be.length)return ne;if(0==ne.length)return Be;let te=0;return Be.endsWith("/")&&te++,ne.startsWith("/")&&te++,2==te?Be+ne.substring(1):1==te?Be+ne:Be+"/"+ne}function V(Be){const ne=Be.match(/#|\?|$/),te=ne&&ne.index||Be.length;return Be.slice(0,te-("/"===Be[te-1]?1:0))+Be.slice(te)}function B(Be){return Be&&"?"!==Be[0]?"?"+Be:Be}let W=(()=>{class Be{historyGo(te){throw new Error("Not implemented")}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275prov=t.Yz7({token:Be,factory:function(){return(0,t.f3M)(Q)},providedIn:"root"}),Be})();const Y=new t.OlP("appBaseHref");let Q=(()=>{class Be extends W{constructor(te,De){super(),this._platformLocation=te,this._removeListenerFns=[],this._baseHref=De??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(x).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}prepareExternalUrl(te){return k(this._baseHref,te)}path(te=!1){const De=this._platformLocation.pathname+B(this._platformLocation.search),nt=this._platformLocation.hash;return nt&&te?`${De}${nt}`:De}pushState(te,De,nt,we){const Rt=this.prepareExternalUrl(nt+B(we));this._platformLocation.pushState(te,De,Rt)}replaceState(te,De,nt,we){const Rt=this.prepareExternalUrl(nt+B(we));this._platformLocation.replaceState(te,De,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return Be.\u0275fac=function(te){return new(te||Be)(t.LFG(h),t.LFG(Y,8))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),X=(()=>{class Be extends W{constructor(te,De){super(),this._platformLocation=te,this._baseHref="",this._removeListenerFns=[],null!=De&&(this._baseHref=De)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}path(te=!1){let De=this._platformLocation.hash;return null==De&&(De="#"),De.length>0?De.substring(1):De}prepareExternalUrl(te){const De=k(this._baseHref,te);return De.length>0?"#"+De:De}pushState(te,De,nt,we){let Rt=this.prepareExternalUrl(nt+B(we));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.pushState(te,De,Rt)}replaceState(te,De,nt,we){let Rt=this.prepareExternalUrl(nt+B(we));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.replaceState(te,De,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return Be.\u0275fac=function(te){return new(te||Be)(t.LFG(h),t.LFG(Y,8))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),ee=(()=>{class Be{constructor(te){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=te;const De=this._locationStrategy.getBaseHref();this._basePath=function se(Be){if(new RegExp("^(https?:)?//").test(Be)){const[,te]=Be.split(/\/\/[^\/]+/);return te}return Be}(V(ie(De))),this._locationStrategy.onPopState(nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(te=!1){return this.normalize(this._locationStrategy.path(te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(te,De=""){return this.path()==this.normalize(te+B(De))}normalize(te){return Be.stripTrailingSlash(function re(Be,ne){if(!Be||!ne.startsWith(Be))return ne;const te=ne.substring(Be.length);return""===te||["/",";","?","#"].includes(te[0])?te:ne}(this._basePath,ie(te)))}prepareExternalUrl(te){return te&&"/"!==te[0]&&(te="/"+te),this._locationStrategy.prepareExternalUrl(te)}go(te,De="",nt=null){this._locationStrategy.pushState(nt,"",te,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+B(De)),nt)}replaceState(te,De="",nt=null){this._locationStrategy.replaceState(nt,"",te,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+B(De)),nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(te=0){this._locationStrategy.historyGo?.(te)}onUrlChange(te){return this._urlChangeListeners.push(te),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(De=>{this._notifyUrlChangeListeners(De.url,De.state)})),()=>{const De=this._urlChangeListeners.indexOf(te);this._urlChangeListeners.splice(De,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(te="",De){this._urlChangeListeners.forEach(nt=>nt(te,De))}subscribe(te,De,nt){return this._subject.subscribe({next:te,error:De,complete:nt})}}return Be.normalizeQueryParams=B,Be.joinWithSlash=k,Be.stripTrailingSlash=V,Be.\u0275fac=function(te){return new(te||Be)(t.LFG(W))},Be.\u0275prov=t.Yz7({token:Be,factory:function(){return function me(){return new ee((0,t.LFG)(W))}()},providedIn:"root"}),Be})();function ie(Be){return Be.replace(/\/index.html$/,"")}var Te=(()=>((Te=Te||{})[Te.Decimal=0]="Decimal",Te[Te.Percent=1]="Percent",Te[Te.Currency=2]="Currency",Te[Te.Scientific=3]="Scientific",Te))(),i=(()=>((i=i||{})[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i))(),a=(()=>((a=a||{})[a.Narrow=0]="Narrow",a[a.Abbreviated=1]="Abbreviated",a[a.Wide=2]="Wide",a[a.Short=3]="Short",a))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),l=(()=>((l=l||{})[l.Decimal=0]="Decimal",l[l.Group=1]="Group",l[l.List=2]="List",l[l.PercentSign=3]="PercentSign",l[l.PlusSign=4]="PlusSign",l[l.MinusSign=5]="MinusSign",l[l.Exponential=6]="Exponential",l[l.SuperscriptingExponent=7]="SuperscriptingExponent",l[l.PerMille=8]="PerMille",l[l.Infinity=9]="Infinity",l[l.NaN=10]="NaN",l[l.TimeSeparator=11]="TimeSeparator",l[l.CurrencyDecimal=12]="CurrencyDecimal",l[l.CurrencyGroup=13]="CurrencyGroup",l))();function G(Be,ne){return ge((0,t.cg1)(Be)[t.wAp.DateFormat],ne)}function ye(Be,ne){return ge((0,t.cg1)(Be)[t.wAp.TimeFormat],ne)}function Ee(Be,ne){return ge((0,t.cg1)(Be)[t.wAp.DateTimeFormat],ne)}function pe(Be,ne){const te=(0,t.cg1)(Be),De=te[t.wAp.NumberSymbols][ne];if(typeof De>"u"){if(ne===l.CurrencyDecimal)return te[t.wAp.NumberSymbols][l.Decimal];if(ne===l.CurrencyGroup)return te[t.wAp.NumberSymbols][l.Group]}return De}function ze(Be){if(!Be[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Be[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ge(Be,ne){for(let te=ne;te>-1;te--)if(typeof Be[te]<"u")return Be[te];throw new Error("Locale data API: locale data undefined")}function Ue(Be){const[ne,te]=Be.split(":");return{hours:+ne,minutes:+te}}const rt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qe={},ct=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Gt=(()=>((Gt=Gt||{})[Gt.Short=0]="Short",Gt[Gt.ShortGMT=1]="ShortGMT",Gt[Gt.Long=2]="Long",Gt[Gt.Extended=3]="Extended",Gt))(),ut=(()=>((ut=ut||{})[ut.FullYear=0]="FullYear",ut[ut.Month=1]="Month",ut[ut.Date=2]="Date",ut[ut.Hours=3]="Hours",ut[ut.Minutes=4]="Minutes",ut[ut.Seconds=5]="Seconds",ut[ut.FractionalSeconds=6]="FractionalSeconds",ut[ut.Day=7]="Day",ut))(),Ze=(()=>((Ze=Ze||{})[Ze.DayPeriods=0]="DayPeriods",Ze[Ze.Days=1]="Days",Ze[Ze.Months=2]="Months",Ze[Ze.Eras=3]="Eras",Ze))();function xt(Be,ne,te,De){let nt=function ot(Be){if(St(Be))return Be;if("number"==typeof Be&&!isNaN(Be))return new Date(Be);if("string"==typeof Be){if(Be=Be.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Be)){const[nt,we=1,Rt=1]=Be.split("-").map(ii=>+ii);return Me(nt,we-1,Rt)}const te=parseFloat(Be);if(!isNaN(Be-te))return new Date(te);let De;if(De=Be.match(rt))return function ft(Be){const ne=new Date(0);let te=0,De=0;const nt=Be[8]?ne.setUTCFullYear:ne.setFullYear,we=Be[8]?ne.setUTCHours:ne.setHours;Be[9]&&(te=Number(Be[9]+Be[10]),De=Number(Be[9]+Be[11])),nt.call(ne,Number(Be[1]),Number(Be[2])-1,Number(Be[3]));const Rt=Number(Be[4]||0)-te,ii=Number(Be[5]||0)-De,qt=Number(Be[6]||0),_i=Math.floor(1e3*parseFloat("0."+(Be[7]||0)));return we.call(ne,Rt,ii,qt,_i),ne}(De)}const ne=new Date(Be);if(!St(ne))throw new Error(`Unable to convert "${Be}" into a date`);return ne}(Be);ne=$e(te,ne)||ne;let ii,Rt=[];for(;ne;){if(ii=ct.exec(ne),!ii){Rt.push(ne);break}{Rt=Rt.concat(ii.slice(1));const yi=Rt.pop();if(!yi)break;ne=yi}}let qt=nt.getTimezoneOffset();De&&(qt=zt(De,qt),nt=function pt(Be,ne,te){const De=te?-1:1,nt=Be.getTimezoneOffset();return function ni(Be,ne){return(Be=new Date(Be.getTime())).setMinutes(Be.getMinutes()+ne),Be}(Be,De*(zt(ne,nt)-nt))}(nt,De,!0));let _i="";return Rt.forEach(yi=>{const Oi=function ei(Be){if(Xe[Be])return Xe[Be];let ne;switch(Be){case"G":case"GG":case"GGG":ne=je(Ze.Eras,a.Abbreviated);break;case"GGGG":ne=je(Ze.Eras,a.Wide);break;case"GGGGG":ne=je(Ze.Eras,a.Narrow);break;case"y":ne=Et(ut.FullYear,1,0,!1,!0);break;case"yy":ne=Et(ut.FullYear,2,0,!0,!0);break;case"yyy":ne=Et(ut.FullYear,3,0,!1,!0);break;case"yyyy":ne=Et(ut.FullYear,4,0,!1,!0);break;case"Y":ne=Ie(1);break;case"YY":ne=Ie(2,!0);break;case"YYY":ne=Ie(3);break;case"YYYY":ne=Ie(4);break;case"M":case"L":ne=Et(ut.Month,1,1);break;case"MM":case"LL":ne=Et(ut.Month,2,1);break;case"MMM":ne=je(Ze.Months,a.Abbreviated);break;case"MMMM":ne=je(Ze.Months,a.Wide);break;case"MMMMM":ne=je(Ze.Months,a.Narrow);break;case"LLL":ne=je(Ze.Months,a.Abbreviated,i.Standalone);break;case"LLLL":ne=je(Ze.Months,a.Wide,i.Standalone);break;case"LLLLL":ne=je(Ze.Months,a.Narrow,i.Standalone);break;case"w":ne=ue(1);break;case"ww":ne=ue(2);break;case"W":ne=ue(1,!0);break;case"d":ne=Et(ut.Date,1);break;case"dd":ne=Et(ut.Date,2);break;case"c":case"cc":ne=Et(ut.Day,1);break;case"ccc":ne=je(Ze.Days,a.Abbreviated,i.Standalone);break;case"cccc":ne=je(Ze.Days,a.Wide,i.Standalone);break;case"ccccc":ne=je(Ze.Days,a.Narrow,i.Standalone);break;case"cccccc":ne=je(Ze.Days,a.Short,i.Standalone);break;case"E":case"EE":case"EEE":ne=je(Ze.Days,a.Abbreviated);break;case"EEEE":ne=je(Ze.Days,a.Wide);break;case"EEEEE":ne=je(Ze.Days,a.Narrow);break;case"EEEEEE":ne=je(Ze.Days,a.Short);break;case"a":case"aa":case"aaa":ne=je(Ze.DayPeriods,a.Abbreviated);break;case"aaaa":ne=je(Ze.DayPeriods,a.Wide);break;case"aaaaa":ne=je(Ze.DayPeriods,a.Narrow);break;case"b":case"bb":case"bbb":ne=je(Ze.DayPeriods,a.Abbreviated,i.Standalone,!0);break;case"bbbb":ne=je(Ze.DayPeriods,a.Wide,i.Standalone,!0);break;case"bbbbb":ne=je(Ze.DayPeriods,a.Narrow,i.Standalone,!0);break;case"B":case"BB":case"BBB":ne=je(Ze.DayPeriods,a.Abbreviated,i.Format,!0);break;case"BBBB":ne=je(Ze.DayPeriods,a.Wide,i.Format,!0);break;case"BBBBB":ne=je(Ze.DayPeriods,a.Narrow,i.Format,!0);break;case"h":ne=Et(ut.Hours,1,-12);break;case"hh":ne=Et(ut.Hours,2,-12);break;case"H":ne=Et(ut.Hours,1);break;case"HH":ne=Et(ut.Hours,2);break;case"m":ne=Et(ut.Minutes,1);break;case"mm":ne=Et(ut.Minutes,2);break;case"s":ne=Et(ut.Seconds,1);break;case"ss":ne=Et(ut.Seconds,2);break;case"S":ne=Et(ut.FractionalSeconds,1);break;case"SS":ne=Et(ut.FractionalSeconds,2);break;case"SSS":ne=Et(ut.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=Ct(Gt.Short);break;case"ZZZZZ":ne=Ct(Gt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=Ct(Gt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=Ct(Gt.Long);break;default:return null}return Xe[Be]=ne,ne}(yi);_i+=Oi?Oi(nt,te,qt):"''"===yi?"'":yi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),_i}function Me(Be,ne,te){const De=new Date(0);return De.setFullYear(Be,ne,te),De.setHours(0,0,0),De}function $e(Be,ne){const te=function O(Be){return(0,t.cg1)(Be)[t.wAp.LocaleId]}(Be);if(Qe[te]=Qe[te]||{},Qe[te][ne])return Qe[te][ne];let De="";switch(ne){case"shortDate":De=G(Be,u.Short);break;case"mediumDate":De=G(Be,u.Medium);break;case"longDate":De=G(Be,u.Long);break;case"fullDate":De=G(Be,u.Full);break;case"shortTime":De=ye(Be,u.Short);break;case"mediumTime":De=ye(Be,u.Medium);break;case"longTime":De=ye(Be,u.Long);break;case"fullTime":De=ye(Be,u.Full);break;case"short":const nt=$e(Be,"shortTime"),we=$e(Be,"shortDate");De=Pe(Ee(Be,u.Short),[nt,we]);break;case"medium":const Rt=$e(Be,"mediumTime"),ii=$e(Be,"mediumDate");De=Pe(Ee(Be,u.Medium),[Rt,ii]);break;case"long":const qt=$e(Be,"longTime"),_i=$e(Be,"longDate");De=Pe(Ee(Be,u.Long),[qt,_i]);break;case"full":const yi=$e(Be,"fullTime"),Oi=$e(Be,"fullDate");De=Pe(Ee(Be,u.Full),[yi,Oi])}return De&&(Qe[te][ne]=De),De}function Pe(Be,ne){return ne&&(Be=Be.replace(/\{([^}]+)}/g,function(te,De){return null!=ne&&De in ne?ne[De]:te})),Be}function J(Be,ne,te="-",De,nt){let we="";(Be<0||nt&&Be<=0)&&(nt?Be=1-Be:(Be=-Be,we=te));let Rt=String(Be);for(;Rt.length<ne;)Rt="0"+Rt;return De&&(Rt=Rt.slice(Rt.length-ne)),we+Rt}function Et(Be,ne,te=0,De=!1,nt=!1){return function(we,Rt){let ii=function at(Be,ne){switch(Be){case ut.FullYear:return ne.getFullYear();case ut.Month:return ne.getMonth();case ut.Date:return ne.getDate();case ut.Hours:return ne.getHours();case ut.Minutes:return ne.getMinutes();case ut.Seconds:return ne.getSeconds();case ut.FractionalSeconds:return ne.getMilliseconds();case ut.Day:return ne.getDay();default:throw new Error(`Unknown DateType value "${Be}".`)}}(Be,we);if((te>0||ii>-te)&&(ii+=te),Be===ut.Hours)0===ii&&-12===te&&(ii=12);else if(Be===ut.FractionalSeconds)return function mt(Be,ne){return J(Be,3).substring(0,ne)}(ii,ne);const qt=pe(Rt,l.MinusSign);return J(ii,ne,qt,De,nt)}}function je(Be,ne,te=i.Format,De=!1){return function(nt,we){return function Ht(Be,ne,te,De,nt,we){switch(te){case Ze.Months:return function n(Be,ne,te){const De=(0,t.cg1)(Be),we=ge([De[t.wAp.MonthsFormat],De[t.wAp.MonthsStandalone]],ne);return ge(we,te)}(ne,nt,De)[Be.getMonth()];case Ze.Days:return function C(Be,ne,te){const De=(0,t.cg1)(Be),we=ge([De[t.wAp.DaysFormat],De[t.wAp.DaysStandalone]],ne);return ge(we,te)}(ne,nt,De)[Be.getDay()];case Ze.DayPeriods:const Rt=Be.getHours(),ii=Be.getMinutes();if(we){const _i=function Oe(Be){const ne=(0,t.cg1)(Be);return ze(ne),(ne[t.wAp.ExtraData][2]||[]).map(De=>"string"==typeof De?Ue(De):[Ue(De[0]),Ue(De[1])])}(ne),yi=function he(Be,ne,te){const De=(0,t.cg1)(Be);ze(De);const we=ge([De[t.wAp.ExtraData][0],De[t.wAp.ExtraData][1]],ne)||[];return ge(we,te)||[]}(ne,nt,De),Oi=_i.findIndex(qi=>{if(Array.isArray(qi)){const[tn,dn]=qi,da=Rt>=tn.hours&&ii>=tn.minutes,pa=Rt<dn.hours||Rt===dn.hours&&ii<dn.minutes;if(tn.hours<dn.hours){if(da&&pa)return!0}else if(da||pa)return!0}else if(qi.hours===Rt&&qi.minutes===ii)return!0;return!1});if(-1!==Oi)return yi[Oi]}return function R(Be,ne,te){const De=(0,t.cg1)(Be),we=ge([De[t.wAp.DayPeriodsFormat],De[t.wAp.DayPeriodsStandalone]],ne);return ge(we,te)}(ne,nt,De)[Rt<12?0:1];case Ze.Eras:return function v(Be,ne){return ge((0,t.cg1)(Be)[t.wAp.Eras],ne)}(ne,De)[Be.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${te}`)}}(nt,we,Be,ne,te,De)}}function Ct(Be){return function(ne,te,De){const nt=-1*De,we=pe(te,l.MinusSign),Rt=nt>0?Math.floor(nt/60):Math.ceil(nt/60);switch(Be){case Gt.Short:return(nt>=0?"+":"")+J(Rt,2,we)+J(Math.abs(nt%60),2,we);case Gt.ShortGMT:return"GMT"+(nt>=0?"+":"")+J(Rt,1,we);case Gt.Long:return"GMT"+(nt>=0?"+":"")+J(Rt,2,we)+":"+J(Math.abs(nt%60),2,we);case Gt.Extended:return 0===De?"Z":(nt>=0?"+":"")+J(Rt,2,we)+":"+J(Math.abs(nt%60),2,we);default:throw new Error(`Unknown zone width "${Be}"`)}}}const Nt=0,Bt=4;function $(Be){return Me(Be.getFullYear(),Be.getMonth(),Be.getDate()+(Bt-Be.getDay()))}function ue(Be,ne=!1){return function(te,De){let nt;if(ne){const we=new Date(te.getFullYear(),te.getMonth(),1).getDay()-1,Rt=te.getDate();nt=1+Math.floor((Rt+we)/7)}else{const we=$(te),Rt=function Ne(Be){const ne=Me(Be,Nt,1).getDay();return Me(Be,0,1+(ne<=Bt?Bt:Bt+7)-ne)}(we.getFullYear()),ii=we.getTime()-Rt.getTime();nt=1+Math.round(ii/6048e5)}return J(nt,Be,pe(De,l.MinusSign))}}function Ie(Be,ne=!1){return function(te,De){return J($(te).getFullYear(),Be,pe(De,l.MinusSign),ne)}}const Xe={};function zt(Be,ne){Be=Be.replace(/:/g,"");const te=Date.parse("Jan 01, 1970 00:00:00 "+Be)/6e4;return isNaN(te)?ne:te}function St(Be){return Be instanceof Date&&!isNaN(Be.valueOf())}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,tt=22,_t=".",vt="0",Ve=";",Tt=",",Lt="#";function si(Be){const ne=parseInt(Be);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+Be);return ne}function Qi(Be,ne){ne=encodeURIComponent(ne);for(const te of Be.split(";")){const De=te.indexOf("="),[nt,we]=-1==De?[te,""]:[te.slice(0,De),te.slice(De+1)];if(nt.trim()===ne)return decodeURIComponent(we)}return null}const Yt=/\s+/,Xt=[];let be=(()=>{class Be{constructor(te,De,nt,we){this._iterableDiffers=te,this._keyValueDiffers=De,this._ngEl=nt,this._renderer=we,this.initialClasses=Xt,this.stateMap=new Map}set klass(te){this.initialClasses=null!=te?te.trim().split(Yt):Xt}set ngClass(te){this.rawClass="string"==typeof te?te.trim().split(Yt):te}ngDoCheck(){for(const De of this.initialClasses)this._updateState(De,!0);const te=this.rawClass;if(Array.isArray(te)||te instanceof Set)for(const De of te)this._updateState(De,!0);else if(null!=te)for(const De of Object.keys(te))this._updateState(De,Boolean(te[De]));this._applyStateDiff()}_updateState(te,De){const nt=this.stateMap.get(te);void 0!==nt?(nt.enabled!==De&&(nt.changed=!0,nt.enabled=De),nt.touched=!0):this.stateMap.set(te,{enabled:De,changed:!0,touched:!0})}_applyStateDiff(){for(const te of this.stateMap){const De=te[0],nt=te[1];nt.changed?(this._toggleClass(De,nt.enabled),nt.changed=!1):nt.touched||(nt.enabled&&this._toggleClass(De,!1),this.stateMap.delete(De)),nt.touched=!1}}_toggleClass(te,De){(te=te.trim()).length>0&&te.split(Yt).forEach(nt=>{De?this._renderer.addClass(this._ngEl.nativeElement,nt):this._renderer.removeClass(this._ngEl.nativeElement,nt)})}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Be})();class Ot{constructor(ne,te,De,nt){this.$implicit=ne,this.ngForOf=te,this.index=De,this.count=nt}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 bi=(()=>{class Be{set ngForOf(te){this._ngForOf=te,this._ngForOfDirty=!0}set ngForTrackBy(te){this._trackByFn=te}get ngForTrackBy(){return this._trackByFn}constructor(te,De,nt){this._viewContainer=te,this._template=De,this._differs=nt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(te){te&&(this._template=te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const te=this._ngForOf;!this._differ&&te&&(this._differ=this._differs.find(te).create(this.ngForTrackBy))}if(this._differ){const te=this._differ.diff(this._ngForOf);te&&this._applyChanges(te)}}_applyChanges(te){const De=this._viewContainer;te.forEachOperation((nt,we,Rt)=>{if(null==nt.previousIndex)De.createEmbeddedView(this._template,new Ot(nt.item,this._ngForOf,-1,-1),null===Rt?void 0:Rt);else if(null==Rt)De.remove(null===we?void 0:we);else if(null!==we){const ii=De.get(we);De.move(ii,Rt),li(ii,nt)}});for(let nt=0,we=De.length;nt<we;nt++){const ii=De.get(nt).context;ii.index=nt,ii.count=we,ii.ngForOf=this._ngForOf}te.forEachIdentityChange(nt=>{li(De.get(nt.currentIndex),nt)})}static ngTemplateContextGuard(te,De){return!0}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Be})();function li(Be,ne){Be.context.$implicit=ne.item}let gi=(()=>{class Be{constructor(te,De){this._viewContainer=te,this._context=new Zi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=De}set ngIf(te){this._context.$implicit=this._context.ngIf=te,this._updateView()}set ngIfThen(te){Wn("ngIfThen",te),this._thenTemplateRef=te,this._thenViewRef=null,this._updateView()}set ngIfElse(te){Wn("ngIfElse",te),this._elseTemplateRef=te,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(te,De){return!0}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.s_b),t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Be})();class Zi{constructor(){this.$implicit=null,this.ngIf=null}}function Wn(Be,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${Be} must be a TemplateRef, but received '${(0,t.AaK)(ne)}'.`)}class An{constructor(ne,te){this._viewContainerRef=ne,this._templateRef=te,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ne){ne&&!this._created?this.create():!ne&&this._created&&this.destroy()}}let oa=(()=>{class Be{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(te){this._ngSwitch=te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(te){this._defaultViews.push(te)}_matchCase(te){const De=te==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||De,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),De}_updateDefaultCases(te){if(this._defaultViews.length>0&&te!==this._defaultUsed){this._defaultUsed=te;for(const De of this._defaultViews)De.enforceState(te)}}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),Be})(),Aa=(()=>{class Be{constructor(te,De,nt){this.ngSwitch=nt,nt._addCase(),this._view=new An(te,De)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(oa,9))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Be})(),ta=(()=>{class Be{constructor(te,De,nt){nt._addDefault(new An(te,De))}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(oa,9))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Be})(),jt=(()=>{class Be{constructor(te,De,nt){this._ngEl=te,this._differs=De,this._renderer=nt,this._ngStyle=null,this._differ=null}set ngStyle(te){this._ngStyle=te,!this._differ&&te&&(this._differ=this._differs.find(te).create())}ngDoCheck(){if(this._differ){const te=this._differ.diff(this._ngStyle);te&&this._applyChanges(te)}}_setStyle(te,De){const[nt,we]=te.split("."),Rt=-1===nt.indexOf("-")?void 0:t.JOm.DashCase;null!=De?this._renderer.setStyle(this._ngEl.nativeElement,nt,we?`${De}${we}`:De,Rt):this._renderer.removeStyle(this._ngEl.nativeElement,nt,Rt)}_applyChanges(te){te.forEachRemovedItem(De=>this._setStyle(De.key,null)),te.forEachAddedItem(De=>this._setStyle(De.key,De.currentValue)),te.forEachChangedItem(De=>this._setStyle(De.key,De.currentValue))}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Be})(),oi=(()=>{class Be{constructor(te){this._viewContainerRef=te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(te){if(te.ngTemplateOutlet||te.ngTemplateOutletInjector){const De=this._viewContainerRef;if(this._viewRef&&De.remove(De.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:nt,ngTemplateOutletContext:we,ngTemplateOutletInjector:Rt}=this;this._viewRef=De.createEmbeddedView(nt,we,Rt?{injector:Rt}:void 0)}else this._viewRef=null}else this._viewRef&&te.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.s_b))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),Be})();function Vi(Be,ne){return new t.vHH(2100,!1)}class ln{createSubscription(ne,te){return ne.subscribe({next:te,error:De=>{throw De}})}dispose(ne){ne.unsubscribe()}}class Yn{createSubscription(ne,te){return ne.then(te,De=>{throw De})}dispose(ne){}}const Bn=new Yn,_a=new ln;let Ln=(()=>{class Be{constructor(te){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(te){return this._obj?te!==this._obj?(this._dispose(),this.transform(te)):this._latestValue:(te&&this._subscribe(te),this._latestValue)}_subscribe(te){this._obj=te,this._strategy=this._selectStrategy(te),this._subscription=this._strategy.createSubscription(te,De=>this._updateLatestValue(te,De))}_selectStrategy(te){if((0,t.QGY)(te))return Bn;if((0,t.F4k)(te))return _a;throw Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(te,De){te===this._obj&&(this._latestValue=De,this._ref.markForCheck())}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.sBO,16))},Be.\u0275pipe=t.Yjl({name:"async",type:Be,pure:!1,standalone:!0}),Be})(),Gn=(()=>{class Be{transform(te){if(null==te)return null;if("string"!=typeof te)throw Vi();return te.toLowerCase()}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275pipe=t.Yjl({name:"lowercase",type:Be,pure:!0,standalone:!0}),Be})();const Co=/(?:[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 Un=(()=>{class Be{transform(te){if(null==te)return null;if("string"!=typeof te)throw Vi();return te.replace(Co,De=>De[0].toUpperCase()+De.slice(1).toLowerCase())}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275pipe=t.Yjl({name:"titlecase",type:Be,pure:!0,standalone:!0}),Be})(),ia=(()=>{class Be{transform(te){if(null==te)return null;if("string"!=typeof te)throw Vi();return te.toUpperCase()}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275pipe=t.Yjl({name:"uppercase",type:Be,pure:!0,standalone:!0}),Be})();const Fr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Tr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let jn=(()=>{class Be{constructor(te,De,nt){this.locale=te,this.defaultTimezone=De,this.defaultOptions=nt}transform(te,De,nt,we){if(null==te||""===te||te!=te)return null;try{return xt(te,De??this.defaultOptions?.dateFormat??"mediumDate",we||this.locale,nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Rt){throw Vi()}}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.soG,16),t.Y36(Fr,24),t.Y36(Tr,24))},Be.\u0275pipe=t.Yjl({name:"date",type:Be,pure:!0,standalone:!0}),Be})(),zr=(()=>{class Be{transform(te){return JSON.stringify(te,null,2)}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275pipe=t.Yjl({name:"json",type:Be,pure:!1,standalone:!0}),Be})(),Ra=(()=>{class Be{constructor(te){this.differs=te,this.keyValues=[],this.compareFn=Ma}transform(te,De=Ma){if(!te||!(te instanceof Map)&&"object"!=typeof te)return null;this.differ||(this.differ=this.differs.find(te).create());const nt=this.differ.diff(te),we=De!==this.compareFn;return nt&&(this.keyValues=[],nt.forEachItem(Rt=>{this.keyValues.push(function qr(Be,ne){return{key:Be,value:ne}}(Rt.key,Rt.currentValue))})),(nt||we)&&(this.keyValues.sort(De),this.compareFn=De),this.keyValues}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.aQg,16))},Be.\u0275pipe=t.Yjl({name:"keyvalue",type:Be,pure:!1,standalone:!0}),Be})();function Ma(Be,ne){const te=Be.key,De=ne.key;if(te===De)return 0;if(void 0===te)return 1;if(void 0===De)return-1;if(null===te)return 1;if(null===De)return-1;if("string"==typeof te&&"string"==typeof De)return te<De?-1:1;if("number"==typeof te&&"number"==typeof De)return te-De;if("boolean"==typeof te&&"boolean"==typeof De)return te<De?-1:1;const nt=String(te),we=String(De);return nt==we?0:nt<we?-1:1}let Ro=(()=>{class Be{constructor(te){this._locale=te}transform(te,De,nt){if(!function _r(Be){return!(null==Be||""===Be||Be!=Be)}(te))return null;nt=nt||this._locale;try{return function et(Be,ne,te){return function Hi(Be,ne,te,De,nt,we,Rt=!1){let ii="",qt=!1;if(isFinite(Be)){let _i=function Mt(Be){let De,nt,we,Rt,ii,ne=Math.abs(Be)+"",te=0;for((nt=ne.indexOf(_t))>-1&&(ne=ne.replace(_t,"")),(we=ne.search(/e/i))>0?(nt<0&&(nt=we),nt+=+ne.slice(we+1),ne=ne.substring(0,we)):nt<0&&(nt=ne.length),we=0;ne.charAt(we)===vt;we++);if(we===(ii=ne.length))De=[0],nt=1;else{for(ii--;ne.charAt(ii)===vt;)ii--;for(nt-=we,De=[],Rt=0;we<=ii;we++,Rt++)De[Rt]=Number(ne.charAt(we))}return nt>tt&&(De=De.splice(0,tt-1),te=nt-1,nt=1),{digits:De,exponent:te,integerLen:nt}}(Be);Rt&&(_i=function Le(Be){if(0===Be.digits[0])return Be;const ne=Be.digits.length-Be.integerLen;return Be.exponent?Be.exponent+=2:(0===ne?Be.digits.push(0,0):1===ne&&Be.digits.push(0),Be.integerLen+=2),Be}(_i));let yi=ne.minInt,Oi=ne.minFrac,qi=ne.maxFrac;if(we){const ha=we.match(gt);if(null===ha)throw new Error(`${we} is not a valid digit info`);const ua=ha[1],Qn=ha[3],ka=ha[5];null!=ua&&(yi=si(ua)),null!=Qn&&(Oi=si(Qn)),null!=ka?qi=si(ka):null!=Qn&&Oi>qi&&(qi=Oi)}!function Wt(Be,ne,te){if(ne>te)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${te}).`);let De=Be.digits,nt=De.length-Be.integerLen;const we=Math.min(Math.max(ne,nt),te);let Rt=we+Be.integerLen,ii=De[Rt];if(Rt>0){De.splice(Math.max(Be.integerLen,Rt));for(let Oi=Rt;Oi<De.length;Oi++)De[Oi]=0}else{nt=Math.max(0,nt),Be.integerLen=1,De.length=Math.max(1,Rt=we+1),De[0]=0;for(let Oi=1;Oi<Rt;Oi++)De[Oi]=0}if(ii>=5)if(Rt-1<0){for(let Oi=0;Oi>Rt;Oi--)De.unshift(0),Be.integerLen++;De.unshift(1),Be.integerLen++}else De[Rt-1]++;for(;nt<Math.max(0,we);nt++)De.push(0);let qt=0!==we;const _i=ne+Be.integerLen,yi=De.reduceRight(function(Oi,qi,tn,dn){return dn[tn]=(qi+=Oi)<10?qi:qi-10,qt&&(0===dn[tn]&&tn>=_i?dn.pop():qt=!1),qi>=10?1:0},0);yi&&(De.unshift(yi),Be.integerLen++)}(_i,Oi,qi);let tn=_i.digits,dn=_i.integerLen;const da=_i.exponent;let pa=[];for(qt=tn.every(ha=>!ha);dn<yi;dn++)tn.unshift(0);for(;dn<0;dn++)tn.unshift(0);dn>0?pa=tn.splice(dn,tn.length):(pa=tn,tn=[0]);const Fa=[];for(tn.length>=ne.lgSize&&Fa.unshift(tn.splice(-ne.lgSize,tn.length).join(""));tn.length>ne.gSize;)Fa.unshift(tn.splice(-ne.gSize,tn.length).join(""));tn.length&&Fa.unshift(tn.join("")),ii=Fa.join(pe(te,De)),pa.length&&(ii+=pe(te,nt)+pa.join("")),da&&(ii+=pe(te,l.Exponential)+"+"+da)}else ii=pe(te,l.Infinity);return ii=Be<0&&!qt?ne.negPre+ii+ne.negSuf:ne.posPre+ii+ne.posSuf,ii}(Be,function It(Be,ne="-"){const te={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},De=Be.split(Ve),nt=De[0],we=De[1],Rt=-1!==nt.indexOf(_t)?nt.split(_t):[nt.substring(0,nt.lastIndexOf(vt)+1),nt.substring(nt.lastIndexOf(vt)+1)],ii=Rt[0],qt=Rt[1]||"";te.posPre=ii.substring(0,ii.indexOf(Lt));for(let yi=0;yi<qt.length;yi++){const Oi=qt.charAt(yi);Oi===vt?te.minFrac=te.maxFrac=yi+1:Oi===Lt?te.maxFrac=yi+1:te.posSuf+=Oi}const _i=ii.split(Tt);if(te.gSize=_i[1]?_i[1].length:0,te.lgSize=_i[2]||_i[1]?(_i[2]||_i[1]).length:0,we){const yi=nt.length-te.posPre.length-te.posSuf.length,Oi=we.indexOf(Lt);te.negPre=we.substring(0,Oi).replace(/'/g,""),te.negSuf=we.slice(Oi+yi).replace(/'/g,"")}else te.negPre=ne+te.posPre,te.negSuf=te.posSuf;return te}(function qe(Be,ne){return(0,t.cg1)(Be)[t.wAp.NumberFormats][ne]}(ne,Te.Decimal),pe(ne,l.MinusSign)),ne,l.Group,l.Decimal,te)}(function dr(Be){if("string"==typeof Be&&!isNaN(Number(Be)-parseFloat(Be)))return Number(Be);if("number"!=typeof Be)throw new Error(`${Be} is not a number`);return Be}(te),nt,De)}catch(we){throw Vi()}}}return Be.\u0275fac=function(te){return new(te||Be)(t.Y36(t.soG,16))},Be.\u0275pipe=t.Yjl({name:"number",type:Be,pure:!0,standalone:!0}),Be})();let ro=(()=>{class Be{transform(te,De,nt){if(null==te)return null;if(!this.supports(te))throw Vi();return te.slice(De,nt)}supports(te){return"string"==typeof te||Array.isArray(te)}}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275pipe=t.Yjl({name:"slice",type:Be,pure:!1,standalone:!0}),Be})(),No=(()=>{class Be{}return Be.\u0275fac=function(te){return new(te||Be)},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({}),Be})();const Da="browser",Xr="server";function Br(Be){return Be===Da}function sa(Be){return Be===Xr}let Er=(()=>{class Be{}return Be.\u0275prov=(0,t.Yz7)({token:Be,providedIn:"root",factory:()=>new Fo((0,t.LFG)(x),window)}),Be})();class Fo{constructor(ne,te){this.document=ne,this.window=te,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ne){this.supportsScrolling()&&this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){if(!this.supportsScrolling())return;const te=function $r(Be,ne){const te=Be.getElementById(ne)||Be.getElementsByName(ne)[0];if(te)return te;if("function"==typeof Be.createTreeWalker&&Be.body&&(Be.body.createShadowRoot||Be.body.attachShadow)){const De=Be.createTreeWalker(Be.body,NodeFilter.SHOW_ELEMENT);let nt=De.currentNode;for(;nt;){const we=nt.shadowRoot;if(we){const Rt=we.getElementById(ne)||we.querySelector(`[name="${ne}"]`);if(Rt)return Rt}nt=De.nextNode()}}return null}(this.document,ne);te&&(this.scrollToElement(te),te.focus())}setHistoryScrollRestoration(ne){if(this.supportScrollRestoration()){const te=this.window.history;te&&te.scrollRestoration&&(te.scrollRestoration=ne)}}scrollToElement(ne){const te=ne.getBoundingClientRect(),De=te.left+this.window.pageXOffset,nt=te.top+this.window.pageYOffset,we=this.offset();this.window.scrollTo(De-we[0],nt-we[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ne=so(this.window.history)||so(Object.getPrototypeOf(this.window.history));return!(!ne||!ne.writable&&!ne.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function so(Be){return Object.getOwnPropertyDescriptor(Be,"scrollRestoration")}class ur{}},529:(We,q,m)=>{"use strict";m.d(q,{JF:()=>Ct,LE:()=>Q,TP:()=>v,eN:()=>O});var t=m(6895),e=m(4650),g=m(9646),T=m(9751),s=m(4351),x=m(9300),h=m(4004);class N{}class d{}class M{constructor($){this.normalizedNames=new Map,this.lazyUpdate=null,$?this.lazyInit="string"==typeof $?()=>{this.headers=new Map,$.split("\n").forEach(ue=>{const Ie=ue.indexOf(":");if(Ie>0){const Xe=ue.slice(0,Ie),ei=Xe.toLowerCase(),zt=ue.slice(Ie+1).trim();this.maybeSetNormalizedName(Xe,ei),this.headers.has(ei)?this.headers.get(ei).push(zt):this.headers.set(ei,[zt])}})}:()=>{this.headers=new Map,Object.entries($).forEach(([ue,Ie])=>{let Xe;if(Xe="string"==typeof Ie?[Ie]:"number"==typeof Ie?[Ie.toString()]:Ie.map(ei=>ei.toString()),Xe.length>0){const ei=ue.toLowerCase();this.headers.set(ei,Xe),this.maybeSetNormalizedName(ue,ei)}})}:this.headers=new Map}has($){return this.init(),this.headers.has($.toLowerCase())}get($){this.init();const ue=this.headers.get($.toLowerCase());return ue&&ue.length>0?ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll($){return this.init(),this.headers.get($.toLowerCase())||null}append($,ue){return this.clone({name:$,value:ue,op:"a"})}set($,ue){return this.clone({name:$,value:ue,op:"s"})}delete($,ue){return this.clone({name:$,value:ue,op:"d"})}maybeSetNormalizedName($,ue){this.normalizedNames.has(ue)||this.normalizedNames.set(ue,$)}init(){this.lazyInit&&(this.lazyInit instanceof M?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach($=>this.applyUpdate($)),this.lazyUpdate=null))}copyFrom($){$.init(),Array.from($.headers.keys()).forEach(ue=>{this.headers.set(ue,$.headers.get(ue)),this.normalizedNames.set(ue,$.normalizedNames.get(ue))})}clone($){const ue=new M;return ue.lazyInit=this.lazyInit&&this.lazyInit instanceof M?this.lazyInit:this,ue.lazyUpdate=(this.lazyUpdate||[]).concat([$]),ue}applyUpdate($){const ue=$.name.toLowerCase();switch($.op){case"a":case"s":let Ie=$.value;if("string"==typeof Ie&&(Ie=[Ie]),0===Ie.length)return;this.maybeSetNormalizedName($.name,ue);const Xe=("a"===$.op?this.headers.get(ue):void 0)||[];Xe.push(...Ie),this.headers.set(ue,Xe);break;case"d":const ei=$.value;if(ei){let zt=this.headers.get(ue);if(!zt)return;zt=zt.filter(ni=>-1===ei.indexOf(ni)),0===zt.length?(this.headers.delete(ue),this.normalizedNames.delete(ue)):this.headers.set(ue,zt)}else this.headers.delete(ue),this.normalizedNames.delete(ue)}}forEach($){this.init(),Array.from(this.normalizedNames.keys()).forEach(ue=>$(this.normalizedNames.get(ue),this.headers.get(ue)))}}class L{encodeKey($){return W($)}encodeValue($){return W($)}decodeKey($){return decodeURIComponent($)}decodeValue($){return decodeURIComponent($)}}const V=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function W(Ne){return encodeURIComponent(Ne).replace(V,($,ue)=>B[ue]??$)}function Y(Ne){return`${Ne}`}class Q{constructor($={}){if(this.updates=null,this.cloneFrom=null,this.encoder=$.encoder||new L,$.fromString){if($.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function k(Ne,$){const ue=new Map;return Ne.length>0&&Ne.replace(/^\?/,"").split("&").forEach(Xe=>{const ei=Xe.indexOf("="),[zt,ni]=-1==ei?[$.decodeKey(Xe),""]:[$.decodeKey(Xe.slice(0,ei)),$.decodeValue(Xe.slice(ei+1))],pt=ue.get(zt)||[];pt.push(ni),ue.set(zt,pt)}),ue}($.fromString,this.encoder)}else $.fromObject?(this.map=new Map,Object.keys($.fromObject).forEach(ue=>{const Ie=$.fromObject[ue],Xe=Array.isArray(Ie)?Ie.map(Y):[Y(Ie)];this.map.set(ue,Xe)})):this.map=null}has($){return this.init(),this.map.has($)}get($){this.init();const ue=this.map.get($);return ue?ue[0]:null}getAll($){return this.init(),this.map.get($)||null}keys(){return this.init(),Array.from(this.map.keys())}append($,ue){return this.clone({param:$,value:ue,op:"a"})}appendAll($){const ue=[];return Object.keys($).forEach(Ie=>{const Xe=$[Ie];Array.isArray(Xe)?Xe.forEach(ei=>{ue.push({param:Ie,value:ei,op:"a"})}):ue.push({param:Ie,value:Xe,op:"a"})}),this.clone(ue)}set($,ue){return this.clone({param:$,value:ue,op:"s"})}delete($,ue){return this.clone({param:$,value:ue,op:"d"})}toString(){return this.init(),this.keys().map($=>{const ue=this.encoder.encodeKey($);return this.map.get($).map(Ie=>ue+"="+this.encoder.encodeValue(Ie)).join("&")}).filter($=>""!==$).join("&")}clone($){const ue=new Q({encoder:this.encoder});return ue.cloneFrom=this.cloneFrom||this,ue.updates=(this.updates||[]).concat($),ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach($=>this.map.set($,this.cloneFrom.map.get($))),this.updates.forEach($=>{switch($.op){case"a":case"s":const ue=("a"===$.op?this.map.get($.param):void 0)||[];ue.push(Y($.value)),this.map.set($.param,ue);break;case"d":if(void 0===$.value){this.map.delete($.param);break}{let Ie=this.map.get($.param)||[];const Xe=Ie.indexOf(Y($.value));-1!==Xe&&Ie.splice(Xe,1),Ie.length>0?this.map.set($.param,Ie):this.map.delete($.param)}}}),this.cloneFrom=this.updates=null)}}class ee{constructor(){this.map=new Map}set($,ue){return this.map.set($,ue),this}get($){return this.map.has($)||this.map.set($,$.defaultValue()),this.map.get($)}delete($){return this.map.delete($),this}has($){return this.map.has($)}keys(){return this.map.keys()}}function re(Ne){return typeof ArrayBuffer<"u"&&Ne instanceof ArrayBuffer}function ie(Ne){return typeof Blob<"u"&&Ne instanceof Blob}function se(Ne){return typeof FormData<"u"&&Ne instanceof FormData}class Te{constructor($,ue,Ie,Xe){let ei;if(this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=$.toUpperCase(),function me(Ne){switch(Ne){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Xe?(this.body=void 0!==Ie?Ie:null,ei=Xe):ei=Ie,ei&&(this.reportProgress=!!ei.reportProgress,this.withCredentials=!!ei.withCredentials,ei.responseType&&(this.responseType=ei.responseType),ei.headers&&(this.headers=ei.headers),ei.context&&(this.context=ei.context),ei.params&&(this.params=ei.params)),this.headers||(this.headers=new M),this.context||(this.context=new ee),this.params){const zt=this.params.toString();if(0===zt.length)this.urlWithParams=ue;else{const ni=ue.indexOf("?");this.urlWithParams=ue+(-1===ni?"?":ni<ue.length-1?"&":"")+zt}}else this.params=new Q,this.urlWithParams=ue}serializeBody(){return null===this.body?null:re(this.body)||ie(this.body)||se(this.body)||function ce(Ne){return typeof URLSearchParams<"u"&&Ne instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Q?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||se(this.body)?null:ie(this.body)?this.body.type||null:re(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone($={}){const ue=$.method||this.method,Ie=$.url||this.url,Xe=$.responseType||this.responseType,ei=void 0!==$.body?$.body:this.body,zt=void 0!==$.withCredentials?$.withCredentials:this.withCredentials,ni=void 0!==$.reportProgress?$.reportProgress:this.reportProgress;let pt=$.headers||this.headers,ot=$.params||this.params;const ft=$.context??this.context;return void 0!==$.setHeaders&&(pt=Object.keys($.setHeaders).reduce((St,gt)=>St.set(gt,$.setHeaders[gt]),pt)),$.setParams&&(ot=Object.keys($.setParams).reduce((St,gt)=>St.set(gt,$.setParams[gt]),ot)),new Te(ue,Ie,ei,{params:ot,headers:pt,context:ft,reportProgress:ni,responseType:Xe,withCredentials:zt})}}var S=(()=>((S=S||{})[S.Sent=0]="Sent",S[S.UploadProgress=1]="UploadProgress",S[S.ResponseHeader=2]="ResponseHeader",S[S.DownloadProgress=3]="DownloadProgress",S[S.Response=4]="Response",S[S.User=5]="User",S))();class i{constructor($,ue=200,Ie="OK"){this.headers=$.headers||new M,this.status=void 0!==$.status?$.status:ue,this.statusText=$.statusText||Ie,this.url=$.url||null,this.ok=this.status>=200&&this.status<300}}class a extends i{constructor($={}){super($),this.type=S.ResponseHeader}clone($={}){return new a({headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class u extends i{constructor($={}){super($),this.type=S.Response,this.body=void 0!==$.body?$.body:null}clone($={}){return new u({body:void 0!==$.body?$.body:this.body,headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class l extends i{constructor($){super($,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${$.url||"(unknown url)"}`:`Http failure response for ${$.url||"(unknown url)"}: ${$.status} ${$.statusText}`,this.error=$.error||null}}function _(Ne,$){return{body:$,headers:Ne.headers,context:Ne.context,observe:Ne.observe,params:Ne.params,reportProgress:Ne.reportProgress,responseType:Ne.responseType,withCredentials:Ne.withCredentials}}let O=(()=>{class Ne{constructor(ue){this.handler=ue}request(ue,Ie,Xe={}){let ei;if(ue instanceof Te)ei=ue;else{let pt,ot;pt=Xe.headers instanceof M?Xe.headers:new M(Xe.headers),Xe.params&&(ot=Xe.params instanceof Q?Xe.params:new Q({fromObject:Xe.params})),ei=new Te(ue,Ie,void 0!==Xe.body?Xe.body:null,{headers:pt,context:Xe.context,params:ot,reportProgress:Xe.reportProgress,responseType:Xe.responseType||"json",withCredentials:Xe.withCredentials})}const zt=(0,g.of)(ei).pipe((0,s.b)(pt=>this.handler.handle(pt)));if(ue instanceof Te||"events"===Xe.observe)return zt;const ni=zt.pipe((0,x.h)(pt=>pt instanceof u));switch(Xe.observe||"body"){case"body":switch(ei.responseType){case"arraybuffer":return ni.pipe((0,h.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pt.body}));case"blob":return ni.pipe((0,h.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof Blob))throw new Error("Response is not a Blob.");return pt.body}));case"text":return ni.pipe((0,h.U)(pt=>{if(null!==pt.body&&"string"!=typeof pt.body)throw new Error("Response is not a string.");return pt.body}));default:return ni.pipe((0,h.U)(pt=>pt.body))}case"response":return ni;default:throw new Error(`Unreachable: unhandled observe type ${Xe.observe}}`)}}delete(ue,Ie={}){return this.request("DELETE",ue,Ie)}get(ue,Ie={}){return this.request("GET",ue,Ie)}head(ue,Ie={}){return this.request("HEAD",ue,Ie)}jsonp(ue,Ie){return this.request("JSONP",ue,{params:(new Q).append(Ie,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ue,Ie={}){return this.request("OPTIONS",ue,Ie)}patch(ue,Ie,Xe={}){return this.request("PATCH",ue,_(Xe,Ie))}post(ue,Ie,Xe={}){return this.request("POST",ue,_(Xe,Ie))}put(ue,Ie,Xe={}){return this.request("PUT",ue,_(Xe,Ie))}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(N))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();function R(Ne,$){return $(Ne)}function C(Ne,$){return(ue,Ie)=>$.intercept(ue,{handle:Xe=>Ne(Xe,Ie)})}const v=new e.OlP("HTTP_INTERCEPTORS"),K=new e.OlP("HTTP_INTERCEPTOR_FNS");function F(){let Ne=null;return($,ue)=>(null===Ne&&(Ne=((0,e.f3M)(v,{optional:!0})??[]).reduceRight(C,R)),Ne($,ue))}let G=(()=>{class Ne extends N{constructor(ue,Ie){super(),this.backend=ue,this.injector=Ie,this.chain=null}handle(ue){if(null===this.chain){const Ie=Array.from(new Set(this.injector.get(K)));this.chain=Ie.reduceRight((Xe,ei)=>function n(Ne,$,ue){return(Ie,Xe)=>ue.runInContext(()=>$(Ie,ei=>Ne(ei,Xe)))}(Xe,ei,this.injector),R)}return this.chain(ue,Ie=>this.backend.handle(Ie))}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(d),e.LFG(e.lqb))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();const he=/^\)\]\}',?\n/;let ge=(()=>{class Ne{constructor(ue){this.xhrFactory=ue}handle(ue){if("JSONP"===ue.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Ie=>{const Xe=this.xhrFactory.build();if(Xe.open(ue.method,ue.urlWithParams),ue.withCredentials&&(Xe.withCredentials=!0),ue.headers.forEach((tt,_t)=>Xe.setRequestHeader(tt,_t.join(","))),ue.headers.has("Accept")||Xe.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){const tt=ue.detectContentTypeHeader();null!==tt&&Xe.setRequestHeader("Content-Type",tt)}if(ue.responseType){const tt=ue.responseType.toLowerCase();Xe.responseType="json"!==tt?tt:"text"}const ei=ue.serializeBody();let zt=null;const ni=()=>{if(null!==zt)return zt;const tt=Xe.statusText||"OK",_t=new M(Xe.getAllResponseHeaders()),vt=function Ae(Ne){return"responseURL"in Ne&&Ne.responseURL?Ne.responseURL:/^X-Request-URL:/m.test(Ne.getAllResponseHeaders())?Ne.getResponseHeader("X-Request-URL"):null}(Xe)||ue.url;return zt=new a({headers:_t,status:Xe.status,statusText:tt,url:vt}),zt},pt=()=>{let{headers:tt,status:_t,statusText:vt,url:Ve}=ni(),Tt=null;204!==_t&&(Tt=typeof Xe.response>"u"?Xe.responseText:Xe.response),0===_t&&(_t=Tt?200:0);let Lt=_t>=200&&_t<300;if("json"===ue.responseType&&"string"==typeof Tt){const Qt=Tt;Tt=Tt.replace(he,"");try{Tt=""!==Tt?JSON.parse(Tt):null}catch(Bi){Tt=Qt,Lt&&(Lt=!1,Tt={error:Bi,text:Tt})}}Lt?(Ie.next(new u({body:Tt,headers:tt,status:_t,statusText:vt,url:Ve||void 0})),Ie.complete()):Ie.error(new l({error:Tt,headers:tt,status:_t,statusText:vt,url:Ve||void 0}))},ot=tt=>{const{url:_t}=ni(),vt=new l({error:tt,status:Xe.status||0,statusText:Xe.statusText||"Unknown Error",url:_t||void 0});Ie.error(vt)};let ft=!1;const St=tt=>{ft||(Ie.next(ni()),ft=!0);let _t={type:S.DownloadProgress,loaded:tt.loaded};tt.lengthComputable&&(_t.total=tt.total),"text"===ue.responseType&&Xe.responseText&&(_t.partialText=Xe.responseText),Ie.next(_t)},gt=tt=>{let _t={type:S.UploadProgress,loaded:tt.loaded};tt.lengthComputable&&(_t.total=tt.total),Ie.next(_t)};return Xe.addEventListener("load",pt),Xe.addEventListener("error",ot),Xe.addEventListener("timeout",ot),Xe.addEventListener("abort",ot),ue.reportProgress&&(Xe.addEventListener("progress",St),null!==ei&&Xe.upload&&Xe.upload.addEventListener("progress",gt)),Xe.send(ei),Ie.next({type:S.Sent}),()=>{Xe.removeEventListener("error",ot),Xe.removeEventListener("abort",ot),Xe.removeEventListener("load",pt),Xe.removeEventListener("timeout",ot),ue.reportProgress&&(Xe.removeEventListener("progress",St),null!==ei&&Xe.upload&&Xe.upload.removeEventListener("progress",gt)),Xe.readyState!==Xe.DONE&&Xe.abort()}})}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(t.JF))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();const Ue=new e.OlP("XSRF_ENABLED"),Re=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),rt=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Qe{}let ct=(()=>{class Ne{constructor(ue,Ie,Xe){this.doc=ue,this.platform=Ie,this.cookieName=Xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ue=this.doc.cookie||"";return ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Re))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();function Gt(Ne,$){const ue=Ne.url.toLowerCase();if(!(0,e.f3M)(Ue)||"GET"===Ne.method||"HEAD"===Ne.method||ue.startsWith("http://")||ue.startsWith("https://"))return $(Ne);const Ie=(0,e.f3M)(Qe).getToken(),Xe=(0,e.f3M)(rt);return null!=Ie&&!Ne.headers.has(Xe)&&(Ne=Ne.clone({headers:Ne.headers.set(Xe,Ie)})),$(Ne)}var Ze=(()=>((Ze=Ze||{})[Ze.Interceptors=0]="Interceptors",Ze[Ze.LegacyInterceptors=1]="LegacyInterceptors",Ze[Ze.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ze[Ze.NoXsrfProtection=3]="NoXsrfProtection",Ze[Ze.JsonpSupport=4]="JsonpSupport",Ze[Ze.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ze))();function xt(Ne,$){return{\u0275kind:Ne,\u0275providers:$}}function Me(...Ne){const $=[O,ge,G,{provide:N,useExisting:G},{provide:d,useExisting:ge},{provide:K,useValue:Gt,multi:!0},{provide:Ue,useValue:!0},{provide:Qe,useClass:ct}];for(const ue of Ne)$.push(...ue.\u0275providers);return(0,e.MR2)($)}const Pe=new e.OlP("LEGACY_INTERCEPTOR_FN");let Ct=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({providers:[Me(xt(Ze.LegacyInterceptors,[{provide:Pe,useFactory:F},{provide:K,useExisting:Pe,multi:!0}]))]}),Ne})()},4650:(We,q,m)=>{"use strict";m.d(q,{$8M:()=>_c,$WT:()=>Ai,$Z:()=>N0,AFp:()=>G6,ALo:()=>h6,AaK:()=>N,AsE:()=>sh,BQk:()=>af,CHM:()=>co,CRH:()=>x6,CZH:()=>If,CqO:()=>U4,D6c:()=>Cg,DdM:()=>i6,Dn7:()=>Nm,EJc:()=>p8,EiD:()=>q2,EpF:()=>V4,F$t:()=>ih,F4k:()=>B4,FYo:()=>Fd,FiY:()=>Ao,Gf:()=>b6,GfV:()=>h0,GkF:()=>rf,Gpc:()=>w,Gre:()=>Bl,HOy:()=>er,Hsn:()=>E3,Ikx:()=>Q3,JOm:()=>gs,JVY:()=>B2,JZr:()=>W,Jf7:()=>Bd,KtG:()=>Ks,L6k:()=>Uh,LAX:()=>Gh,LFG:()=>Ct,Lbi:()=>Y6,Lck:()=>Yl,MAs:()=>z4,MGl:()=>nh,MMx:()=>ir,MR2:()=>iu,NdJ:()=>th,O4$:()=>fs,OlP:()=>wa,Oqu:()=>g2,P3R:()=>Dd,PXZ:()=>A8,Q6J:()=>b3,QGY:()=>C3,QbO:()=>f8,Qsj:()=>Hd,R0b:()=>fc,RDi:()=>Hh,Rgc:()=>Af,SBq:()=>Pl,Sil:()=>v8,Suo:()=>y6,TTD:()=>vr,TgZ:()=>f2,Tol:()=>oh,Udp:()=>Ss,VKq:()=>Om,W1O:()=>T6,WFA:()=>w3,WLB:()=>n6,X6Q:()=>O8,XFs:()=>Ue,Xpm:()=>Lt,Xts:()=>w1,Y36:()=>kc,YKP:()=>yo,YNc:()=>H4,Yjl:()=>Le,Yz7:()=>pe,Z0I:()=>fe,ZZ4:()=>A4,_Bn:()=>Wl,_UZ:()=>y3,_Vd:()=>Ol,_c5:()=>K8,_uU:()=>hc,aQg:()=>_p,c2e:()=>K6,cJS:()=>Ce,cg1:()=>J3,d8E:()=>xf,dDg:()=>tg,dqk:()=>ct,eBb:()=>U2,eFA:()=>og,eJc:()=>Wm,ekj:()=>xn,eoX:()=>ig,f3M:()=>Bt,g9A:()=>W6,h0i:()=>Ys,hGG:()=>j8,hYB:()=>sf,hij:()=>Y1,iGM:()=>v6,ifc:()=>pt,ip1:()=>U6,jDz:()=>Oo,kEZ:()=>Pm,kL8:()=>mm,kcU:()=>gc,lG2:()=>It,lcZ:()=>u6,lnq:()=>ul,lqb:()=>Ec,lri:()=>$6,mCW:()=>y1,n5z:()=>gl,n_E:()=>u4,oAB:()=>Si,oJD:()=>Ad,oxw:()=>T3,pB0:()=>Zh,q3G:()=>$a,qLn:()=>ol,qOj:()=>Cn,qZA:()=>nf,qzn:()=>il,rWj:()=>eg,s9C:()=>A3,sBO:()=>R8,s_b:()=>Lf,soG:()=>kf,tBr:()=>xr,tb:()=>ag,tp0:()=>Ns,uIk:()=>l2,vHH:()=>Y,vpe:()=>Vc,wAp:()=>Mn,xi3:()=>f6,xp6:()=>x0,ynx:()=>eh,z2F:()=>w4,z3N:()=>Us,zSh:()=>Il,zs3:()=>sc});var t=m(7579),e=m(727),g=m(9751),T=m(6451),s=m(3099);function x(o){for(let c in o)if(o[c]===x)return c;throw Error("Could not find renamed property on target object.")}function h(o,c){for(const p in c)c.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&(o[p]=c[p])}function N(o){if("string"==typeof o)return o;if(Array.isArray(o))return"["+o.map(N).join(", ")+"]";if(null==o)return""+o;if(o.overriddenName)return`${o.overriddenName}`;if(o.name)return`${o.name}`;const c=o.toString();if(null==c)return""+c;const p=c.indexOf("\n");return-1===p?c:c.substring(0,p)}function d(o,c){return null==o||""===o?null===c?"":c:null==c||""===c?o:o+" "+c}const M=x({__forward_ref__:x});function w(o){return o.__forward_ref__=w,o.toString=function(){return N(this())},o}function L(o){return k(o)?o():o}function k(o){return"function"==typeof o&&o.hasOwnProperty(M)&&o.__forward_ref__===w}function V(o){return o&&!!o.\u0275providers}const W="https://g.co/ng/security#xss";class Y extends Error{constructor(c,p){super(Q(c,p)),this.code=c}}function Q(o,c){return`NG0${Math.abs(o)}${c?": "+c.trim():""}`}function X(o){return"string"==typeof o?o:null==o?"":String(o)}function se(o,c){throw new Y(-201,!1)}function K(o,c){null==o&&function F(o,c,p,E){throw new Error(`ASSERTION ERROR: ${o}`+(null==E?"":` [Expected=> ${p} ${E} ${c} <=Actual]`))}(c,o,null,"!=")}function pe(o){return{token:o.token,providedIn:o.providedIn||null,factory:o.factory,value:void 0}}function Ce(o){return{providers:o.providers||[],imports:o.imports||[]}}function Se(o){return Fe(o,Oe)||Fe(o,Ae)}function fe(o){return null!==Se(o)}function Fe(o,c){return o.hasOwnProperty(c)?o[c]:null}function ze(o){return o&&(o.hasOwnProperty(he)||o.hasOwnProperty(ge))?o[he]:null}const Oe=x({\u0275prov:x}),he=x({\u0275inj:x}),Ae=x({ngInjectableDef:x}),ge=x({ngInjectorDef:x});var Ue=(()=>((Ue=Ue||{})[Ue.Default=0]="Default",Ue[Ue.Host=1]="Host",Ue[Ue.Self=2]="Self",Ue[Ue.SkipSelf=4]="SkipSelf",Ue[Ue.Optional=8]="Optional",Ue))();let Je;function le(o){const c=Je;return Je=o,c}function rt(o,c,p){const E=Se(o);return E&&"root"==E.providedIn?void 0===E.value?E.value=E.factory():E.value:p&Ue.Optional?null:void 0!==c?c:void se(N(o))}const ct=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),xt={},Me="__NG_DI_FLAG__",$e="ngTempTokenPath",Pe="ngTokenPath",J=/\n/gm,mt="\u0275",Et="__source";let at;function je(o){const c=at;return at=o,c}function Ht(o,c=Ue.Default){if(void 0===at)throw new Y(-203,!1);return null===at?rt(o,void 0,c):at.get(o,c&Ue.Optional?null:void 0,c)}function Ct(o,c=Ue.Default){return(function Re(){return Je}()||Ht)(L(o),c)}function Bt(o,c=Ue.Default){return Ct(o,Ne(c))}function Ne(o){return typeof o>"u"||"number"==typeof o?o:0|(o.optional&&8)|(o.host&&1)|(o.self&&2)|(o.skipSelf&&4)}function $(o){const c=[];for(let p=0;p<o.length;p++){const E=L(o[p]);if(Array.isArray(E)){if(0===E.length)throw new Y(900,!1);let z,Z=Ue.Default;for(let de=0;de<E.length;de++){const He=E[de],Ke=Ie(He);"number"==typeof Ke?-1===Ke?z=He.token:Z|=Ke:z=He}c.push(Ct(z,Z))}else c.push(Ct(E))}return c}function ue(o,c){return o[Me]=c,o.prototype[Me]=c,o}function Ie(o){return o[Me]}function zt(o){return{toString:o}.toString()}var ni=(()=>((ni=ni||{})[ni.OnPush=0]="OnPush",ni[ni.Default=1]="Default",ni))(),pt=(()=>{return(o=pt||(pt={}))[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom",pt;var o})();const ot={},ft=[],St=x({\u0275cmp:x}),gt=x({\u0275dir:x}),tt=x({\u0275pipe:x}),_t=x({\u0275mod:x}),vt=x({\u0275fac:x}),Ve=x({__NG_ELEMENT_ID__:x});let Tt=0;function Lt(o){return zt(()=>{const c=$i(o),p={...c,decls:o.decls,vars:o.vars,template:o.template,consts:o.consts||null,ngContentSelectors:o.ngContentSelectors,onPush:o.changeDetection===ni.OnPush,directiveDefs:null,pipeDefs:null,dependencies:c.standalone&&o.dependencies||null,getStandaloneInjector:null,data:o.data||{},encapsulation:o.encapsulation||pt.Emulated,id:"c"+Tt++,styles:o.styles||ft,_:null,schemas:o.schemas||null,tView:null};nn(p);const E=o.dependencies;return p.directiveDefs=Qi(E,!1),p.pipeDefs=Qi(E,!0),p})}function Bi(o){return Mt(o)||Wt(o)}function Hi(o){return null!==o}function Si(o){return zt(()=>({type:o.type,bootstrap:o.bootstrap||ft,declarations:o.declarations||ft,imports:o.imports||ft,exports:o.exports||ft,transitiveCompileScopes:null,schemas:o.schemas||null,id:o.id||null}))}function et(o,c){if(null==o)return ot;const p={};for(const E in o)if(o.hasOwnProperty(E)){let z=o[E],Z=z;Array.isArray(z)&&(Z=z[1],z=z[0]),p[z]=E,c&&(c[z]=Z)}return p}function It(o){return zt(()=>{const c=$i(o);return nn(c),c})}function Le(o){return{type:o.type,name:o.name,factory:null,pure:!1!==o.pure,standalone:!0===o.standalone,onDestroy:o.type.prototype.ngOnDestroy||null}}function Mt(o){return o[St]||null}function Wt(o){return o[gt]||null}function si(o){return o[tt]||null}function Ai(o){const c=Mt(o)||Wt(o)||si(o);return null!==c&&c.standalone}function Ri(o,c){const p=o[_t]||null;if(!p&&!0===c)throw new Error(`Type ${N(o)} does not have '\u0275mod' property.`);return p}function $i(o){const c={};return{type:o.type,providersResolver:null,factory:null,hostBindings:o.hostBindings||null,hostVars:o.hostVars||0,hostAttrs:o.hostAttrs||null,contentQueries:o.contentQueries||null,declaredInputs:c,exportAs:o.exportAs||null,standalone:!0===o.standalone,selectors:o.selectors||ft,viewQuery:o.viewQuery||null,features:o.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:et(o.inputs,c),outputs:et(o.outputs)}}function nn(o){o.features?.forEach(c=>c(o))}function Qi(o,c){if(!o)return null;const p=c?si:Bi;return()=>("function"==typeof o?o():o).map(E=>p(E)).filter(Hi)}const Yt=0,Xt=1,be=2,dt=3,Dt=4,Ut=5,Ot=6,bi=7,li=8,pi=9,gi=10,Zi=11,Wn=12,An=13,oa=14,Aa=15,ta=16,nr=17,$t=18,mi=19,jt=20,oi=21,wi=22,ln=1,Yn=2,Bn=7,_a=8,Ln=9,Gn=10;function Un(o){return Array.isArray(o)&&"object"==typeof o[ln]}function ia(o){return Array.isArray(o)&&!0===o[ln]}function wo(o){return 0!=(4&o.flags)}function Fr(o){return o.componentOffset>-1}function Tr(o){return 1==(1&o.flags)}function jn(o){return!!o.template}function La(o){return 0!=(256&o[be])}function Wa(o,c){return o.hasOwnProperty(vt)?o[vt]:null}class hr{constructor(c,p,E){this.previousValue=c,this.currentValue=p,this.firstChange=E}isFirstChange(){return this.firstChange}}function vr(){return Er}function Er(o){return o.type.prototype.ngOnChanges&&(o.setInput=so),Fo}function Fo(){const o=eo(this),c=o?.current;if(c){const p=o.previous;if(p===ot)o.previous=c;else for(let E in c)p[E]=c[E];o.current=null,this.ngOnChanges(c)}}function so(o,c,p,E){const z=this.declaredInputs[p],Z=eo(o)||function ur(o,c){return o[$r]=c}(o,{previous:ot,current:null}),de=Z.current||(Z.current={}),He=Z.previous,Ke=He[z];de[z]=new hr(Ke&&Ke.currentValue,c,He===ot),o[E]=c}vr.ngInherit=!0;const $r="__ngSimpleChanges__";function eo(o){return o[$r]||null}const Ya=function(o,c,p){},Ar="svg";function kn(o){for(;Array.isArray(o);)o=o[Yt];return o}function Lr(o,c){return kn(c[o])}function Ca(o,c){return kn(c[o.index])}function Ft(o,c){return o.data[c]}function hi(o,c){return o[c]}function wt(o,c){const p=c[o];return Un(p)?p:p[Yt]}function Pi(o){return 64==(64&o[be])}function aa(o,c){return null==c?null:o[c]}function ca(o){o[$t]=0}function Fi(o,c){o[Ut]+=c;let p=o,E=o[dt];for(;null!==E&&(1===c&&1===p[Ut]||-1===c&&0===p[Ut]);)E[Ut]+=c,p=E,E=E[dt]}const gn={lFrame:pc(null),bindingsEnabled:!0};function Mi(){return gn.bindingsEnabled}function Ti(){return gn.lFrame.lView}function Dn(){return gn.lFrame.tView}function co(o){return gn.lFrame.contextLView=o,o[li]}function Ks(o){return gn.lFrame.contextLView=null,o}function Ka(){let o=ds();for(;null!==o&&64===o.type;)o=o.parent;return o}function ds(){return gn.lFrame.currentTNode}function Dr(o,c){const p=gn.lFrame;p.currentTNode=o,p.isParent=c}function Wo(){return gn.lFrame.isParent}function Ds(){gn.lFrame.isParent=!1}function Jn(){const o=gn.lFrame;let c=o.bindingRootIndex;return-1===c&&(c=o.bindingRootIndex=o.tView.bindingStartIndex),c}function Di(){return gn.lFrame.bindingIndex}function lo(){return gn.lFrame.bindingIndex++}function Ii(o){const c=gn.lFrame,p=c.bindingIndex;return c.bindingIndex=c.bindingIndex+o,p}function mc(o,c){const p=gn.lFrame;p.bindingIndex=p.bindingRootIndex=o,mr(c)}function mr(o){gn.lFrame.currentDirectiveIndex=o}function Yo(o){const c=gn.lFrame.currentDirectiveIndex;return-1===c?null:o[c]}function ho(){return gn.lFrame.currentQueryIndex}function hs(o){gn.lFrame.currentQueryIndex=o}function Qs(o){const c=o[Xt];return 2===c.type?c.declTNode:1===c.type?o[Ot]:null}function Bo(o,c,p){if(p&Ue.SkipSelf){let z=c,Z=o;for(;!(z=z.parent,null!==z||p&Ue.Host||(z=Qs(Z),null===z||(Z=Z[Aa],10&z.type))););if(null===z)return!1;c=z,o=Z}const E=gn.lFrame=ks();return E.currentTNode=c,E.lView=o,!0}function Is(o){const c=ks(),p=o[Xt];gn.lFrame=c,c.currentTNode=p.firstChild,c.lView=o,c.tView=p,c.contextLView=o,c.bindingIndex=p.bindingStartIndex,c.inI18n=!1}function ks(){const o=gn.lFrame,c=null===o?null:o.child;return null===c?pc(o):c}function pc(o){const c={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:o,child:null,inI18n:!1};return null!==o&&(o.child=c),c}function qs(){const o=gn.lFrame;return gn.lFrame=o.parent,o.currentTNode=null,o.lView=null,o}const Ia=qs;function es(){const o=qs();o.isParent=!0,o.tView=null,o.selectedIndex=-1,o.contextLView=null,o.elementDepthCount=0,o.currentDirectiveIndex=-1,o.currentNamespace=null,o.bindingRootIndex=-1,o.bindingIndex=-1,o.currentQueryIndex=0}function Ja(){return gn.lFrame.selectedIndex}function Uo(o){gn.lFrame.selectedIndex=o}function la(){const o=gn.lFrame;return Ft(o.tView,o.selectedIndex)}function fs(){gn.lFrame.currentNamespace=Ar}function gc(){!function On(){gn.lFrame.currentNamespace=null}()}function ma(o,c){for(let p=c.directiveStart,E=c.directiveEnd;p<E;p++){const Z=o.data[p].type.prototype,{ngAfterContentInit:de,ngAfterContentChecked:He,ngAfterViewInit:Ke,ngAfterViewChecked:bt,ngOnDestroy:Pt}=Z;de&&(o.contentHooks??(o.contentHooks=[])).push(-p,de),He&&((o.contentHooks??(o.contentHooks=[])).push(p,He),(o.contentCheckHooks??(o.contentCheckHooks=[])).push(p,He)),Ke&&(o.viewHooks??(o.viewHooks=[])).push(-p,Ke),bt&&((o.viewHooks??(o.viewHooks=[])).push(p,bt),(o.viewCheckHooks??(o.viewCheckHooks=[])).push(p,bt)),null!=Pt&&(o.destroyHooks??(o.destroyHooks=[])).push(p,Pt)}}function zi(o,c,p){ne(o,c,3,p)}function Rn(o,c,p,E){(3&o[be])===p&&ne(o,c,p,E)}function Be(o,c){let p=o[be];(3&p)===c&&(p&=2047,p+=1,o[be]=p)}function ne(o,c,p,E){const Z=E??-1,de=c.length-1;let He=0;for(let Ke=void 0!==E?65535&o[$t]:0;Ke<de;Ke++)if("number"==typeof c[Ke+1]){if(He=c[Ke],null!=E&&He>=E)break}else c[Ke]<0&&(o[$t]+=65536),(He<Z||-1==Z)&&(te(o,p,c,Ke),o[$t]=(4294901760&o[$t])+Ke+2),Ke++}function te(o,c,p,E){const z=p[E]<0,Z=p[E+1],He=o[z?-p[E]:p[E]];if(z){if(o[be]>>11<o[$t]>>16&&(3&o[be])===c){o[be]+=2048,Ya(4,He,Z);try{Z.call(He)}finally{Ya(5,He,Z)}}}else{Ya(4,He,Z);try{Z.call(He)}finally{Ya(5,He,Z)}}}const De=-1;class nt{constructor(c,p,E){this.factory=c,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=E}}function tn(o,c,p){let E=0;for(;E<p.length;){const z=p[E];if("number"==typeof z){if(0!==z)break;E++;const Z=p[E++],de=p[E++],He=p[E++];o.setAttribute(c,de,He,Z)}else{const Z=z,de=p[++E];da(Z)?o.setProperty(c,Z,de):o.setAttribute(c,Z,de),E++}}return E}function dn(o){return 3===o||4===o||6===o}function da(o){return 64===o.charCodeAt(0)}function pa(o,c){if(null!==c&&0!==c.length)if(null===o||0===o.length)o=c.slice();else{let p=-1;for(let E=0;E<c.length;E++){const z=c[E];"number"==typeof z?p=z:0===p||Fa(o,p,z,null,-1===p||2===p?c[++E]:null)}}return o}function Fa(o,c,p,E,z){let Z=0,de=o.length;if(-1===c)de=-1;else for(;Z<o.length;){const He=o[Z++];if("number"==typeof He){if(He===c){de=-1;break}if(He>c){de=Z-1;break}}}for(;Z<o.length;){const He=o[Z];if("number"==typeof He)break;if(He===p){if(null===E)return void(null!==z&&(o[Z+1]=z));if(E===o[Z+1])return void(o[Z+2]=z)}Z++,null!==E&&Z++,null!==z&&Z++}-1!==de&&(o.splice(de,0,c),Z=de+1),o.splice(Z++,0,p),null!==E&&o.splice(Z++,0,E),null!==z&&o.splice(Z++,0,z)}function ha(o){return o!==De}function ua(o){return 32767&o}function ka(o,c){let p=function Qn(o){return o>>16}(o),E=c;for(;p>0;)E=E[Aa],p--;return E}let Sa=!0;function kr(o){const c=Sa;return Sa=o,c}const uo=255,Ur=5;let fl=0;const Ko={};function Gc(o,c){const p=Jl(o,c);if(-1!==p)return p;const E=c[Xt];E.firstCreatePass&&(o.injectorIndex=c.length,Or(E.data,o),Or(c,null),Or(E.blueprint,null));const z=Os(o,c),Z=o.injectorIndex;if(ha(z)){const de=ua(z),He=ka(z,c),Ke=He[Xt].data;for(let bt=0;bt<8;bt++)c[Z+bt]=He[de+bt]|Ke[de+bt]}return c[Z+8]=z,Z}function Or(o,c){o.push(0,0,0,0,0,0,0,0,c)}function Jl(o,c){return-1===o.injectorIndex||o.parent&&o.parent.injectorIndex===o.injectorIndex||null===c[o.injectorIndex+8]?-1:o.injectorIndex}function Os(o,c){if(o.parent&&-1!==o.parent.injectorIndex)return o.parent.injectorIndex;let p=0,E=null,z=c;for(;null!==z;){if(E=q1(z),null===E)return De;if(p++,z=z[Aa],-1!==E.injectorIndex)return E.injectorIndex|p<<16}return De}function Zc(o,c,p){!function ql(o,c,p){let E;"string"==typeof p?E=p.charCodeAt(0)||0:p.hasOwnProperty(Ve)&&(E=p[Ve]),null==E&&(E=p[Ve]=fl++);const z=E&uo;c.data[o+(z>>Ur)]|=1<<z}(o,c,p)}function pl(o,c,p){if(p&Ue.Optional||void 0!==o)return o;se()}function j1(o,c,p,E){if(p&Ue.Optional&&void 0===E&&(E=null),!(p&(Ue.Self|Ue.Host))){const z=o[pi],Z=le(void 0);try{return z?z.get(c,E,p&Ue.Optional):rt(c,E,p&Ue.Optional)}finally{le(Z)}}return pl(E,0,p)}function Q1(o,c,p,E=Ue.Default,z){if(null!==o){if(1024&c[be]){const de=function C2(o,c,p,E,z){let Z=o,de=c;for(;null!==Z&&null!==de&&1024&de[be]&&!(256&de[be]);){const He=Xl(Z,de,p,E|Ue.Self,Ko);if(He!==Ko)return He;let Ke=Z.parent;if(!Ke){const bt=de[oi];if(bt){const Pt=bt.get(p,Ko,E);if(Pt!==Ko)return Pt}Ke=q1(de),de=de[Aa]}Z=Ke}return z}(o,c,p,E,Ko);if(de!==Ko)return de}const Z=Xl(o,c,p,E,Ko);if(Z!==Ko)return Z}return j1(c,p,E,z)}function Xl(o,c,p,E,z){const Z=function jo(o){if("string"==typeof o)return o.charCodeAt(0)||0;const c=o.hasOwnProperty(Ve)?o[Ve]:void 0;return"number"==typeof c?c>=0?c&uo:Gr:c}(p);if("function"==typeof Z){if(!Bo(c,o,E))return E&Ue.Host?pl(z,0,E):j1(c,p,E,z);try{const de=Z(E);if(null!=de||E&Ue.Optional)return de;se()}finally{Ia()}}else if("number"==typeof Z){let de=null,He=Jl(o,c),Ke=De,bt=E&Ue.Host?c[ta][Ot]:null;for((-1===He||E&Ue.SkipSelf)&&(Ke=-1===He?Os(o,c):c[He+8],Ke!==De&&$l(E,!1)?(de=c[Xt],He=ua(Ke),c=ka(Ke,c)):He=-1);-1!==He;){const Pt=c[Xt];if(Ps(Z,He,Pt.data)){const ti=Wc(He,c,p,de,E,bt);if(ti!==Ko)return ti}Ke=c[He+8],Ke!==De&&$l(E,c[Xt].data[He+8]===bt)&&Ps(Z,He,c)?(de=Pt,He=ua(Ke),c=ka(Ke,c)):He=-1}}return z}function Wc(o,c,p,E,z,Z){const de=c[Xt],He=de.data[o+8],Pt=Js(He,de,p,null==E?Fr(He)&&Sa:E!=de&&0!=(3&He.type),z&Ue.Host&&Z===He);return null!==Pt?ar(c,de,Pt,He):Ko}function Js(o,c,p,E,z){const Z=o.providerIndexes,de=c.data,He=1048575&Z,Ke=o.directiveStart,Pt=Z>>20,di=z?He+Pt:o.directiveEnd;for(let xi=E?He:He+Pt;xi<di;xi++){const Ni=de[xi];if(xi<Ke&&p===Ni||xi>=Ke&&Ni.type===p)return xi}if(z){const xi=de[Ke];if(xi&&jn(xi)&&xi.type===p)return Ke}return null}function ar(o,c,p,E){let z=o[p];const Z=c.data;if(function we(o){return o instanceof nt}(z)){const de=z;de.resolving&&function me(o,c){const p=c?`. Dependency path: ${c.join(" > ")} > ${o}`:"";throw new Y(-200,`Circular dependency in DI detected for ${o}${p}`)}(function ee(o){return"function"==typeof o?o.name||o.toString():"object"==typeof o&&null!=o&&"function"==typeof o.type?o.type.name||o.type.toString():X(o)}(Z[p]));const He=kr(de.canSeeViewProviders);de.resolving=!0;const Ke=de.injectImpl?le(de.injectImpl):null;Bo(o,E,Ue.Default);try{z=o[p]=de.factory(void 0,Z,o,E),c.firstCreatePass&&p>=E.directiveStart&&function ba(o,c,p){const{ngOnChanges:E,ngOnInit:z,ngDoCheck:Z}=c.type.prototype;if(E){const de=Er(c);(p.preOrderHooks??(p.preOrderHooks=[])).push(o,de),(p.preOrderCheckHooks??(p.preOrderCheckHooks=[])).push(o,de)}z&&(p.preOrderHooks??(p.preOrderHooks=[])).push(0-o,z),Z&&((p.preOrderHooks??(p.preOrderHooks=[])).push(o,Z),(p.preOrderCheckHooks??(p.preOrderCheckHooks=[])).push(o,Z))}(p,Z[p],c)}finally{null!==Ke&&le(Ke),kr(He),de.resolving=!1,Ia()}}return z}function Ps(o,c,p){return!!(p[c+(o>>Ur)]&1<<o)}function $l(o,c){return!(o&Ue.Self||o&Ue.Host&&c)}class ja{constructor(c,p){this._tNode=c,this._lView=p}get(c,p,E){return Q1(this._tNode,this._lView,c,Ne(E),p)}}function Gr(){return new ja(Ka(),Ti())}function gl(o){return zt(()=>{const c=o.prototype.constructor,p=c[vt]||_l(c),E=Object.prototype;let z=Object.getPrototypeOf(o.prototype).constructor;for(;z&&z!==E;){const Z=z[vt]||_l(z);if(Z&&Z!==p)return Z;z=Object.getPrototypeOf(z)}return Z=>new Z})}function _l(o){return k(o)?()=>{const c=_l(L(o));return c&&c()}:Wa(o)}function q1(o){const c=o[Xt],p=c.type;return 2===p?c.declTNode:1===p?o[Ot]:null}function _c(o){return function ml(o,c){if("class"===c)return o.classes;if("style"===c)return o.styles;const p=o.attrs;if(p){const E=p.length;let z=0;for(;z<E;){const Z=p[z];if(dn(Z))break;if(0===Z)z+=2;else if("number"==typeof Z)for(z++;z<E&&"string"==typeof p[z];)z++;else{if(Z===c)return p[z+1];z+=2}}}return null}(Ka(),o)}const fo="__parameters__";function Qo(o,c,p){return zt(()=>{const E=function Kc(o){return function(...p){if(o){const E=o(...p);for(const z in E)this[z]=E[z]}}}(c);function z(...Z){if(this instanceof z)return E.apply(this,Z),this;const de=new z(...Z);return He.annotation=de,He;function He(Ke,bt,Pt){const ti=Ke.hasOwnProperty(fo)?Ke[fo]:Object.defineProperty(Ke,fo,{value:[]})[fo];for(;ti.length<=Pt;)ti.push(null);return(ti[Pt]=ti[Pt]||[]).push(de),Ke}}return p&&(z.prototype=Object.create(p.prototype)),z.prototype.ngMetadataName=o,z.annotationCls=z,z})}class wa{constructor(c,p){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=pe({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _e(o,c){o.forEach(p=>Array.isArray(p)?_e(p,c):c(p))}function xe(o,c,p){c>=o.length?o.push(p):o.splice(c,0,p)}function ae(o,c){return c>=o.length-1?o.pop():o.splice(c,1)[0]}function Ge(o,c){const p=[];for(let E=0;E<o;E++)p.push(c);return p}function ki(o,c,p){let E=rn(o,c);return E>=0?o[1|E]=p:(E=~E,function Vt(o,c,p,E){let z=o.length;if(z==c)o.push(p,E);else if(1===z)o.push(E,o[0]),o[0]=p;else{for(z--,o.push(o[z-1],o[z]);z>c;)o[z]=o[z-2],z--;o[c]=p,o[c+1]=E}}(o,E,c,p)),E}function on(o,c){const p=rn(o,c);if(p>=0)return o[1|p]}function rn(o,c){return function sr(o,c,p){let E=0,z=o.length>>p;for(;z!==E;){const Z=E+(z-E>>1),de=o[Z<<p];if(c===de)return Z<<p;de>c?z=Z:E=Z+1}return~(z<<p)}(o,c,1)}const xr=ue(Qo("Inject",o=>({token:o})),-1),Ao=ue(Qo("Optional"),8),Ns=ue(Qo("SkipSelf"),4);var gs=(()=>((gs=gs||{})[gs.Important=1]="Important",gs[gs.DashCase=2]="DashCase",gs))();const L2=new Map;let Eh=0;const Xc="__ngContext__";function io(o,c){Un(c)?(o[Xc]=c[jt],function zf(o){L2.set(o[jt],o)}(c)):o[Xc]=c}let Cl;function O2(o,c){return Cl(o,c)}function Cc(o){const c=o[dt];return ia(c)?c[dt]:c}function zs(o){return $c(o[An])}function o1(o){return $c(o[Dt])}function $c(o){for(;null!==o&&!ia(o);)o=o[Dt];return o}function el(o,c,p,E,z){if(null!=E){let Z,de=!1;ia(E)?Z=E:Un(E)&&(de=!0,E=E[Yt]);const He=kn(E);0===o&&null!==p?null==z?ic(c,p,He):Mc(c,p,He,z||null,!0):1===o&&null!==p?Mc(c,p,He,z||null,!0):2===o?function H2(o,c,p){const E=md(o,c);E&&function Ph(o,c,p,E){o.removeChild(c,p,E)}(o,E,c,p)}(c,He,de):3===o&&c.destroyNode(He),null!=Z&&function gd(o,c,p,E,z){const Z=p[Bn];Z!==kn(p)&&el(c,o,E,Z,z);for(let He=Gn;He<p.length;He++){const Ke=p[He];Vs(Ke[Xt],Ke,o,c,E,Z)}}(c,o,Z,p,z)}}function Lo(o,c,p){return o.createElement(c,p)}function Oh(o,c){const p=o[Ln],E=p.indexOf(c),z=c[dt];512&c[be]&&(c[be]&=-513,Fi(z,-1)),p.splice(E,1)}function d1(o,c){if(o.length<=Gn)return;const p=Gn+c,E=o[p];if(E){const z=E[nr];null!==z&&z!==o&&Oh(z,E),c>0&&(o[p-1][Dt]=E[Dt]);const Z=ae(o,Gn+c);!function ns(o,c){Vs(o,c,c[Zi],2,null,null),c[Yt]=null,c[Ot]=null}(E[Xt],E);const de=Z[mi];null!==de&&de.detachView(Z[Xt]),E[dt]=null,E[Dt]=null,E[be]&=-65}return E}function hd(o,c){if(!(128&c[be])){const p=c[Zi];p.destroyNode&&Vs(o,c,p,3,null,null),function Uf(o){let c=o[An];if(!c)return ud(o[Xt],o);for(;c;){let p=null;if(Un(c))p=c[An];else{const E=c[Gn];E&&(p=E)}if(!p){for(;c&&!c[Dt]&&c!==o;)Un(c)&&ud(c[Xt],c),c=c[dt];null===c&&(c=o),Un(c)&&ud(c[Xt],c),p=c&&c[Dt]}c=p}}(c)}}function ud(o,c){if(!(128&c[be])){c[be]&=-65,c[be]|=128,function h1(o,c){let p;if(null!=o&&null!=(p=o.destroyHooks))for(let E=0;E<p.length;E+=2){const z=c[p[E]];if(!(z instanceof nt)){const Z=p[E+1];if(Array.isArray(Z))for(let de=0;de<Z.length;de+=2){const He=z[Z[de]],Ke=Z[de+1];Ya(4,He,Ke);try{Ke.call(He)}finally{Ya(5,He,Ke)}}else{Ya(4,z,Z);try{Z.call(z)}finally{Ya(5,z,Z)}}}}}(o,c),function wc(o,c){const p=o.cleanup,E=c[bi];let z=-1;if(null!==p)for(let Z=0;Z<p.length-1;Z+=2)if("string"==typeof p[Z]){const de=p[Z+3];de>=0?E[z=de]():E[z=-de].unsubscribe(),Z+=2}else{const de=E[z=p[Z+1]];p[Z].call(de)}if(null!==E){for(let Z=z+1;Z<E.length;Z++)(0,E[Z])();c[bi]=null}}(o,c),1===c[Xt].type&&c[Zi].destroy();const p=c[nr];if(null!==p&&ia(c[dt])){p!==c[dt]&&Oh(p,c);const E=c[mi];null!==E&&E.detachView(o)}!function D2(o){L2.delete(o[jt])}(c)}}function Ml(o,c,p){return function fd(o,c,p){let E=c;for(;null!==E&&40&E.type;)E=(c=E).parent;if(null===E)return p[Yt];{const{componentOffset:z}=E;if(z>-1){const{encapsulation:Z}=o.data[E.directiveStart+z];if(Z===pt.None||Z===pt.Emulated)return null}return Ca(E,p)}}(o,c.parent,p)}function Mc(o,c,p,E,z){o.insertBefore(c,p,E,z)}function ic(o,c,p){o.appendChild(c,p)}function P2(o,c,p,E,z){null!==E?Mc(o,c,p,E,z):ic(o,c,p)}function md(o,c){return o.parentNode(c)}function Rh(o,c,p){return N2(o,c,p)}let F2,p1,v1,Al,N2=function Nh(o,c,p){return 40&o.type?Ca(o,p):null};function Sl(o,c,p,E){const z=Ml(o,E,c),Z=c[Zi],He=Rh(E.parent||c[Ot],E,c);if(null!=z)if(Array.isArray(p))for(let Ke=0;Ke<p.length;Ke++)P2(Z,z,p[Ke],He,!1);else P2(Z,z,p,He,!1);void 0!==F2&&F2(Z,E,c,p,z)}function u1(o,c){if(null!==c){const p=c.type;if(3&p)return Ca(c,o);if(4&p)return nc(-1,o[c.index]);if(8&p){const E=c.child;if(null!==E)return u1(o,E);{const z=o[c.index];return ia(z)?nc(-1,z):kn(z)}}if(32&p)return O2(c,o)()||kn(o[c.index]);{const E=f1(o,c);return null!==E?Array.isArray(E)?E[0]:u1(Cc(o[ta]),E):u1(o,c.next)}}return null}function f1(o,c){return null!==c?o[ta][Ot].projection[c.projection]:null}function nc(o,c){const p=Gn+o+1;if(p<c.length){const E=c[p],z=E[Xt].firstChild;if(null!==z)return u1(E,z)}return c[Bn]}function Tl(o,c,p,E,z,Z,de){for(;null!=p;){const He=E[p.index],Ke=p.type;if(de&&0===c&&(He&&io(kn(He),E),p.flags|=2),32!=(32&p.flags))if(8&Ke)Tl(o,c,p.child,E,z,Z,!1),el(c,o,z,He,Z);else if(32&Ke){const bt=O2(p,E);let Pt;for(;Pt=bt();)el(c,o,z,Pt,Z);el(c,o,z,He,Z)}else 16&Ke?m1(o,c,E,p,z,Z):el(c,o,z,He,Z);p=de?p.projectionNext:p.next}}function Vs(o,c,p,E,z,Z){Tl(p,E,o.firstChild,c,z,Z,!1)}function m1(o,c,p,E,z,Z){const de=p[ta],Ke=de[Ot].projection[E.projection];if(Array.isArray(Ke))for(let bt=0;bt<Ke.length;bt++)el(c,o,z,Ke[bt],Z);else Tl(o,c,Ke,de[dt],z,Z,!0)}function _d(o,c,p){""===p?o.removeAttribute(c,"class"):o.setAttribute(c,"class",p)}function pr(o,c,p){const{mergedAttrs:E,classes:z,styles:Z}=p;null!==E&&tn(o,c,E),null!==z&&_d(o,c,z),null!==Z&&function z2(o,c,p){o.setAttribute(c,"style",p)}(o,c,Z)}function ea(o){return function g1(){if(void 0===p1&&(p1=null,ct.trustedTypes))try{p1=ct.trustedTypes.createPolicy("angular",{createHTML:o=>o,createScript:o=>o,createScriptURL:o=>o})}catch{}return p1}()?.createHTML(o)||o}function Hh(o){v1=o}function b1(){if(void 0===Al&&(Al=null,ct.trustedTypes))try{Al=ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:o=>o,createScript:o=>o,createScriptURL:o=>o})}catch{}return Al}function vd(o){return b1()?.createHTML(o)||o}function yd(o){return b1()?.createScriptURL(o)||o}class as{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${W})`}}class xd extends as{getTypeName(){return"HTML"}}class zh extends as{getTypeName(){return"Style"}}class Cd extends as{getTypeName(){return"Script"}}class Vh extends as{getTypeName(){return"URL"}}class Bh extends as{getTypeName(){return"ResourceURL"}}function Us(o){return o instanceof as?o.changingThisBreaksApplicationSecurity:o}function il(o,c){const p=function Ll(o){return o instanceof as&&o.getTypeName()||null}(o);if(null!=p&&p!==c){if("ResourceURL"===p&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${p} (see ${W})`)}return p===c}function B2(o){return new xd(o)}function Uh(o){return new zh(o)}function U2(o){return new Cd(o)}function Gh(o){return new Vh(o)}function Zh(o){return new Bh(o)}class Z2{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const p=(new window.DOMParser).parseFromString(ea(c),"text/html").body;return null===p?this.inertDocumentHelper.getInertBodyElement(c):(p.removeChild(p.firstChild),p)}catch{return null}}}class Wh{constructor(c){this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(c){const p=this.inertDocument.createElement("template");return p.innerHTML=ea(c),p}}const W2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function y1(o){return(o=String(o)).match(W2)?o:"unsafe:"+o}function _s(o){const c={};for(const p of o.split(","))c[p]=!0;return c}function Dl(...o){const c={};for(const p of o)for(const E in p)p.hasOwnProperty(E)&&(c[E]=!0);return c}const wd=_s("area,br,col,hr,img,wbr"),Y2=_s("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Md=_s("rp,rt"),Sd=Dl(wd,Dl(Y2,_s("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dl(Md,_s("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dl(Md,Y2)),x1=_s("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Td=Dl(x1,_s("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),_s("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),jh=_s("script,style,template");class Qh{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let p=c.firstChild,E=!0;for(;p;)if(p.nodeType===Node.ELEMENT_NODE?E=this.startElement(p):p.nodeType===Node.TEXT_NODE?this.chars(p.nodeValue):this.sanitizedSomething=!0,E&&p.firstChild)p=p.firstChild;else for(;p;){p.nodeType===Node.ELEMENT_NODE&&this.endElement(p);let z=this.checkClobberedElement(p,p.nextSibling);if(z){p=z;break}p=this.checkClobberedElement(p,p.parentNode)}return this.buf.join("")}startElement(c){const p=c.nodeName.toLowerCase();if(!Sd.hasOwnProperty(p))return this.sanitizedSomething=!0,!jh.hasOwnProperty(p);this.buf.push("<"),this.buf.push(p);const E=c.attributes;for(let z=0;z<E.length;z++){const Z=E.item(z),de=Z.name,He=de.toLowerCase();if(!Td.hasOwnProperty(He)){this.sanitizedSomething=!0;continue}let Ke=Z.value;x1[He]&&(Ke=y1(Ke)),this.buf.push(" ",de,'="',Q2(Ke),'"')}return this.buf.push(">"),!0}endElement(c){const p=c.nodeName.toLowerCase();Sd.hasOwnProperty(p)&&!wd.hasOwnProperty(p)&&(this.buf.push("</"),this.buf.push(p),this.buf.push(">"))}chars(c){this.buf.push(Q2(c))}checkClobberedElement(c,p){if(p&&(c.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return p}}const j2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qh=/([^\#-~ |!])/g;function Q2(o){return o.replace(/&/g,"&amp;").replace(j2,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(qh,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let C1;function q2(o,c){let p=null;try{C1=C1||function G2(o){const c=new Wh(o);return function Yh(){try{return!!(new window.DOMParser).parseFromString(ea(""),"text/html")}catch{return!1}}()?new Z2(c):c}(o);let E=c?String(c):"";p=C1.getInertBodyElement(E);let z=5,Z=E;do{if(0===z)throw new Error("Failed to sanitize html because the input is unstable");z--,E=Z,Z=p.innerHTML,p=C1.getInertBodyElement(E)}while(E!==Z);return ea((new Qh).sanitizeChildren(Ed(p)||p))}finally{if(p){const E=Ed(p)||p;for(;E.firstChild;)E.removeChild(E.firstChild)}}}function Ed(o){return"content"in o&&function J2(o){return o.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===o.nodeName}(o)?o.content:null}var $a=(()=>(($a=$a||{})[$a.NONE=0]="NONE",$a[$a.HTML=1]="HTML",$a[$a.STYLE=2]="STYLE",$a[$a.SCRIPT=3]="SCRIPT",$a[$a.URL=4]="URL",$a[$a.RESOURCE_URL=5]="RESOURCE_URL",$a))();function Ad(o){const c=vs();return c?vd(c.sanitize($a.HTML,o)||""):il(o,"HTML")?vd(Us(o)):q2(function V2(){return void 0!==v1?v1:typeof document<"u"?document:void 0}(),X(o))}function X2(o){const c=vs();return c?c.sanitize($a.URL,o)||"":il(o,"URL")?Us(o):y1(X(o))}function Ld(o){const c=vs();if(c)return yd(c.sanitize($a.RESOURCE_URL,o)||"");if(il(o,"ResourceURL"))return yd(Us(o));throw new Y(904,!1)}function Dd(o,c,p){return function eu(o,c){return"src"===c&&("embed"===o||"frame"===o||"iframe"===o||"media"===o||"script"===o)||"href"===c&&("base"===o||"link"===o)?Ld:X2}(c,p)(o)}function vs(){const o=Ti();return o&&o[Wn]}const w1=new wa("ENVIRONMENT_INITIALIZER"),e0=new wa("INJECTOR",-1),t0=new wa("INJECTOR_DEF_TYPES");class Id{get(c,p=xt){if(p===xt){const E=new Error(`NullInjectorError: No provider for ${N(c)}!`);throw E.name="NullInjectorError",E}return p}}function iu(o){return{\u0275providers:o}}function kd(...o){return{\u0275providers:nu(0,o),\u0275fromNgModule:!0}}function nu(o,...c){const p=[],E=new Set;let z;return _e(c,Z=>{const de=Z;Od(de,p,[],E)&&(z||(z=[]),z.push(de))}),void 0!==z&&M1(z,p),p}function M1(o,c){for(let p=0;p<o.length;p++){const{providers:z}=o[p];S1(z,Z=>{c.push(Z)})}}function Od(o,c,p,E){if(!(o=L(o)))return!1;let z=null,Z=ze(o);const de=!Z&&Mt(o);if(Z||de){if(de&&!de.standalone)return!1;z=o}else{const Ke=o.ngModule;if(Z=ze(Ke),!Z)return!1;z=Ke}const He=E.has(z);if(de){if(He)return!1;if(E.add(z),de.dependencies){const Ke="function"==typeof de.dependencies?de.dependencies():de.dependencies;for(const bt of Ke)Od(bt,c,p,E)}}else{if(!Z)return!1;{if(null!=Z.imports&&!He){let bt;E.add(z);try{_e(Z.imports,Pt=>{Od(Pt,c,p,E)&&(bt||(bt=[]),bt.push(Pt))})}finally{}void 0!==bt&&M1(bt,c)}if(!He){const bt=Wa(z)||(()=>new z);c.push({provide:z,useFactory:bt,deps:ft},{provide:t0,useValue:z,multi:!0},{provide:w1,useValue:()=>Ct(z),multi:!0})}const Ke=Z.providers;null==Ke||He||S1(Ke,Pt=>{c.push(Pt)})}}return z!==o&&void 0!==o.providers}function S1(o,c){for(let p of o)V(p)&&(p=p.\u0275providers),Array.isArray(p)?S1(p,c):c(p)}const n0=x({provide:String,useValue:x});function T1(o){return null!==o&&"object"==typeof o&&n0 in o}function ac(o){return"function"==typeof o}const Il=new wa("Set Injector scope."),E1={},au={};let A1;function nl(){return void 0===A1&&(A1=new Id),A1}class Ec{}class Pd extends Ec{get destroyed(){return this._destroyed}constructor(c,p,E,z){super(),this.parent=p,this.source=E,this.scopes=z,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,rl(c,de=>this.processProvider(de)),this.records.set(e0,al(void 0,this)),z.has("environment")&&this.records.set(Ec,al(void 0,this));const Z=this.records.get(Il);null!=Z&&"string"==typeof Z.value&&this.scopes.add(Z.value),this.injectorDefTypes=new Set(this.get(t0.multi,ft,Ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const p=je(this),E=le(void 0);try{return c()}finally{je(p),le(E)}}get(c,p=xt,E=Ue.Default){this.assertNotDestroyed(),E=Ne(E);const z=je(this),Z=le(void 0);try{if(!(E&Ue.SkipSelf)){let He=this.records.get(c);if(void 0===He){const Ke=function su(o){return"function"==typeof o||"object"==typeof o&&o instanceof wa}(c)&&Se(c);He=Ke&&this.injectableDefInScope(Ke)?al(Ac(c),E1):null,this.records.set(c,He)}if(null!=He)return this.hydrate(c,He)}return(E&Ue.Self?nl():this.parent).get(c,p=E&Ue.Optional&&p===xt?null:p)}catch(de){if("NullInjectorError"===de.name){if((de[$e]=de[$e]||[]).unshift(N(c)),z)throw de;return function Xe(o,c,p,E){const z=o[$e];throw c[Et]&&z.unshift(c[Et]),o.message=function ei(o,c,p,E=null){o=o&&"\n"===o.charAt(0)&&o.charAt(1)==mt?o.slice(2):o;let z=N(c);if(Array.isArray(c))z=c.map(N).join(" -> ");else if("object"==typeof c){let Z=[];for(let de in c)if(c.hasOwnProperty(de)){let He=c[de];Z.push(de+":"+("string"==typeof He?JSON.stringify(He):N(He)))}z=`{${Z.join(", ")}}`}return`${p}${E?"("+E+")":""}[${z}]: ${o.replace(J,"\n ")}`}("\n"+o.message,z,p,E),o[Pe]=z,o[$e]=null,o}(de,c,"R3InjectorError",this.source)}throw de}finally{le(Z),je(z)}}resolveInjectorInitializers(){const c=je(this),p=le(void 0);try{const E=this.get(w1.multi,ft,Ue.Self);for(const z of E)z()}finally{je(c),le(p)}}toString(){const c=[],p=this.records;for(const E of p.keys())c.push(N(E));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processProvider(c){let p=ac(c=L(c))?c:L(c&&c.provide);const E=function ru(o){return T1(o)?al(void 0,o.useValue):al(o0(o),E1)}(c);if(ac(c)||!0!==c.multi)this.records.get(p);else{let z=this.records.get(p);z||(z=al(void 0,E1,!0),z.factory=()=>$(z.multi),this.records.set(p,z)),p=c,z.multi.push(c)}this.records.set(p,E)}hydrate(c,p){return p.value===E1&&(p.value=au,p.value=p.factory()),"object"==typeof p.value&&p.value&&function ou(o){return null!==o&&"object"==typeof o&&"function"==typeof o.ngOnDestroy}(p.value)&&this._ngOnDestroyHooks.add(p.value),p.value}injectableDefInScope(c){if(!c.providedIn)return!1;const p=L(c.providedIn);return"string"==typeof p?"any"===p||this.scopes.has(p):this.injectorDefTypes.has(p)}}function Ac(o){const c=Se(o),p=null!==c?c.factory:Wa(o);if(null!==p)return p;if(o instanceof wa)throw new Y(204,!1);if(o instanceof Function)return function qf(o){const c=o.length;if(c>0)throw Ge(c,"?"),new Y(204,!1);const p=function oe(o){return o&&(o[Oe]||o[Ae])||null}(o);return null!==p?()=>p.factory(o):()=>new o}(o);throw new Y(204,!1)}function o0(o,c,p){let E;if(ac(o)){const z=L(o);return Wa(z)||Ac(z)}if(T1(o))E=()=>L(o.useValue);else if(function r0(o){return!(!o||!o.useFactory)}(o))E=()=>o.useFactory(...$(o.deps||[]));else if(function a0(o){return!(!o||!o.useExisting)}(o))E=()=>Ct(L(o.useExisting));else{const z=L(o&&(o.useClass||o.provide));if(!function s0(o){return!!o.deps}(o))return Wa(z)||Ac(z);E=()=>new z(...$(o.deps))}return E}function al(o,c,p=!1){return{factory:o,value:c,multi:p?[]:void 0}}function rl(o,c){for(const p of o)Array.isArray(p)?rl(p,c):p&&V(p)?rl(p.\u0275providers,c):c(p)}class Rd{}class c0{}class cu{resolveComponentFactory(c){throw function kl(o){const c=Error(`No component factory found for ${N(o)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=o,c}(c)}}let Ol=(()=>{class o{}return o.NULL=new cu,o})();function lu(){return rc(Ka(),Ti())}function rc(o,c){return new Pl(Ca(o,c))}let Pl=(()=>{class o{constructor(p){this.nativeElement=p}}return o.__NG_ELEMENT_ID__=lu,o})();function l0(o){return o instanceof Pl?o.nativeElement:o}class Fd{}let Hd=(()=>{class o{}return o.__NG_ELEMENT_ID__=()=>function d0(){const o=Ti(),p=wt(Ka().index,o);return(Un(p)?p:o)[Zi]}(),o})(),zd=(()=>{class o{}return o.\u0275prov=pe({token:o,providedIn:"root",factory:()=>null}),o})();class h0{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const L1=new h0("15.2.9"),Rl={},D1="ngOriginalError";function Vd(o){return o[D1]}class ol{constructor(){this._console=console}handleError(c){const p=this._findOriginalError(c);this._console.error("ERROR",c),p&&this._console.error("ORIGINAL ERROR",p)}_findOriginalError(c){let p=c&&Vd(c);for(;p&&Vd(p);)p=Vd(p);return p||null}}function Bd(o){return o.ownerDocument.defaultView}function bs(o){return o instanceof Function?o():o}function mu(o,c,p){let E=o.length;for(;;){const z=o.indexOf(c,p);if(-1===z)return z;if(0===z||o.charCodeAt(z-1)<=32){const Z=c.length;if(z+Z===E||o.charCodeAt(z+Z)<=32)return z}p=z+1}}const p0="ng-template";function pu(o,c,p){let E=0,z=!0;for(;E<o.length;){let Z=o[E++];if("string"==typeof Z&&z){const de=o[E++];if(p&&"class"===Z&&-1!==mu(de.toLowerCase(),c,0))return!0}else{if(1===Z){for(;E<o.length&&"string"==typeof(Z=o[E++]);)if(Z.toLowerCase()===c)return!0;return!1}"number"==typeof Z&&(z=!1)}}return!1}function Zd(o){return 4===o.type&&o.value!==p0}function gu(o,c,p){return c===(4!==o.type||p?o.value:p0)}function _u(o,c,p){let E=4;const z=o.attrs||[],Z=function bu(o){for(let c=0;c<o.length;c++)if(dn(o[c]))return c;return o.length}(z);let de=!1;for(let He=0;He<c.length;He++){const Ke=c[He];if("number"!=typeof Ke){if(!de)if(4&E){if(E=2|1&E,""!==Ke&&!gu(o,Ke,p)||""===Ke&&1===c.length){if(rs(E))return!1;de=!0}}else{const bt=8&E?Ke:c[++He];if(8&E&&null!==o.attrs){if(!pu(o.attrs,bt,p)){if(rs(E))return!1;de=!0}continue}const ti=g0(8&E?"class":Ke,z,Zd(o),p);if(-1===ti){if(rs(E))return!1;de=!0;continue}if(""!==bt){let di;di=ti>Z?"":z[ti+1].toLowerCase();const xi=8&E?di:null;if(xi&&-1!==mu(xi,bt,0)||2&E&&bt!==di){if(rs(E))return!1;de=!0}}}}else{if(!de&&!rs(E)&&!rs(Ke))return!1;if(de&&rs(Ke))continue;de=!1,E=Ke|1&E}}return rs(E)||de}function rs(o){return 0==(1&o)}function g0(o,c,p,E){if(null===c)return-1;let z=0;if(E||!p){let Z=!1;for(;z<c.length;){const de=c[z];if(de===o)return z;if(3===de||6===de)Z=!0;else{if(1===de||2===de){let He=c[++z];for(;"string"==typeof He;)He=c[++z];continue}if(4===de)break;if(0===de){z+=4;continue}}z+=Z?1:2}return-1}return function v0(o,c){let p=o.indexOf(4);if(p>-1)for(p++;p<o.length;){const E=o[p];if("number"==typeof E)return-1;if(E===c)return p;p++}return-1}(c,o)}function _0(o,c,p=!1){for(let E=0;E<c.length;E++)if(_u(o,c[E],p))return!0;return!1}function yu(o,c){e:for(let p=0;p<c.length;p++){const E=c[p];if(o.length===E.length){for(let z=0;z<o.length;z++)if(o[z]!==E[z])continue e;return!0}}return!1}function b0(o,c){return o?":not("+c.trim()+")":c}function y0(o){let c=o[0],p=1,E=2,z="",Z=!1;for(;p<o.length;){let de=o[p];if("string"==typeof de)if(2&E){const He=o[++p];z+="["+de+(He.length>0?'="'+He+'"':"")+"]"}else 8&E?z+="."+de:4&E&&(z+=" "+de);else""!==z&&!rs(de)&&(c+=b0(Z,z),z=""),E=de,Z=Z||!rs(E);p++}return""!==z&&(c+=b0(Z,z)),c}const zn={};function x0(o){C0(Dn(),Ti(),Ja()+o,!1)}function C0(o,c,p,E){if(!E)if(3==(3&c[be])){const Z=o.preOrderCheckHooks;null!==Z&&zi(c,Z,p)}else{const Z=o.preOrderHooks;null!==Z&&Rn(c,Z,0,p)}Uo(p)}function Wd(o,c=null,p=null,E){const z=Yd(o,c,p,E);return z.resolveInjectorInitializers(),z}function Yd(o,c=null,p=null,E,z=new Set){const Z=[p||ft,kd(o)];return E=E||("object"==typeof o?void 0:N(o)),new Pd(Z,c||nl(),E||null,z)}let sc=(()=>{class o{static create(p,E){if(Array.isArray(p))return Wd({name:""},E,p,"");{const z=p.name??"";return Wd({name:z},p.parent,p.providers,z)}}}return o.THROW_IF_NOT_FOUND=xt,o.NULL=new Id,o.\u0275prov=pe({token:o,providedIn:"any",factory:()=>Ct(e0)}),o.__NG_ELEMENT_ID__=-1,o})();function kc(o,c=Ue.Default){const p=Ti();return null===p?Ct(o,c):Q1(Ka(),p,L(o),c)}function N0(){throw new Error("invalid")}function F0(o,c){const p=o.contentQueries;if(null!==p)for(let E=0;E<p.length;E+=2){const Z=p[E+1];if(-1!==Z){const de=o.data[Z];hs(p[E]),de.contentQueries(2,c[Z],Z)}}}function ll(o,c,p,E,z,Z,de,He,Ke,bt,Pt){const ti=c.blueprint.slice();return ti[Yt]=z,ti[be]=76|E,(null!==Pt||o&&1024&o[be])&&(ti[be]|=1024),ca(ti),ti[dt]=ti[Aa]=o,ti[li]=p,ti[gi]=de||o&&o[gi],ti[Zi]=He||o&&o[Zi],ti[Wn]=Ke||o&&o[Wn]||null,ti[pi]=bt||o&&o[pi]||null,ti[Ot]=Z,ti[jt]=function Hf(){return Eh++}(),ti[oi]=Pt,ti[ta]=2==c.type?o[ta]:ti,ti}function go(o,c,p,E,z){let Z=o.data[c];if(null===Z)Z=function R1(o,c,p,E,z){const Z=ds(),de=Wo(),Ke=o.data[c]=function V0(o,c,p,E,z,Z){return{type:p,index:E,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:z,attrs:Z,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,de?Z:Z&&Z.parent,p,c,E,z);return null===o.firstChild&&(o.firstChild=Ke),null!==Z&&(de?null==Z.child&&null!==Ke.parent&&(Z.child=Ke):null===Z.next&&(Z.next=Ke,Ke.prev=Z)),Ke}(o,c,p,E,z),function Vo(){return gn.lFrame.inI18n}()&&(Z.flags|=32);else if(64&Z.type){Z.type=p,Z.value=E,Z.attrs=z;const de=function Zo(){const o=gn.lFrame,c=o.currentTNode;return o.isParent?c:c.parent}();Z.injectorIndex=null===de?-1:de.injectorIndex}return Dr(Z,!0),Z}function N1(o,c,p,E){if(0===p)return-1;const z=c.length;for(let Z=0;Z<p;Z++)c.push(E),o.blueprint.push(E),o.data.push(null);return z}function ys(o,c,p){Is(c);try{const E=o.viewQuery;null!==E&&B1(1,E,p);const z=o.template;null!==z&&Xd(o,c,z,1,p),o.firstCreatePass&&(o.firstCreatePass=!1),o.staticContentQueries&&F0(o,c),o.staticViewQueries&&B1(2,o.viewQuery,p);const Z=o.components;null!==Z&&function Jd(o,c){for(let p=0;p<c.length;p++)Q0(o,c[p])}(c,Z)}catch(E){throw o.firstCreatePass&&(o.incompleteFirstPass=!0,o.firstCreatePass=!1),E}finally{c[be]&=-5,es()}}function F1(o,c,p,E){const z=c[be];if(128!=(128&z)){Is(c);try{ca(c),function Na(o){return gn.lFrame.bindingIndex=o}(o.bindingStartIndex),null!==p&&Xd(o,c,p,2,E);const de=3==(3&z);if(de){const bt=o.preOrderCheckHooks;null!==bt&&zi(c,bt,null)}else{const bt=o.preOrderHooks;null!==bt&&Rn(c,bt,0,null),Be(c,0)}if(function h3(o){for(let c=zs(o);null!==c;c=o1(c)){if(!c[Yn])continue;const p=c[Ln];for(let E=0;E<p.length;E++){const z=p[E];512&z[be]||Fi(z[dt],1),z[be]|=512}}}(c),function Ku(o){for(let c=zs(o);null!==c;c=o1(c))for(let p=Gn;p<c.length;p++){const E=c[p],z=E[Xt];Pi(E)&&F1(z,E,z.template,E[li])}}(c),null!==o.contentQueries&&F0(o,c),de){const bt=o.contentCheckHooks;null!==bt&&zi(c,bt)}else{const bt=o.contentHooks;null!==bt&&Rn(c,bt,1),Be(c,1)}!function Nu(o,c){const p=o.hostBindingOpCodes;if(null!==p)try{for(let E=0;E<p.length;E++){const z=p[E];if(z<0)Uo(~z);else{const Z=z,de=p[++E],He=p[++E];mc(de,Z),He(2,c[Z])}}}finally{Uo(-1)}}(o,c);const He=o.components;null!==He&&function qd(o,c){for(let p=0;p<c.length;p++)u3(o,c[p])}(c,He);const Ke=o.viewQuery;if(null!==Ke&&B1(2,Ke,E),de){const bt=o.viewCheckHooks;null!==bt&&zi(c,bt)}else{const bt=o.viewHooks;null!==bt&&Rn(c,bt,2),Be(c,2)}!0===o.firstUpdatePass&&(o.firstUpdatePass=!1),c[be]&=-41,512&c[be]&&(c[be]&=-513,Fi(c[dt],-1))}finally{es()}}}function Xd(o,c,p,E,z){const Z=Ja(),de=2&E;try{Uo(-1),de&&c.length>wi&&C0(o,c,wi,!1),Ya(de?2:0,z),p(E,z)}finally{Uo(Z),Ya(de?3:1,z)}}function $d(o,c,p){if(wo(c)){const z=c.directiveEnd;for(let Z=c.directiveStart;Z<z;Z++){const de=o.data[Z];de.contentQueries&&de.contentQueries(1,p[Z],Z)}}}function e2(o,c,p){Mi()&&(function c3(o,c,p,E){const z=p.directiveStart,Z=p.directiveEnd;Fr(p)&&function Wu(o,c,p){const E=Ca(c,o),z=H1(p),Z=o[gi],de=z1(o,ll(o,z,null,p.onPush?32:16,E,c,Z,Z.createRenderer(E,p),null,null,null));o[c.index]=de}(c,p,o.data[z+p.componentOffset]),o.firstCreatePass||Gc(p,c),io(E,c);const de=p.initialInputs;for(let He=z;He<Z;He++){const Ke=o.data[He],bt=ar(c,o,He,p);io(bt,c),null!==de&&j0(0,He-z,bt,Ke,0,de),jn(Ke)&&(wt(p.index,c)[li]=ar(c,o,He,p))}}(o,c,p,Ca(p,c)),64==(64&p.flags)&&Bu(o,c,p))}function H0(o,c,p=Ca){const E=c.localNames;if(null!==E){let z=c.index+1;for(let Z=0;Z<E.length;Z+=2){const de=E[Z+1],He=-1===de?p(c,o):o[de];o[z++]=He}}}function H1(o){const c=o.tView;return null===c||c.incompleteFirstPass?o.tView=z0(1,null,o.template,o.decls,o.vars,o.directiveDefs,o.pipeDefs,o.viewQuery,o.schemas,o.consts):c}function z0(o,c,p,E,z,Z,de,He,Ke,bt){const Pt=wi+E,ti=Pt+z,di=function Fu(o,c){const p=[];for(let E=0;E<c;E++)p.push(E<o?null:zn);return p}(Pt,ti),xi="function"==typeof bt?bt():bt;return di[Xt]={type:o,blueprint:di,template:p,queries:null,viewQuery:He,declTNode:c,data:di.slice().fill(null,Pt),bindingStartIndex:Pt,expandoStartIndex:ti,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof Z?Z():Z,pipeRegistry:"function"==typeof de?de():de,firstChild:null,schemas:Ke,consts:xi,incompleteFirstPass:!1}}function Hu(o,c,p,E){const z=J0(c);null===p?z.push(E):(z.push(p),o.firstCreatePass&&qu(o).push(E,z.length-1))}function zu(o,c,p,E){for(let z in o)if(o.hasOwnProperty(z)){p=null===p?{}:p;const Z=o[z];null===E?B0(p,c,z,Z):E.hasOwnProperty(z)&&B0(p,c,E[z],Z)}return p}function B0(o,c,p,E){o.hasOwnProperty(p)?o[p].push(c,E):o[p]=[c,E]}function Do(o,c,p,E,z,Z,de,He){const Ke=Ca(c,p);let Pt,bt=c.inputs;!He&&null!=bt&&(Pt=bt[E])?(o2(o,p,Pt,E,z),Fr(c)&&function o3(o,c){const p=wt(c,o);16&p[be]||(p[be]|=32)}(p,c.index)):3&c.type&&(E=function r3(o){return"class"===o?"className":"for"===o?"htmlFor":"formaction"===o?"formAction":"innerHtml"===o?"innerHTML":"readonly"===o?"readOnly":"tabindex"===o?"tabIndex":o}(E),z=null!=de?de(z,c.value||"",E):z,Z.setProperty(Ke,E,z))}function U0(o,c,p,E){if(Mi()){const z=null===E?null:{"":-1},Z=function Z0(o,c){const p=o.directiveRegistry;let E=null,z=null;if(p)for(let Z=0;Z<p.length;Z++){const de=p[Z];if(_0(c,de.selectors,!1))if(E||(E=[]),jn(de))if(null!==de.findHostDirectiveDefs){const He=[];z=z||new Map,de.findHostDirectiveDefs(de,He,z),E.unshift(...He,de),W0(o,c,He.length)}else E.unshift(de),W0(o,c,0);else z=z||new Map,de.findHostDirectiveDefs?.(de,E,z),E.push(de)}return null===E?null:[E,z]}(o,p);let de,He;null===Z?de=He=null:[de,He]=Z,null!==de&&t2(o,c,p,de,z,He),z&&function Uu(o,c,p){if(c){const E=o.localNames=[];for(let z=0;z<c.length;z+=2){const Z=p[c[z+1]];if(null==Z)throw new Y(-301,!1);E.push(c[z],Z)}}}(p,E,z)}p.mergedAttrs=pa(p.mergedAttrs,p.attrs)}function t2(o,c,p,E,z,Z){for(let bt=0;bt<E.length;bt++)Zc(Gc(p,c),o,E[bt].type);!function Gu(o,c,p){o.flags|=1,o.directiveStart=c,o.directiveEnd=c+p,o.providerIndexes=c}(p,o.data.length,E.length);for(let bt=0;bt<E.length;bt++){const Pt=E[bt];Pt.providersResolver&&Pt.providersResolver(Pt)}let de=!1,He=!1,Ke=N1(o,c,E.length,null);for(let bt=0;bt<E.length;bt++){const Pt=E[bt];p.mergedAttrs=pa(p.mergedAttrs,Pt.hostAttrs),Zu(o,p,c,Ke,Pt),Y0(Ke,Pt,z),null!==Pt.contentQueries&&(p.flags|=4),(null!==Pt.hostBindings||null!==Pt.hostAttrs||0!==Pt.hostVars)&&(p.flags|=64);const ti=Pt.type.prototype;!de&&(ti.ngOnChanges||ti.ngOnInit||ti.ngDoCheck)&&((o.preOrderHooks??(o.preOrderHooks=[])).push(p.index),de=!0),!He&&(ti.ngOnChanges||ti.ngDoCheck)&&((o.preOrderCheckHooks??(o.preOrderCheckHooks=[])).push(p.index),He=!0),Ke++}!function dl(o,c,p){const z=c.directiveEnd,Z=o.data,de=c.attrs,He=[];let Ke=null,bt=null;for(let Pt=c.directiveStart;Pt<z;Pt++){const ti=Z[Pt],di=p?p.get(ti):null,Ni=di?di.outputs:null;Ke=zu(ti.inputs,Pt,Ke,di?di.inputs:null),bt=zu(ti.outputs,Pt,bt,Ni);const en=null===Ke||null===de||Zd(c)?null:d3(Ke,Pt,de);He.push(en)}null!==Ke&&(Ke.hasOwnProperty("class")&&(c.flags|=8),Ke.hasOwnProperty("style")&&(c.flags|=16)),c.initialInputs=He,c.inputs=Ke,c.outputs=bt}(o,p,Z)}function Bu(o,c,p){const E=p.directiveStart,z=p.directiveEnd,Z=p.index,de=function Ir(){return gn.lFrame.currentDirectiveIndex}();try{Uo(Z);for(let He=E;He<z;He++){const Ke=o.data[He],bt=c[He];mr(He),(null!==Ke.hostBindings||0!==Ke.hostVars||null!==Ke.hostAttrs)&&l3(Ke,bt)}}finally{Uo(-1),mr(de)}}function l3(o,c){null!==o.hostBindings&&o.hostBindings(1,c)}function W0(o,c,p){c.componentOffset=p,(o.components??(o.components=[])).push(c.index)}function Y0(o,c,p){if(p){if(c.exportAs)for(let E=0;E<c.exportAs.length;E++)p[c.exportAs[E]]=o;jn(c)&&(p[""]=o)}}function Zu(o,c,p,E,z){o.data[E]=z;const Z=z.factory||(z.factory=Wa(z.type)),de=new nt(Z,jn(z),kc);o.blueprint[E]=de,p[E]=de,function G0(o,c,p,E,z){const Z=z.hostBindings;if(Z){let de=o.hostBindingOpCodes;null===de&&(de=o.hostBindingOpCodes=[]);const He=~c.index;(function n2(o){let c=o.length;for(;c>0;){const p=o[--c];if("number"==typeof p&&p<0)return p}return 0})(de)!=He&&de.push(He),de.push(p,E,Z)}}(o,c,E,N1(o,p,z.hostVars,zn),z)}function xs(o,c,p,E,z,Z){const de=Ca(o,c);!function K0(o,c,p,E,z,Z,de){if(null==Z)o.removeAttribute(c,z,p);else{const He=null==de?X(Z):de(Z,E||"",z);o.setAttribute(c,z,He,p)}}(c[Zi],de,Z,o.value,p,E,z)}function j0(o,c,p,E,z,Z){const de=Z[c];if(null!==de){const He=E.setInput;for(let Ke=0;Ke<de.length;){const bt=de[Ke++],Pt=de[Ke++],ti=de[Ke++];null!==He?E.setInput(p,ti,bt,Pt):p[Pt]=ti}}}function d3(o,c,p){let E=null,z=0;for(;z<p.length;){const Z=p[z];if(0!==Z)if(5!==Z){if("number"==typeof Z)break;if(o.hasOwnProperty(Z)){null===E&&(E=[]);const de=o[Z];for(let He=0;He<de.length;He+=2)if(de[He]===c){E.push(Z,de[He+1],p[z+1]);break}}z+=2}else z+=2;else z+=4}return E}function Yu(o,c,p,E){return[o,!0,!1,c,null,0,E,p,null,null]}function u3(o,c){const p=wt(c,o);if(Pi(p)){const E=p[Xt];48&p[be]?F1(E,p,E.template,p[li]):p[Ut]>0&&a2(p)}}function a2(o){for(let E=zs(o);null!==E;E=o1(E))for(let z=Gn;z<E.length;z++){const Z=E[z];if(Pi(Z))if(512&Z[be]){const de=Z[Xt];F1(de,Z,de.template,Z[li])}else Z[Ut]>0&&a2(Z)}const p=o[Xt].components;if(null!==p)for(let E=0;E<p.length;E++){const z=wt(p[E],o);Pi(z)&&z[Ut]>0&&a2(z)}}function Q0(o,c){const p=wt(c,o),E=p[Xt];(function q0(o,c){for(let p=c.length;p<o.blueprint.length;p++)c.push(o.blueprint[p])})(E,p),ys(E,p,p[li])}function z1(o,c){return o[An]?o[oa][Dt]=c:o[An]=c,o[oa]=c,c}function V1(o){for(;o;){o[be]|=32;const c=Cc(o);if(La(o)&&!c)return o;o=c}return null}function r2(o,c,p,E=!0){const z=c[gi];z.begin&&z.begin();try{F1(o,c,o.template,p)}catch(de){throw E&&$0(c,de),de}finally{z.end&&z.end()}}function B1(o,c,p){hs(0),c(o,p)}function J0(o){return o[bi]||(o[bi]=[])}function qu(o){return o.cleanup||(o.cleanup=[])}function X0(o,c,p){return(null===o||jn(o))&&(p=function fr(o){for(;Array.isArray(o);){if("object"==typeof o[ln])return o;o=o[Yt]}return null}(p[c.index])),p[Zi]}function $0(o,c){const p=o[pi],E=p?p.get(ol,null):null;E&&E.handleError(c)}function o2(o,c,p,E,z){for(let Z=0;Z<p.length;){const de=p[Z++],He=p[Z++],Ke=c[de],bt=o.data[de];null!==bt.setInput?bt.setInput(Ke,z,E,He):Ke[He]=z}}function Cs(o,c,p){const E=Lr(c,o);!function tc(o,c,p){o.setValue(c,p)}(o[Zi],E,p)}function s2(o,c,p){let E=p?o.styles:null,z=p?o.classes:null,Z=0;if(null!==c)for(let de=0;de<c.length;de++){const He=c[de];"number"==typeof He?Z=He:1==Z?z=d(z,He):2==Z&&(E=d(E,He+": "+c[++de]+";"))}p?o.styles=E:o.stylesWithoutHost=E,p?o.classes=z:o.classesWithoutHost=z}function Fl(o,c,p,E,z=!1){for(;null!==p;){const Z=c[p.index];if(null!==Z&&E.push(kn(Z)),ia(Z))for(let He=Gn;He<Z.length;He++){const Ke=Z[He],bt=Ke[Xt].firstChild;null!==bt&&Fl(Ke[Xt],Ke,bt,E)}const de=p.type;if(8&de)Fl(o,c,p.child,E);else if(32&de){const He=O2(p,c);let Ke;for(;Ke=He();)E.push(Ke)}else if(16&de){const He=f1(c,p);if(Array.isArray(He))E.push(...He);else{const Ke=Cc(c[ta]);Fl(Ke[Xt],Ke,He,E,!0)}}p=z?p.projectionNext:p.next}return E}class Oc{get rootNodes(){const c=this._lView,p=c[Xt];return Fl(p,c,p.firstChild,[])}constructor(c,p){this._lView=c,this._cdRefInjectingView=p,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[li]}set context(c){this._lView[li]=c}get destroyed(){return 128==(128&this._lView[be])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const c=this._lView[dt];if(ia(c)){const p=c[_a],E=p?p.indexOf(this):-1;E>-1&&(d1(c,E),ae(p,E))}this._attachedToViewContainer=!1}hd(this._lView[Xt],this._lView)}onDestroy(c){Hu(this._lView[Xt],this._lView,null,c)}markForCheck(){V1(this._cdRefInjectingView||this._lView)}detach(){this._lView[be]&=-65}reattach(){this._lView[be]|=64}detectChanges(){r2(this._lView[Xt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function l1(o,c){Vs(o,c,c[Zi],2,null,null)}(this._lView[Xt],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new Y(902,!1);this._appRef=c}}class Ju extends Oc{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;r2(c[Xt],c,c[li],!1)}checkNoChanges(){}get context(){return null}}class A extends Ol{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const p=Mt(c);return new H(p,this.ngModule)}}function P(o){const c=[];for(let p in o)o.hasOwnProperty(p)&&c.push({propName:o[p],templateName:p});return c}class I{constructor(c,p){this.injector=c,this.parentInjector=p}get(c,p,E){E=Ne(E);const z=this.injector.get(c,Rl,E);return z!==Rl||p===Rl?z:this.parentInjector.get(c,p,E)}}class H extends c0{get inputs(){return P(this.componentDef.inputs)}get outputs(){return P(this.componentDef.outputs)}constructor(c,p){super(),this.componentDef=c,this.ngModule=p,this.componentType=c.type,this.selector=function xu(o){return o.map(y0).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!p}create(c,p,E,z){let Z=(z=z||this.ngModule)instanceof Ec?z:z?.injector;Z&&null!==this.componentDef.getStandaloneInjector&&(Z=this.componentDef.getStandaloneInjector(Z)||Z);const de=Z?new I(c,Z):c,He=de.get(Fd,null);if(null===He)throw new Y(407,!1);const Ke=de.get(zd,null),bt=He.createRenderer(null,this.componentDef),Pt=this.componentDef.selectors[0][0]||"div",ti=E?function a3(o,c,p){return o.selectRootElement(c,p===pt.ShadowDom)}(bt,E,this.componentDef.encapsulation):Lo(bt,Pt,function b(o){const c=o.toLowerCase();return"svg"===c?Ar:"math"===c?"math":null}(Pt)),di=this.componentDef.onPush?288:272,xi=z0(0,null,null,1,0,null,null,null,null,null),Ni=ll(null,xi,null,di,null,null,He,bt,Ke,de,null);let en,cn;Is(Ni);try{const vn=this.componentDef;let Nn,Gi=null;vn.findHostDirectiveDefs?(Nn=[],Gi=new Map,vn.findHostDirectiveDefs(vn,Nn,Gi),Nn.push(vn)):Nn=[vn];const Zn=function Jt(o,c){const p=o[Xt],E=wi;return o[E]=c,go(p,E,2,"#host",null)}(Ni,ti),gr=function ri(o,c,p,E,z,Z,de,He){const Ke=z[Xt];!function Ci(o,c,p,E){for(const z of o)c.mergedAttrs=pa(c.mergedAttrs,z.hostAttrs);null!==c.mergedAttrs&&(s2(c,c.mergedAttrs,!0),null!==p&&pr(E,p,c))}(E,o,c,de);const bt=Z.createRenderer(c,p),Pt=ll(z,H1(p),null,p.onPush?32:16,z[o.index],o,Z,bt,He||null,null,null);return Ke.firstCreatePass&&W0(Ke,o,E.length-1),z1(z,Pt),z[o.index]=Pt}(Zn,ti,vn,Nn,Ni,He,bt);cn=Ft(xi,wi),ti&&function Yi(o,c,p,E){if(E)tn(o,p,["ng-version",L1.full]);else{const{attrs:z,classes:Z}=function I1(o){const c=[],p=[];let E=1,z=2;for(;E<o.length;){let Z=o[E];if("string"==typeof Z)2===z?""!==Z&&c.push(Z,o[++E]):8===z&&p.push(Z);else{if(!rs(z))break;z=Z}E++}return{attrs:c,classes:p}}(c.selectors[0]);z&&tn(o,p,z),Z&&Z.length>0&&_d(o,p,Z.join(" "))}}(bt,vn,ti,E),void 0!==p&&function In(o,c,p){const E=o.projection=[];for(let z=0;z<c.length;z++){const Z=p[z];E.push(null!=Z?Array.from(Z):null)}}(cn,this.ngContentSelectors,p),en=function ji(o,c,p,E,z,Z){const de=Ka(),He=z[Xt],Ke=Ca(de,z);t2(He,z,de,p,null,E);for(let Pt=0;Pt<p.length;Pt++)io(ar(z,He,de.directiveStart+Pt,de),z);Bu(He,z,de),Ke&&io(Ke,z);const bt=ar(z,He,de.directiveStart+de.componentOffset,de);if(o[li]=z[li]=bt,null!==Z)for(const Pt of Z)Pt(bt,c);return $d(He,de,o),bt}(gr,vn,Nn,Gi,Ni,[Fn]),ys(xi,Ni,null)}finally{es()}return new ve(this.componentType,en,rc(cn,Ni),Ni,cn)}}class ve extends Rd{constructor(c,p,E,z,Z){super(),this.location=E,this._rootLView=z,this._tNode=Z,this.instance=p,this.hostView=this.changeDetectorRef=new Ju(z),this.componentType=c}setInput(c,p){const E=this._tNode.inputs;let z;if(null!==E&&(z=E[c])){const Z=this._rootLView;o2(Z[Xt],Z,z,c,p),V1(wt(this._tNode.index,Z))}}get injector(){return new ja(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function Fn(){const o=Ka();ma(Ti()[Xt],o)}function Cn(o){let c=function mn(o){return Object.getPrototypeOf(o.prototype).constructor}(o.type),p=!0;const E=[o];for(;c;){let z;if(jn(o))z=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Y(903,!1);z=c.\u0275dir}if(z){if(p){E.push(z);const de=o;de.inputs=ya(o.inputs),de.declaredInputs=ya(o.declaredInputs),de.outputs=ya(o.outputs);const He=z.hostBindings;He&&Wr(o,He);const Ke=z.viewQuery,bt=z.contentQueries;if(Ke&&Rr(o,Ke),bt&&Io(o,bt),h(o.inputs,z.inputs),h(o.declaredInputs,z.declaredInputs),h(o.outputs,z.outputs),jn(z)&&z.data.animation){const Pt=o.data;Pt.animation=(Pt.animation||[]).concat(z.data.animation)}}const Z=z.features;if(Z)for(let de=0;de<Z.length;de++){const He=Z[de];He&&He.ngInherit&&He(o),He===Cn&&(p=!1)}}c=Object.getPrototypeOf(c)}!function $n(o){let c=0,p=null;for(let E=o.length-1;E>=0;E--){const z=o[E];z.hostVars=c+=z.hostVars,z.hostAttrs=pa(z.hostAttrs,p=pa(p,z.hostAttrs))}}(E)}function ya(o){return o===ot?{}:o===ft?[]:o}function Rr(o,c){const p=o.viewQuery;o.viewQuery=p?(E,z)=>{c(E,z),p(E,z)}:c}function Io(o,c){const p=o.contentQueries;o.contentQueries=p?(E,z,Z)=>{c(E,z,Z),p(E,z,Z)}:c}function Wr(o,c){const p=o.hostBindings;o.hostBindings=p?(E,z)=>{c(E,z),p(E,z)}:c}function Pc(o){return!!Sn(o)&&(Array.isArray(o)||!(o instanceof Map)&&Symbol.iterator in o)}function Sn(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function Oa(o,c,p){return o[c]=p}function Ta(o,c,p){return!Object.is(o[c],p)&&(o[c]=p,!0)}function Go(o,c,p,E){const z=Ta(o,c,p);return Ta(o,c+1,E)||z}function Pa(o,c,p,E,z){const Z=Go(o,c,p,E);return Ta(o,c+2,z)||Z}function l2(o,c,p,E){const z=Ti();return Ta(z,lo(),c)&&(Dn(),xs(la(),z,o,c,p,E)),l2}function os(o,c,p,E){return Ta(o,lo(),p)?c+X(p)+E:zn}function Yr(o,c,p,E,z,Z){const He=Go(o,Di(),p,z);return Ii(2),He?c+X(p)+E+X(z)+Z:zn}function Rc(o,c,p,E,z,Z,de,He,Ke,bt){const ti=function Jo(o,c,p,E,z,Z){const de=Go(o,c,p,E);return Go(o,c+2,z,Z)||de}(o,Di(),p,z,de,Ke);return Ii(4),ti?c+X(p)+E+X(z)+Z+X(de)+He+X(Ke)+bt:zn}function H4(o,c,p,E,z,Z,de,He){const Ke=Ti(),bt=Dn(),Pt=o+wi,ti=bt.firstCreatePass?function wp(o,c,p,E,z,Z,de,He,Ke){const bt=c.consts,Pt=go(c,o,4,de||null,aa(bt,He));U0(c,p,Pt,aa(bt,Ke)),ma(c,Pt);const ti=Pt.tView=z0(2,Pt,E,z,Z,c.directiveRegistry,c.pipeRegistry,null,c.schemas,bt);return null!==c.queries&&(c.queries.template(c,Pt),ti.queries=c.queries.embeddedTView(Pt)),Pt}(Pt,bt,Ke,c,p,E,z,Z,de):bt.data[Pt];Dr(ti,!1);const di=Ke[Zi].createComment("");Sl(bt,Ke,di,ti),io(di,Ke),z1(Ke,Ke[Pt]=Yu(di,Ke,di,ti)),Tr(ti)&&e2(bt,Ke,ti),null!=de&&H0(Ke,ti,He)}function z4(o){return hi(function Bc(){return gn.lFrame.contextLView}(),wi+o)}function b3(o,c,p){const E=Ti();return Ta(E,lo(),c)&&Do(Dn(),la(),E,o,c,E[Zi],p,!1),b3}function tf(o,c,p,E,z){const de=z?"class":"style";o2(o,p,c.inputs[de],de,E)}function f2(o,c,p,E){const z=Ti(),Z=Dn(),de=wi+o,He=z[Zi],Ke=Z.firstCreatePass?function Sp(o,c,p,E,z,Z){const de=c.consts,Ke=go(c,o,2,E,aa(de,z));return U0(c,p,Ke,aa(de,Z)),null!==Ke.attrs&&s2(Ke,Ke.attrs,!1),null!==Ke.mergedAttrs&&s2(Ke,Ke.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,Ke),Ke}(de,Z,z,c,p,E):Z.data[de],bt=z[de]=Lo(He,c,function Ui(){return gn.lFrame.currentNamespace}()),Pt=Tr(Ke);return Dr(Ke,!0),pr(He,bt,Ke),32!=(32&Ke.flags)&&Sl(Z,z,bt,Ke),0===function it(){return gn.lFrame.elementDepthCount}()&&io(bt,z),function Ye(){gn.lFrame.elementDepthCount++}(),Pt&&(e2(Z,z,Ke),$d(Z,Ke,z)),null!==E&&H0(z,Ke),f2}function nf(){let o=Ka();Wo()?Ds():(o=o.parent,Dr(o,!1));const c=o;!function kt(){gn.lFrame.elementDepthCount--}();const p=Dn();return p.firstCreatePass&&(ma(p,o),wo(o)&&p.queries.elementEnd(o)),null!=c.classesWithoutHost&&function _i(o){return 0!=(8&o.flags)}(c)&&tf(p,c,Ti(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function yi(o){return 0!=(16&o.flags)}(c)&&tf(p,c,Ti(),c.stylesWithoutHost,!1),nf}function y3(o,c,p,E){return f2(o,c,p,E),nf(),y3}function eh(o,c,p){const E=Ti(),z=Dn(),Z=o+wi,de=z.firstCreatePass?function x3(o,c,p,E,z){const Z=c.consts,de=aa(Z,E),He=go(c,o,8,"ng-container",de);return null!==de&&s2(He,de,!0),U0(c,p,He,aa(Z,z)),null!==c.queries&&c.queries.elementStart(c,He),He}(Z,z,E,c,p):z.data[Z];Dr(de,!0);const He=E[Z]=E[Zi].createComment("");return Sl(z,E,He,de),io(He,E),Tr(de)&&(e2(z,E,de),$d(z,de,E)),null!=p&&H0(E,de),eh}function af(){let o=Ka();const c=Dn();return Wo()?Ds():(o=o.parent,Dr(o,!1)),c.firstCreatePass&&(ma(c,o),wo(o)&&c.queries.elementEnd(o)),af}function rf(o,c,p){return eh(o,c,p),af(),rf}function V4(){return Ti()}function C3(o){return!!o&&"function"==typeof o.then}function B4(o){return!!o&&"function"==typeof o.subscribe}const U4=B4;function th(o,c,p,E){const z=Ti(),Z=Dn(),de=Ka();return G4(Z,z,z[Zi],de,o,c,E),th}function w3(o,c){const p=Ka(),E=Ti(),z=Dn();return G4(z,E,X0(Yo(z.data),p,E),p,o,c),w3}function G4(o,c,p,E,z,Z,de){const He=Tr(E),bt=o.firstCreatePass&&qu(o),Pt=c[li],ti=J0(c);let di=!0;if(3&E.type||de){const en=Ca(E,c),cn=de?de(en):en,vn=ti.length,Nn=de?Zn=>de(kn(Zn[E.index])):E.index;let Gi=null;if(!de&&He&&(Gi=function Tp(o,c,p,E){const z=o.cleanup;if(null!=z)for(let Z=0;Z<z.length-1;Z+=2){const de=z[Z];if(de===p&&z[Z+1]===E){const He=c[bi],Ke=z[Z+2];return He.length>Ke?He[Ke]:null}"string"==typeof de&&(Z+=2)}return null}(o,c,z,E.index)),null!==Gi)(Gi.__ngLastListenerFn__||Gi).__ngNextListenerFn__=Z,Gi.__ngLastListenerFn__=Z,di=!1;else{Z=S3(E,c,Pt,Z,!1);const Zn=p.listen(cn,z,Z);ti.push(Z,Zn),bt&&bt.push(z,Nn,vn,vn+1)}}else Z=S3(E,c,Pt,Z,!1);const xi=E.outputs;let Ni;if(di&&null!==xi&&(Ni=xi[z])){const en=Ni.length;if(en)for(let cn=0;cn<en;cn+=2){const gr=c[Ni[cn]][Ni[cn+1]].subscribe(Z),Qr=ti.length;ti.push(Z,gr),bt&&bt.push(z,E.index,Qr,-(Qr+1))}}}function M3(o,c,p,E){try{return Ya(6,c,p),!1!==p(E)}catch(z){return $0(o,z),!1}finally{Ya(7,c,p)}}function S3(o,c,p,E,z){return function Z(de){if(de===Function)return E;V1(o.componentOffset>-1?wt(o.index,c):c);let Ke=M3(c,p,E,de),bt=Z.__ngNextListenerFn__;for(;bt;)Ke=M3(c,p,bt,de)&&Ke,bt=bt.__ngNextListenerFn__;return z&&!1===Ke&&(de.preventDefault(),de.returnValue=!1),Ke}}function T3(o=1){return function us(o){return(gn.lFrame.contextLView=function Ki(o,c){for(;o>0;)c=c[Aa],o--;return c}(o,gn.lFrame.contextLView))[li]}(o)}function Z4(o,c){let p=null;const E=function vu(o){const c=o.attrs;if(null!=c){const p=c.indexOf(5);if(!(1&p))return c[p+1]}return null}(o);for(let z=0;z<c.length;z++){const Z=c[z];if("*"!==Z){if(null===E?_0(o,Z,!0):yu(E,Z))return z}else p=z}return p}function ih(o){const c=Ti()[ta][Ot];if(!c.projection){const E=c.projection=Ge(o?o.length:1,null),z=E.slice();let Z=c.child;for(;null!==Z;){const de=o?Z4(Z,o):0;null!==de&&(z[de]?z[de].projectionNext=Z:E[de]=Z,z[de]=Z),Z=Z.next}}}function E3(o,c=0,p){const E=Ti(),z=Dn(),Z=go(z,wi+o,16,null,p||null);null===Z.projection&&(Z.projection=c),Ds(),32!=(32&Z.flags)&&function Yf(o,c,p){m1(c[Zi],0,c,p,Ml(o,p,c),Rh(p.parent||c[Ot],p,c))}(z,E,Z)}function A3(o,c,p){return nh(o,"",c,"",p),A3}function nh(o,c,p,E,z){const Z=Ti(),de=os(Z,c,p,E);return de!==zn&&Do(Dn(),la(),Z,o,de,Z[Zi],z,!1),nh}function sf(o,c,p,E,z,Z,de){const He=Ti(),Ke=Yr(He,c,p,E,z,Z);return Ke!==zn&&Do(Dn(),la(),He,o,Ke,He[Zi],de,!1),sf}function ah(o,c){return o<<17|c<<2}function zl(o){return o>>17&32767}function k3(o){return 2|o}function G1(o){return(131068&o)>>2}function O3(o,c){return-131069&o|c<<2}function cf(o){return 1|o}function J4(o,c,p,E,z){const Z=o[p+1],de=null===c;let He=E?zl(Z):G1(Z),Ke=!1;for(;0!==He&&(!1===Ke||de);){const Pt=o[He+1];X4(o[He],c)&&(Ke=!0,o[He+1]=E?cf(Pt):k3(Pt)),He=E?zl(Pt):G1(Pt)}Ke&&(o[p+1]=E?k3(Z):cf(Z))}function X4(o,c){return null===o||null==c||(Array.isArray(o)?o[1]:o)===c||!(!Array.isArray(o)||"string"!=typeof c)&&rn(o,c)>=0}const no={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $4(o){return o.substring(no.key,no.keyEnd)}function Xn(o,c){const p=no.textEnd;return p===c?-1:(c=no.keyEnd=function tm(o,c,p){for(;c<p&&o.charCodeAt(c)>32;)c++;return c}(o,no.key=c,p),Kr(o,c,p))}function Kr(o,c,p){for(;c<p&&o.charCodeAt(c)<=32;)c++;return c}function Ss(o,c,p){return Ts(o,c,p,!1),Ss}function xn(o,c){return Ts(o,c,null,!0),xn}function oh(o){ss(F3,Ws,o,!0)}function Ws(o,c){for(let p=function P3(o){return function df(o){no.key=0,no.keyEnd=0,no.value=0,no.valueEnd=0,no.textEnd=o.length}(o),Xn(o,Kr(o,0,no.textEnd))}(c);p>=0;p=Xn(c,p))ki(o,$4(c),!0)}function Ts(o,c,p,E){const z=Ti(),Z=Dn(),de=Ii(2);Z.firstUpdatePass&&uf(Z,o,de,E),c!==zn&&Ta(z,de,c)&&Hc(Z,Z.data[Ja()],z,z[Zi],o,z[de+1]=function z3(o,c){return null==o||""===o||("string"==typeof c?o+=c:"object"==typeof o&&(o=N(Us(o)))),o}(c,p),E,de)}function ss(o,c,p,E){const z=Dn(),Z=Ii(2);z.firstUpdatePass&&uf(z,null,Z,E);const de=Ti();if(p!==zn&&Ta(de,Z,p)){const He=z.data[Ja()];if(hl(He,E)&&!N3(z,Z)){let Ke=E?He.classesWithoutHost:He.stylesWithoutHost;null!==Ke&&(p=d(Ke,p||"")),tf(z,He,de,p,E)}else!function H3(o,c,p,E,z,Z,de,He){z===zn&&(z=ft);let Ke=0,bt=0,Pt=0<z.length?z[0]:null,ti=0<Z.length?Z[0]:null;for(;null!==Pt||null!==ti;){const di=Ke<z.length?z[Ke+1]:void 0,xi=bt<Z.length?Z[bt+1]:void 0;let en,Ni=null;Pt===ti?(Ke+=2,bt+=2,di!==xi&&(Ni=ti,en=xi)):null===ti||null!==Pt&&Pt<ti?(Ke+=2,Ni=Pt):(bt+=2,Ni=ti,en=xi),null!==Ni&&Hc(o,c,p,E,Ni,en,de,He),Pt=Ke<z.length?z[Ke]:null,ti=bt<Z.length?Z[bt]:null}}(z,He,de,de[Zi],de[Z+1],de[Z+1]=function pf(o,c,p){if(null==p||""===p)return ft;const E=[],z=Us(p);if(Array.isArray(z))for(let Z=0;Z<z.length;Z++)o(E,z[Z],!0);else if("object"==typeof z)for(const Z in z)z.hasOwnProperty(Z)&&o(E,Z,z[Z]);else"string"==typeof z&&c(E,z);return E}(o,c,p),E,Z)}}function N3(o,c){return c>=o.expandoStartIndex}function uf(o,c,p,E){const z=o.data;if(null===z[p+1]){const Z=z[Ja()],de=N3(o,p);hl(Z,E)&&null===c&&!de&&(c=!1),c=function Ip(o,c,p,E){const z=Yo(o);let Z=E?c.residualClasses:c.residualStyles;if(null===z)0===(E?c.classBindings:c.styleBindings)&&(p=Z1(p=p2(null,o,c,p,E),c.attrs,E),Z=null);else{const de=c.directiveStylingLast;if(-1===de||o[de]!==z)if(p=p2(z,o,c,p,E),null===Z){let Ke=function ff(o,c,p){const E=p?c.classBindings:c.styleBindings;if(0!==G1(E))return o[zl(E)]}(o,c,E);void 0!==Ke&&Array.isArray(Ke)&&(Ke=p2(null,o,c,Ke[1],E),Ke=Z1(Ke,c.attrs,E),function jr(o,c,p,E){o[zl(p?c.classBindings:c.styleBindings)]=E}(o,c,E,Ke))}else Z=function mf(o,c,p){let E;const z=c.directiveEnd;for(let Z=1+c.directiveStylingLast;Z<z;Z++)E=Z1(E,o[Z].hostAttrs,p);return Z1(E,c.attrs,p)}(o,c,E)}return void 0!==Z&&(E?c.residualClasses=Z:c.residualStyles=Z),p}(z,Z,c,E),function Lp(o,c,p,E,z,Z){let de=Z?c.classBindings:c.styleBindings,He=zl(de),Ke=G1(de);o[E]=p;let Pt,bt=!1;if(Array.isArray(p)?(Pt=p[1],(null===Pt||rn(p,Pt)>0)&&(bt=!0)):Pt=p,z)if(0!==Ke){const di=zl(o[He+1]);o[E+1]=ah(di,He),0!==di&&(o[di+1]=O3(o[di+1],E)),o[He+1]=function q4(o,c){return 131071&o|c<<17}(o[He+1],E)}else o[E+1]=ah(He,0),0!==He&&(o[He+1]=O3(o[He+1],E)),He=E;else o[E+1]=ah(Ke,0),0===He?He=E:o[Ke+1]=O3(o[Ke+1],E),Ke=E;bt&&(o[E+1]=k3(o[E+1])),J4(o,Pt,E,!0),J4(o,Pt,E,!1),function Dp(o,c,p,E,z){const Z=z?o.residualClasses:o.residualStyles;null!=Z&&"string"==typeof c&&rn(Z,c)>=0&&(p[E+1]=cf(p[E+1]))}(c,Pt,o,E,Z),de=ah(He,Ke),Z?c.classBindings=de:c.styleBindings=de}(z,Z,c,p,de,E)}}function p2(o,c,p,E,z){let Z=null;const de=p.directiveEnd;let He=p.directiveStylingLast;for(-1===He?He=p.directiveStart:He++;He<de&&(Z=c[He],E=Z1(E,Z.hostAttrs,z),Z!==o);)He++;return null!==o&&(p.directiveStylingLast=He),E}function Z1(o,c,p){const E=p?1:2;let z=-1;if(null!==c)for(let Z=0;Z<c.length;Z++){const de=c[Z];"number"==typeof de?z=de:z===E&&(Array.isArray(o)||(o=void 0===o?[]:["",o]),ki(o,de,!!p||c[++Z]))}return void 0===o?null:o}function F3(o,c,p){const E=String(c);""!==E&&!E.includes(" ")&&ki(o,E,p)}function Hc(o,c,p,E,z,Z,de,He){if(!(3&c.type))return;const Ke=o.data,bt=Ke[He+1],Pt=function Ep(o){return 1==(1&o)}(bt)?gf(Ke,c,p,z,G1(bt),de):void 0;W1(Pt)||(W1(Z)||function Q4(o){return 2==(2&o)}(bt)&&(Z=gf(Ke,null,p,z,He,de)),function El(o,c,p,E,z){if(c)z?o.addClass(p,E):o.removeClass(p,E);else{let Z=-1===E.indexOf("-")?void 0:gs.DashCase;null==z?o.removeStyle(p,E,Z):("string"==typeof z&&z.endsWith("!important")&&(z=z.slice(0,-10),Z|=gs.Important),o.setStyle(p,E,z,Z))}}(E,de,Lr(Ja(),p),z,Z))}function gf(o,c,p,E,z,Z){const de=null===c;let He;for(;z>0;){const Ke=o[z],bt=Array.isArray(Ke),Pt=bt?Ke[1]:Ke,ti=null===Pt;let di=p[z+1];di===zn&&(di=ti?ft:void 0);let xi=ti?on(di,E):Pt===E?di:void 0;if(bt&&!W1(xi)&&(xi=on(Ke,E)),W1(xi)&&(He=xi,de))return He;const Ni=o[z+1];z=de?zl(Ni):G1(Ni)}if(null!==c){let Ke=Z?c.residualClasses:c.residualStyles;null!=Ke&&(He=on(Ke,E))}return He}function W1(o){return void 0!==o}function hl(o,c){return 0!=(o.flags&(c?8:16))}function hc(o,c=""){const p=Ti(),E=Dn(),z=o+wi,Z=E.firstCreatePass?go(E,z,1,c,null):E.data[z],de=p[z]=function s1(o,c){return o.createText(c)}(p[Zi],c);Sl(E,p,de,Z),Dr(Z,!1)}function g2(o){return Y1("",o,""),g2}function Y1(o,c,p){const E=Ti(),z=os(E,o,c,p);return z!==zn&&Cs(E,Ja(),z),Y1}function sh(o,c,p,E,z){const Z=Ti(),de=Yr(Z,o,c,p,E,z);return de!==zn&&Cs(Z,Ja(),de),sh}function ul(o,c,p,E,z,Z,de){const He=Ti(),Ke=function dc(o,c,p,E,z,Z,de,He){const bt=Pa(o,Di(),p,z,de);return Ii(3),bt?c+X(p)+E+X(z)+Z+X(de)+He:zn}(He,o,c,p,E,z,Z,de);return Ke!==zn&&Cs(He,Ja(),Ke),ul}function er(o,c,p,E,z,Z,de,He,Ke){const bt=Ti(),Pt=Rc(bt,o,c,p,E,z,Z,de,He,Ke);return Pt!==zn&&Cs(bt,Ja(),Pt),er}function Bl(o,c,p){ss(ki,Ws,os(Ti(),o,c,p),!0)}function Q3(o,c,p){const E=Ti();return Ta(E,lo(),c)&&Do(Dn(),la(),E,o,c,E[Zi],p,!0),Q3}function xf(o,c,p){const E=Ti();if(Ta(E,lo(),c)){const Z=Dn(),de=la();Do(Z,de,E,o,c,X0(Yo(Z.data),de,E),p,!0)}return xf}const Ul=void 0;var uc=["en",[["a","p"],["AM","PM"],Ul],[["AM","PM"],Ul,Ul],[["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"]],Ul,[["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"]],Ul,[["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}",Ul,"{1} 'at' {0}",Ul],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function q3(o){const p=Math.floor(Math.abs(o)),E=o.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===E?1:5}];let Xo={};function J3(o){const c=function X3(o){return o.toLowerCase().replace(/_/g,"-")}(o);let p=pm(c);if(p)return p;const E=c.split("-")[0];if(p=pm(E),p)return p;if("en"===E)return uc;throw new Y(701,!1)}function mm(o){return J3(o)[Mn.PluralCase]}function pm(o){return o in Xo||(Xo[o]=ct.ng&&ct.ng.common&&ct.ng.common.locales&&ct.ng.common.locales[o]),Xo[o]}var Mn=(()=>((Mn=Mn||{})[Mn.LocaleId=0]="LocaleId",Mn[Mn.DayPeriodsFormat=1]="DayPeriodsFormat",Mn[Mn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mn[Mn.DaysFormat=3]="DaysFormat",Mn[Mn.DaysStandalone=4]="DaysStandalone",Mn[Mn.MonthsFormat=5]="MonthsFormat",Mn[Mn.MonthsStandalone=6]="MonthsStandalone",Mn[Mn.Eras=7]="Eras",Mn[Mn.FirstDayOfWeek=8]="FirstDayOfWeek",Mn[Mn.WeekendRange=9]="WeekendRange",Mn[Mn.DateFormat=10]="DateFormat",Mn[Mn.TimeFormat=11]="TimeFormat",Mn[Mn.DateTimeFormat=12]="DateTimeFormat",Mn[Mn.NumberSymbols=13]="NumberSymbols",Mn[Mn.NumberFormats=14]="NumberFormats",Mn[Mn.CurrencyCode=15]="CurrencyCode",Mn[Mn.CurrencySymbol=16]="CurrencySymbol",Mn[Mn.CurrencyName=17]="CurrencyName",Mn[Mn.Currencies=18]="Currencies",Mn[Mn.Directionality=19]="Directionality",Mn[Mn.PluralCase=20]="PluralCase",Mn[Mn.ExtraData=21]="ExtraData",Mn))();const v2="en-US";let e4=v2;function Ua(o,c,p,E,z){if(o=L(o),Array.isArray(o))for(let Z=0;Z<o.length;Z++)Ua(o[Z],c,p,E,z);else{const Z=Dn(),de=Ti();let He=ac(o)?o:L(o.provide),Ke=o0(o);const bt=Ka(),Pt=1048575&bt.providerIndexes,ti=bt.directiveStart,di=bt.providerIndexes>>20;if(ac(o)||!o.multi){const xi=new nt(Ke,z,kc),Ni=wr(He,c,z?Pt:Pt+di,ti);-1===Ni?(Zc(Gc(bt,de),Z,He),bo(Z,o,c.length),c.push(He),bt.directiveStart++,bt.directiveEnd++,z&&(bt.providerIndexes+=1048576),p.push(xi),de.push(xi)):(p[Ni]=xi,de[Ni]=xi)}else{const xi=wr(He,c,Pt+di,ti),Ni=wr(He,c,Pt,Pt+di),cn=Ni>=0&&p[Ni];if(z&&!cn||!z&&!(xi>=0&&p[xi])){Zc(Gc(bt,de),Z,He);const vn=function Zl(o,c,p,E,z){const Z=new nt(o,p,kc);return Z.multi=[],Z.index=c,Z.componentProviders=0,xa(Z,z,E&&!p),Z}(z?Sr:Mr,p.length,z,E,Ke);!z&&cn&&(p[Ni].providerFactory=vn),bo(Z,o,c.length,0),c.push(He),bt.directiveStart++,bt.directiveEnd++,z&&(bt.providerIndexes+=1048576),p.push(vn),de.push(vn)}else bo(Z,o,xi>-1?xi:Ni,xa(p[z?Ni:xi],Ke,!z&&E));!z&&E&&cn&&p[Ni].componentProviders++}}}function bo(o,c,p,E){const z=ac(c),Z=function Tc(o){return!!o.useClass}(c);if(z||Z){const Ke=(Z?L(c.useClass):c).prototype.ngOnDestroy;if(Ke){const bt=o.destroyHooks||(o.destroyHooks=[]);if(!z&&c.multi){const Pt=bt.indexOf(p);-1===Pt?bt.push(p,[E,Ke]):bt[Pt+1].push(E,Ke)}else bt.push(p,Ke)}}}function xa(o,c,p){return p&&o.componentProviders++,o.multi.push(c)-1}function wr(o,c,p,E){for(let z=p;z<E;z++)if(c[z]===o)return z;return-1}function Mr(o,c,p,E){return Gl(this.multi,[])}function Sr(o,c,p,E){const z=this.multi;let Z;if(this.providerFactory){const de=this.providerFactory.componentProviders,He=ar(p,p[Xt],this.providerFactory.index,E);Z=He.slice(0,de),Gl(z,Z);for(let Ke=de;Ke<He.length;Ke++)Z.push(He[Ke])}else Z=[],Gl(z,Z);return Z}function Gl(o,c){for(let p=0;p<o.length;p++)c.push((0,o[p])());return c}function Wl(o,c=[]){return p=>{p.providersResolver=(E,z)=>function tr(o,c,p){const E=Dn();if(E.firstCreatePass){const z=jn(o);Ua(p,E.data,E.blueprint,z,!0),Ua(c,E.data,E.blueprint,z,!1)}}(E,z?z(o):o,c)}}class Ys{}class yo{}function Yl(o,c){return new Kn(o,c??null)}class Kn extends Ys{constructor(c,p){super(),this._parent=p,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new A(this);const E=Ri(c);this._bootstrapComponents=bs(E.bootstrap),this._r3Injector=Yd(c,p,[{provide:Ys,useValue:this},{provide:Ol,useValue:this.componentFactoryResolver}],N(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(p=>p()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class na extends yo{constructor(c){super(),this.moduleType=c}create(c){return new Kn(this.moduleType,c)}}class Ji extends Ys{constructor(c,p,E){super(),this.componentFactoryResolver=new A(this),this.instance=null;const z=new Pd([...c,{provide:Ys,useValue:this},{provide:Ol,useValue:this.componentFactoryResolver}],p||nl(),E,new Set(["environment"]));this.injector=z,z.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function ir(o,c,p=null){return new Ji(o,c,p).injector}let Ea=(()=>{class o{constructor(p){this._injector=p,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){const E=nu(0,p.type),z=E.length>0?ir([E],this._injector,`Standalone[${p.type.name}]`):null;this.cachedInjectors.set(p.id,z)}return this.cachedInjectors.get(p.id)}ngOnDestroy(){try{for(const p of this.cachedInjectors.values())null!==p&&p.destroy()}finally{this.cachedInjectors.clear()}}}return o.\u0275prov=pe({token:o,providedIn:"environment",factory:()=>new o(Ct(Ec))}),o})();function Oo(o){o.getStandaloneInjector=c=>c.get(Ea).getOrCreateStandaloneInjector(o)}function i6(o,c,p){const E=Jn()+o,z=Ti();return z[E]===zn?Oa(z,E,p?c.call(p):c()):function ko(o,c){return o[c]}(z,E)}function Om(o,c,p,E){return o6(Ti(),Jn(),o,c,p,E)}function n6(o,c,p,E,z){return s6(Ti(),Jn(),o,c,p,E,z)}function Pm(o,c,p,E,z,Z){return c6(Ti(),Jn(),o,c,p,E,z,Z)}function Tf(o,c){const p=o[c];return p===zn?void 0:p}function o6(o,c,p,E,z,Z){const de=c+p;return Ta(o,de,z)?Oa(o,de+1,Z?E.call(Z,z):E(z)):Tf(o,de+1)}function s6(o,c,p,E,z,Z,de){const He=c+p;return Go(o,He,z,Z)?Oa(o,He+2,de?E.call(de,z,Z):E(z,Z)):Tf(o,He+2)}function c6(o,c,p,E,z,Z,de,He){const Ke=c+p;return Pa(o,Ke,z,Z,de)?Oa(o,Ke+3,He?E.call(He,z,Z,de):E(z,Z,de)):Tf(o,Ke+3)}function h6(o,c){const p=Dn();let E;const z=o+wi;p.firstCreatePass?(E=function Rm(o,c){if(c)for(let p=c.length-1;p>=0;p--){const E=c[p];if(o===E.name)return E}}(c,p.pipeRegistry),p.data[z]=E,E.onDestroy&&(p.destroyHooks??(p.destroyHooks=[])).push(z,E.onDestroy)):E=p.data[z];const Z=E.factory||(E.factory=Wa(E.type)),de=le(kc);try{const He=kr(!1),Ke=Z();return kr(He),function Mp(o,c,p,E){p>=o.data.length&&(o.data[p]=null,o.blueprint[p]=null),c[p]=E}(p,Ti(),z,Ke),Ke}finally{le(de)}}function u6(o,c,p){const E=o+wi,z=Ti(),Z=hi(z,E);return Ef(z,E)?o6(z,Jn(),c,Z.transform,p,Z):Z.transform(p)}function f6(o,c,p,E){const z=o+wi,Z=Ti(),de=hi(Z,z);return Ef(Z,z)?s6(Z,Jn(),c,de.transform,p,E,de):de.transform(p,E)}function Nm(o,c,p,E,z){const Z=o+wi,de=Ti(),He=hi(de,Z);return Ef(de,Z)?c6(de,Jn(),c,He.transform,p,E,z,He):He.transform(p,E,z)}function Ef(o,c){return o[Xt].data[c].pure}function Fm(o){return c=>{setTimeout(o,void 0,c)}}const Vc=class Vg extends t.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,p,E){let z=c,Z=p||(()=>null),de=E;if(c&&"object"==typeof c){const Ke=c;z=Ke.next?.bind(Ke),Z=Ke.error?.bind(Ke),de=Ke.complete?.bind(Ke)}this.__isAsync&&(Z=Fm(Z),z&&(z=Fm(z)),de&&(de=Fm(de)));const He=super.subscribe({next:z,error:Z,complete:de});return c instanceof e.w0&&c.add(He),He}};function Bg(){return this._results[Symbol.iterator]()}class u4{get changes(){return this._changes||(this._changes=new Vc)}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const p=u4.prototype;p[Symbol.iterator]||(p[Symbol.iterator]=Bg)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,p){return this._results.reduce(c,p)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,p){const E=this;E.dirty=!1;const z=function To(o){return o.flat(Number.POSITIVE_INFINITY)}(c);(this._changesDetected=!function $1(o,c,p){if(o.length!==c.length)return!1;for(let E=0;E<o.length;E++){let z=o[E],Z=c[E];if(p&&(z=p(z),Z=p(Z)),Z!==z)return!1}return!0}(E._results,z,p))&&(E._results=z,E.length=z.length,E.last=z[this.length-1],E.first=z[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Af=(()=>{class o{}return o.__NG_ELEMENT_ID__=Zg,o})();const Ug=Af,Gg=class extends Ug{constructor(c,p,E){super(),this._declarationLView=c,this._declarationTContainer=p,this.elementRef=E}createEmbeddedView(c,p){const E=this._declarationTContainer.tView,z=ll(this._declarationLView,E,c,16,null,E.declTNode,null,null,null,null,p||null);z[nr]=this._declarationLView[this._declarationTContainer.index];const de=this._declarationLView[mi];return null!==de&&(z[mi]=de.createEmbeddedView(E)),ys(E,z,c),new Oc(z)}};function Zg(){return f4(Ka(),Ti())}function f4(o,c){return 4&o.type?new Gg(c,o,rc(o,c)):null}let Lf=(()=>{class o{}return o.__NG_ELEMENT_ID__=Wg,o})();function Wg(){return zm(Ka(),Ti())}const Yg=Lf,Hm=class extends Yg{constructor(c,p,E){super(),this._lContainer=c,this._hostTNode=p,this._hostLView=E}get element(){return rc(this._hostTNode,this._hostLView)}get injector(){return new ja(this._hostTNode,this._hostLView)}get parentInjector(){const c=Os(this._hostTNode,this._hostLView);if(ha(c)){const p=ka(c,this._hostLView),E=ua(c);return new ja(p[Xt].data[E+8],p)}return new ja(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const p=p6(this._lContainer);return null!==p&&p[c]||null}get length(){return this._lContainer.length-Gn}createEmbeddedView(c,p,E){let z,Z;"number"==typeof E?z=E:null!=E&&(z=E.index,Z=E.injector);const de=c.createEmbeddedView(p||{},Z);return this.insert(de,z),de}createComponent(c,p,E,z,Z){const de=c&&!function qo(o){return"function"==typeof o}(c);let He;if(de)He=p;else{const ti=p||{};He=ti.index,E=ti.injector,z=ti.projectableNodes,Z=ti.environmentInjector||ti.ngModuleRef}const Ke=de?c:new H(Mt(c)),bt=E||this.parentInjector;if(!Z&&null==Ke.ngModule){const di=(de?bt:this.parentInjector).get(Ec,null);di&&(Z=di)}const Pt=Ke.create(bt,z,void 0,Z);return this.insert(Pt.hostView,He),Pt}insert(c,p){const E=c._lView,z=E[Xt];if(function an(o){return ia(o[dt])}(E)){const Pt=this.indexOf(c);if(-1!==Pt)this.detach(Pt);else{const ti=E[dt],di=new Hm(ti,ti[Ot],ti[dt]);di.detach(di.indexOf(c))}}const Z=this._adjustIndex(p),de=this._lContainer;!function Gf(o,c,p,E){const z=Gn+E,Z=p.length;E>0&&(p[z-1][Dt]=c),E<Z-Gn?(c[Dt]=p[z],xe(p,Gn+E,c)):(p.push(c),c[Dt]=null),c[dt]=p;const de=c[nr];null!==de&&p!==de&&function Zf(o,c){const p=o[Ln];c[ta]!==c[dt][dt][ta]&&(o[Yn]=!0),null===p?o[Ln]=[c]:p.push(c)}(de,c);const He=c[mi];null!==He&&He.insertView(o),c[be]|=64}(z,E,de,Z);const He=nc(Z,de),Ke=E[Zi],bt=md(Ke,de[Bn]);return null!==bt&&function fn(o,c,p,E,z,Z){E[Yt]=z,E[Ot]=c,Vs(o,E,p,1,z,Z)}(z,de[Ot],Ke,E,bt,He),c.attachToViewContainerRef(),xe(m4(de),Z,c),c}move(c,p){return this.insert(c,p)}indexOf(c){const p=p6(this._lContainer);return null!==p?p.indexOf(c):-1}remove(c){const p=this._adjustIndex(c,-1),E=d1(this._lContainer,p);E&&(ae(m4(this._lContainer),p),hd(E[Xt],E))}detach(c){const p=this._adjustIndex(c,-1),E=d1(this._lContainer,p);return E&&null!=ae(m4(this._lContainer),p)?new Oc(E):null}_adjustIndex(c,p=0){return c??this.length+p}};function p6(o){return o[_a]}function m4(o){return o[_a]||(o[_a]=[])}function zm(o,c){let p;const E=c[o.index];if(ia(E))p=E;else{let z;if(8&o.type)z=kn(E);else{const Z=c[Zi];z=Z.createComment("");const de=Ca(o,c);Mc(Z,md(Z,de),z,function R2(o,c){return o.nextSibling(c)}(Z,de),!1)}c[o.index]=p=Yu(E,c,z,o),z1(c,p)}return new Hm(p,o,c)}class Vm{constructor(c){this.queryList=c,this.matches=null}clone(){return new Vm(this.queryList)}setDirty(){this.queryList.setDirty()}}class p4{constructor(c=[]){this.queries=c}createEmbeddedView(c){const p=c.queries;if(null!==p){const E=null!==c.contentQueries?c.contentQueries[0]:p.length,z=[];for(let Z=0;Z<E;Z++){const de=p.getByIndex(Z);z.push(this.queries[de.indexInDeclarationView].clone())}return new p4(z)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let p=0;p<this.queries.length;p++)null!==S6(c,p).matches&&this.queries[p].setDirty()}}class g6{constructor(c,p,E=null){this.predicate=c,this.flags=p,this.read=E}}class Bm{constructor(c=[]){this.queries=c}elementStart(c,p){for(let E=0;E<this.queries.length;E++)this.queries[E].elementStart(c,p)}elementEnd(c){for(let p=0;p<this.queries.length;p++)this.queries[p].elementEnd(c)}embeddedTView(c){let p=null;for(let E=0;E<this.length;E++){const z=null!==p?p.length:0,Z=this.getByIndex(E).embeddedTView(c,z);Z&&(Z.indexInDeclarationView=E,null!==p?p.push(Z):p=[Z])}return null!==p?new Bm(p):null}template(c,p){for(let E=0;E<this.queries.length;E++)this.queries[E].template(c,p)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class Um{constructor(c,p=-1){this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=p}elementStart(c,p){this.isApplyingToNode(p)&&this.matchTNode(c,p)}elementEnd(c){this._declarationNodeIndex===c.index&&(this._appliesToNextNode=!1)}template(c,p){this.elementStart(c,p)}embeddedTView(c,p){return this.isApplyingToNode(c)?(this.crossesNgTemplate=!0,this.addMatch(-c.index,p),new Um(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const p=this._declarationNodeIndex;let E=c.parent;for(;null!==E&&8&E.type&&E.index!==p;)E=E.parent;return p===(null!==E?E.index:-1)}return this._appliesToNextNode}matchTNode(c,p){const E=this.metadata.predicate;if(Array.isArray(E))for(let z=0;z<E.length;z++){const Z=E[z];this.matchTNodeWithReadOption(c,p,Kg(p,Z)),this.matchTNodeWithReadOption(c,p,Js(p,c,Z,!1,!1))}else E===Af?4&p.type&&this.matchTNodeWithReadOption(c,p,-1):this.matchTNodeWithReadOption(c,p,Js(p,c,E,!1,!1))}matchTNodeWithReadOption(c,p,E){if(null!==E){const z=this.metadata.read;if(null!==z)if(z===Pl||z===Lf||z===Af&&4&p.type)this.addMatch(p.index,-2);else{const Z=Js(p,c,z,!1,!1);null!==Z&&this.addMatch(p.index,Z)}else this.addMatch(p.index,E)}}addMatch(c,p){null===this.matches?this.matches=[c,p]:this.matches.push(c,p)}}function Kg(o,c){const p=o.localNames;if(null!==p)for(let E=0;E<p.length;E+=2)if(p[E]===c)return p[E+1];return null}function Gm(o,c,p,E){return-1===p?function jg(o,c){return 11&o.type?rc(o,c):4&o.type?f4(o,c):null}(c,o):-2===p?function Qg(o,c,p){return p===Pl?rc(c,o):p===Af?f4(c,o):p===Lf?zm(c,o):void 0}(o,c,E):ar(o,o[Xt],p,c)}function _6(o,c,p,E){const z=c[mi].queries[E];if(null===z.matches){const Z=o.data,de=p.matches,He=[];for(let Ke=0;Ke<de.length;Ke+=2){const bt=de[Ke];He.push(bt<0?null:Gm(c,Z[bt],de[Ke+1],p.metadata.read))}z.matches=He}return z.matches}function g4(o,c,p,E){const z=o.queries.getByIndex(p),Z=z.matches;if(null!==Z){const de=_6(o,c,z,p);for(let He=0;He<Z.length;He+=2){const Ke=Z[He];if(Ke>0)E.push(de[He/2]);else{const bt=Z[He+1],Pt=c[-Ke];for(let ti=Gn;ti<Pt.length;ti++){const di=Pt[ti];di[nr]===di[dt]&&g4(di[Xt],di,bt,E)}if(null!==Pt[Ln]){const ti=Pt[Ln];for(let di=0;di<ti.length;di++){const xi=ti[di];g4(xi[Xt],xi,bt,E)}}}}}return E}function v6(o){const c=Ti(),p=Dn(),E=ho();hs(E+1);const z=S6(p,E);if(o.dirty&&function ai(o){return 4==(4&o[be])}(c)===(2==(2&z.metadata.flags))){if(null===z.matches)o.reset([]);else{const Z=z.crossesNgTemplate?g4(p,c,E,[]):_6(p,c,z,E);o.reset(Z,l0),o.notifyOnChanges()}return!0}return!1}function b6(o,c,p){const E=Dn();E.firstCreatePass&&(M6(E,new g6(o,c,p),-1),2==(2&c)&&(E.staticViewQueries=!0)),w6(E,Ti(),c)}function y6(o,c,p,E){const z=Dn();if(z.firstCreatePass){const Z=Ka();M6(z,new g6(c,p,E),Z.index),function qg(o,c){const p=o.contentQueries||(o.contentQueries=[]);c!==(p.length?p[p.length-1]:-1)&&p.push(o.queries.length-1,c)}(z,o),2==(2&p)&&(z.staticContentQueries=!0)}w6(z,Ti(),p)}function x6(){return function C6(o,c){return o[mi].queries[c].queryList}(Ti(),ho())}function w6(o,c,p){const E=new u4(4==(4&p));Hu(o,c,E,E.destroy),null===c[mi]&&(c[mi]=new p4),c[mi].queries.push(new Vm(E))}function M6(o,c,p){null===o.queries&&(o.queries=new Bm),o.queries.track(new Um(c,p))}function S6(o,c){return o.queries.getByIndex(c)}function T6(o,c){return f4(o,c)}function Wm(o){return!!Ri(o)}function y4(...o){}const U6=new wa("Application Initializer");let If=(()=>{class o{constructor(p){this.appInits=p,this.resolve=y4,this.reject=y4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((E,z)=>{this.resolve=E,this.reject=z})}runInitializers(){if(this.initialized)return;const p=[],E=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let z=0;z<this.appInits.length;z++){const Z=this.appInits[z]();if(C3(Z))p.push(Z);else if(U4(Z)){const de=new Promise((He,Ke)=>{Z.subscribe({complete:He,error:Ke})});p.push(de)}}Promise.all(p).then(()=>{E()}).catch(z=>{this.reject(z)}),0===p.length&&E(),this.initialized=!0}}return o.\u0275fac=function(p){return new(p||o)(Ct(U6,8))},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const G6=new wa("AppId",{providedIn:"root",factory:function Z6(){return`${tp()}${tp()}${tp()}`}});function tp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const W6=new wa("Platform Initializer"),Y6=new wa("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),f8=new wa("AnimationModuleType");let K6=(()=>{class o{log(p){console.log(p)}warn(p){console.warn(p)}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const kf=new wa("LocaleId",{providedIn:"root",factory:()=>Bt(kf,Ue.Optional|Ue.SkipSelf)||function m8(){return typeof $localize<"u"&&$localize.locale||v2}()}),p8=new wa("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _8{constructor(c,p){this.ngModuleFactory=c,this.componentFactories=p}}let v8=(()=>{class o{compileModuleSync(p){return new na(p)}compileModuleAsync(p){return Promise.resolve(this.compileModuleSync(p))}compileModuleAndAllComponentsSync(p){const E=this.compileModuleSync(p),Z=bs(Ri(p).declarations).reduce((de,He)=>{const Ke=Mt(He);return Ke&&de.push(new H(Ke)),de},[]);return new _8(E,Z)}compileModuleAndAllComponentsAsync(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}clearCache(){}clearCacheFor(p){}getModuleId(p){}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const x8=(()=>Promise.resolve(0))();function np(o){typeof Zone>"u"?x8.then(()=>{o&&o.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",o)}class fc{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:p=!1,shouldCoalesceRunChangeDetection:E=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Vc(!1),this.onMicrotaskEmpty=new Vc(!1),this.onStable=new Vc(!1),this.onError=new Vc(!1),typeof Zone>"u")throw new Y(908,!1);Zone.assertZonePatched();const z=this;z._nesting=0,z._outer=z._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(z._inner=z._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(z._inner=z._inner.fork(Zone.longStackTraceZoneSpec)),z.shouldCoalesceEventChangeDetection=!E&&p,z.shouldCoalesceRunChangeDetection=E,z.lastRequestAnimationFrameId=-1,z.nativeRequestAnimationFrame=function C8(){let o=ct.requestAnimationFrame,c=ct.cancelAnimationFrame;if(typeof Zone<"u"&&o&&c){const p=o[Zone.__symbol__("OriginalDelegate")];p&&(o=p);const E=c[Zone.__symbol__("OriginalDelegate")];E&&(c=E)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function S8(o){const c=()=>{!function Q6(o){o.isCheckStableRunning||-1!==o.lastRequestAnimationFrameId||(o.lastRequestAnimationFrameId=o.nativeRequestAnimationFrame.call(ct,()=>{o.fakeTopEventTask||(o.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{o.lastRequestAnimationFrameId=-1,rp(o),o.isCheckStableRunning=!0,ap(o),o.isCheckStableRunning=!1},void 0,()=>{},()=>{})),o.fakeTopEventTask.invoke()}),rp(o))}(o)};o._inner=o._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(p,E,z,Z,de,He)=>{try{return q6(o),p.invokeTask(z,Z,de,He)}finally{(o.shouldCoalesceEventChangeDetection&&"eventTask"===Z.type||o.shouldCoalesceRunChangeDetection)&&c(),J6(o)}},onInvoke:(p,E,z,Z,de,He,Ke)=>{try{return q6(o),p.invoke(z,Z,de,He,Ke)}finally{o.shouldCoalesceRunChangeDetection&&c(),J6(o)}},onHasTask:(p,E,z,Z)=>{p.hasTask(z,Z),E===z&&("microTask"==Z.change?(o._hasPendingMicrotasks=Z.microTask,rp(o),ap(o)):"macroTask"==Z.change&&(o.hasPendingMacrotasks=Z.macroTask))},onHandleError:(p,E,z,Z)=>(p.handleError(z,Z),o.runOutsideAngular(()=>o.onError.emit(Z)),!1)})}(z)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Y(909,!1)}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Y(909,!1)}run(c,p,E){return this._inner.run(c,p,E)}runTask(c,p,E,z){const Z=this._inner,de=Z.scheduleEventTask("NgZoneEvent: "+z,c,M8,y4,y4);try{return Z.runTask(de,p,E)}finally{Z.cancelTask(de)}}runGuarded(c,p,E){return this._inner.runGuarded(c,p,E)}runOutsideAngular(c){return this._outer.run(c)}}const M8={};function ap(o){if(0==o._nesting&&!o.hasPendingMicrotasks&&!o.isStable)try{o._nesting++,o.onMicrotaskEmpty.emit(null)}finally{if(o._nesting--,!o.hasPendingMicrotasks)try{o.runOutsideAngular(()=>o.onStable.emit(null))}finally{o.isStable=!0}}}function rp(o){o.hasPendingMicrotasks=!!(o._hasPendingMicrotasks||(o.shouldCoalesceEventChangeDetection||o.shouldCoalesceRunChangeDetection)&&-1!==o.lastRequestAnimationFrameId)}function q6(o){o._nesting++,o.isStable&&(o.isStable=!1,o.onUnstable.emit(null))}function J6(o){o._nesting--,ap(o)}class X6{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vc,this.onMicrotaskEmpty=new Vc,this.onStable=new Vc,this.onError=new Vc}run(c,p,E){return c.apply(p,E)}runGuarded(c,p,E){return c.apply(p,E)}runOutsideAngular(c){return c()}runTask(c,p,E,z){return c.apply(p,E)}}const $6=new wa(""),eg=new wa("");let op,tg=(()=>{class o{constructor(p,E,z){this._ngZone=p,this.registry=E,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,op||(function T8(o){op=o}(z),z.addToWindow(E)),this._watchAngularEvents(),p.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{fc.assertNotInAngularZone(),np(()=>{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())np(()=>{for(;0!==this._callbacks.length;){let p=this._callbacks.pop();clearTimeout(p.timeoutId),p.doneCb(this._didWork)}this._didWork=!1});else{let p=this.getPendingTasks();this._callbacks=this._callbacks.filter(E=>!E.updateCb||!E.updateCb(p)||(clearTimeout(E.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(p=>({source:p.source,creationLocation:p.creationLocation,data:p.data})):[]}addCallback(p,E,z){let Z=-1;E&&E>0&&(Z=setTimeout(()=>{this._callbacks=this._callbacks.filter(de=>de.timeoutId!==Z),p(this._didWork,this.getPendingTasks())},E)),this._callbacks.push({doneCb:p,timeoutId:Z,updateCb:z})}whenStable(p,E,z){if(z&&!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(p,E,z),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(p){this.registry.registerApplication(p,this)}unregisterApplication(p){this.registry.unregisterApplication(p)}findProviders(p,E,z){return[]}}return o.\u0275fac=function(p){return new(p||o)(Ct(fc),Ct(ig),Ct(eg))},o.\u0275prov=pe({token:o,factory:o.\u0275fac}),o})(),ig=(()=>{class o{constructor(){this._applications=new Map}registerApplication(p,E){this._applications.set(p,E)}unregisterApplication(p){this._applications.delete(p)}unregisterAllApplications(){this._applications.clear()}getTestability(p){return this._applications.get(p)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(p,E=!0){return op?.findTestabilityInTree(this,p,E)??null}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const Ql=!1;let K1=null;const ng=new wa("AllowMultipleToken"),x4=new wa("PlatformDestroyListeners"),ag=new wa("appBootstrapListener");class A8{constructor(c,p){this.name=c,this.token=p}}function og(o,c,p=[]){const E=`Platform: ${c}`,z=new wa(E);return(Z=[])=>{let de=C4();if(!de||de.injector.get(ng,!1)){const He=[...p,...Z,{provide:z,useValue:!0}];o?o(He):function L8(o){if(K1&&!K1.get(ng,!1))throw new Y(400,!1);K1=o;const c=o.get(cg);(function sp(o){const c=o.get(W6,null);c&&c.forEach(p=>p())})(o)}(function sg(o=[],c){return sc.create({name:c,providers:[{provide:Il,useValue:"platform"},{provide:x4,useValue:new Set([()=>K1=null])},...o]})}(He,E))}return function I8(o){const c=C4();if(!c)throw new Y(401,!1);return c}()}}function C4(){return K1?.get(cg)??null}let cg=(()=>{class o{constructor(p){this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(p,E){const z=function dg(o,c){let p;return p="noop"===o?new X6:("zone.js"===o?void 0:o)||new fc(c),p}(E?.ngZone,function lg(o){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!o||!o.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!o||!o.ngZoneRunCoalescing)||!1}}(E)),Z=[{provide:fc,useValue:z}];return z.run(()=>{const de=sc.create({providers:Z,parent:this.injector,name:p.moduleType.name}),He=p.create(de),Ke=He.injector.get(ol,null);if(!Ke)throw new Y(402,!1);return z.runOutsideAngular(()=>{const bt=z.onError.subscribe({next:Pt=>{Ke.handleError(Pt)}});He.onDestroy(()=>{Of(this._modules,He),bt.unsubscribe()})}),function hg(o,c,p){try{const E=p();return C3(E)?E.catch(z=>{throw c.runOutsideAngular(()=>o.handleError(z)),z}):E}catch(E){throw c.runOutsideAngular(()=>o.handleError(E)),E}}(Ke,z,()=>{const bt=He.injector.get(If);return bt.runInitializers(),bt.donePromise.then(()=>(function t4(o){K(o,"Expected localeId to be defined"),"string"==typeof o&&(e4=o.toLowerCase().replace(/_/g,"-"))}(He.injector.get(kf,v2)||v2),this._moduleDoBootstrap(He),He))})})}bootstrapModule(p,E=[]){const z=ug({},E);return function E8(o,c,p){const E=new na(p);return Promise.resolve(E)}(0,0,p).then(Z=>this.bootstrapModuleFactory(Z,z))}_moduleDoBootstrap(p){const E=p.injector.get(w4);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(z=>E.bootstrap(z));else{if(!p.instance.ngDoBootstrap)throw new Y(-403,!1);p.instance.ngDoBootstrap(E)}this._modules.push(p)}onDestroy(p){this._destroyListeners.push(p)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,!1);this._modules.slice().forEach(E=>E.destroy()),this._destroyListeners.forEach(E=>E());const p=this._injector.get(x4,null);p&&(p.forEach(E=>E()),p.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return o.\u0275fac=function(p){return new(p||o)(Ct(sc))},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();function ug(o,c){return Array.isArray(c)?c.reduce(ug,o):{...o,...c}}let w4=(()=>{class o{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(p,E,z){this._zone=p,this._injector=E,this._exceptionHandler=z,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Z=new g.y(He=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{He.next(this._stable),He.complete()})}),de=new g.y(He=>{let Ke;this._zone.runOutsideAngular(()=>{Ke=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,He.next(!0))})})});const bt=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{He.next(!1)}))});return()=>{Ke.unsubscribe(),bt.unsubscribe()}});this.isStable=(0,T.T)(Z,de.pipe((0,s.B)()))}bootstrap(p,E){const z=p instanceof c0;if(!this._injector.get(If).done){!z&&Ai(p);throw new Y(405,Ql)}let de;de=z?p:this._injector.get(Ol).resolveComponentFactory(p),this.componentTypes.push(de.componentType);const He=function rg(o){return o.isBoundToModule}(de)?void 0:this._injector.get(Ys),bt=de.create(sc.NULL,[],E||de.selector,He),Pt=bt.location.nativeElement,ti=bt.injector.get($6,null);return ti?.registerApplication(Pt),bt.onDestroy(()=>{this.detachView(bt.hostView),Of(this.components,bt),ti?.unregisterApplication(Pt)}),this._loadComponent(bt),bt}tick(){if(this._runningTick)throw new Y(101,!1);try{this._runningTick=!0;for(let p of this._views)p.detectChanges()}catch(p){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(p))}finally{this._runningTick=!1}}attachView(p){const E=p;this._views.push(E),E.attachToAppRef(this)}detachView(p){const E=p;Of(this._views,E),E.detachFromAppRef()}_loadComponent(p){this.attachView(p.hostView),this.tick(),this.components.push(p);const E=this._injector.get(ag,[]);E.push(...this._bootstrapListeners),E.forEach(z=>z(p))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(p=>p()),this._views.slice().forEach(p=>p.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(p){return this._destroyListeners.push(p),()=>Of(this._destroyListeners,p)}destroy(){if(this._destroyed)throw new Y(406,!1);const p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return o.\u0275fac=function(p){return new(p||o)(Ct(fc),Ct(Ec),Ct(ol))},o.\u0275prov=pe({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Of(o,c){const p=o.indexOf(c);p>-1&&o.splice(p,1)}function O8(){return!1}let R8=(()=>{class o{}return o.__NG_ELEMENT_ID__=mg,o})();function mg(o){return function N8(o,c,p){if(Fr(o)&&!p){const E=wt(o.index,c);return new Oc(E,E)}return 47&o.type?new Oc(c[ta],c):null}(Ka(),Ti(),16==(16&o))}class vg{constructor(){}supports(c){return Pc(c)}create(c){return new V8(c)}}const z8=(o,c)=>c;class V8{constructor(c){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=c||z8}forEachItem(c){let p;for(p=this._itHead;null!==p;p=p._next)c(p)}forEachOperation(c){let p=this._itHead,E=this._removalsHead,z=0,Z=null;for(;p||E;){const de=!E||p&&p.currentIndex<mp(E,z,Z)?p:E,He=mp(de,z,Z),Ke=de.currentIndex;if(de===E)z--,E=E._nextRemoved;else if(p=p._next,null==de.previousIndex)z++;else{Z||(Z=[]);const bt=He-z,Pt=Ke-z;if(bt!=Pt){for(let di=0;di<bt;di++){const xi=di<Z.length?Z[di]:Z[di]=0,Ni=xi+di;Pt<=Ni&&Ni<bt&&(Z[di]=xi+1)}Z[de.previousIndex]=Pt-bt}}He!==Ke&&c(de,He,Ke)}}forEachPreviousItem(c){let p;for(p=this._previousItHead;null!==p;p=p._nextPrevious)c(p)}forEachAddedItem(c){let p;for(p=this._additionsHead;null!==p;p=p._nextAdded)c(p)}forEachMovedItem(c){let p;for(p=this._movesHead;null!==p;p=p._nextMoved)c(p)}forEachRemovedItem(c){let p;for(p=this._removalsHead;null!==p;p=p._nextRemoved)c(p)}forEachIdentityChange(c){let p;for(p=this._identityChangesHead;null!==p;p=p._nextIdentityChange)c(p)}diff(c){if(null==c&&(c=[]),!Pc(c))throw new Y(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let z,Z,de,p=this._itHead,E=!1;if(Array.isArray(c)){this.length=c.length;for(let He=0;He<this.length;He++)Z=c[He],de=this._trackByFn(He,Z),null!==p&&Object.is(p.trackById,de)?(E&&(p=this._verifyReinsertion(p,Z,de,He)),Object.is(p.item,Z)||this._addIdentityChange(p,Z)):(p=this._mismatch(p,Z,de,He),E=!0),p=p._next}else z=0,function wn(o,c){if(Array.isArray(o))for(let p=0;p<o.length;p++)c(o[p]);else{const p=o[Symbol.iterator]();let E;for(;!(E=p.next()).done;)c(E.value)}}(c,He=>{de=this._trackByFn(z,He),null!==p&&Object.is(p.trackById,de)?(E&&(p=this._verifyReinsertion(p,He,de,z)),Object.is(p.item,He)||this._addIdentityChange(p,He)):(p=this._mismatch(p,He,de,z),E=!0),p=p._next,z++}),this.length=z;return this._truncate(p),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,p,E,z){let Z;return null===c?Z=this._itTail:(Z=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null))?(Object.is(c.item,p)||this._addIdentityChange(c,p),this._reinsertAfter(c,Z,z)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(E,z))?(Object.is(c.item,p)||this._addIdentityChange(c,p),this._moveAfter(c,Z,z)):c=this._addAfter(new B8(p,E),Z,z),c}_verifyReinsertion(c,p,E,z){let Z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null);return null!==Z?c=this._reinsertAfter(Z,c._prev,z):c.currentIndex!=z&&(c.currentIndex=z,this._addToMoves(c,z)),c}_truncate(c){for(;null!==c;){const p=c._next;this._addToRemovals(this._unlink(c)),c=p}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(c,p,E){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const z=c._prevRemoved,Z=c._nextRemoved;return null===z?this._removalsHead=Z:z._nextRemoved=Z,null===Z?this._removalsTail=z:Z._prevRemoved=z,this._insertAfter(c,p,E),this._addToMoves(c,E),c}_moveAfter(c,p,E){return this._unlink(c),this._insertAfter(c,p,E),this._addToMoves(c,E),c}_addAfter(c,p,E){return this._insertAfter(c,p,E),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,p,E){const z=null===p?this._itHead:p._next;return c._next=z,c._prev=p,null===z?this._itTail=c:z._prev=c,null===p?this._itHead=c:p._next=c,null===this._linkedRecords&&(this._linkedRecords=new bg),this._linkedRecords.put(c),c.currentIndex=E,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const p=c._prev,E=c._next;return null===p?this._itHead=E:p._next=E,null===E?this._itTail=p:E._prev=p,c}_addToMoves(c,p){return c.previousIndex===p||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new bg),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,p){return c.item=p,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class B8{constructor(c,p){this.item=c,this.trackById=p,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 U8{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,p){let E;for(E=this._head;null!==E;E=E._nextDup)if((null===p||p<=E.currentIndex)&&Object.is(E.trackById,c))return E;return null}remove(c){const p=c._prevDup,E=c._nextDup;return null===p?this._head=E:p._nextDup=E,null===E?this._tail=p:E._prevDup=p,null===this._head}}class bg{constructor(){this.map=new Map}put(c){const p=c.trackById;let E=this.map.get(p);E||(E=new U8,this.map.set(p,E)),E.add(c)}get(c,p){const z=this.map.get(c);return z?z.get(c,p):null}remove(c){const p=c.trackById;return this.map.get(p).remove(c)&&this.map.delete(p),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function mp(o,c,p){const E=o.previousIndex;if(null===E)return E;let z=0;return p&&E<p.length&&(z=p[E]),E+c+z}class yg{constructor(){}supports(c){return c instanceof Map||Sn(c)}create(){return new pp}}class pp{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(c){let p;for(p=this._mapHead;null!==p;p=p._next)c(p)}forEachPreviousItem(c){let p;for(p=this._previousMapHead;null!==p;p=p._nextPrevious)c(p)}forEachChangedItem(c){let p;for(p=this._changesHead;null!==p;p=p._nextChanged)c(p)}forEachAddedItem(c){let p;for(p=this._additionsHead;null!==p;p=p._nextAdded)c(p)}forEachRemovedItem(c){let p;for(p=this._removalsHead;null!==p;p=p._nextRemoved)c(p)}diff(c){if(c){if(!(c instanceof Map||Sn(c)))throw new Y(900,!1)}else c=new Map;return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let p=this._mapHead;if(this._appendAfter=null,this._forEach(c,(E,z)=>{if(p&&p.key===z)this._maybeAddToChanges(p,E),this._appendAfter=p,p=p._next;else{const Z=this._getOrCreateRecordForKey(z,E);p=this._insertBeforeOrAppend(p,Z)}}),p){p._prev&&(p._prev._next=null),this._removalsHead=p;for(let E=p;null!==E;E=E._nextRemoved)E===this._mapHead&&(this._mapHead=null),this._records.delete(E.key),E._nextRemoved=E._next,E.previousValue=E.currentValue,E.currentValue=null,E._prev=null,E._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,p){if(c){const E=c._prev;return p._next=c,p._prev=E,c._prev=p,E&&(E._next=p),c===this._mapHead&&(this._mapHead=p),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=p,p._prev=this._appendAfter):this._mapHead=p,this._appendAfter=p,null}_getOrCreateRecordForKey(c,p){if(this._records.has(c)){const z=this._records.get(c);this._maybeAddToChanges(z,p);const Z=z._prev,de=z._next;return Z&&(Z._next=de),de&&(de._prev=Z),z._next=null,z._prev=null,z}const E=new G8(c);return this._records.set(c,E),E.currentValue=p,this._addToAdditions(E),E}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,p){Object.is(p,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=p,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,p){c instanceof Map?c.forEach(p):Object.keys(c).forEach(E=>p(c[E],E))}}class G8{constructor(c){this.key=c,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 xg(){return new A4([new vg])}let A4=(()=>{class o{constructor(p){this.factories=p}static create(p,E){if(null!=E){const z=E.factories.slice();p=p.concat(z)}return new o(p)}static extend(p){return{provide:o,useFactory:E=>o.create(p,E||xg()),deps:[[o,new Ns,new Ao]]}}find(p){const E=this.factories.find(z=>z.supports(p));if(null!=E)return E;throw new Y(901,!1)}}return o.\u0275prov=pe({token:o,providedIn:"root",factory:xg}),o})();function gp(){return new _p([new yg])}let _p=(()=>{class o{constructor(p){this.factories=p}static create(p,E){if(E){const z=E.factories.slice();p=p.concat(z)}return new o(p)}static extend(p){return{provide:o,useFactory:E=>o.create(p,E||gp()),deps:[[o,new Ns,new Ao]]}}find(p){const E=this.factories.find(z=>z.supports(p));if(E)return E;throw new Y(901,!1)}}return o.\u0275prov=pe({token:o,providedIn:"root",factory:gp}),o})();const K8=og(null,"core",[]);let j8=(()=>{class o{constructor(p){}}return o.\u0275fac=function(p){return new(p||o)(Ct(w4))},o.\u0275mod=Si({type:o}),o.\u0275inj=Ce({}),o})();function Cg(o){return"boolean"==typeof o?o:null!=o&&"false"!==o}},5863:(We,q,m)=>{"use strict";function t(M){for(let w in M){let L=M[w]??"";switch(w){case"display":M.display="flex"===L?["-webkit-flex","flex"]:"inline-flex"===L?["-webkit-inline-flex","inline-flex"]:L;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":M["-webkit-"+w]=L;break;case"flex-direction":M["-webkit-flex-direction"]=L,M["flex-direction"]=L;break;case"order":M.order=M["-webkit-"+w]=isNaN(+L)?"0":L}}return M}m.d(q,{Ar:()=>T,GK:()=>t,iQ:()=>g,kt:()=>d,tj:()=>x});const e="inline",g=["row","column","row-reverse","column-reverse"];function T(M){let[w,L,k]=s(M);return function N(M,w=null,L=!1){return{display:L?"inline-flex":"flex","box-sizing":"border-box","flex-direction":M,"flex-wrap":w||null}}(w,L,k)}function s(M){M=M?.toLowerCase()??"";let[w,L,k]=M.split(" ");return g.find(V=>V===w)||(w=g[0]),L===e&&(L=k!==e?k:"",k=e),[w,h(L),!!k]}function x(M){let[w]=s(M);return w.indexOf("row")>-1}function h(M){if(M)switch(M.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":M="wrap-reverse";break;case"no":case"none":case"nowrap":M="nowrap";break;default:M="wrap"}return M}function d(M,...w){if(null==M)throw TypeError("Cannot convert undefined or null to object");for(let L of w)if(null!=L)for(let k in L)L.hasOwnProperty(k)&&(M[k]=L[k]);return M}},2233:(We,q,m)=>{"use strict";m.d(q,{Bs:()=>X,FL:()=>J,IR:()=>k,Ot:()=>Me,QI:()=>me,RK:()=>re,WU:()=>Y,g5:()=>W,iR:()=>Re,wY:()=>Q,yB:()=>Ue});var t=m(4650),e=m(6895),g=m(1135),T=m(9751),s=m(6451),x=m(7579),h=m(5863),N=m(9300),d=m(8505);const w={provide:t.tb,useFactory:function M(mt,Et){return()=>{if((0,e.NF)(Et)){const at=Array.from(mt.querySelectorAll(`[class*=${L}]`)),je=/\bflex-layout-.+?\b/g;at.forEach(Ht=>{Ht.classList.contains(`${L}ssr`)&&Ht.parentNode?Ht.parentNode.removeChild(Ht):Ht.className.replace(je,"")})}}},deps:[e.K0,t.Lbi],multi:!0},L="flex-layout-";let k=(()=>{class mt{}return mt.\u0275fac=function(at){return new(at||mt)},mt.\u0275mod=t.oAB({type:mt}),mt.\u0275inj=t.cJS({providers:[w]}),mt})();class V{constructor(Et=!1,at="all",je="",Ht="",Ct=0){this.matches=Et,this.mediaQuery=at,this.mqAlias=je,this.suffix=Ht,this.priority=Ct,this.property=""}clone(){return new V(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let B=(()=>{class mt{constructor(){this.stylesheet=new Map}addStyleToElement(at,je,Ht){const Ct=this.stylesheet.get(at);Ct?Ct.set(je,Ht):this.stylesheet.set(at,new Map([[je,Ht]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(at,je){const Ht=this.stylesheet.get(at);let Ct="";if(Ht){const Nt=Ht.get(je);("number"==typeof Nt||"string"==typeof Nt)&&(Ct=Nt+"")}return Ct}}return mt.\u0275fac=function(at){return new(at||mt)},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const W={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Y=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>W}),Q=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),X=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(mt,Et){return mt=mt?.clone()??new V,Et&&(mt.mqAlias=Et.alias,mt.mediaQuery=Et.mediaQuery,mt.suffix=Et.suffix,mt.priority=Et.priority),mt}class me{constructor(){this.shouldCache=!0}sideEffect(Et,at,je){}}let re=(()=>{class mt{constructor(at,je,Ht,Ct){this._serverStylesheet=at,this._serverModuleLoaded=je,this._platformId=Ht,this.layoutConfig=Ct}applyStyleToElement(at,je,Ht=null){let Ct={};"string"==typeof je&&(Ct[je]=Ht,je=Ct),Ct=this.layoutConfig.disableVendorPrefixes?je:(0,h.GK)(je),this._applyMultiValueStyleToElement(Ct,at)}applyStyleToElements(at,je=[]){const Ht=this.layoutConfig.disableVendorPrefixes?at:(0,h.GK)(at);je.forEach(Ct=>{this._applyMultiValueStyleToElement(Ht,Ct)})}getFlowDirection(at){const je="flex-direction";let Ht=this.lookupStyle(at,je);return[Ht||"row",this.lookupInlineStyle(at,je)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?Ht:""]}hasWrap(at){return"wrap"===this.lookupStyle(at,"flex-wrap")}lookupAttributeValue(at,je){return at.getAttribute(je)??""}lookupInlineStyle(at,je){return(0,e.NF)(this._platformId)?at.style.getPropertyValue(je):function ie(mt,Et){return Te(mt)[Et]??""}(at,je)}lookupStyle(at,je,Ht=!1){let Ct="";return at&&((Ct=this.lookupInlineStyle(at,je))||((0,e.NF)(this._platformId)?Ht||(Ct=getComputedStyle(at).getPropertyValue(je)):this._serverModuleLoaded&&(Ct=this._serverStylesheet.getStyleForElement(at,je)))),Ct?Ct.trim():""}_applyMultiValueStyleToElement(at,je){Object.keys(at).sort().forEach(Ht=>{const Ct=at[Ht],Nt=Array.isArray(Ct)?Ct:[Ct];Nt.sort();for(let Bt of Nt)Bt=Bt?Bt+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?je.style.setProperty(Ht,Bt):se(je,Ht,Bt):this._serverStylesheet.addStyleToElement(je,Ht,Bt)})}}return mt.\u0275fac=function(at){return new(at||mt)(t.LFG(B),t.LFG(Q),t.LFG(t.Lbi),t.LFG(Y))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();function se(mt,Et,at){Et=Et.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const je=Te(mt);je[Et]=at??"",function ce(mt,Et){let at="";for(const je in Et)Et[je]&&(at+=`${je}:${Et[je]};`);mt.setAttribute("style",at)}(mt,je)}function Te(mt){const Et={},at=mt.getAttribute("style");if(at){const je=at.split(/;+/g);for(let Ht=0;Ht<je.length;Ht++){const Ct=je[Ht].trim();if(Ct.length>0){const Nt=Ct.indexOf(":");if(-1===Nt)throw new Error(`Invalid CSS style: ${Ct}`);Et[Ct.substr(0,Nt).trim()]=Ct.substr(Nt+1).trim()}}}return Et}function S(mt,Et){return(Et&&Et.priority||0)-(mt&&mt.priority||0)}function i(mt,Et){return(mt.priority||0)-(Et.priority||0)}let a=(()=>{class mt{constructor(at,je,Ht){this._zone=at,this._platformId=je,this._document=Ht,this.source=new g.X(new V(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const at=[];return this.registry.forEach((je,Ht)=>{je.matches&&at.push(Ht)}),at}isActive(at){return this.registry.get(at)?.matches??this.registerQuery(at).some(Ht=>Ht.matches)}observe(at,je=!1){if(at&&at.length){const Ht=this._observable$.pipe((0,N.h)(Nt=>!je||at.indexOf(Nt.mediaQuery)>-1)),Ct=new T.y(Nt=>{const Bt=this.registerQuery(at);if(Bt.length){const Ne=Bt.pop();Bt.forEach($=>{Nt.next($)}),this.source.next(Ne)}Nt.complete()});return(0,s.T)(Ct,Ht)}return this._observable$}registerQuery(at){const je=Array.isArray(at)?at:[at],Ht=[];return function l(mt,Et){const at=mt.filter(je=>!u[je]);if(at.length>0){const je=at.join(", ");try{const Ht=Et.createElement("style");Ht.setAttribute("type","text/css"),Ht.styleSheet||Ht.appendChild(Et.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${je} {.fx-query-test{ }}\n`)),Et.head.appendChild(Ht),at.forEach(Ct=>u[Ct]=Ht)}catch(Ht){console.error(Ht)}}}(je,this._document),je.forEach(Ct=>{const Nt=Ne=>{this._zone.run(()=>this.source.next(new V(Ne.matches,Ct)))};let Bt=this.registry.get(Ct);Bt||(Bt=this.buildMQL(Ct),Bt.addListener(Nt),this.pendingRemoveListenerFns.push(()=>Bt.removeListener(Nt)),this.registry.set(Ct,Bt)),Bt.matches&&Ht.push(new V(!0,Ct))}),Ht}ngOnDestroy(){let at;for(;at=this.pendingRemoveListenerFns.pop();)at()}buildMQL(at){return function O(mt,Et){return Et&&window.matchMedia("all").addListener?window.matchMedia(mt):function _(mt){const Et=new EventTarget;return Et.matches="all"===mt||""===mt,Et.media=mt,Et.addListener=()=>{},Et.removeListener=()=>{},Et.addEventListener=()=>{},Et.dispatchEvent=()=>!1,Et.onchange=null,Et}(mt)}(at,(0,e.NF)(this._platformId))}}return mt.\u0275fac=function(at){return new(at||mt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const u={},R=[{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}],C="(orientation: portrait) and (max-width: 599.98px)",n="(orientation: landscape) and (max-width: 959.98px)",v="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",K="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",F="(orientation: portrait) and (min-width: 840px)",G="(orientation: landscape) and (min-width: 1280px)",ye={HANDSET:`${C}, ${n}`,TABLET:`${v} , ${K}`,WEB:`${F}, ${G} `,HANDSET_PORTRAIT:`${C}`,TABLET_PORTRAIT:`${v} `,WEB_PORTRAIT:`${F}`,HANDSET_LANDSCAPE:`${n}`,TABLET_LANDSCAPE:`${K}`,WEB_LANDSCAPE:`${G}`},Ee=[{alias:"handset",priority:2e3,mediaQuery:ye.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ye.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ye.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ye.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ye.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ye.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ye.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ye.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ye.WEB_PORTRAIT,overlapping:!0}],pe=/(\.|-|_)/g;function qe(mt){let Et=mt.length>0?mt.charAt(0):"",at=mt.length>1?mt.slice(1):"";return Et.toUpperCase()+at}const Fe=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const mt=(0,t.f3M)(X),Et=(0,t.f3M)(Y),at=[].concat.apply([],(mt||[]).map(Ht=>Array.isArray(Ht)?Ht:[Ht]));return function fe(mt,Et=[]){const at={};return mt.forEach(je=>{at[je.alias]=je}),Et.forEach(je=>{at[je.alias]?(0,h.kt)(at[je.alias],je):at[je.alias]=je}),function Se(mt){return mt.forEach(Et=>{Et.suffix||(Et.suffix=function Ce(mt){return mt.replace(pe,"|").split("|").map(qe).join("")}(Et.alias),Et.overlapping=!!Et.overlapping)}),mt}(Object.keys(at).map(je=>at[je]))}((Et.disableDefaultBps?[]:R).concat(Et.addOrientationBps?Ee:[]),at)}});let oe=(()=>{class mt{constructor(at){this.findByMap=new Map,this.items=[...at].sort(i)}findByAlias(at){return at?this.findWithPredicate(at,je=>je.alias===at):null}findByQuery(at){return this.findWithPredicate(at,je=>je.mediaQuery===at)}get overlappings(){return this.items.filter(at=>at.overlapping)}get aliases(){return this.items.map(at=>at.alias)}get suffixes(){return this.items.map(at=>at?.suffix??"")}findWithPredicate(at,je){let Ht=this.findByMap.get(at);return Ht||(Ht=this.items.find(je)??null,this.findByMap.set(at,Ht)),Ht??null}}return mt.\u0275fac=function(at){return new(at||mt)(t.LFG(Fe))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const ze="print",Oe={alias:ze,mediaQuery:ze,priority:1e3};let he=(()=>{class mt{constructor(at,je,Ht){this.breakpoints=at,this.layoutConfig=je,this._document=Ht,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ae,this.deactivations=[]}withPrintQuery(at){return[...at,ze]}isPrintEvent(at){return at.mediaQuery.startsWith(ze)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(at=>this.breakpoints.findByAlias(at)).filter(at=>null!==at)}getEventBreakpoints({mediaQuery:at}){const je=this.breakpoints.findByQuery(at);return(je?[...this.printBreakPoints,je]:this.printBreakPoints).sort(S)}updateEvent(at){let je=this.breakpoints.findByQuery(at.mediaQuery);return this.isPrintEvent(at)&&(je=this.getEventBreakpoints(at)[0],at.mediaQuery=je?.mediaQuery??""),ee(at,je)}registerBeforeAfterPrintHooks(at){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const je=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(at,this.getEventBreakpoints(new V(!0,ze))),at.updateStyles())},Ht=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(at),at.updateStyles())};this._document.defaultView.addEventListener("beforeprint",je),this._document.defaultView.addEventListener("afterprint",Ht),this.beforePrintEventListeners.push(je),this.afterPrintEventListeners.push(Ht)}interceptEvents(at){return je=>{this.isPrintEvent(je)?je.matches&&!this.isPrinting?(this.startPrinting(at,this.getEventBreakpoints(je)),at.updateStyles()):!je.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(at),at.updateStyles()):this.collectActivations(at,je)}}blockPropagation(){return at=>!(this.isPrinting||this.isPrintEvent(at))}startPrinting(at,je){this.isPrinting=!0,this.formerActivations=at.activatedBreakpoints,at.activatedBreakpoints=this.queue.addPrintBreakpoints(je)}stopPrinting(at){at.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(at,je){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!je.matches){const Ht=this.breakpoints.findByQuery(je.mediaQuery);if(Ht){const Ct=this.formerActivations&&this.formerActivations.includes(Ht),Nt=!this.formerActivations&&at.activatedBreakpoints.includes(Ht);(Ct||Nt)&&(this.deactivations.push(Ht),this.deactivations.sort(S))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(at=>this._document.defaultView.removeEventListener("beforeprint",at)),this.afterPrintEventListeners.forEach(at=>this._document.defaultView.removeEventListener("afterprint",at)))}}return mt.\u0275fac=function(at){return new(at||mt)(t.LFG(oe),t.LFG(Y),t.LFG(e.K0))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();class Ae{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Et){return Et.push(Oe),Et.sort(S),Et.forEach(at=>this.addBreakpoint(at)),this.printBreakpoints}addBreakpoint(Et){Et&&void 0===this.printBreakpoints.find(je=>je.mediaQuery===Et.mediaQuery)&&(this.printBreakpoints=function ge(mt){return mt?.mediaQuery.startsWith(ze)??!1}(Et)?[Et,...this.printBreakpoints]:[...this.printBreakpoints,Et])}clear(){this.printBreakpoints=[]}}let Ue=(()=>{class mt{constructor(at,je,Ht){this.matchMedia=at,this.breakpoints=je,this.hook=Ht,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new x.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(at){this._activatedBreakpoints=[...at]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(at){this._useFallbacks=at}onMediaChange(at){const je=this.findByQuery(at.mediaQuery);if(je){at=ee(at,je);const Ht=this.activatedBreakpoints.indexOf(je);at.matches&&-1===Ht?(this._activatedBreakpoints.push(je),this._activatedBreakpoints.sort(S),this.updateStyles()):!at.matches&&-1!==Ht&&(this._activatedBreakpoints.splice(Ht,1),this._activatedBreakpoints.sort(S),this.updateStyles())}}init(at,je,Ht,Ct,Nt=[]){Je(this.updateMap,at,je,Ht),Je(this.clearMap,at,je,Ct),this.buildElementKeyMap(at,je),this.watchExtraTriggers(at,je,Nt)}getValue(at,je,Ht){const Ct=this.elementMap.get(at);if(Ct){const Nt=void 0!==Ht?Ct.get(Ht):this.getActivatedValues(Ct,je);if(Nt)return Nt.get(je)}}hasValue(at,je){const Ht=this.elementMap.get(at);if(Ht){const Ct=this.getActivatedValues(Ht,je);if(Ct)return void 0!==Ct.get(je)||!1}return!1}setValue(at,je,Ht,Ct){let Nt=this.elementMap.get(at);if(Nt){const Ne=(Nt.get(Ct)??new Map).set(je,Ht);Nt.set(Ct,Ne),this.elementMap.set(at,Nt)}else Nt=(new Map).set(Ct,(new Map).set(je,Ht)),this.elementMap.set(at,Nt);const Bt=this.getValue(at,je);void 0!==Bt&&this.updateElement(at,je,Bt)}trackValue(at,je){return this.subject.asObservable().pipe((0,N.h)(Ht=>Ht.element===at&&Ht.key===je))}updateStyles(){this.elementMap.forEach((at,je)=>{const Ht=new Set(this.elementKeyMap.get(je));let Ct=this.getActivatedValues(at);Ct&&Ct.forEach((Nt,Bt)=>{this.updateElement(je,Bt,Nt),Ht.delete(Bt)}),Ht.forEach(Nt=>{if(Ct=this.getActivatedValues(at,Nt),Ct){const Bt=Ct.get(Nt);this.updateElement(je,Nt,Bt)}else this.clearElement(je,Nt)})})}clearElement(at,je){const Ht=this.clearMap.get(at);if(Ht){const Ct=Ht.get(je);Ct&&(Ct(),this.subject.next({element:at,key:je,value:""}))}}updateElement(at,je,Ht){const Ct=this.updateMap.get(at);if(Ct){const Nt=Ct.get(je);Nt&&(Nt(Ht),this.subject.next({element:at,key:je,value:Ht}))}}releaseElement(at){const je=this.watcherMap.get(at);je&&(je.forEach(Ct=>Ct.unsubscribe()),this.watcherMap.delete(at));const Ht=this.elementMap.get(at);Ht&&(Ht.forEach((Ct,Nt)=>Ht.delete(Nt)),this.elementMap.delete(at))}triggerUpdate(at,je){const Ht=this.elementMap.get(at);if(Ht){const Ct=this.getActivatedValues(Ht,je);Ct&&(je?this.updateElement(at,je,Ct.get(je)):Ct.forEach((Nt,Bt)=>this.updateElement(at,Bt,Nt)))}}buildElementKeyMap(at,je){let Ht=this.elementKeyMap.get(at);Ht||(Ht=new Set,this.elementKeyMap.set(at,Ht)),Ht.add(je)}watchExtraTriggers(at,je,Ht){if(Ht&&Ht.length){let Ct=this.watcherMap.get(at);if(Ct||(Ct=new Map,this.watcherMap.set(at,Ct)),!Ct.get(je)){const Bt=(0,s.T)(...Ht).subscribe(()=>{const Ne=this.getValue(at,je);this.updateElement(at,je,Ne)});Ct.set(je,Bt)}}}findByQuery(at){return this.breakpoints.findByQuery(at)}getActivatedValues(at,je){for(let Ct=0;Ct<this.activatedBreakpoints.length;Ct++){const Bt=at.get(this.activatedBreakpoints[Ct].alias);if(Bt&&(void 0===je||Bt.has(je)&&null!=Bt.get(je)))return Bt}if(!this._useFallbacks)return;const Ht=at.get("");return void 0===je||Ht&&Ht.has(je)?Ht:void 0}observeActivations(){const at=this.breakpoints.items.map(je=>je.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(at)).pipe((0,d.b)(this.hook.interceptEvents(this)),(0,N.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return mt.\u0275fac=function(at){return new(at||mt)(t.LFG(a),t.LFG(oe),t.LFG(he))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();function Je(mt,Et,at,je){if(void 0!==je){const Ht=mt.get(Et)??new Map;Ht.set(at,je),mt.set(Et,Ht)}}let Re=(()=>{class mt{constructor(at,je,Ht,Ct){this.elementRef=at,this.styleBuilder=je,this.styler=Ht,this.marshal=Ct,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new x.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(at){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,at,this.marshal.activatedAlias)}ngOnChanges(at){Object.keys(at).forEach(je=>{if(-1!==this.inputs.indexOf(je)){const Ht=je.split(".").slice(1).join(".");this.setValue(at[je].currentValue,Ht)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(at=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),at)}addStyles(at,je){const Ht=this.styleBuilder,Ct=Ht.shouldCache;let Nt=this.styleCache.get(at);(!Nt||!Ct)&&(Nt=Ht.buildStyles(at,je),Ct&&this.styleCache.set(at,Nt)),this.mru={...Nt},this.applyStyleToElement(Nt),Ht.sideEffect(at,Nt,je)}clearStyles(){Object.keys(this.mru).forEach(at=>{this.mru[at]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(at,je=!1){if(at){const[Ht,Ct]=this.styler.getFlowDirection(at);if(!Ct&&je){const Nt=(0,h.Ar)(Ht);this.styler.applyStyleToElements(Nt,[at])}return Ht.trim()}return"row"}hasWrap(at){return this.styler.hasWrap(at)}applyStyleToElement(at,je,Ht=this.nativeElement){this.styler.applyStyleToElement(Ht,at,je)}setValue(at,je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,at,je)}updateWithValue(at){this.currentValue!==at&&(this.addStyles(at),this.currentValue=at)}}return mt.\u0275fac=function(at){return new(at||mt)(t.Y36(t.SBq),t.Y36(me),t.Y36(re),t.Y36(Ue))},mt.\u0275dir=t.lG2({type:mt,features:[t.TTD]}),mt})();class rt extends EventTarget{constructor(Et){super(),this._mediaQuery=Et,this._isActive=!1,this._listeners=[],this.onchange=null}get matches(){return this._isActive}get media(){return this._mediaQuery}destroy(){this.deactivate(),this._listeners=[]}activate(){return this._isActive||(this._isActive=!0,this._listeners.forEach(Et=>{Et.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(Et=>{Et.call(this,{matches:this.matches,media:this.media})})),this}addListener(Et){-1===this._listeners.indexOf(Et)&&this._listeners.push(Et),this._isActive&&Et.call(this,{matches:this.matches,media:this.media})}removeListener(Et){}dispatchEvent(Et){return!1}}function Me(mt,Et="1",at="1"){let je=[Et,at,mt],Ht=mt.indexOf("calc");if(Ht>0){je[2]=$e(mt.substring(Ht).trim());let Ct=mt.substr(0,Ht).trim().split(" ");2==Ct.length&&(je[0]=Ct[0],je[1]=Ct[1])}else if(0==Ht)je[2]=$e(mt.trim());else{let Ct=mt.split(" ");je=3===Ct.length?Ct:[Et,at,mt]}return je}function $e(mt){return mt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}const Pe="x";function J(mt,Et){if(void 0===Et)return mt;const at=je=>{const Ht=+je.slice(0,-Pe.length);return mt.endsWith(Pe)&&!isNaN(Ht)?`${Ht*Et.value}${Et.unit}`:mt};return mt.includes(" ")?mt.split(" ").map(at).join(" "):at(mt)}},5829:(We,q,m)=>{"use strict";m.d(q,{Zl:()=>O,aT:()=>n,oO:()=>W});var t=m(4650),e=m(2233),g=m(6895),x=(m(1281),m(2722),m(1481));let k=(()=>{class v extends e.iR{constructor(F,G,ye,Ee,pe,qe,Ce){super(F,null,G,ye),this.ngClassInstance=Ce,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new g.mk(Ee,pe,F,qe)),this.init(),this.setValue("","")}set klass(F){this.ngClassInstance.klass=F,this.setValue(F,"")}updateWithValue(F){this.ngClassInstance.ngClass=F,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return v.\u0275fac=function(F){return new(F||v)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(g.mk,10))},v.\u0275dir=t.lG2({type:v,inputs:{klass:["class","klass"]},features:[t.qOj]}),v})();const V=["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 W=(()=>{class v extends k{constructor(){super(...arguments),this.inputs=V}}return v.\u0275fac=function(){let K;return function(G){return(K||(K=t.n5z(v)))(G||v)}}(),v.\u0275dir=t.lG2({type:v,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[t.qOj]}),v})();class ie{constructor(K,F,G=!0){this.key=K,this.value=F,this.key=G?K.replace(/['"]/g,"").trim():K.trim(),this.value=G?F.replace(/['"]/g,"").trim():F.trim(),this.value=this.value.replace(/;/,"")}}function se(v){let K=typeof v;return"object"===K?v.constructor===Array?"array":v.constructor===Set?"set":"object":K}function i(v){const[K,...F]=v.split(":");return new ie(K,F.join(":"))}function a(v,K){return K.key&&(v[K.key]=K.value),v}let u=(()=>{class v extends e.iR{constructor(F,G,ye,Ee,pe,qe,Ce,Se,fe){super(F,null,G,ye),this.sanitizer=Ee,this.ngStyleInstance=Ce,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new g.PC(F,pe,qe)),this.init();const Fe=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Fe),this.isServer=Se&&(0,g.PM)(fe)}updateWithValue(F){const G=this.buildStyleMap(F);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...G},this.isServer&&this.applyStyleToElement(G),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(F){const G=ye=>this.sanitizer.sanitize(t.q3G.STYLE,ye)??"";if(F)switch(se(F)){case"string":return R(function ce(v,K=";"){return String(v).trim().split(K).map(F=>F.trim()).filter(F=>""!==F)}(F),G);case"array":return R(F,G);default:return function S(v,K){let F=[];return"set"===se(v)?v.forEach(G=>F.push(G)):Object.keys(v).forEach(G=>{F.push(`${G}:${v[G]}`)}),function Te(v,K){return v.map(i).filter(G=>!!G).map(G=>(K&&(G.value=K(G.value)),G)).reduce(a,{})}(F,K)}(F,G)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return v.\u0275fac=function(F){return new(F||v)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(x.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(g.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},v.\u0275dir=t.lG2({type:v,features:[t.qOj]}),v})();const l=["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 O=(()=>{class v extends u{constructor(){super(...arguments),this.inputs=l}}return v.\u0275fac=function(){let K;return function(G){return(K||(K=t.n5z(v)))(G||v)}}(),v.\u0275dir=t.lG2({type:v,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[t.qOj]}),v})();function R(v,K){return v.map(i).filter(G=>!!G).map(G=>(K&&(G.value=K(G.value)),G)).reduce(a,{})}let n=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[e.IR]}),v})()},1576:(We,q,m)=>{"use strict";m.d(q,{Wh:()=>Me,ae:()=>Nt,xw:()=>w,yH:()=>_});var t=m(4650),e=m(445),g=m(2233),T=m(5863),x=(m(7579),m(2722));let h=(()=>{class Bt extends g.QI{buildStyles($,{display:ue}){const Ie=(0,T.Ar)($);return{...Ie,display:"none"===ue?ue:Ie.display}}}return Bt.\u0275fac=function(){let Ne;return function(ue){return(Ne||(Ne=t.n5z(Bt)))(ue||Bt)}}(),Bt.\u0275prov=t.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})();const N=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let M=(()=>{class Bt extends g.iR{constructor($,ue,Ie,Xe,ei){super($,Ie,ue,Xe),this._config=ei,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue($){const Ie=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=L.get(Ie)??new Map,L.set(Ie,this.styleCache),this.currentValue!==$&&(this.addStyles($,{display:Ie}),this.currentValue=$)}}return Bt.\u0275fac=function($){return new($||Bt)(t.Y36(t.SBq),t.Y36(g.RK),t.Y36(h),t.Y36(g.yB),t.Y36(g.WU))},Bt.\u0275dir=t.lG2({type:Bt,features:[t.qOj]}),Bt})(),w=(()=>{class Bt extends M{constructor(){super(...arguments),this.inputs=N}}return Bt.\u0275fac=function(){let Ne;return function(ue){return(Ne||(Ne=t.n5z(Bt)))(ue||Bt)}}(),Bt.\u0275dir=t.lG2({type:Bt,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[t.qOj]}),Bt})();const L=new Map;let i=(()=>{class Bt extends g.QI{constructor($){super(),this.layoutConfig=$}buildStyles($,ue){let[Ie,Xe,...ei]=$.split(" "),zt=ei.join(" ");const ni=ue.direction.indexOf("column")>-1?"column":"row",pt=(0,T.tj)(ni)?"max-width":"max-height",ot=(0,T.tj)(ni)?"min-width":"min-height",ft=String(zt).indexOf("calc")>-1,St=ft||"auto"===zt,gt=String(zt).indexOf("%")>-1&&!ft,tt=String(zt).indexOf("px")>-1||String(zt).indexOf("rem")>-1||String(zt).indexOf("em")>-1||String(zt).indexOf("vw")>-1||String(zt).indexOf("vh")>-1;let _t=ft||tt;Ie="0"==Ie?0:Ie,Xe="0"==Xe?0:Xe;const vt=!Ie&&!Xe;let Ve={};const Tt={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(zt||""){case"":zt="row"===ni?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":Ie=0,zt="auto";break;case"grow":zt="100%";break;case"noshrink":Xe=0,zt="auto";break;case"auto":break;case"none":Ie=0,Xe=0,zt="auto";break;default:!_t&&!gt&&!isNaN(zt)&&(zt+="%"),"0%"===zt&&(_t=!0),"0px"===zt&&(zt="0%"),Ve=(0,T.kt)(Tt,ft?{"flex-grow":Ie,"flex-shrink":Xe,"flex-basis":_t?zt:"100%"}:{flex:`${Ie} ${Xe} ${_t?zt:"100%"}`})}return Ve.flex||Ve["flex-grow"]||(Ve=(0,T.kt)(Tt,ft?{"flex-grow":Ie,"flex-shrink":Xe,"flex-basis":zt}:{flex:`${Ie} ${Xe} ${zt}`})),"0%"!==zt&&"0px"!==zt&&"0.000000001px"!==zt&&"auto"!==zt&&(Ve[ot]=vt||_t&&Ie?zt:null,Ve[pt]=vt||!St&&Xe?zt:null),Ve[ot]||Ve[pt]?ue.hasWrap&&(Ve[ft?"flex-basis":"flex"]=Ve[pt]?ft?Ve[pt]:`${Ie} ${Xe} ${Ve[pt]}`:ft?Ve[ot]:`${Ie} ${Xe} ${Ve[ot]}`):Ve=(0,T.kt)(Tt,ft?{"flex-grow":Ie,"flex-shrink":Xe,"flex-basis":zt}:{flex:`${Ie} ${Xe} ${zt}`}),(0,T.kt)(Ve,{"box-sizing":"border-box"})}}return Bt.\u0275fac=function($){return new($||Bt)(t.LFG(g.WU))},Bt.\u0275prov=t.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})();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 l=(()=>{class Bt extends g.iR{constructor($,ue,Ie,Xe,ei){super($,Xe,ue,ei),this.layoutConfig=Ie,this.marshal=ei,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($){this.flexShrink=$||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow($){this.flexGrow=$||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,x.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,x.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange($){const Ie=$.value.split(" ");this.direction=Ie[0],this.wrap=void 0!==Ie[1]&&"wrap"===Ie[1],this.triggerUpdate()}updateWithValue($){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 Ie=this.direction,Xe=Ie.startsWith("row"),ei=this.wrap;Xe&&ei?this.styleCache=C:Xe&&!ei?this.styleCache=O:!Xe&&ei?this.styleCache=n:!Xe&&!ei&&(this.styleCache=R);const zt=String($).replace(";",""),ni=(0,g.Ot)(zt,this.flexGrow,this.flexShrink);this.addStyles(ni.join(" "),{direction:Ie,hasWrap:ei})}triggerReflow(){const $=this.activatedValue;if(void 0!==$){const ue=(0,g.Ot)($+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ue.join(" "))}}}return Bt.\u0275fac=function($){return new($||Bt)(t.Y36(t.SBq),t.Y36(g.RK),t.Y36(g.WU),t.Y36(i),t.Y36(g.yB))},Bt.\u0275dir=t.lG2({type:Bt,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Bt})(),_=(()=>{class Bt extends l{constructor(){super(...arguments),this.inputs=a}}return Bt.\u0275fac=function(){let Ne;return function(ue){return(Ne||(Ne=t.n5z(Bt)))(ue||Bt)}}(),Bt.\u0275dir=t.lG2({type:Bt,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[t.qOj]}),Bt})();const O=new Map,R=new Map,C=new Map,n=new Map;let Gt=(()=>{class Bt extends g.QI{buildStyles($,ue){const Ie={},[Xe,ei]=$.split(" ");switch(Xe){case"center":Ie["justify-content"]="center";break;case"space-around":Ie["justify-content"]="space-around";break;case"space-between":Ie["justify-content"]="space-between";break;case"space-evenly":Ie["justify-content"]="space-evenly";break;case"end":case"flex-end":Ie["justify-content"]="flex-end";break;default:Ie["justify-content"]="flex-start"}switch(ei){case"start":case"flex-start":Ie["align-items"]=Ie["align-content"]="flex-start";break;case"center":Ie["align-items"]=Ie["align-content"]="center";break;case"end":case"flex-end":Ie["align-items"]=Ie["align-content"]="flex-end";break;case"space-between":Ie["align-content"]="space-between",Ie["align-items"]="stretch";break;case"space-around":Ie["align-content"]="space-around",Ie["align-items"]="stretch";break;case"baseline":Ie["align-content"]="stretch",Ie["align-items"]="baseline";break;default:Ie["align-items"]=Ie["align-content"]="stretch"}return(0,T.kt)(Ie,{display:ue.inline?"inline-flex":"flex","flex-direction":ue.layout,"box-sizing":"border-box","max-width":"stretch"===ei?(0,T.tj)(ue.layout)?null:"100%":null,"max-height":"stretch"===ei&&(0,T.tj)(ue.layout)?"100%":null})}}return Bt.\u0275fac=function(){let Ne;return function(ue){return(Ne||(Ne=t.n5z(Bt)))(ue||Bt)}}(),Bt.\u0275prov=t.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})();const ut=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let xt=(()=>{class Bt extends g.iR{constructor($,ue,Ie,Xe){super($,Ie,ue,Xe),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,x.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue($){const ue=this.layout||"row",Ie=this.inline;"row"===ue&&Ie?this.styleCache=Et:"row"!==ue||Ie?"row-reverse"===ue&&Ie?this.styleCache=je:"row-reverse"!==ue||Ie?"column"===ue&&Ie?this.styleCache=at:"column"!==ue||Ie?"column-reverse"===ue&&Ie?this.styleCache=Ht:"column-reverse"===ue&&!Ie&&(this.styleCache=mt):this.styleCache=Pe:this.styleCache=J:this.styleCache=$e,this.addStyles($,{layout:ue,inline:Ie})}onLayoutChange($){const ue=$.value.split(" ");this.layout=ue[0],this.inline=$.value.includes("inline"),T.iQ.find(Ie=>Ie===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Bt.\u0275fac=function($){return new($||Bt)(t.Y36(t.SBq),t.Y36(g.RK),t.Y36(Gt),t.Y36(g.yB))},Bt.\u0275dir=t.lG2({type:Bt,features:[t.qOj]}),Bt})(),Me=(()=>{class Bt extends xt{constructor(){super(...arguments),this.inputs=ut}}return Bt.\u0275fac=function(){let Ne;return function(ue){return(Ne||(Ne=t.n5z(Bt)))(ue||Bt)}}(),Bt.\u0275dir=t.lG2({type:Bt,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[t.qOj]}),Bt})();const $e=new Map,Pe=new Map,J=new Map,mt=new Map,Et=new Map,at=new Map,je=new Map,Ht=new Map;let Nt=(()=>{class Bt{}return Bt.\u0275fac=function($){return new($||Bt)},Bt.\u0275mod=t.oAB({type:Bt}),Bt.\u0275inj=t.cJS({imports:[g.IR,e.vT]}),Bt})()},4006:(We,q,m)=>{"use strict";m.d(q,{Cf:()=>Q,F:()=>Ot,Fd:()=>hr,Fj:()=>V,JJ:()=>ge,JL:()=>Ue,JU:()=>N,On:()=>oi,Q7:()=>$r,QS:()=>ca,UX:()=>qa,Zs:()=>eo,_Y:()=>wi,a5:()=>ze,kI:()=>me,oH:()=>Fr,p4:()=>gi,qQ:()=>Er,qu:()=>an,sg:()=>jn,u:()=>Ma,u5:()=>gn,wV:()=>ln});var t=m(4650),e=m(6895),g=m(457),T=m(4128),s=m(4004);let x=(()=>{class lt{constructor(Ye,kt){this._renderer=Ye,this._elementRef=kt,this.onChange=Mi=>{},this.onTouched=()=>{}}setProperty(Ye,kt){this._renderer.setProperty(this._elementRef.nativeElement,Ye,kt)}registerOnTouched(Ye){this.onTouched=Ye}registerOnChange(Ye){this.onChange=Ye}setDisabledState(Ye){this.setProperty("disabled",Ye)}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(t.Qsj),t.Y36(t.SBq))},lt.\u0275dir=t.lG2({type:lt}),lt})(),h=(()=>{class lt extends x{}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})();const N=new t.OlP("NgValueAccessor"),w={provide:N,useExisting:(0,t.Gpc)(()=>V),multi:!0},k=new t.OlP("CompositionEventMode");let V=(()=>{class lt extends x{constructor(Ye,kt,Mi){super(Ye,kt),this._compositionMode=Mi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const lt=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(lt.toLowerCase())}())}writeValue(Ye){this.setProperty("value",Ye??"")}_handleInput(Ye){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ye)}_compositionStart(){this._composing=!0}_compositionEnd(Ye){this._composing=!1,this._compositionMode&&this.onChange(Ye)}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(k,8))},lt.\u0275dir=t.lG2({type:lt,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(Ye,kt){1&Ye&&t.NdJ("input",function(sn){return kt._handleInput(sn.target.value)})("blur",function(){return kt.onTouched()})("compositionstart",function(){return kt._compositionStart()})("compositionend",function(sn){return kt._compositionEnd(sn.target.value)})},features:[t._Bn([w]),t.qOj]}),lt})();const B=!1;function W(lt){return null==lt||("string"==typeof lt||Array.isArray(lt))&&0===lt.length}function Y(lt){return null!=lt&&"number"==typeof lt.length}const Q=new t.OlP("NgValidators"),X=new t.OlP("NgAsyncValidators"),ee=/^(?=.{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 me{static min(it){return re(it)}static max(it){return ie(it)}static required(it){return se(it)}static requiredTrue(it){return ce(it)}static email(it){return function Te(lt){return W(lt.value)||ee.test(lt.value)?null:{email:!0}}(it)}static minLength(it){return function S(lt){return it=>W(it.value)||!Y(it.value)?null:it.value.length<lt?{minlength:{requiredLength:lt,actualLength:it.value.length}}:null}(it)}static maxLength(it){return function i(lt){return it=>Y(it.value)&&it.value.length>lt?{maxlength:{requiredLength:lt,actualLength:it.value.length}}:null}(it)}static pattern(it){return function a(lt){if(!lt)return u;let it,Ye;return"string"==typeof lt?(Ye="","^"!==lt.charAt(0)&&(Ye+="^"),Ye+=lt,"$"!==lt.charAt(lt.length-1)&&(Ye+="$"),it=new RegExp(Ye)):(Ye=lt.toString(),it=lt),kt=>{if(W(kt.value))return null;const Mi=kt.value;return it.test(Mi)?null:{pattern:{requiredPattern:Ye,actualValue:Mi}}}}(it)}static nullValidator(it){return null}static compose(it){return v(it)}static composeAsync(it){return F(it)}}function re(lt){return it=>{if(W(it.value)||W(lt))return null;const Ye=parseFloat(it.value);return!isNaN(Ye)&&Ye<lt?{min:{min:lt,actual:it.value}}:null}}function ie(lt){return it=>{if(W(it.value)||W(lt))return null;const Ye=parseFloat(it.value);return!isNaN(Ye)&&Ye>lt?{max:{max:lt,actual:it.value}}:null}}function se(lt){return W(lt.value)?{required:!0}:null}function ce(lt){return!0===lt.value?null:{required:!0}}function u(lt){return null}function l(lt){return null!=lt}function _(lt){const it=(0,t.QGY)(lt)?(0,g.D)(lt):lt;if(B&&!(0,t.CqO)(it)){let Ye="Expected async validator to return Promise or Observable.";throw"object"==typeof lt&&(Ye+=" Are you using a synchronous validator where an async validator is expected?"),new t.vHH(-1101,Ye)}return it}function O(lt){let it={};return lt.forEach(Ye=>{it=null!=Ye?{...it,...Ye}:it}),0===Object.keys(it).length?null:it}function R(lt,it){return it.map(Ye=>Ye(lt))}function n(lt){return lt.map(it=>function C(lt){return!lt.validate}(it)?it:Ye=>it.validate(Ye))}function v(lt){if(!lt)return null;const it=lt.filter(l);return 0==it.length?null:function(Ye){return O(R(Ye,it))}}function K(lt){return null!=lt?v(n(lt)):null}function F(lt){if(!lt)return null;const it=lt.filter(l);return 0==it.length?null:function(Ye){const kt=R(Ye,it).map(_);return(0,T.D)(kt).pipe((0,s.U)(O))}}function G(lt){return null!=lt?F(n(lt)):null}function ye(lt,it){return null===lt?[it]:Array.isArray(lt)?[...lt,it]:[lt,it]}function Ee(lt){return lt._rawValidators}function pe(lt){return lt._rawAsyncValidators}function qe(lt){return lt?Array.isArray(lt)?lt:[lt]:[]}function Ce(lt,it){return Array.isArray(lt)?lt.includes(it):lt===it}function Se(lt,it){const Ye=qe(it);return qe(lt).forEach(Mi=>{Ce(Ye,Mi)||Ye.push(Mi)}),Ye}function fe(lt,it){return qe(it).filter(Ye=>!Ce(lt,Ye))}class Fe{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(it){this._rawValidators=it||[],this._composedValidatorFn=K(this._rawValidators)}_setAsyncValidators(it){this._rawAsyncValidators=it||[],this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(it){this._onDestroyCallbacks.push(it)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(it=>it()),this._onDestroyCallbacks=[]}reset(it){this.control&&this.control.reset(it)}hasError(it,Ye){return!!this.control&&this.control.hasError(it,Ye)}getError(it,Ye){return this.control?this.control.getError(it,Ye):null}}class oe extends Fe{get formDirective(){return null}get path(){return null}}class ze extends Fe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Oe{constructor(it){this._cd=it}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ge=(()=>{class lt extends Oe{constructor(Ye){super(Ye)}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(ze,2))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ye,kt){2&Ye&&t.ekj("ng-untouched",kt.isUntouched)("ng-touched",kt.isTouched)("ng-pristine",kt.isPristine)("ng-dirty",kt.isDirty)("ng-valid",kt.isValid)("ng-invalid",kt.isInvalid)("ng-pending",kt.isPending)},features:[t.qOj]}),lt})(),Ue=(()=>{class lt extends Oe{constructor(Ye){super(Ye)}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(oe,10))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ye,kt){2&Ye&&t.ekj("ng-untouched",kt.isUntouched)("ng-touched",kt.isTouched)("ng-pristine",kt.isPristine)("ng-dirty",kt.isDirty)("ng-valid",kt.isValid)("ng-invalid",kt.isInvalid)("ng-pending",kt.isPending)("ng-submitted",kt.isSubmitted)},features:[t.qOj]}),lt})();function J(lt,it){return lt?`with name: '${it}'`:`at index: ${it}`}const je=!1,Ht="VALID",Ct="INVALID",Nt="PENDING",Bt="DISABLED";function Ne(lt){return(Xe(lt)?lt.validators:lt)||null}function ue(lt,it){return(Xe(it)?it.asyncValidators:lt)||null}function Xe(lt){return null!=lt&&!Array.isArray(lt)&&"object"==typeof lt}function ei(lt,it,Ye){const kt=lt.controls;if(!(it?Object.keys(kt):kt).length)throw new t.vHH(1e3,je?function mt(lt){return`\n There are no form controls registered with this ${lt?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(it):"");if(!kt[Ye])throw new t.vHH(1001,je?function Et(lt,it){return`Cannot find form control ${J(lt,it)}`}(it,Ye):"")}function zt(lt,it,Ye){lt._forEachChild((kt,Mi)=>{if(void 0===Ye[Mi])throw new t.vHH(1002,je?function at(lt,it){return`Must supply a value for form control ${J(lt,it)}`}(it,Mi):"")})}class ni{constructor(it,Ye){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(it),this._assignAsyncValidators(Ye)}get validator(){return this._composedValidatorFn}set validator(it){this._rawValidators=this._composedValidatorFn=it}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(it){this._rawAsyncValidators=this._composedAsyncValidatorFn=it}get parent(){return this._parent}get valid(){return this.status===Ht}get invalid(){return this.status===Ct}get pending(){return this.status==Nt}get disabled(){return this.status===Bt}get enabled(){return this.status!==Bt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(it){this._assignValidators(it)}setAsyncValidators(it){this._assignAsyncValidators(it)}addValidators(it){this.setValidators(Se(it,this._rawValidators))}addAsyncValidators(it){this.setAsyncValidators(Se(it,this._rawAsyncValidators))}removeValidators(it){this.setValidators(fe(it,this._rawValidators))}removeAsyncValidators(it){this.setAsyncValidators(fe(it,this._rawAsyncValidators))}hasValidator(it){return Ce(this._rawValidators,it)}hasAsyncValidator(it){return Ce(this._rawAsyncValidators,it)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(it={}){this.touched=!0,this._parent&&!it.onlySelf&&this._parent.markAsTouched(it)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(it=>it.markAllAsTouched())}markAsUntouched(it={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ye=>{Ye.markAsUntouched({onlySelf:!0})}),this._parent&&!it.onlySelf&&this._parent._updateTouched(it)}markAsDirty(it={}){this.pristine=!1,this._parent&&!it.onlySelf&&this._parent.markAsDirty(it)}markAsPristine(it={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ye=>{Ye.markAsPristine({onlySelf:!0})}),this._parent&&!it.onlySelf&&this._parent._updatePristine(it)}markAsPending(it={}){this.status=Nt,!1!==it.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!it.onlySelf&&this._parent.markAsPending(it)}disable(it={}){const Ye=this._parentMarkedDirty(it.onlySelf);this.status=Bt,this.errors=null,this._forEachChild(kt=>{kt.disable({...it,onlySelf:!0})}),this._updateValue(),!1!==it.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...it,skipPristineCheck:Ye}),this._onDisabledChange.forEach(kt=>kt(!0))}enable(it={}){const Ye=this._parentMarkedDirty(it.onlySelf);this.status=Ht,this._forEachChild(kt=>{kt.enable({...it,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:it.emitEvent}),this._updateAncestors({...it,skipPristineCheck:Ye}),this._onDisabledChange.forEach(kt=>kt(!1))}_updateAncestors(it){this._parent&&!it.onlySelf&&(this._parent.updateValueAndValidity(it),it.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(it){this._parent=it}getRawValue(){return this.value}updateValueAndValidity(it={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ht||this.status===Nt)&&this._runAsyncValidator(it.emitEvent)),!1!==it.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!it.onlySelf&&this._parent.updateValueAndValidity(it)}_updateTreeValidity(it={emitEvent:!0}){this._forEachChild(Ye=>Ye._updateTreeValidity(it)),this.updateValueAndValidity({onlySelf:!0,emitEvent:it.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bt:Ht}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(it){if(this.asyncValidator){this.status=Nt,this._hasOwnPendingAsyncValidator=!0;const Ye=_(this.asyncValidator(this));this._asyncValidationSubscription=Ye.subscribe(kt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(kt,{emitEvent:it})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(it,Ye={}){this.errors=it,this._updateControlsErrors(!1!==Ye.emitEvent)}get(it){let Ye=it;return null==Ye||(Array.isArray(Ye)||(Ye=Ye.split(".")),0===Ye.length)?null:Ye.reduce((kt,Mi)=>kt&&kt._find(Mi),this)}getError(it,Ye){const kt=Ye?this.get(Ye):this;return kt&&kt.errors?kt.errors[it]:null}hasError(it,Ye){return!!this.getError(it,Ye)}get root(){let it=this;for(;it._parent;)it=it._parent;return it}_updateControlsErrors(it){this.status=this._calculateStatus(),it&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(it)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Bt:this.errors?Ct:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nt)?Nt:this._anyControlsHaveStatus(Ct)?Ct:Ht}_anyControlsHaveStatus(it){return this._anyControls(Ye=>Ye.status===it)}_anyControlsDirty(){return this._anyControls(it=>it.dirty)}_anyControlsTouched(){return this._anyControls(it=>it.touched)}_updatePristine(it={}){this.pristine=!this._anyControlsDirty(),this._parent&&!it.onlySelf&&this._parent._updatePristine(it)}_updateTouched(it={}){this.touched=this._anyControlsTouched(),this._parent&&!it.onlySelf&&this._parent._updateTouched(it)}_registerOnCollectionChange(it){this._onCollectionChange=it}_setUpdateStrategy(it){Xe(it)&&null!=it.updateOn&&(this._updateOn=it.updateOn)}_parentMarkedDirty(it){return!it&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(it){return null}_assignValidators(it){this._rawValidators=Array.isArray(it)?it.slice():it,this._composedValidatorFn=function $(lt){return Array.isArray(lt)?K(lt):lt||null}(this._rawValidators)}_assignAsyncValidators(it){this._rawAsyncValidators=Array.isArray(it)?it.slice():it,this._composedAsyncValidatorFn=function Ie(lt){return Array.isArray(lt)?G(lt):lt||null}(this._rawAsyncValidators)}}class pt extends ni{constructor(it,Ye,kt){super(Ne(Ye),ue(kt,Ye)),this.controls=it,this._initObservables(),this._setUpdateStrategy(Ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(it,Ye){return this.controls[it]?this.controls[it]:(this.controls[it]=Ye,Ye.setParent(this),Ye._registerOnCollectionChange(this._onCollectionChange),Ye)}addControl(it,Ye,kt={}){this.registerControl(it,Ye),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}removeControl(it,Ye={}){this.controls[it]&&this.controls[it]._registerOnCollectionChange(()=>{}),delete this.controls[it],this.updateValueAndValidity({emitEvent:Ye.emitEvent}),this._onCollectionChange()}setControl(it,Ye,kt={}){this.controls[it]&&this.controls[it]._registerOnCollectionChange(()=>{}),delete this.controls[it],Ye&&this.registerControl(it,Ye),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}contains(it){return this.controls.hasOwnProperty(it)&&this.controls[it].enabled}setValue(it,Ye={}){zt(this,!0,it),Object.keys(it).forEach(kt=>{ei(this,!0,kt),this.controls[kt].setValue(it[kt],{onlySelf:!0,emitEvent:Ye.emitEvent})}),this.updateValueAndValidity(Ye)}patchValue(it,Ye={}){null!=it&&(Object.keys(it).forEach(kt=>{const Mi=this.controls[kt];Mi&&Mi.patchValue(it[kt],{onlySelf:!0,emitEvent:Ye.emitEvent})}),this.updateValueAndValidity(Ye))}reset(it={},Ye={}){this._forEachChild((kt,Mi)=>{kt.reset(it[Mi],{onlySelf:!0,emitEvent:Ye.emitEvent})}),this._updatePristine(Ye),this._updateTouched(Ye),this.updateValueAndValidity(Ye)}getRawValue(){return this._reduceChildren({},(it,Ye,kt)=>(it[kt]=Ye.getRawValue(),it))}_syncPendingControls(){let it=this._reduceChildren(!1,(Ye,kt)=>!!kt._syncPendingControls()||Ye);return it&&this.updateValueAndValidity({onlySelf:!0}),it}_forEachChild(it){Object.keys(this.controls).forEach(Ye=>{const kt=this.controls[Ye];kt&&it(kt,Ye)})}_setUpControls(){this._forEachChild(it=>{it.setParent(this),it._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(it){for(const[Ye,kt]of Object.entries(this.controls))if(this.contains(Ye)&&it(kt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ye,kt,Mi)=>((kt.enabled||this.disabled)&&(Ye[Mi]=kt.value),Ye))}_reduceChildren(it,Ye){let kt=it;return this._forEachChild((Mi,sn)=>{kt=Ye(kt,Mi,sn)}),kt}_allControlsDisabled(){for(const it of Object.keys(this.controls))if(this.controls[it].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(it){return this.controls.hasOwnProperty(it)?this.controls[it]:null}}class St extends pt{}const tt=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>_t}),_t="always";function vt(lt,it){return[...it.path,lt]}function Ve(lt,it,Ye=_t){Bi(lt,it),it.valueAccessor.writeValue(lt.value),(lt.disabled||"always"===Ye)&&it.valueAccessor.setDisabledState?.(lt.disabled),function Si(lt,it){it.valueAccessor.registerOnChange(Ye=>{lt._pendingValue=Ye,lt._pendingChange=!0,lt._pendingDirty=!0,"change"===lt.updateOn&&et(lt,it)})}(lt,it),function It(lt,it){const Ye=(kt,Mi)=>{it.valueAccessor.writeValue(kt),Mi&&it.viewToModelUpdate(kt)};lt.registerOnChange(Ye),it._registerOnDestroy(()=>{lt._unregisterOnChange(Ye)})}(lt,it),function Wi(lt,it){it.valueAccessor.registerOnTouched(()=>{lt._pendingTouched=!0,"blur"===lt.updateOn&&lt._pendingChange&&et(lt,it),"submit"!==lt.updateOn&&lt.markAsTouched()})}(lt,it),function Qt(lt,it){if(it.valueAccessor.setDisabledState){const Ye=kt=>{it.valueAccessor.setDisabledState(kt)};lt.registerOnDisabledChange(Ye),it._registerOnDestroy(()=>{lt._unregisterOnDisabledChange(Ye)})}}(lt,it)}function Tt(lt,it,Ye=!0){const kt=()=>{};it.valueAccessor&&(it.valueAccessor.registerOnChange(kt),it.valueAccessor.registerOnTouched(kt)),Hi(lt,it),lt&&(it._invokeOnDestroyCallbacks(),lt._registerOnCollectionChange(()=>{}))}function Lt(lt,it){lt.forEach(Ye=>{Ye.registerOnValidatorChange&&Ye.registerOnValidatorChange(it)})}function Bi(lt,it){const Ye=Ee(lt);null!==it.validator?lt.setValidators(ye(Ye,it.validator)):"function"==typeof Ye&&lt.setValidators([Ye]);const kt=pe(lt);null!==it.asyncValidator?lt.setAsyncValidators(ye(kt,it.asyncValidator)):"function"==typeof kt&&lt.setAsyncValidators([kt]);const Mi=()=>lt.updateValueAndValidity();Lt(it._rawValidators,Mi),Lt(it._rawAsyncValidators,Mi)}function Hi(lt,it){let Ye=!1;if(null!==lt){if(null!==it.validator){const Mi=Ee(lt);if(Array.isArray(Mi)&&Mi.length>0){const sn=Mi.filter(va=>va!==it.validator);sn.length!==Mi.length&&(Ye=!0,lt.setValidators(sn))}}if(null!==it.asyncValidator){const Mi=pe(lt);if(Array.isArray(Mi)&&Mi.length>0){const sn=Mi.filter(va=>va!==it.asyncValidator);sn.length!==Mi.length&&(Ye=!0,lt.setAsyncValidators(sn))}}}const kt=()=>{};return Lt(it._rawValidators,kt),Lt(it._rawAsyncValidators,kt),Ye}function et(lt,it){lt._pendingDirty&&lt.markAsDirty(),lt.setValue(lt._pendingValue,{emitModelToViewChange:!1}),it.viewToModelUpdate(lt._pendingValue),lt._pendingChange=!1}function Le(lt,it){Bi(lt,it)}function nn(lt,it){if(!lt.hasOwnProperty("model"))return!1;const Ye=lt.model;return!!Ye.isFirstChange()||!Object.is(it,Ye.currentValue)}function Yt(lt,it){lt._syncPendingControls(),it.forEach(Ye=>{const kt=Ye.control;"submit"===kt.updateOn&&kt._pendingChange&&(Ye.viewToModelUpdate(kt._pendingValue),kt._pendingChange=!1)})}function Xt(lt,it){if(!it)return null;let Ye,kt,Mi;return Array.isArray(it),it.forEach(sn=>{sn.constructor===V?Ye=sn:function Qi(lt){return Object.getPrototypeOf(lt.constructor)===h}(sn)?kt=sn:Mi=sn}),Mi||kt||Ye||null}const Dt={provide:oe,useExisting:(0,t.Gpc)(()=>Ot)},Ut=(()=>Promise.resolve())();let Ot=(()=>{class lt extends oe{constructor(Ye,kt,Mi){super(),this.callSetDisabledState=Mi,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new pt({},K(Ye),G(kt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ye){Ut.then(()=>{const kt=this._findContainer(Ye.path);Ye.control=kt.registerControl(Ye.name,Ye.control),Ve(Ye.control,Ye,this.callSetDisabledState),Ye.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ye)})}getControl(Ye){return this.form.get(Ye.path)}removeControl(Ye){Ut.then(()=>{const kt=this._findContainer(Ye.path);kt&&kt.removeControl(Ye.name),this._directives.delete(Ye)})}addFormGroup(Ye){Ut.then(()=>{const kt=this._findContainer(Ye.path),Mi=new pt({});Le(Mi,Ye),kt.registerControl(Ye.name,Mi),Mi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ye){Ut.then(()=>{const kt=this._findContainer(Ye.path);kt&&kt.removeControl(Ye.name)})}getFormGroup(Ye){return this.form.get(Ye.path)}updateModel(Ye,kt){Ut.then(()=>{this.form.get(Ye.path).setValue(kt)})}setValue(Ye){this.control.setValue(Ye)}onSubmit(Ye){return this.submitted=!0,Yt(this.form,this._directives),this.ngSubmit.emit(Ye),"dialog"===Ye?.target?.method}onReset(){this.resetForm()}resetForm(Ye){this.form.reset(Ye),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ye){return Ye.pop(),Ye.length?this.form.get(Ye):this.form}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(Q,10),t.Y36(X,10),t.Y36(tt,8))},lt.\u0275dir=t.lG2({type:lt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ye,kt){1&Ye&&t.NdJ("submit",function(sn){return kt.onSubmit(sn)})("reset",function(){return kt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Dt]),t.qOj]}),lt})();function bi(lt,it){const Ye=lt.indexOf(it);Ye>-1&&lt.splice(Ye,1)}function li(lt){return"object"==typeof lt&&null!==lt&&2===Object.keys(lt).length&&"value"in lt&&"disabled"in lt}const pi=class extends ni{constructor(it=null,Ye,kt){super(Ne(Ye),ue(kt,Ye)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(it),this._setUpdateStrategy(Ye),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xe(Ye)&&(Ye.nonNullable||Ye.initialValueIsDefault)&&(this.defaultValue=li(it)?it.value:it)}setValue(it,Ye={}){this.value=this._pendingValue=it,this._onChange.length&&!1!==Ye.emitModelToViewChange&&this._onChange.forEach(kt=>kt(this.value,!1!==Ye.emitViewToModelChange)),this.updateValueAndValidity(Ye)}patchValue(it,Ye={}){this.setValue(it,Ye)}reset(it=this.defaultValue,Ye={}){this._applyFormState(it),this.markAsPristine(Ye),this.markAsUntouched(Ye),this.setValue(this.value,Ye),this._pendingChange=!1}_updateValue(){}_anyControls(it){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(it){this._onChange.push(it)}_unregisterOnChange(it){bi(this._onChange,it)}registerOnDisabledChange(it){this._onDisabledChange.push(it)}_unregisterOnDisabledChange(it){bi(this._onDisabledChange,it)}_forEachChild(it){}_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(it){li(it)?(this.value=this._pendingValue=it.value,it.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=it}},gi=pi,mi={provide:ze,useExisting:(0,t.Gpc)(()=>oi)},jt=(()=>Promise.resolve())();let oi=(()=>{class lt extends ze{constructor(Ye,kt,Mi,sn,va,Ti){super(),this._changeDetectorRef=va,this.callSetDisabledState=Ti,this.control=new pi,this._registered=!1,this.update=new t.vpe,this._parent=Ye,this._setValidators(kt),this._setAsyncValidators(Mi),this.valueAccessor=Xt(0,sn)}ngOnChanges(Ye){if(this._checkForErrors(),!this._registered||"name"in Ye){if(this._registered&&(this._checkName(),this.formDirective)){const kt=Ye.name.previousValue;this.formDirective.removeControl({name:kt,path:this._getPath(kt)})}this._setUpControl()}"isDisabled"in Ye&&this._updateDisabled(Ye),nn(Ye,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ye){this.viewModel=Ye,this.update.emit(Ye)}_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(){Ve(this.control,this,this.callSetDisabledState),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(Ye){jt.then(()=>{this.control.setValue(Ye,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ye){const kt=Ye.isDisabled.currentValue,Mi=0!==kt&&(0,t.D6c)(kt);jt.then(()=>{Mi&&!this.control.disabled?this.control.disable():!Mi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ye){return this._parent?vt(Ye,this._parent):[Ye]}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(oe,9),t.Y36(Q,10),t.Y36(X,10),t.Y36(N,10),t.Y36(t.sBO,8),t.Y36(tt,8))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([mi]),t.qOj,t.TTD]}),lt})(),wi=(()=>{class lt{}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275dir=t.lG2({type:lt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),lt})();const Vi={provide:N,useExisting:(0,t.Gpc)(()=>ln),multi:!0};let ln=(()=>{class lt extends h{writeValue(Ye){this.setProperty("value",Ye??"")}registerOnChange(Ye){this.onChange=kt=>{Ye(""==kt?null:parseFloat(kt))}}}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ye,kt){1&Ye&&t.NdJ("input",function(sn){return kt.onChange(sn.target.value)})("blur",function(){return kt.onTouched()})},features:[t._Bn([Vi]),t.qOj]}),lt})(),_a=(()=>{class lt{}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({}),lt})();const ia=new t.OlP("NgModelWithFormControlWarning"),wo={provide:ze,useExisting:(0,t.Gpc)(()=>Fr)};let Fr=(()=>{class lt extends ze{set isDisabled(Ye){}constructor(Ye,kt,Mi,sn,va){super(),this._ngModelWarningConfig=sn,this.callSetDisabledState=va,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Ye),this._setAsyncValidators(kt),this.valueAccessor=Xt(0,Mi)}ngOnChanges(Ye){if(this._isControlChanged(Ye)){const kt=Ye.form.previousValue;kt&&Tt(kt,this,!1),Ve(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}nn(Ye,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ye){this.viewModel=Ye,this.update.emit(Ye)}_isControlChanged(Ye){return Ye.hasOwnProperty("form")}}return lt._ngModelWarningSentOnce=!1,lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(Q,10),t.Y36(X,10),t.Y36(N,10),t.Y36(ia,8),t.Y36(tt,8))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([wo]),t.qOj,t.TTD]}),lt})();const Tr={provide:oe,useExisting:(0,t.Gpc)(()=>jn)};let jn=(()=>{class lt extends oe{constructor(Ye,kt,Mi){super(),this.callSetDisabledState=Mi,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Ye),this._setAsyncValidators(kt)}ngOnChanges(Ye){this._checkFormPresent(),Ye.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ye){const kt=this.form.get(Ye.path);return Ve(kt,Ye,this.callSetDisabledState),kt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ye),kt}getControl(Ye){return this.form.get(Ye.path)}removeControl(Ye){Tt(Ye.control||null,Ye,!1),function be(lt,it){const Ye=lt.indexOf(it);Ye>-1&&lt.splice(Ye,1)}(this.directives,Ye)}addFormGroup(Ye){this._setUpFormContainer(Ye)}removeFormGroup(Ye){this._cleanUpFormContainer(Ye)}getFormGroup(Ye){return this.form.get(Ye.path)}addFormArray(Ye){this._setUpFormContainer(Ye)}removeFormArray(Ye){this._cleanUpFormContainer(Ye)}getFormArray(Ye){return this.form.get(Ye.path)}updateModel(Ye,kt){this.form.get(Ye.path).setValue(kt)}onSubmit(Ye){return this.submitted=!0,Yt(this.form,this.directives),this.ngSubmit.emit(Ye),"dialog"===Ye?.target?.method}onReset(){this.resetForm()}resetForm(Ye){this.form.reset(Ye),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ye=>{const kt=Ye.control,Mi=this.form.get(Ye.path);kt!==Mi&&(Tt(kt||null,Ye),(lt=>lt instanceof pi)(Mi)&&(Ve(Mi,Ye,this.callSetDisabledState),Ye.control=Mi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ye){const kt=this.form.get(Ye.path);Le(kt,Ye),kt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ye){if(this.form){const kt=this.form.get(Ye.path);kt&&function Mt(lt,it){return Hi(lt,it)}(kt,Ye)&&kt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bi(this.form,this),this._oldForm&&Hi(this._oldForm,this)}_checkFormPresent(){}}return lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(Q,10),t.Y36(X,10),t.Y36(tt,8))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","formGroup",""]],hostBindings:function(Ye,kt){1&Ye&&t.NdJ("submit",function(sn){return kt.onSubmit(sn)})("reset",function(){return kt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Tr]),t.qOj,t.TTD]}),lt})();const Ra={provide:ze,useExisting:(0,t.Gpc)(()=>Ma)};let Ma=(()=>{class lt extends ze{set isDisabled(Ye){}constructor(Ye,kt,Mi,sn,va){super(),this._ngModelWarningConfig=va,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Ye,this._setValidators(kt),this._setAsyncValidators(Mi),this.valueAccessor=Xt(0,sn)}ngOnChanges(Ye){this._added||this._setUpControl(),nn(Ye,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ye){this.viewModel=Ye,this.update.emit(Ye)}get path(){return vt(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._added=!0}}return lt._ngModelWarningSentOnce=!1,lt.\u0275fac=function(Ye){return new(Ye||lt)(t.Y36(oe,13),t.Y36(Q,10),t.Y36(X,10),t.Y36(N,10),t.Y36(ia,8))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Ra]),t.qOj,t.TTD]}),lt})();function Br(lt){return"number"==typeof lt?lt:parseFloat(lt)}let sa=(()=>{class lt{constructor(){this._validator=u}ngOnChanges(Ye){if(this.inputName in Ye){const kt=this.normalizeInput(Ye[this.inputName].currentValue);this._enabled=this.enabled(kt),this._validator=this._enabled?this.createValidator(kt):u,this._onChange&&this._onChange()}}validate(Ye){return this._validator(Ye)}registerOnValidatorChange(Ye){this._onChange=Ye}enabled(Ye){return null!=Ye}}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275dir=t.lG2({type:lt,features:[t.TTD]}),lt})();const Wa={provide:Q,useExisting:(0,t.Gpc)(()=>hr),multi:!0};let hr=(()=>{class lt extends sa{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ye=>Br(Ye),this.createValidator=Ye=>ie(Ye)}}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ye,kt){2&Ye&&t.uIk("max",kt._enabled?kt.max:null)},inputs:{max:"max"},features:[t._Bn([Wa]),t.qOj]}),lt})();const vr={provide:Q,useExisting:(0,t.Gpc)(()=>Er),multi:!0};let Er=(()=>{class lt extends sa{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ye=>Br(Ye),this.createValidator=Ye=>re(Ye)}}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ye,kt){2&Ye&&t.uIk("min",kt._enabled?kt.min:null)},inputs:{min:"min"},features:[t._Bn([vr]),t.qOj]}),lt})();const Fo={provide:Q,useExisting:(0,t.Gpc)(()=>$r),multi:!0},so={provide:Q,useExisting:(0,t.Gpc)(()=>eo),multi:!0};let $r=(()=>{class lt extends sa{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=Ye=>se}enabled(Ye){return Ye}}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ye,kt){2&Ye&&t.uIk("required",kt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Fo]),t.qOj]}),lt})(),eo=(()=>{class lt extends $r{constructor(){super(...arguments),this.createValidator=Ye=>ce}}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ye,kt){2&Ye&&t.uIk("required",kt._enabled?"":null)},features:[t._Bn([so]),t.qOj]}),lt})(),Ft=(()=>{class lt{}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({imports:[_a]}),lt})();class hi extends ni{constructor(it,Ye,kt){super(Ne(Ye),ue(kt,Ye)),this.controls=it,this._initObservables(),this._setUpdateStrategy(Ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(it){return this.controls[this._adjustIndex(it)]}push(it,Ye={}){this.controls.push(it),this._registerControl(it),this.updateValueAndValidity({emitEvent:Ye.emitEvent}),this._onCollectionChange()}insert(it,Ye,kt={}){this.controls.splice(it,0,Ye),this._registerControl(Ye),this.updateValueAndValidity({emitEvent:kt.emitEvent})}removeAt(it,Ye={}){let kt=this._adjustIndex(it);kt<0&&(kt=0),this.controls[kt]&&this.controls[kt]._registerOnCollectionChange(()=>{}),this.controls.splice(kt,1),this.updateValueAndValidity({emitEvent:Ye.emitEvent})}setControl(it,Ye,kt={}){let Mi=this._adjustIndex(it);Mi<0&&(Mi=0),this.controls[Mi]&&this.controls[Mi]._registerOnCollectionChange(()=>{}),this.controls.splice(Mi,1),Ye&&(this.controls.splice(Mi,0,Ye),this._registerControl(Ye)),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(it,Ye={}){zt(this,!1,it),it.forEach((kt,Mi)=>{ei(this,!1,Mi),this.at(Mi).setValue(kt,{onlySelf:!0,emitEvent:Ye.emitEvent})}),this.updateValueAndValidity(Ye)}patchValue(it,Ye={}){null!=it&&(it.forEach((kt,Mi)=>{this.at(Mi)&&this.at(Mi).patchValue(kt,{onlySelf:!0,emitEvent:Ye.emitEvent})}),this.updateValueAndValidity(Ye))}reset(it=[],Ye={}){this._forEachChild((kt,Mi)=>{kt.reset(it[Mi],{onlySelf:!0,emitEvent:Ye.emitEvent})}),this._updatePristine(Ye),this._updateTouched(Ye),this.updateValueAndValidity(Ye)}getRawValue(){return this.controls.map(it=>it.getRawValue())}clear(it={}){this.controls.length<1||(this._forEachChild(Ye=>Ye._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:it.emitEvent}))}_adjustIndex(it){return it<0?it+this.length:it}_syncPendingControls(){let it=this.controls.reduce((Ye,kt)=>!!kt._syncPendingControls()||Ye,!1);return it&&this.updateValueAndValidity({onlySelf:!0}),it}_forEachChild(it){this.controls.forEach((Ye,kt)=>{it(Ye,kt)})}_updateValue(){this.value=this.controls.filter(it=>it.enabled||this.disabled).map(it=>it.value)}_anyControls(it){return this.controls.some(Ye=>Ye.enabled&&it(Ye))}_setUpControls(){this._forEachChild(it=>this._registerControl(it))}_allControlsDisabled(){for(const it of this.controls)if(it.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(it){it.setParent(this),it._registerOnCollectionChange(this._onCollectionChange)}_find(it){return this.at(it)??null}}function Pi(lt){return!!lt&&(void 0!==lt.asyncValidators||void 0!==lt.validators||void 0!==lt.updateOn)}let an=(()=>{class lt{constructor(){this.useNonNullable=!1}get nonNullable(){const Ye=new lt;return Ye.useNonNullable=!0,Ye}group(Ye,kt=null){const Mi=this._reduceControls(Ye);let sn={};return Pi(kt)?sn=kt:null!==kt&&(sn.validators=kt.validator,sn.asyncValidators=kt.asyncValidator),new pt(Mi,sn)}record(Ye,kt=null){const Mi=this._reduceControls(Ye);return new St(Mi,kt)}control(Ye,kt,Mi){let sn={};return this.useNonNullable?(Pi(kt)?sn=kt:(sn.validators=kt,sn.asyncValidators=Mi),new pi(Ye,{...sn,nonNullable:!0})):new pi(Ye,kt,Mi)}array(Ye,kt,Mi){const sn=Ye.map(va=>this._createControl(va));return new hi(sn,kt,Mi)}_reduceControls(Ye){const kt={};return Object.keys(Ye).forEach(Mi=>{kt[Mi]=this._createControl(Ye[Mi])}),kt}_createControl(Ye){return Ye instanceof pi||Ye instanceof ni?Ye:Array.isArray(Ye)?this.control(Ye[0],Ye.length>1?Ye[1]:null,Ye.length>2?Ye[2]:null):this.control(Ye)}}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})(),ca=(()=>{class lt extends an{group(Ye,kt=null){return super.group(Ye,kt)}control(Ye,kt,Mi){return super.control(Ye,kt,Mi)}array(Ye,kt,Mi){return super.array(Ye,kt,Mi)}}return lt.\u0275fac=function(){let it;return function(kt){return(it||(it=t.n5z(lt)))(kt||lt)}}(),lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})(),gn=(()=>{class lt{static withConfig(Ye){return{ngModule:lt,providers:[{provide:tt,useValue:Ye.callSetDisabledState??_t}]}}}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({imports:[Ft]}),lt})(),qa=(()=>{class lt{static withConfig(Ye){return{ngModule:lt,providers:[{provide:ia,useValue:Ye.warnOnNgModelWithFormControl??"always"},{provide:tt,useValue:Ye.callSetDisabledState??_t}]}}}return lt.\u0275fac=function(Ye){return new(Ye||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({imports:[Ft]}),lt})()},7957:(We,q,m)=>{"use strict";m.d(q,{Bb:()=>Fe,XC:()=>K,ZL:()=>fe});var t=m(4650),e=m(3238),g=m(6895),T=m(531),s=m(8184),x=m(4761),h=m(1281),N=m(3353),d=m(7340),M=m(727),w=m(7579),L=m(9770),k=m(6451),V=m(9646),B=m(4968),W=m(9521),Y=m(4080),Q=m(4006),X=m(9549),ee=m(8675),me=m(3900),re=m(5698),ie=m(9300),se=m(4004),ce=m(8505),Te=m(4086),S=m(445);const i=["panel"];function a(oe,ze){if(1&oe&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&oe){const Oe=ze.id,he=t.oxw();t.Q6J("id",he.id)("ngClass",he._classList)("@panelAnimation",he.isOpen?"visible":"hidden"),t.uIk("aria-label",he.ariaLabel||null)("aria-labelledby",he._getPanelAriaLabelledby(Oe))}}const u=["*"],l=(0,d.X$)("panelAnimation",[(0,d.SB)("void, hidden",(0,d.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,d.eR)(":enter, hidden => visible",[(0,d.ru)([(0,d.jt)("0.03s linear",(0,d.oB)({opacity:1})),(0,d.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,d.oB)({transform:"scaleY(1)"}))])]),(0,d.eR)(":leave, visible => hidden",[(0,d.jt)("0.075s linear",(0,d.oB)({opacity:0}))])]);let _=0;class O{constructor(ze,Oe){this.source=ze,this.option=Oe}}const R=(0,e.Kr)(class{}),C=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function n(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let v=(()=>{class oe extends R{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Oe){this._color=Oe,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Oe){this._autoActiveFirstOption=(0,h.Ig)(Oe)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Oe){this._autoSelectActiveOption=(0,h.Ig)(Oe)}set classList(Oe){this._classList=Oe&&Oe.length?(0,h.du)(Oe).reduce((he,Ae)=>(he[Ae]=!0,he),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(Oe,he,Ae,ge){super(),this._changeDetectorRef=Oe,this._elementRef=he,this._defaults=Ae,this._activeOptionChanges=M.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new t.vpe,this.opened=new t.vpe,this.closed=new t.vpe,this.optionActivated=new t.vpe,this._classList={},this.id="mat-autocomplete-"+_++,this.inertGroups=ge?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new x.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Oe=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Oe]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(Oe){this.panel&&(this.panel.nativeElement.scrollTop=Oe)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Oe){const he=new O(this,Oe);this.optionSelected.emit(he)}_getPanelAriaLabelledby(Oe){return this.ariaLabel?null:this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_setVisibilityClasses(Oe){Oe[this._visibleClass]=this.showPanel,Oe[this._hiddenClass]=!this.showPanel}_setThemeClasses(Oe){Oe["mat-primary"]="primary"===this._color,Oe["mat-warn"]="warn"===this._color,Oe["mat-accent"]="accent"===this._color}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(C),t.Y36(N.t4))},oe.\u0275dir=t.lG2({type:oe,viewQuery:function(Oe,he){if(1&Oe&&(t.Gf(t.Rgc,7),t.Gf(i,5)),2&Oe){let Ae;t.iGM(Ae=t.CRH())&&(he.template=Ae.first),t.iGM(Ae=t.CRH())&&(he.panel=Ae.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]}),oe})(),K=(()=>{class oe extends v{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Oe){this._hideSingleSelectionIndicator=(0,h.Ig)(Oe),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Oe of this.options)Oe._changeDetectorRef.markForCheck()}}return oe.\u0275fac=function(){let ze;return function(he){return(ze||(ze=t.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=t.Xpm({type:oe,selectors:[["mat-autocomplete"]],contentQueries:function(Oe,he,Ae){if(1&Oe&&(t.Suo(Ae,e.K7,5),t.Suo(Ae,e.ey,5)),2&Oe){let ge;t.iGM(ge=t.CRH())&&(he.optionGroups=ge),t.iGM(ge=t.CRH())&&(he.options=ge)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:e.HF,useExisting:oe}]),t.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(Oe,he){1&Oe&&(t.F$t(),t.YNc(0,a,3,5,"ng-template"))},dependencies:[g.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[l]},changeDetection:0}),oe})();const ye={provide:Q.JU,useExisting:(0,t.Gpc)(()=>fe),multi:!0},pe=new t.OlP("mat-autocomplete-scroll-strategy"),Ce={provide:pe,deps:[s.aV],useFactory:function qe(oe){return()=>oe.scrollStrategies.reposition()}};let Se=(()=>{class oe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Oe){this._autocompleteDisabled=(0,h.Ig)(Oe)}constructor(Oe,he,Ae,ge,Ue,Je,Re,le,rt,Qe,ct){this._element=Oe,this._overlay=he,this._viewContainerRef=Ae,this._zone=ge,this._changeDetectorRef=Ue,this._dir=Re,this._formField=le,this._document=rt,this._viewportRuler=Qe,this._defaults=ct,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=M.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new w.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)(()=>{const Gt=this.autocomplete?this.autocomplete.options:null;return Gt?Gt.changes.pipe((0,ee.O)(Gt),(0,me.w)(()=>(0,k.T)(...Gt.map(ut=>ut.onSelectionChange)))):this._zone.onStable.pipe((0,re.q)(1),(0,me.w)(()=>this.optionSelections))}),this._scrollStrategy=Je}ngAfterViewInit(){const Oe=this._getWindow();typeof Oe<"u"&&this._zone.runOutsideAngular(()=>Oe.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Oe){Oe.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Oe=this._getWindow();typeof Oe<"u"&&Oe.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,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,k.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ie.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ie.h)(()=>this._overlayAttached)):(0,V.of)()).pipe((0,se.U)(Oe=>Oe instanceof e.rN?Oe:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,k.T)((0,B.R)(this._document,"click"),(0,B.R)(this._document,"auxclick"),(0,B.R)(this._document,"touchend")).pipe((0,ie.h)(Oe=>{const he=(0,N.sA)(Oe),Ae=this._formField?this._formField._elementRef.nativeElement:null,ge=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&he!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Ae||!Ae.contains(he))&&(!ge||!ge.contains(he))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(he)}))}writeValue(Oe){Promise.resolve(null).then(()=>this._assignOptionValue(Oe))}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this._element.nativeElement.disabled=Oe}_handleKeydown(Oe){const he=Oe.keyCode,Ae=(0,W.Vb)(Oe);if(he===W.hY&&!Ae&&Oe.preventDefault(),this.activeOption&&he===W.K5&&this.panelOpen&&!Ae)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Oe.preventDefault();else if(this.autocomplete){const ge=this.autocomplete._keyManager.activeItem,Ue=he===W.LH||he===W.JH;he===W.Mf||Ue&&!Ae&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Oe):Ue&&this._canOpen()&&this.openPanel(),(Ue||this.autocomplete._keyManager.activeItem!==ge)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Oe){let he=Oe.target,Ae=he.value;"number"===he.type&&(Ae=""==Ae?null:parseFloat(Ae)),this._previousValue!==Ae&&(this._previousValue=Ae,this._pendingAutoselectedOption=null,this._onChange(Ae),this._canOpen()&&this._document.activeElement===Oe.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Oe=!1){this._formField&&"auto"===this._formField.floatLabel&&(Oe?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Oe=this._zone.onStable.pipe((0,re.q)(1)),he=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Te.g)(0));return(0,k.T)(Oe,he).pipe((0,me.w)(()=>(this._zone.run(()=>{const Ae=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Ae!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,re.q)(1)).subscribe(Ae=>this._setValueAndClose(Ae))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Oe){const he=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Oe):Oe;this._updateNativeInputValue(he??"")}_updateNativeInputValue(Oe){this._formField?this._formField._control.value=Oe:this._element.nativeElement.value=Oe,this._previousValue=Oe}_setValueAndClose(Oe){const he=Oe?Oe.source:this._pendingAutoselectedOption;he&&(this._clearPreviousSelectedOption(he),this._assignOptionValue(he.value),this._onChange(he.value),this.autocomplete._emitSelectEvent(he),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Oe){this.autocomplete.options.forEach(he=>{he!==Oe&&he.selected&&he.deselect()})}_attachOverlay(){let Oe=this._overlayRef;Oe?(this._positionStrategy.setOrigin(this._getConnectedElement()),Oe.updateSize({width:this._getPanelWidth()})):(this._portal=new Y.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Oe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Oe,this._handleOverlayEvents(Oe),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Oe&&Oe.updateSize({width:this._getPanelWidth()})})),Oe&&!Oe.hasAttached()&&(Oe.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const he=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&he!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new s.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Oe=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Oe),this._positionStrategy=Oe,Oe}_setStrategyPositions(Oe){const he=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ae=this._aboveClass,ge=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ae},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ae}];let Ue;Ue="above"===this.position?ge:"below"===this.position?he:[...he,...ge],Oe.withPositions(Ue)}_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 Oe=this.autocomplete;Oe.autoActiveFirstOption?Oe._keyManager.setFirstItemActive():Oe._keyManager.setActiveItem(-1)}_canOpen(){const Oe=this._element.nativeElement;return!Oe.readOnly&&!Oe.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Oe){const he=this.autocomplete,Ae=(0,e.CB)(Oe,he.options,he.optionGroups);if(0===Oe&&1===Ae)he._setScrollTop(0);else if(he.panel){const ge=he.options.toArray()[Oe];if(ge){const Ue=ge._getHostElement(),Je=(0,e.jH)(Ue.offsetTop,Ue.offsetHeight,he._getScrollTop(),he.panel.nativeElement.offsetHeight);he._setScrollTop(Je)}}}_handleOverlayEvents(Oe){Oe.keydownEvents().subscribe(he=>{(he.keyCode===W.hY&&!(0,W.Vb)(he)||he.keyCode===W.LH&&(0,W.Vb)(he,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),he.stopPropagation(),he.preventDefault())}),Oe.outsidePointerEvents().subscribe()}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(t.Y36(t.SBq),t.Y36(s.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(pe),t.Y36(S.Is,8),t.Y36(X.G_,9),t.Y36(g.K0,8),t.Y36(T.rL),t.Y36(C,8))},oe.\u0275dir=t.lG2({type:oe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]}),oe})(),fe=(()=>{class oe extends Se{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return oe.\u0275fac=function(){let ze;return function(he){return(ze||(ze=t.n5z(oe)))(he||oe)}}(),oe.\u0275dir=t.lG2({type:oe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Oe,he){1&Oe&&t.NdJ("focusin",function(){return he._handleFocus()})("blur",function(){return he._onTouched()})("input",function(ge){return he._handleInput(ge)})("keydown",function(ge){return he._handleKeydown(ge)})("click",function(){return he._handleClick()}),2&Oe&&t.uIk("autocomplete",he.autocompleteAttribute)("role",he.autocompleteDisabled?null:"combobox")("aria-autocomplete",he.autocompleteDisabled?null:"list")("aria-activedescendant",he.panelOpen&&he.activeOption?he.activeOption.id:null)("aria-expanded",he.autocompleteDisabled?null:he.panelOpen.toString())("aria-owns",he.autocompleteDisabled||!he.panelOpen||null==he.autocomplete?null:he.autocomplete.id)("aria-haspopup",he.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([ye]),t.qOj]}),oe})(),Fe=(()=>{class oe{}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275mod=t.oAB({type:oe}),oe.\u0275inj=t.cJS({providers:[Ce],imports:[s.U8,e.Ng,e.BQ,g.ez,T.ZD,e.Ng,e.BQ]}),oe})()},2673:(We,q,m)=>{"use strict";m.d(q,{g:()=>d,k:()=>N});var t=m(4650),e=m(3238),g=m(4761),T=m(1281);let s=0;const x=(0,e.Id)(class{}),h="mat-badge-content";let N=(()=>{class M extends x{get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,T.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,T.Ig)(L)}constructor(L,k,V,B,W){super(),this._ngZone=L,this._elementRef=k,this._ariaDescriber=V,this._renderer=B,this._animationMode=W,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=s++,this._isInitialized=!1}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const L=this._renderer.createElement("span"),k="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(h),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(k)})}):L.classList.add(k),L}_updateRenderedContent(L){const k=`${L??""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),L&&k.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${h}`);for(const k of Array.from(L))k!==this._badgeElement&&k.remove()}}return M.\u0275fac=function(L){return new(L||M)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(g.$s),t.Y36(t.Qsj),t.Y36(t.QbO,8))},M.\u0275dir=t.lG2({type:M,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,k){2&L&&t.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[t.qOj]}),M})(),d=(()=>{class M{}return M.\u0275fac=function(L){return new(L||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[g.rt,e.BQ,e.BQ]}),M})()},4859:(We,q,m)=>{"use strict";m.d(q,{RK:()=>R,lW:()=>se,nh:()=>l,ot:()=>n});var t=m(3353),e=m(4650),g=m(4761),T=m(3238);const s=["mat-button",""],x=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],h=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],w=["mat-mini-fab",""],k=["mat-icon-button",""],V=["*"],Q=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],X=(0,T.pj)((0,T.Id)((0,T.Kr)(class{constructor(v){this._elementRef=v}})));let ee=(()=>{class v extends X{constructor(F,G,ye,Ee){super(F),this._platform=G,this._ngZone=ye,this._animationMode=Ee,this._focusMonitor=(0,e.f3M)(g.tE),this._isFab=!1;const pe=F.nativeElement.classList;for(const qe of Q)this._hasHostAttributes(qe.selector)&&qe.mdcClasses.forEach(Ce=>{pe.add(Ce)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(F="program",G){F?this._focusMonitor.focusVia(this._elementRef.nativeElement,F,G):this._elementRef.nativeElement.focus(G)}_hasHostAttributes(...F){return F.some(G=>this._elementRef.nativeElement.hasAttribute(G))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return v.\u0275fac=function(F){e.$Z()},v.\u0275dir=e.lG2({type:v,viewQuery:function(F,G){if(1&F&&e.Gf(T.wG,5),2&F){let ye;e.iGM(ye=e.CRH())&&(G.ripple=ye.first)}},features:[e.qOj]}),v})(),se=(()=>{class v extends ee{constructor(F,G,ye,Ee){super(F,G,ye,Ee)}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},v.\u0275cmp=e.Xpm({type:v,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(F,G){2&F&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-unthemed",!G.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:s,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(F,G){1&F&&(e.F$t(x),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&F&&(e.ekj("mdc-button__ripple",!G._isFab)("mdc-fab__ripple",G._isFab),e.xp6(6),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleTrigger",G._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),v})();const Te=new e.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:S});function S(){return{color:"accent"}}const i=S();let l=(()=>{class v extends ee{constructor(F,G,ye,Ee,pe){super(F,G,ye,Ee),this._options=pe,this._isFab=!0,this._options=this._options||i,this.color=this.defaultColor=this._options.color||i.color}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8),e.Y36(Te,8))},v.\u0275cmp=e.Xpm({type:v,selectors:[["button","mat-mini-fab",""]],hostVars:7,hostBindings:function(F,G){2&F&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-unthemed",!G.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(F,G){1&F&&(e.F$t(x),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&F&&(e.ekj("mdc-button__ripple",!G._isFab)("mdc-fab__ripple",G._isFab),e.xp6(6),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleTrigger",G._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),v})(),R=(()=>{class v extends ee{constructor(F,G,ye,Ee){super(F,G,ye,Ee)}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},v.\u0275cmp=e.Xpm({type:v,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(F,G){2&F&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-unthemed",!G.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:k,ngContentSelectors:V,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(F,G){1&F&&(e.F$t(),e._UZ(0,"span",0),e.Hsn(1),e._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&F&&(e.xp6(3),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",G._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),v})(),n=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({imports:[T.BQ,T.si,T.BQ]}),v})()},3546:(We,q,m)=>{"use strict";m.d(q,{$j:()=>V,QW:()=>ce,a8:()=>M,dk:()=>W,dn:()=>k,n5:()=>w});var t=m(4650),e=m(6895),g=m(3238);const T=["*"],h=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],N=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new t.OlP("MAT_CARD_CONFIG");let M=(()=>{class Te{constructor(i){this.appearance=i?.appearance||"raised"}}return Te.\u0275fac=function(i){return new(i||Te)(t.Y36(d,8))},Te.\u0275cmp=t.Xpm({type:Te,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,a){2&i&&t.ekj("mat-mdc-card-outlined","outlined"===a.appearance)("mdc-card--outlined","outlined"===a.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:T,decls:1,vars:0,template:function(i,a){1&i&&(t.F$t(),t.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),Te})(),w=(()=>{class Te{}return Te.\u0275fac=function(i){return new(i||Te)},Te.\u0275dir=t.lG2({type:Te,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),Te})(),k=(()=>{class Te{}return Te.\u0275fac=function(i){return new(i||Te)},Te.\u0275dir=t.lG2({type:Te,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),Te})(),V=(()=>{class Te{}return Te.\u0275fac=function(i){return new(i||Te)},Te.\u0275dir=t.lG2({type:Te,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),Te})(),W=(()=>{class Te{}return Te.\u0275fac=function(i){return new(i||Te)},Te.\u0275cmp=t.Xpm({type:Te,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:N,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,a){1&i&&(t.F$t(h),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),Te})(),ce=(()=>{class Te{}return Te.\u0275fac=function(i){return new(i||Te)},Te.\u0275mod=t.oAB({type:Te}),Te.\u0275inj=t.cJS({imports:[g.BQ,e.ez,g.BQ]}),Te})()},6709:(We,q,m)=>{"use strict";m.d(q,{oG:()=>W,p9:()=>ee});var t=m(4650),e=m(4006),g=m(3238),T=m(1281);const s=["input"],x=["label"],h=["*"],N=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d});function d(){return{color:"accent",clickAction:"check-indeterminate"}}const M={provide:e.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class w{}let L=0;const k=d(),V=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(me){this._elementRef=me}}))));let B=(()=>{class me extends V{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ie){this._required=(0,T.Ig)(ie)}constructor(ie,se,ce,Te,S,i,a){super(se),this._changeDetectorRef=ce,this._ngZone=Te,this._animationMode=i,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,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||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(S)||0,this.id=this._uniqueId=`${ie}${++L}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ie){const se=(0,T.Ig)(ie);se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ie){const se=(0,T.Ig)(ie);se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ie){const se=ie!=this._indeterminate;this._indeterminate=(0,T.Ig)(ie),se&&(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(ie){this.checked=!!ie}registerOnChange(ie){this._controlValueAccessorChangeFn=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie}_transitionCheckState(ie){let se=this._currentCheckState,ce=this._getAnimationTargetElement();if(se!==ie&&ce&&(this._currentAnimationClass&&ce.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(se,ie),this._currentCheckState=ie,this._currentAnimationClass.length>0)){ce.classList.add(this._currentAnimationClass);const Te=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ce.classList.remove(Te)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ie=this._options?.clickAction;this.disabled||"noop"===ie?!this.disabled&&"noop"===ie&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ie&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ie){ie.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ie,se){if("NoopAnimations"===this._animationMode)return"";switch(ie){case 0:if(1===se)return this._animationClasses.uncheckedToChecked;if(3==se)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===se?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===se?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===se?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ie){const se=this._inputElement;se&&(se.nativeElement.indeterminate=ie)}}return me.\u0275fac=function(ie){t.$Z()},me.\u0275dir=t.lG2({type:me,viewQuery:function(ie,se){if(1&ie&&(t.Gf(s,5),t.Gf(x,5),t.Gf(g.wG,5)),2&ie){let ce;t.iGM(ce=t.CRH())&&(se._inputElement=ce.first),t.iGM(ce=t.CRH())&&(se._labelElement=ce.first),t.iGM(ce=t.CRH())&&(se.ripple=ce.first)}},inputs:{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"},features:[t.qOj]}),me})(),W=(()=>{class me extends B{constructor(ie,se,ce,Te,S,i){super("mat-mdc-checkbox-",ie,se,ce,Te,S,i),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(ie){const se=new w;return se.source=this,se.checked=ie,se}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(ie){ie.target&&this._labelElement.nativeElement.contains(ie.target)&&ie.stopPropagation()}}return me.\u0275fac=function(ie){return new(ie||me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(N,8))},me.\u0275cmp=t.Xpm({type:me,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(ie,se){2&ie&&(t.Ikx("id",se.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("_mat-animation-noopable","NoopAnimations"===se._animationMode)("mdc-checkbox--disabled",se.disabled)("mat-mdc-checkbox-disabled",se.disabled)("mat-mdc-checkbox-checked",se.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([M]),t.qOj],ngContentSelectors:h,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(ie,se){if(1&ie&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(Te){return se._preventBubblingFromLabel(Te)}),t.TgZ(1,"div",1,2)(3,"div",3),t.NdJ("click",function(){return se._onTouchTargetClick()}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("blur",function(){return se._onBlur()})("click",function(){return se._onInputClick()})("change",function(Te){return se._onInteractionEvent(Te)}),t.qZA(),t._UZ(6,"div",6),t.TgZ(7,"div",7),t.O4$(),t.TgZ(8,"svg",8),t._UZ(9,"path",9),t.qZA(),t.kcU(),t._UZ(10,"div",10),t.qZA(),t._UZ(11,"div",11),t.qZA(),t.TgZ(12,"label",12,13),t.Hsn(14),t.qZA()()),2&ie){const ce=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==se.labelPosition),t.xp6(4),t.ekj("mdc-checkbox--selected",se.checked),t.Q6J("checked",se.checked)("indeterminate",se.indeterminate)("disabled",se.disabled)("id",se.inputId)("required",se.required)("tabIndex",se.tabIndex),t.uIk("aria-label",se.ariaLabel||null)("aria-labelledby",se.ariaLabelledby)("aria-describedby",se.ariaDescribedby)("name",se.name)("value",se.value),t.xp6(7),t.Q6J("matRippleTrigger",ce)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0),t.xp6(1),t.Q6J("for",se.inputId)}},dependencies:[g.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),me})(),X=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({imports:[g.BQ,g.si,X,g.BQ,X]}),me})()},7331:(We,q,m)=>{"use strict";m.d(q,{HS:()=>fe,Hi:()=>xt});var t=m(1281),e=m(4650),g=m(6895),T=m(3238),s=m(4761),x=m(7579),h=m(6451),N=m(5698),L=(m(2722),m(8675),m(3900),m(9521));function W(Me,$e){1&Me&&(e.TgZ(0,"span",8),e.Hsn(1,1),e.qZA())}function Y(Me,$e){1&Me&&(e.TgZ(0,"span",9),e.Hsn(1,2),e.qZA())}m(445),m(4006),m(9549);const Q=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],X=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],R=new e.OlP("mat-chips-default-options"),C=new e.OlP("MatChipAvatar"),n=new e.OlP("MatChipTrailingIcon"),v=new e.OlP("MatChipRemove"),K=new e.OlP("MatChip");class F{}const G=(0,T.sb)(F,-1);let ye=(()=>{class Me extends G{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(Pe){this._disabled=(0,t.Ig)(Pe)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(Pe,J){super(),this._elementRef=Pe,this._parentChip=J,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===Pe.nativeElement.nodeName&&Pe.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(Pe){!this.disabled&&this.isInteractive&&this._isPrimary&&(Pe.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(Pe){(Pe.keyCode===L.K5||Pe.keyCode===L.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(Pe.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(e.Y36(e.SBq),e.Y36(K))},Me.\u0275dir=e.lG2({type:Me,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(Pe,J){1&Pe&&e.NdJ("click",function(Et){return J._handleClick(Et)})("keydown",function(Et){return J._handleKeydown(Et)}),2&Pe&&(e.uIk("tabindex",J._getTabindex())("disabled",J._getDisabledAttribute())("aria-disabled",J.disabled),e.ekj("mdc-evolution-chip__action--primary",J._isPrimary)("mdc-evolution-chip__action--presentational",!J.isInteractive)("mdc-evolution-chip__action--trailing",!J._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[e.qOj]}),Me})(),Ce=0;const Se=(0,T.sb)((0,T.pj)((0,T.Kr)((0,T.Id)(class{constructor(Me){this._elementRef=Me}})),"primary"),-1);let fe=(()=>{class Me extends Se{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(Pe){this._value=Pe}get removable(){return this._removable}set removable(Pe){this._removable=(0,t.Ig)(Pe)}get highlighted(){return this._highlighted}set highlighted(Pe){this._highlighted=(0,t.Ig)(Pe)}constructor(Pe,J,mt,Et,at,je,Ht,Ct){super(J),this._changeDetectorRef=Pe,this._ngZone=mt,this._focusMonitor=Et,this._globalRippleOptions=Ht,this._isRippleCentered=!1,this._onFocus=new x.x,this._onBlur=new x.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+Ce++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new e.vpe,this.destroyed=new e.vpe,this.basicChipAttrName="mat-basic-chip",this._document=at,this._animationsDisabled="NoopAnimations"===je,null!=Ct&&(this.tabIndex=parseInt(Ct)??this.defaultTabIndex),this._monitorFocus()}ngOnInit(){const Pe=this._elementRef.nativeElement;this._isBasicChip=Pe.hasAttribute(this.basicChipAttrName)||Pe.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,h.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(Pe){(Pe.keyCode===L.ZH||Pe.keyCode===L.yY)&&(Pe.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(Pe){return this._getActions().find(J=>{const mt=J._elementRef.nativeElement;return mt===Pe||mt.contains(Pe)})}_getActions(){const Pe=[];return this.primaryAction&&Pe.push(this.primaryAction),this.removeIcon&&Pe.push(this.removeIcon),this.trailingIcon&&Pe.push(this.trailingIcon),Pe}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Pe=>{const J=null!==Pe;J!==this._hasFocusInternal&&(this._hasFocusInternal=J,J?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.tE),e.Y36(g.K0),e.Y36(e.QbO,8),e.Y36(T.Y2,8),e.$8M("tabindex"))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Pe,J,mt){if(1&Pe&&(e.Suo(mt,C,5),e.Suo(mt,n,5),e.Suo(mt,v,5),e.Suo(mt,C,5),e.Suo(mt,n,5),e.Suo(mt,v,5)),2&Pe){let Et;e.iGM(Et=e.CRH())&&(J.leadingIcon=Et.first),e.iGM(Et=e.CRH())&&(J.trailingIcon=Et.first),e.iGM(Et=e.CRH())&&(J.removeIcon=Et.first),e.iGM(Et=e.CRH())&&(J._allLeadingIcons=Et),e.iGM(Et=e.CRH())&&(J._allTrailingIcons=Et),e.iGM(Et=e.CRH())&&(J._allRemoveIcons=Et)}},viewQuery:function(Pe,J){if(1&Pe&&(e.Gf(T.wG,5),e.Gf(ye,5)),2&Pe){let mt;e.iGM(mt=e.CRH())&&(J.ripple=mt.first),e.iGM(mt=e.CRH())&&(J.primaryAction=mt.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(Pe,J){1&Pe&&e.NdJ("keydown",function(Et){return J._handleKeydown(Et)}),2&Pe&&(e.Ikx("id",J.id),e.uIk("role",J.role)("tabindex",J.role?J.tabIndex:null)("aria-label",J.ariaLabel),e.ekj("mdc-evolution-chip",!J._isBasicChip)("mdc-evolution-chip--disabled",J.disabled)("mdc-evolution-chip--with-trailing-action",J._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",J.leadingIcon)("mdc-evolution-chip--with-primary-icon",J.leadingIcon)("mdc-evolution-chip--with-avatar",J.leadingIcon)("mat-mdc-chip-with-avatar",J.leadingIcon)("mat-mdc-chip-highlighted",J.highlighted)("mat-mdc-chip-disabled",J.disabled)("mat-mdc-basic-chip",J._isBasicChip)("mat-mdc-standard-chip",!J._isBasicChip)("mat-mdc-chip-with-trailing-icon",J._hasTrailingIcon())("_mat-animation-noopable",J._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[e._Bn([{provide:K,useExisting:Me}]),e.qOj],ngContentSelectors:X,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Pe,J){1&Pe&&(e.F$t(Q),e._UZ(0,"span",0)(1,"span",1),e.TgZ(2,"span",2)(3,"span",3),e.YNc(4,W,2,0,"span",4),e.TgZ(5,"span",5),e.Hsn(6),e._UZ(7,"span",6),e.qZA()()(),e.YNc(8,Y,2,0,"span",7)),2&Pe&&(e.Q6J("matRippleDisabled",J._isRippleDisabled())("matRippleCentered",J._isRippleCentered)("matRippleTrigger",J._elementRef.nativeElement),e.xp6(3),e.Q6J("isInteractive",!1),e.xp6(1),e.Q6J("ngIf",J.leadingIcon),e.xp6(4),e.Q6J("ngIf",J._hasTrailingIcon()))},dependencies:[g.O5,T.wG,ye],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Me})(),xt=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({providers:[T.rD,{provide:R,useValue:{separatorKeyCodes:[L.K5]}}],imports:[T.BQ,g.ez,T.si,T.BQ]}),Me})()},3238:(We,q,m)=>{"use strict";m.d(q,{yN:()=>ee,mZ:()=>me,_A:()=>n,rD:()=>Ce,sG:()=>v,Ad:()=>R,K7:()=>J,HF:()=>xt,Y2:()=>Qe,BQ:()=>se,uc:()=>oe,XK:()=>pe,ey:()=>Ht,Ng:()=>Bt,rN:()=>at,us:()=>Ze,wG:()=>ct,si:()=>Gt,LF:()=>G,IR:()=>le,CB:()=>Ct,jH:()=>Nt,pj:()=>a,Kr:()=>u,Id:()=>i,FD:()=>_,dB:()=>O,sb:()=>l});var t=m(4650),e=m(4761),g=m(445),s=m(6895),x=m(3353),h=m(1281),N=m(9751),d=m(7579),M=m(9521);const k=["text"];function V(Ne,$){if(1&Ne&&t._UZ(0,"mat-pseudo-checkbox",6),2&Ne){const ue=t.oxw();t.Q6J("state",ue.selected?"checked":"unchecked")("disabled",ue.disabled)}}function B(Ne,$){if(1&Ne&&t._UZ(0,"mat-pseudo-checkbox",7),2&Ne){const ue=t.oxw();t.Q6J("disabled",ue.disabled)}}function W(Ne,$){if(1&Ne&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&Ne){const ue=t.oxw();t.xp6(1),t.hij("(",ue.group.label,")")}}const Y=[[["mat-icon"]],"*"],Q=["mat-icon","*"];let ee=(()=>{class Ne{}return Ne.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ne.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ne.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ne.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ne})(),me=(()=>{class Ne{}return Ne.COMPLEX="375ms",Ne.ENTERING="225ms",Ne.EXITING="195ms",Ne})();const ie=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function re(){return!0}});let se=(()=>{class Ne{constructor(ue,Ie,Xe){this._sanityChecks=Ie,this._document=Xe,this._hasDoneGlobalChecks=!1,ue._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ue){return!(0,x.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ue])}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(t.LFG(e.qm),t.LFG(ie,8),t.LFG(s.K0))},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[g.vT,g.vT]}),Ne})();function i(Ne){return class extends Ne{get disabled(){return this._disabled}set disabled($){this._disabled=(0,h.Ig)($)}constructor(...$){super(...$),this._disabled=!1}}}function a(Ne,$){return class extends Ne{get color(){return this._color}set color(ue){const Ie=ue||this.defaultColor;Ie!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ie&&this._elementRef.nativeElement.classList.add(`mat-${Ie}`),this._color=Ie)}constructor(...ue){super(...ue),this.defaultColor=$,this.color=$}}}function u(Ne){return class extends Ne{get disableRipple(){return this._disableRipple}set disableRipple($){this._disableRipple=(0,h.Ig)($)}constructor(...$){super(...$),this._disableRipple=!1}}}function l(Ne,$=0){return class extends Ne{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ue){this._tabIndex=null!=ue?(0,h.su)(ue):this.defaultTabIndex}constructor(...ue){super(...ue),this._tabIndex=$,this.defaultTabIndex=$}}}function _(Ne){return class extends Ne{updateErrorState(){const $=this.errorState,ei=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ei!==$&&(this.errorState=ei,this.stateChanges.next())}constructor(...$){super(...$),this.errorState=!1}}}function O(Ne){return class extends Ne{constructor(...$){super(...$),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new N.y(ue=>{this._isInitialized?this._notifySubscriber(ue):this._pendingSubscribers.push(ue)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber($){$.next(),$.complete()}}}const R=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function C(){return(0,t.f3M)(t.soG)}});class n{constructor(){this._localeChanges=new d.x,this.localeChanges=this._localeChanges}getValidDateOrNull($){return this.isDateInstance($)&&this.isValid($)?$:null}deserialize($){return null==$||this.isDateInstance($)&&this.isValid($)?$:this.invalid()}setLocale($){this.locale=$,this._localeChanges.next()}compareDate($,ue){return this.getYear($)-this.getYear(ue)||this.getMonth($)-this.getMonth(ue)||this.getDate($)-this.getDate(ue)}sameDate($,ue){if($&&ue){let Ie=this.isValid($),Xe=this.isValid(ue);return Ie&&Xe?!this.compareDate($,ue):Ie==Xe}return $==ue}clampDate($,ue,Ie){return ue&&this.compareDate($,ue)<0?ue:Ie&&this.compareDate($,Ie)>0?Ie:$}}const v=new t.OlP("mat-date-formats"),K=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(Ne,$){const ue=Array(Ne);for(let Ie=0;Ie<Ne;Ie++)ue[Ie]=$(Ie);return ue}let G=(()=>{class Ne extends n{constructor(ue,Ie){super(),this.useUtcForDisplay=!1,super.setLocale(ue)}getYear(ue){return ue.getFullYear()}getMonth(ue){return ue.getMonth()}getDate(ue){return ue.getDate()}getDayOfWeek(ue){return ue.getDay()}getMonthNames(ue){const Ie=new Intl.DateTimeFormat(this.locale,{month:ue,timeZone:"utc"});return F(12,Xe=>this._format(Ie,new Date(2017,Xe,1)))}getDateNames(){const ue=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,Ie=>this._format(ue,new Date(2017,0,Ie+1)))}getDayOfWeekNames(ue){const Ie=new Intl.DateTimeFormat(this.locale,{weekday:ue,timeZone:"utc"});return F(7,Xe=>this._format(Ie,new Date(2017,0,Xe+1)))}getYearName(ue){const Ie=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ie,ue)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ue){return this.getDate(this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue)+1,0))}clone(ue){return new Date(ue.getTime())}createDate(ue,Ie,Xe){let ei=this._createDateWithOverflow(ue,Ie,Xe);return ei.getMonth(),ei}today(){return new Date}parse(ue,Ie){return"number"==typeof ue?new Date(ue):ue?new Date(Date.parse(ue)):null}format(ue,Ie){if(!this.isValid(ue))throw Error("NativeDateAdapter: Cannot format invalid date.");const Xe=new Intl.DateTimeFormat(this.locale,{...Ie,timeZone:"utc"});return this._format(Xe,ue)}addCalendarYears(ue,Ie){return this.addCalendarMonths(ue,12*Ie)}addCalendarMonths(ue,Ie){let Xe=this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue)+Ie,this.getDate(ue));return this.getMonth(Xe)!=((this.getMonth(ue)+Ie)%12+12)%12&&(Xe=this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe),0)),Xe}addCalendarDays(ue,Ie){return this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue),this.getDate(ue)+Ie)}toIso8601(ue){return[ue.getUTCFullYear(),this._2digit(ue.getUTCMonth()+1),this._2digit(ue.getUTCDate())].join("-")}deserialize(ue){if("string"==typeof ue){if(!ue)return null;if(K.test(ue)){let Ie=new Date(ue);if(this.isValid(Ie))return Ie}}return super.deserialize(ue)}isDateInstance(ue){return ue instanceof Date}isValid(ue){return!isNaN(ue.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ue,Ie,Xe){const ei=new Date;return ei.setFullYear(ue,Ie,Xe),ei.setHours(0,0,0,0),ei}_2digit(ue){return("00"+ue).slice(-2)}_format(ue,Ie){const Xe=new Date;return Xe.setUTCFullYear(Ie.getFullYear(),Ie.getMonth(),Ie.getDate()),Xe.setUTCHours(Ie.getHours(),Ie.getMinutes(),Ie.getSeconds(),Ie.getMilliseconds()),ue.format(Xe)}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(t.LFG(R,8),t.LFG(x.t4))},Ne.\u0275prov=t.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();const ye={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 Ee=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({providers:[{provide:n,useClass:G}]}),Ne})(),pe=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({providers:[{provide:v,useValue:ye}],imports:[Ee]}),Ne})(),Ce=(()=>{class Ne{isErrorState(ue,Ie){return!!(ue&&ue.invalid&&(ue.touched||Ie&&Ie.submitted))}}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275prov=t.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),oe=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[se,se]}),Ne})();class ze{constructor($,ue,Ie,Xe=!1){this._renderer=$,this.element=ue,this.config=Ie,this._animationForciblyDisabledThroughCss=Xe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Oe=(0,x.i$)({passive:!0,capture:!0});class he{constructor(){this._events=new Map,this._delegateEventHandler=$=>{const ue=(0,x.sA)($);ue&&this._events.get($.type)?.forEach((Ie,Xe)=>{(Xe===ue||Xe.contains(ue))&&Ie.forEach(ei=>ei.handleEvent($))})}}addHandler($,ue,Ie,Xe){const ei=this._events.get(ue);if(ei){const zt=ei.get(Ie);zt?zt.add(Xe):ei.set(Ie,new Set([Xe]))}else this._events.set(ue,new Map([[Ie,new Set([Xe])]])),$.runOutsideAngular(()=>{document.addEventListener(ue,this._delegateEventHandler,Oe)})}removeHandler($,ue,Ie){const Xe=this._events.get($);if(!Xe)return;const ei=Xe.get(ue);ei&&(ei.delete(Ie),0===ei.size&&Xe.delete(ue),0===Xe.size&&(this._events.delete($),document.removeEventListener($,this._delegateEventHandler,Oe)))}}const Ae={enterDuration:225,exitDuration:150},Ue=(0,x.i$)({passive:!0,capture:!0}),Je=["mousedown","touchstart"],Re=["mouseup","mouseleave","touchend","touchcancel"];class le{constructor($,ue,Ie,Xe){this._target=$,this._ngZone=ue,this._platform=Xe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Xe.isBrowser&&(this._containerElement=(0,h.fI)(Ie))}fadeInRipple($,ue,Ie={}){const Xe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ei={...Ae,...Ie.animation};Ie.centered&&($=Xe.left+Xe.width/2,ue=Xe.top+Xe.height/2);const zt=Ie.radius||function rt(Ne,$,ue){const Ie=Math.max(Math.abs(Ne-ue.left),Math.abs(Ne-ue.right)),Xe=Math.max(Math.abs($-ue.top),Math.abs($-ue.bottom));return Math.sqrt(Ie*Ie+Xe*Xe)}($,ue,Xe),ni=$-Xe.left,pt=ue-Xe.top,ot=ei.enterDuration,ft=document.createElement("div");ft.classList.add("mat-ripple-element"),ft.style.left=ni-zt+"px",ft.style.top=pt-zt+"px",ft.style.height=2*zt+"px",ft.style.width=2*zt+"px",null!=Ie.color&&(ft.style.backgroundColor=Ie.color),ft.style.transitionDuration=`${ot}ms`,this._containerElement.appendChild(ft);const St=window.getComputedStyle(ft),tt=St.transitionDuration,_t="none"===St.transitionProperty||"0s"===tt||"0s, 0s"===tt||0===Xe.width&&0===Xe.height,vt=new ze(this,ft,Ie,_t);ft.style.transform="scale3d(1, 1, 1)",vt.state=0,Ie.persistent||(this._mostRecentTransientRipple=vt);let Ve=null;return!_t&&(ot||ei.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Tt=()=>this._finishRippleTransition(vt),Lt=()=>this._destroyRipple(vt);ft.addEventListener("transitionend",Tt),ft.addEventListener("transitioncancel",Lt),Ve={onTransitionEnd:Tt,onTransitionCancel:Lt}}),this._activeRipples.set(vt,Ve),(_t||!ot)&&this._finishRippleTransition(vt),vt}fadeOutRipple($){if(2===$.state||3===$.state)return;const ue=$.element,Ie={...Ae,...$.config.animation};ue.style.transitionDuration=`${Ie.exitDuration}ms`,ue.style.opacity="0",$.state=2,($._animationForciblyDisabledThroughCss||!Ie.exitDuration)&&this._finishRippleTransition($)}fadeOutAll(){this._getActiveRipples().forEach($=>$.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach($=>{$.config.persistent||$.fadeOut()})}setupTriggerEvents($){const ue=(0,h.fI)($);!this._platform.isBrowser||!ue||ue===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ue,Je.forEach(Ie=>{le._eventManager.addHandler(this._ngZone,Ie,ue,this)}))}handleEvent($){"mousedown"===$.type?this._onMousedown($):"touchstart"===$.type?this._onTouchStart($):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Re.forEach(ue=>{this._triggerElement.addEventListener(ue,this,Ue)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition($){0===$.state?this._startFadeOutTransition($):2===$.state&&this._destroyRipple($)}_startFadeOutTransition($){const ue=$===this._mostRecentTransientRipple,{persistent:Ie}=$.config;$.state=1,!Ie&&(!ue||!this._isPointerDown)&&$.fadeOut()}_destroyRipple($){const ue=this._activeRipples.get($)??null;this._activeRipples.delete($),this._activeRipples.size||(this._containerRect=null),$===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),$.state=3,null!==ue&&($.element.removeEventListener("transitionend",ue.onTransitionEnd),$.element.removeEventListener("transitioncancel",ue.onTransitionCancel)),$.element.remove()}_onMousedown($){const ue=(0,e.X6)($),Ie=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ue&&!Ie&&(this._isPointerDown=!0,this.fadeInRipple($.clientX,$.clientY,this._target.rippleConfig))}_onTouchStart($){if(!this._target.rippleDisabled&&!(0,e.yG)($)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ue=$.changedTouches;for(let Ie=0;Ie<ue.length;Ie++)this.fadeInRipple(ue[Ie].clientX,ue[Ie].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach($=>{!$.config.persistent&&(1===$.state||$.config.terminateOnPointerUp&&0===$.state)&&$.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const $=this._triggerElement;$&&(Je.forEach(ue=>le._eventManager.removeHandler(ue,$,this)),this._pointerUpEventsRegistered&&Re.forEach(ue=>$.removeEventListener(ue,this,Ue)))}}le._eventManager=new he;const Qe=new t.OlP("mat-ripple-global-options");let ct=(()=>{class Ne{get disabled(){return this._disabled}set disabled(ue){ue&&this.fadeOutAllNonPersistent(),this._disabled=ue,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ue){this._trigger=ue,this._setupTriggerEventsIfEnabled()}constructor(ue,Ie,Xe,ei,zt){this._elementRef=ue,this._animationMode=zt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ei||{},this._rippleRenderer=new le(this,Ie,ue,Xe)}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:{...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(ue,Ie=0,Xe){return"number"==typeof ue?this._rippleRenderer.fadeInRipple(ue,Ie,{...this.rippleConfig,...Xe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ue})}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(x.t4),t.Y36(Qe,8),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ue,Ie){2&ue&&t.ekj("mat-ripple-unbounded",Ie.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"]}),Ne})(),Gt=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[se,se]}),Ne})(),ut=(()=>{class Ne{constructor(ue){this._animationMode=ue,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(ue,Ie){2&ue&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ie.state)("mat-pseudo-checkbox-checked","checked"===Ie.state)("mat-pseudo-checkbox-disabled",Ie.disabled)("mat-pseudo-checkbox-minimal","minimal"===Ie.appearance)("mat-pseudo-checkbox-full","full"===Ie.appearance)("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(ue,Ie){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),Ne})(),Ze=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[se]}),Ne})();const xt=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),J=new t.OlP("MatOptgroup");let Et=0;class at{constructor($,ue=!1){this.source=$,this.isUserInput=ue}}let je=(()=>{class Ne{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(ue){this._disabled=(0,h.Ig)(ue)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(ue,Ie,Xe,ei){this._element=ue,this._changeDetectorRef=Ie,this._parent=Xe,this.group=ei,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Et++,this.onSelectionChange=new t.vpe,this._stateChanges=new d.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.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(ue,Ie){const Xe=this._getHostElement();"function"==typeof Xe.focus&&Xe.focus(Ie)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ue){(ue.keyCode===M.K5||ue.keyCode===M.L_)&&!(0,M.Vb)(ue)&&(this._selectViaInteraction(),ue.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ue=this.viewValue;ue!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=ue)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ue=!1){this.onSelectionChange.emit(new at(this,ue))}}return Ne.\u0275fac=function(ue){t.$Z()},Ne.\u0275dir=t.lG2({type:Ne,viewQuery:function(ue,Ie){if(1&ue&&t.Gf(k,7),2&ue){let Xe;t.iGM(Xe=t.CRH())&&(Ie._text=Xe.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ne})(),Ht=(()=>{class Ne extends je{constructor(ue,Ie,Xe,ei){super(ue,Ie,Xe,ei)}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(xt,8),t.Y36(J,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(ue,Ie){1&ue&&t.NdJ("click",function(){return Ie._selectViaInteraction()})("keydown",function(ei){return Ie._handleKeydown(ei)}),2&ue&&(t.Ikx("id",Ie.id),t.uIk("aria-selected",Ie.selected)("aria-disabled",Ie.disabled.toString()),t.ekj("mdc-list-item--selected",Ie.selected)("mat-mdc-option-multiple",Ie.multiple)("mat-mdc-option-active",Ie.active)("mdc-list-item--disabled",Ie.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Q,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(ue,Ie){1&ue&&(t.F$t(Y),t.YNc(0,V,1,2,"mat-pseudo-checkbox",0),t.Hsn(1),t.TgZ(2,"span",1,2),t.Hsn(4,1),t.qZA(),t.YNc(5,B,1,1,"mat-pseudo-checkbox",3),t.YNc(6,W,2,1,"span",4),t._UZ(7,"div",5)),2&ue&&(t.Q6J("ngIf",Ie.multiple),t.xp6(5),t.Q6J("ngIf",!Ie.multiple&&Ie.selected&&!Ie.hideSingleSelectionIndicator),t.xp6(1),t.Q6J("ngIf",Ie.group&&Ie.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",Ie._getHostElement())("matRippleDisabled",Ie.disabled||Ie.disableRipple))},dependencies:[ct,s.O5,ut],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ne})();function Ct(Ne,$,ue){if(ue.length){let Ie=$.toArray(),Xe=ue.toArray(),ei=0;for(let zt=0;zt<Ne+1;zt++)Ie[zt].group&&Ie[zt].group===Xe[ei]&&ei++;return ei}return 0}function Nt(Ne,$,ue,Ie){return Ne<ue?Ne:Ne+$>ue+Ie?Math.max(0,Ne-Ie+$):ue}let Bt=(()=>{class Ne{}return Ne.\u0275fac=function(ue){return new(ue||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[Gt,s.ez,se,Ze]}),Ne})()},9602:(We,q,m)=>{"use strict";m.d(q,{FA:()=>Qi,Mq:()=>ot,hl:()=>vt,nW:()=>Tt});var t=m(4761),e=m(8184),g=m(4080),T=m(6895),s=m(4650),x=m(4859),h=m(531),N=m(3238),d=m(7579),M=m(727),w=m(6451),L=m(9646),k=m(9521),V=m(445),B=m(3353),W=m(5698),Y=m(8675),Q=m(9300),X=m(1281),ee=m(7340),me=m(4006),re=m(9549),ie=m(4144);const se=["mat-calendar-body",""];function ce(Yt,Xt){if(1&Yt&&(s.TgZ(0,"tr",3)(1,"td",4),s._uU(2),s.qZA()()),2&Yt){const be=s.oxw();s.xp6(1),s.Udp("padding-top",be._cellPadding)("padding-bottom",be._cellPadding),s.uIk("colspan",be.numCols),s.xp6(1),s.hij(" ",be.label," ")}}function Te(Yt,Xt){if(1&Yt&&(s.TgZ(0,"td",4),s._uU(1),s.qZA()),2&Yt){const be=s.oxw(2);s.Udp("padding-top",be._cellPadding)("padding-bottom",be._cellPadding),s.uIk("colspan",be._firstRowOffset),s.xp6(1),s.hij(" ",be._firstRowOffset>=be.labelMinRequiredCells?be.label:""," ")}}function S(Yt,Xt){if(1&Yt){const be=s.EpF();s.TgZ(0,"td",8)(1,"button",9),s.NdJ("click",function(Dt){const Ot=s.CHM(be).$implicit,bi=s.oxw(2);return s.KtG(bi._cellClicked(Ot,Dt))})("focus",function(Dt){const Ot=s.CHM(be).$implicit,bi=s.oxw(2);return s.KtG(bi._emitActiveDateChange(Ot,Dt))}),s.TgZ(2,"span",10),s._uU(3),s.qZA(),s._UZ(4,"span",11),s.qZA()()}if(2&Yt){const be=Xt.$implicit,dt=Xt.index,Dt=s.oxw().index,Ut=s.oxw();s.Udp("width",Ut._cellWidth)("padding-top",Ut._cellPadding)("padding-bottom",Ut._cellPadding),s.uIk("data-mat-row",Dt)("data-mat-col",dt),s.xp6(1),s.ekj("mat-calendar-body-disabled",!be.enabled)("mat-calendar-body-active",Ut._isActiveCell(Dt,dt))("mat-calendar-body-range-start",Ut._isRangeStart(be.compareValue))("mat-calendar-body-range-end",Ut._isRangeEnd(be.compareValue))("mat-calendar-body-in-range",Ut._isInRange(be.compareValue))("mat-calendar-body-comparison-bridge-start",Ut._isComparisonBridgeStart(be.compareValue,Dt,dt))("mat-calendar-body-comparison-bridge-end",Ut._isComparisonBridgeEnd(be.compareValue,Dt,dt))("mat-calendar-body-comparison-start",Ut._isComparisonStart(be.compareValue))("mat-calendar-body-comparison-end",Ut._isComparisonEnd(be.compareValue))("mat-calendar-body-in-comparison-range",Ut._isInComparisonRange(be.compareValue))("mat-calendar-body-preview-start",Ut._isPreviewStart(be.compareValue))("mat-calendar-body-preview-end",Ut._isPreviewEnd(be.compareValue))("mat-calendar-body-in-preview",Ut._isInPreview(be.compareValue)),s.Q6J("ngClass",be.cssClasses)("tabindex",Ut._isActiveCell(Dt,dt)?0:-1),s.uIk("aria-label",be.ariaLabel)("aria-disabled",!be.enabled||null)("aria-pressed",Ut._isSelected(be.compareValue))("aria-current",Ut.todayValue===be.compareValue?"date":null)("aria-describedby",Ut._getDescribedby(be.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",Ut._isSelected(be.compareValue))("mat-calendar-body-comparison-identical",Ut._isComparisonIdentical(be.compareValue))("mat-calendar-body-today",Ut.todayValue===be.compareValue),s.xp6(1),s.hij(" ",be.displayValue," ")}}function i(Yt,Xt){if(1&Yt&&(s.TgZ(0,"tr",5),s.YNc(1,Te,2,6,"td",6),s.YNc(2,S,5,48,"td",7),s.qZA()),2&Yt){const be=Xt.$implicit,dt=Xt.index,Dt=s.oxw();s.xp6(1),s.Q6J("ngIf",0===dt&&Dt._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",be)}}function a(Yt,Xt){if(1&Yt&&(s.TgZ(0,"th",5)(1,"span",6),s._uU(2),s.qZA(),s.TgZ(3,"span",7),s._uU(4),s.qZA()()),2&Yt){const be=Xt.$implicit;s.xp6(2),s.Oqu(be.long),s.xp6(2),s.Oqu(be.narrow)}}const u=["*"];function l(Yt,Xt){}function _(Yt,Xt){if(1&Yt){const be=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut.activeDate=Dt)})("_userSelection",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._dateSelected(Dt))})("dragStarted",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._dragStarted(Dt))})("dragEnded",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._dragEnded(Dt))}),s.qZA()}if(2&Yt){const be=s.oxw();s.Q6J("activeDate",be.activeDate)("selected",be.selected)("dateFilter",be.dateFilter)("maxDate",be.maxDate)("minDate",be.minDate)("dateClass",be.dateClass)("comparisonStart",be.comparisonStart)("comparisonEnd",be.comparisonEnd)("startDateAccessibleName",be.startDateAccessibleName)("endDateAccessibleName",be.endDateAccessibleName)("activeDrag",be._activeDrag)}}function O(Yt,Xt){if(1&Yt){const be=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut.activeDate=Dt)})("monthSelected",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._monthSelectedInYearView(Dt))})("selectedChange",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._goToDateInView(Dt,"month"))}),s.qZA()}if(2&Yt){const be=s.oxw();s.Q6J("activeDate",be.activeDate)("selected",be.selected)("dateFilter",be.dateFilter)("maxDate",be.maxDate)("minDate",be.minDate)("dateClass",be.dateClass)}}function R(Yt,Xt){if(1&Yt){const be=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut.activeDate=Dt)})("yearSelected",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._yearSelectedInMultiYearView(Dt))})("selectedChange",function(Dt){s.CHM(be);const Ut=s.oxw();return s.KtG(Ut._goToDateInView(Dt,"year"))}),s.qZA()}if(2&Yt){const be=s.oxw();s.Q6J("activeDate",be.activeDate)("selected",be.selected)("dateFilter",be.dateFilter)("maxDate",be.maxDate)("minDate",be.minDate)("dateClass",be.dateClass)}}function C(Yt,Xt){}const n=["button"];function v(Yt,Xt){1&Yt&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const K=[[["","matDatepickerToggleIcon",""]]],F=["[matDatepickerToggleIcon]"];let qe=(()=>{class Yt{constructor(){this.changes=new d.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(be,dt){return`${be} \u2013 ${dt}`}formatYearRangeLabel(be,dt){return`${be} to ${dt}`}}return Yt.\u0275fac=function(be){return new(be||Yt)},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"}),Yt})();class Ce{constructor(Xt,be,dt,Dt,Ut={},Ot=Xt,bi){this.value=Xt,this.displayValue=be,this.ariaLabel=dt,this.enabled=Dt,this.cssClasses=Ut,this.compareValue=Ot,this.rawValue=bi}}let Se=1,fe=(()=>{class Yt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(be,dt){this._elementRef=be,this._ngZone=dt,this._platform=(0,s.f3M)(B.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this.activeDateChange=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=Dt=>{if(this._skipNextFocus&&"focus"===Dt.type)this._skipNextFocus=!1;else if(Dt.target&&this.isRange){const Ut=this._getCellFromElement(Dt.target);Ut&&this._ngZone.run(()=>this.previewChange.emit({value:Ut.enabled?Ut:null,event:Dt}))}},this._touchmoveHandler=Dt=>{if(!this.isRange)return;const Ut=Ae(Dt),Ot=Ut?this._getCellFromElement(Ut):null;Ut!==Dt.target&&(this._didDragSinceMouseDown=!0),oe(Dt.target)&&Dt.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:Ot?.enabled?Ot:null,event:Dt}))},this._leaveHandler=Dt=>{null!==this.previewEnd&&this.isRange&&("blur"!==Dt.type&&(this._didDragSinceMouseDown=!0),Dt.target&&this._getCellFromElement(Dt.target)&&(!Dt.relatedTarget||!this._getCellFromElement(Dt.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Dt})))},this._mousedownHandler=Dt=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Ut=Dt.target&&this._getCellFromElement(Dt.target);!Ut||!this._isInRange(Ut.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Ut.rawValue,event:Dt})})},this._mouseupHandler=Dt=>{if(!this.isRange)return;const Ut=oe(Dt.target);Ut?Ut.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const Ot=this._getCellFromElement(Ut);this.dragEnded.emit({value:Ot?.rawValue??null,event:Dt})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Dt})})},this._touchendHandler=Dt=>{const Ut=Ae(Dt);Ut&&this._mouseupHandler({target:Ut})},this._id="mat-calendar-body-"+Se++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,dt.runOutsideAngular(()=>{const Dt=be.nativeElement;Dt.addEventListener("mouseenter",this._enterHandler,!0),Dt.addEventListener("touchmove",this._touchmoveHandler,!0),Dt.addEventListener("focus",this._enterHandler,!0),Dt.addEventListener("mouseleave",this._leaveHandler,!0),Dt.addEventListener("blur",this._leaveHandler,!0),Dt.addEventListener("mousedown",this._mousedownHandler),Dt.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(be,dt){this._didDragSinceMouseDown||be.enabled&&this.selectedValueChange.emit({value:be.value,event:dt})}_emitActiveDateChange(be,dt){be.enabled&&this.activeDateChange.emit({value:be.value,event:dt})}_isSelected(be){return this.startValue===be||this.endValue===be}ngOnChanges(be){const dt=be.numCols,{rows:Dt,numCols:Ut}=this;(be.rows||dt)&&(this._firstRowOffset=Dt&&Dt.length&&Dt[0].length?Ut-Dt[0].length:0),(be.cellAspectRatio||dt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ut+"%"),(dt||!this._cellWidth)&&(this._cellWidth=100/Ut+"%")}ngOnDestroy(){const be=this._elementRef.nativeElement;be.removeEventListener("mouseenter",this._enterHandler,!0),be.removeEventListener("touchmove",this._touchmoveHandler,!0),be.removeEventListener("focus",this._enterHandler,!0),be.removeEventListener("mouseleave",this._leaveHandler,!0),be.removeEventListener("blur",this._leaveHandler,!0),be.removeEventListener("mousedown",this._mousedownHandler),be.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(be,dt){let Dt=be*this.numCols+dt;return be&&(Dt-=this._firstRowOffset),Dt==this.activeCell}_focusActiveCell(be=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{setTimeout(()=>{const dt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");dt&&(be||(this._skipNextFocus=!0),dt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(be){return ze(be,this.startValue,this.endValue)}_isRangeEnd(be){return Oe(be,this.startValue,this.endValue)}_isInRange(be){return he(be,this.startValue,this.endValue,this.isRange)}_isComparisonStart(be){return ze(be,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(be,dt,Dt){if(!this._isComparisonStart(be)||this._isRangeStart(be)||!this._isInRange(be))return!1;let Ut=this.rows[dt][Dt-1];if(!Ut){const Ot=this.rows[dt-1];Ut=Ot&&Ot[Ot.length-1]}return Ut&&!this._isRangeEnd(Ut.compareValue)}_isComparisonBridgeEnd(be,dt,Dt){if(!this._isComparisonEnd(be)||this._isRangeEnd(be)||!this._isInRange(be))return!1;let Ut=this.rows[dt][Dt+1];if(!Ut){const Ot=this.rows[dt+1];Ut=Ot&&Ot[0]}return Ut&&!this._isRangeStart(Ut.compareValue)}_isComparisonEnd(be){return Oe(be,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(be){return he(be,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(be){return this.comparisonStart===this.comparisonEnd&&be===this.comparisonStart}_isPreviewStart(be){return ze(be,this.previewStart,this.previewEnd)}_isPreviewEnd(be){return Oe(be,this.previewStart,this.previewEnd)}_isInPreview(be){return he(be,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(be){return this.isRange?this.startValue===be&&this.endValue===be?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===be?this._startDateLabelId:this.endValue===be?this._endDateLabelId:null:null}_getCellFromElement(be){const dt=oe(be);if(dt){const Dt=dt.getAttribute("data-mat-row"),Ut=dt.getAttribute("data-mat-col");if(Dt&&Ut)return this.rows[parseInt(Dt)][parseInt(Ut)]}return null}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.SBq),s.Y36(s.R0b))},Yt.\u0275cmp=s.Xpm({type:Yt,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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:se,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(be,dt){1&be&&(s.YNc(0,ce,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1),s.TgZ(2,"label",2),s._uU(3),s.qZA(),s.TgZ(4,"label",2),s._uU(5),s.qZA()),2&be&&(s.Q6J("ngIf",dt._firstRowOffset<dt.labelMinRequiredCells),s.xp6(1),s.Q6J("ngForOf",dt.rows),s.xp6(1),s.Q6J("id",dt._startDateLabelId),s.xp6(1),s.hij(" ",dt.startDateAccessibleName,"\n"),s.xp6(1),s.Q6J("id",dt._endDateLabelId),s.xp6(1),s.hij(" ",dt.endDateAccessibleName,"\n"))},dependencies:[T.mk,T.sg,T.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .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}'],encapsulation:2,changeDetection:0}),Yt})();function Fe(Yt){return"TD"===Yt?.nodeName}function oe(Yt){let Xt;return Fe(Yt)?Xt=Yt:Fe(Yt.parentNode)?Xt=Yt.parentNode:Fe(Yt.parentNode?.parentNode)&&(Xt=Yt.parentNode.parentNode),null!=Xt?.getAttribute("data-mat-row")?Xt:null}function ze(Yt,Xt,be){return null!==be&&Xt!==be&&Yt<be&&Yt===Xt}function Oe(Yt,Xt,be){return null!==Xt&&Xt!==be&&Yt>=Xt&&Yt===be}function he(Yt,Xt,be,dt){return dt&&null!==Xt&&null!==be&&Xt!==be&&Yt>=Xt&&Yt<=be}function Ae(Yt){const Xt=Yt.changedTouches[0];return document.elementFromPoint(Xt.clientX,Xt.clientY)}class ge{constructor(Xt,be){this.start=Xt,this.end=be}}let Ue=(()=>{class Yt{constructor(be,dt){this.selection=be,this._adapter=dt,this._selectionChanged=new d.x,this.selectionChanged=this._selectionChanged,this.selection=be}updateSelection(be,dt){const Dt=this.selection;this.selection=be,this._selectionChanged.next({selection:be,source:dt,oldValue:Dt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(be){return this._adapter.isDateInstance(be)&&this._adapter.isValid(be)}}return Yt.\u0275fac=function(be){s.$Z()},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),Je=(()=>{class Yt extends Ue{constructor(be){super(null,be)}add(be){super.updateSelection(be,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const be=new Yt(this._adapter);return be.updateSelection(this.selection,this),be}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.LFG(N._A))},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const rt={provide:Ue,deps:[[new s.FiY,new s.tp0,Ue],N._A],useFactory:function le(Yt,Xt){return Yt||new Je(Xt)}},Gt=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let $e=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(be){const dt=this._activeDate,Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),this._hasSameMonthAndYear(dt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(be){this._selected=be instanceof ge?be:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(be){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get maxDate(){return this._maxDate}set maxDate(be){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}constructor(be,dt,Dt,Ut,Ot){this._changeDetectorRef=be,this._dateFormats=dt,this._dateAdapter=Dt,this._dir=Ut,this._rangeStrategy=Ot,this._rerenderSubscription=M.w0.EMPTY,this.activeDrag=null,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Y.O)(null)).subscribe(()=>this._init())}ngOnChanges(be){const dt=be.comparisonStart||be.comparisonEnd;dt&&!dt.firstChange&&this._setRanges(this.selected),be.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(be){const dt=be.value,Dt=this._getDateFromDayOfMonth(dt);let Ut,Ot;this._selected instanceof ge?(Ut=this._getDateInCurrentMonth(this._selected.start),Ot=this._getDateInCurrentMonth(this._selected.end)):Ut=Ot=this._getDateInCurrentMonth(this._selected),(Ut!==dt||Ot!==dt)&&this.selectedChange.emit(Dt),this._userSelection.emit({value:Dt,event:be.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(be){const Dt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(be.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(be){const dt=this._activeDate,Dt=this._isRtl();switch(be.keyCode){case k.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Dt?1:-1);break;case k.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Dt?-1:1);break;case k.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case k.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case k.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case k.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case k.Ku:this.activeDate=be.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case k.VM:this.activeDate=be.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case k.K5:case k.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&be.preventDefault());case k.hY:return void(null!=this._previewEnd&&!(0,k.Vb)(be)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:be}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:be})),be.preventDefault(),be.stopPropagation()));default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),be.preventDefault()}_handleCalendarBodyKeyup(be){(be.keyCode===k.L_||be.keyCode===k.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:be}),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 be=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(be)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(be){this._matCalendarBody._focusActiveCell(be)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:be,value:dt}){if(this._rangeStrategy){const Dt=dt?dt.rawValue:null,Ut=this._rangeStrategy.createPreview(Dt,this.selected,be);if(this._previewStart=this._getCellCompareValue(Ut.start),this._previewEnd=this._getCellCompareValue(Ut.end),this.activeDrag&&Dt){const Ot=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Dt,be);Ot&&(this._previewStart=this._getCellCompareValue(Ot.start),this._previewEnd=this._getCellCompareValue(Ot.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(be){if(this.activeDrag)if(be.value){const dt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,be.value,be.event);this.dragEnded.emit({value:dt??null,event:be.event})}else this.dragEnded.emit({value:null,event:be.event})}_getDateFromDayOfMonth(be){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),be)}_initWeekdays(){const be=this._dateAdapter.getFirstDayOfWeek(),dt=this._dateAdapter.getDayOfWeekNames("narrow");let Ut=this._dateAdapter.getDayOfWeekNames("long").map((Ot,bi)=>({long:Ot,narrow:dt[bi]}));this._weekdays=Ut.slice(be).concat(Ut.slice(0,be))}_createWeekCells(){const be=this._dateAdapter.getNumDaysInMonth(this.activeDate),dt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Dt=0,Ut=this._firstWeekOffset;Dt<be;Dt++,Ut++){7==Ut&&(this._weeks.push([]),Ut=0);const Ot=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Dt+1),bi=this._shouldEnableDate(Ot),li=this._dateAdapter.format(Ot,this._dateFormats.display.dateA11yLabel),pi=this.dateClass?this.dateClass(Ot,"month"):void 0;this._weeks[this._weeks.length-1].push(new Ce(Dt+1,dt[Dt],li,bi,pi,this._getCellCompareValue(Ot),Ot))}}_shouldEnableDate(be){return!!be&&(!this.minDate||this._dateAdapter.compareDate(be,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(be,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(be))}_getDateInCurrentMonth(be){return be&&this._hasSameMonthAndYear(be,this.activeDate)?this._dateAdapter.getDate(be):null}_hasSameMonthAndYear(be,dt){return!(!be||!dt||this._dateAdapter.getMonth(be)!=this._dateAdapter.getMonth(dt)||this._dateAdapter.getYear(be)!=this._dateAdapter.getYear(dt))}_getCellCompareValue(be){if(be){const dt=this._dateAdapter.getYear(be),Dt=this._dateAdapter.getMonth(be),Ut=this._dateAdapter.getDate(be);return new Date(dt,Dt,Ut).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(be){be instanceof ge?(this._rangeStart=this._getCellCompareValue(be.start),this._rangeEnd=this._getCellCompareValue(be.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(be),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(be){return!this.dateFilter||this.dateFilter(be)}_clearPreview(){this._previewStart=this._previewEnd=null}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.sBO),s.Y36(N.sG,8),s.Y36(N._A,8),s.Y36(V.Is,8),s.Y36(Gt,8))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-month-view"]],viewQuery:function(be,dt){if(1&be&&s.Gf(fe,5),2&be){let Dt;s.iGM(Dt=s.CRH())&&(dt._matCalendarBody=Dt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:15,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","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(be,dt){1&be&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s.YNc(3,a,5,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA()(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(Ut){return dt._dateSelected(Ut)})("activeDateChange",function(Ut){return dt._updateActiveDate(Ut)})("previewChange",function(Ut){return dt._previewChanged(Ut)})("dragStarted",function(Ut){return dt.dragStarted.emit(Ut)})("dragEnded",function(Ut){return dt._dragEnded(Ut)})("keyup",function(Ut){return dt._handleCalendarBodyKeyup(Ut)})("keydown",function(Ut){return dt._handleCalendarBodyKeydown(Ut)}),s.qZA()()),2&be&&(s.xp6(3),s.Q6J("ngForOf",dt._weekdays),s.xp6(3),s.Q6J("label",dt._monthLabel)("rows",dt._weeks)("todayValue",dt._todayDate)("startValue",dt._rangeStart)("endValue",dt._rangeEnd)("comparisonStart",dt._comparisonRangeStart)("comparisonEnd",dt._comparisonRangeEnd)("previewStart",dt._previewStart)("previewEnd",dt._previewEnd)("isRange",dt._isRange)("labelMinRequiredCells",3)("activeCell",dt._dateAdapter.getDate(dt.activeDate)-1)("startDateAccessibleName",dt.startDateAccessibleName)("endDateAccessibleName",dt.endDateAccessibleName))},dependencies:[T.sg,fe],encapsulation:2,changeDetection:0}),Yt})();const Pe=24;let mt=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(be){let dt=this._activeDate;const Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),Et(this._dateAdapter,dt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(be){this._selected=be instanceof ge?be:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be)),this._setSelectedYear(be)}get minDate(){return this._minDate}set minDate(be){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get maxDate(){return this._maxDate}set maxDate(be){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}constructor(be,dt,Dt){this._changeDetectorRef=be,this._dateAdapter=dt,this._dir=Dt,this._rerenderSubscription=M.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const dt=this._dateAdapter.getYear(this._activeDate)-at(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Dt=0,Ut=[];Dt<Pe;Dt++)Ut.push(dt+Dt),4==Ut.length&&(this._years.push(Ut.map(Ot=>this._createCellForYear(Ot))),Ut=[]);this._changeDetectorRef.markForCheck()}_yearSelected(be){const dt=be.value,Dt=this._dateAdapter.createDate(dt,0,1),Ut=this._getDateFromYear(dt);this.yearSelected.emit(Dt),this.selectedChange.emit(Ut)}_updateActiveDate(be){const Dt=this._activeDate;this.activeDate=this._getDateFromYear(be.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(be){const dt=this._activeDate,Dt=this._isRtl();switch(be.keyCode){case k.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt?1:-1);break;case k.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt?-1:1);break;case k.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case k.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case k.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-at(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case k.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Pe-at(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case k.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,be.altKey?10*-Pe:-Pe);break;case k.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,be.altKey?10*Pe:Pe);break;case k.K5:case k.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),be.preventDefault()}_handleCalendarBodyKeyup(be){(be.keyCode===k.L_||be.keyCode===k.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:be}),this._selectionKeyPressed=!1)}_getActiveCell(){return at(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(be){const dt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(be,dt,1));return this._dateAdapter.createDate(be,dt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt))}_createCellForYear(be){const dt=this._dateAdapter.createDate(be,0,1),Dt=this._dateAdapter.getYearName(dt),Ut=this.dateClass?this.dateClass(dt,"multi-year"):void 0;return new Ce(be,Dt,Dt,this._shouldEnableYear(be),Ut)}_shouldEnableYear(be){if(null==be||this.maxDate&&be>this._dateAdapter.getYear(this.maxDate)||this.minDate&&be<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let Dt=this._dateAdapter.createDate(be,0,1);this._dateAdapter.getYear(Dt)==be;Dt=this._dateAdapter.addCalendarDays(Dt,1))if(this.dateFilter(Dt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(be){if(this._selectedYear=null,be instanceof ge){const dt=be.start||be.end;dt&&(this._selectedYear=this._dateAdapter.getYear(dt))}else be&&(this._selectedYear=this._dateAdapter.getYear(be))}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.sBO),s.Y36(N._A,8),s.Y36(V.Is,8))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-multi-year-view"]],viewQuery:function(be,dt){if(1&be&&s.Gf(fe,5),2&be){let Dt;s.iGM(Dt=s.CRH())&&(dt._matCalendarBody=Dt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(be,dt){1&be&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s._UZ(3,"th",2),s.qZA()(),s.TgZ(4,"tbody",3),s.NdJ("selectedValueChange",function(Ut){return dt._yearSelected(Ut)})("activeDateChange",function(Ut){return dt._updateActiveDate(Ut)})("keyup",function(Ut){return dt._handleCalendarBodyKeyup(Ut)})("keydown",function(Ut){return dt._handleCalendarBodyKeydown(Ut)}),s.qZA()()),2&be&&(s.xp6(4),s.Q6J("rows",dt._years)("todayValue",dt._todayYear)("startValue",dt._selectedYear)("endValue",dt._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",dt._getActiveCell()))},dependencies:[fe],encapsulation:2,changeDetection:0}),Yt})();function Et(Yt,Xt,be,dt,Dt){const Ut=Yt.getYear(Xt),Ot=Yt.getYear(be),bi=je(Yt,dt,Dt);return Math.floor((Ut-bi)/Pe)===Math.floor((Ot-bi)/Pe)}function at(Yt,Xt,be,dt){return function Ht(Yt,Xt){return(Yt%Xt+Xt)%Xt}(Yt.getYear(Xt)-je(Yt,be,dt),Pe)}function je(Yt,Xt,be){let dt=0;return be?dt=Yt.getYear(be)-Pe+1:Xt&&(dt=Yt.getYear(Xt)),dt}let Ct=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(be){let dt=this._activeDate;const Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),this._dateAdapter.getYear(dt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(be){this._selected=be instanceof ge?be:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be)),this._setSelectedMonth(be)}get minDate(){return this._minDate}set minDate(be){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get maxDate(){return this._maxDate}set maxDate(be){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}constructor(be,dt,Dt,Ut){this._changeDetectorRef=be,this._dateFormats=dt,this._dateAdapter=Dt,this._dir=Ut,this._rerenderSubscription=M.w0.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(be){const dt=be.value,Dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),dt,1);this.monthSelected.emit(Dt);const Ut=this._getDateFromMonth(dt);this.selectedChange.emit(Ut)}_updateActiveDate(be){const Dt=this._activeDate;this.activeDate=this._getDateFromMonth(be.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(be){const dt=this._activeDate,Dt=this._isRtl();switch(be.keyCode){case k.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Dt?1:-1);break;case k.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Dt?-1:1);break;case k.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case k.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case k.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case k.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case k.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,be.altKey?-10:-1);break;case k.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,be.altKey?10:1);break;case k.K5:case k.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),be.preventDefault()}_handleCalendarBodyKeyup(be){(be.keyCode===k.L_||be.keyCode===k.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:be}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let be=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(dt=>dt.map(Dt=>this._createCellForMonth(Dt,be[Dt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(be){return be&&this._dateAdapter.getYear(be)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(be):null}_getDateFromMonth(be){const dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),be,1),Dt=this._dateAdapter.getNumDaysInMonth(dt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),be,Math.min(this._dateAdapter.getDate(this.activeDate),Dt))}_createCellForMonth(be,dt){const Dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),be,1),Ut=this._dateAdapter.format(Dt,this._dateFormats.display.monthYearA11yLabel),Ot=this.dateClass?this.dateClass(Dt,"year"):void 0;return new Ce(be,dt.toLocaleUpperCase(),Ut,this._shouldEnableMonth(be),Ot)}_shouldEnableMonth(be){const dt=this._dateAdapter.getYear(this.activeDate);if(null==be||this._isYearAndMonthAfterMaxDate(dt,be)||this._isYearAndMonthBeforeMinDate(dt,be))return!1;if(!this.dateFilter)return!0;for(let Ut=this._dateAdapter.createDate(dt,be,1);this._dateAdapter.getMonth(Ut)==be;Ut=this._dateAdapter.addCalendarDays(Ut,1))if(this.dateFilter(Ut))return!0;return!1}_isYearAndMonthAfterMaxDate(be,dt){if(this.maxDate){const Dt=this._dateAdapter.getYear(this.maxDate),Ut=this._dateAdapter.getMonth(this.maxDate);return be>Dt||be===Dt&&dt>Ut}return!1}_isYearAndMonthBeforeMinDate(be,dt){if(this.minDate){const Dt=this._dateAdapter.getYear(this.minDate),Ut=this._dateAdapter.getMonth(this.minDate);return be<Dt||be===Dt&&dt<Ut}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(be){this._selectedMonth=be instanceof ge?this._getMonthInCurrentYear(be.start)||this._getMonthInCurrentYear(be.end):this._getMonthInCurrentYear(be)}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.sBO),s.Y36(N.sG,8),s.Y36(N._A,8),s.Y36(V.Is,8))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-year-view"]],viewQuery:function(be,dt){if(1&be&&s.Gf(fe,5),2&be){let Dt;s.iGM(Dt=s.CRH())&&(dt._matCalendarBody=Dt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(be,dt){1&be&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s._UZ(3,"th",2),s.qZA()(),s.TgZ(4,"tbody",3),s.NdJ("selectedValueChange",function(Ut){return dt._monthSelected(Ut)})("activeDateChange",function(Ut){return dt._updateActiveDate(Ut)})("keyup",function(Ut){return dt._handleCalendarBodyKeyup(Ut)})("keydown",function(Ut){return dt._handleCalendarBodyKeydown(Ut)}),s.qZA()()),2&be&&(s.xp6(4),s.Q6J("label",dt._yearLabel)("rows",dt._months)("todayValue",dt._todayMonth)("startValue",dt._selectedMonth)("endValue",dt._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",dt._dateAdapter.getMonth(dt.activeDate)))},dependencies:[fe],encapsulation:2,changeDetection:0}),Yt})(),Nt=1,Bt=(()=>{class Yt{constructor(be,dt,Dt,Ut,Ot){this._intl=be,this.calendar=dt,this._dateAdapter=Dt,this._dateFormats=Ut,this._id="mat-calendar-header-"+Nt++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>Ot.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}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:-Pe)}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:Pe)}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(be,dt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(be)==this._dateAdapter.getYear(dt)&&this._dateAdapter.getMonth(be)==this._dateAdapter.getMonth(dt):"year"==this.calendar.currentView?this._dateAdapter.getYear(be)==this._dateAdapter.getYear(dt):Et(this._dateAdapter,be,dt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const dt=this._dateAdapter.getYear(this.calendar.activeDate)-at(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Dt=dt+Pe-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(dt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Dt,0,1))]}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(qe),s.Y36((0,s.Gpc)(()=>Ne)),s.Y36(N._A,8),s.Y36(N.sG,8),s.Y36(s.sBO))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",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"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(be,dt){1&be&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return dt.currentPeriodClicked()}),s.TgZ(3,"span",3),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",4),s._UZ(6,"polygon",5),s.qZA()(),s.kcU(),s._UZ(7,"div",6),s.Hsn(8),s.TgZ(9,"button",7),s.NdJ("click",function(){return dt.previousClicked()}),s.qZA(),s.TgZ(10,"button",8),s.NdJ("click",function(){return dt.nextClicked()}),s.qZA()()(),s.TgZ(11,"label",9),s._uU(12),s.qZA()),2&be&&(s.xp6(2),s.uIk("aria-label",dt.periodButtonLabel)("aria-describedby",dt._periodButtonLabelId),s.xp6(2),s.Oqu(dt.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==dt.calendar.currentView),s.xp6(4),s.Q6J("disabled",!dt.previousEnabled()),s.uIk("aria-label",dt.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!dt.nextEnabled()),s.uIk("aria-label",dt.nextButtonLabel),s.xp6(1),s.Q6J("id",dt._periodButtonLabelId),s.xp6(1),s.Oqu(dt.periodButtonDescription))},dependencies:[x.lW,x.RK],encapsulation:2,changeDetection:0}),Yt})(),Ne=(()=>{class Yt{get startAt(){return this._startAt}set startAt(be){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get selected(){return this._selected}set selected(be){this._selected=be instanceof ge?be:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get minDate(){return this._minDate}set minDate(be){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get maxDate(){return this._maxDate}set maxDate(be){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get activeDate(){return this._clampedActiveDate}set activeDate(be){this._clampedActiveDate=this._dateAdapter.clampDate(be,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(be){const dt=this._currentView!==be?be:null;this._currentView=be,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),dt&&this.viewChanged.emit(dt)}constructor(be,dt,Dt,Ut){this._dateAdapter=dt,this._dateFormats=Dt,this._changeDetectorRef=Ut,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this._userDragDrop=new s.vpe,this._activeDrag=null,this.stateChanges=new d.x,this._intlChanges=be.changes.subscribe(()=>{Ut.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new g.C5(this.headerComponent||Bt),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(be){const dt=be.minDate&&!this._dateAdapter.sameDate(be.minDate.previousValue,be.minDate.currentValue)?be.minDate:void 0,Dt=be.maxDate&&!this._dateAdapter.sameDate(be.maxDate.previousValue,be.maxDate.currentValue)?be.maxDate:void 0,Ut=dt||Dt||be.dateFilter;if(Ut&&!Ut.firstChange){const Ot=this._getCurrentViewComponent();Ot&&(this._changeDetectorRef.detectChanges(),Ot._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(be){const dt=be.value;(this.selected instanceof ge||dt&&!this._dateAdapter.sameDate(dt,this.selected))&&this.selectedChange.emit(dt),this._userSelection.emit(be)}_yearSelectedInMultiYearView(be){this.yearSelected.emit(be)}_monthSelectedInYearView(be){this.monthSelected.emit(be)}_goToDateInView(be,dt){this.activeDate=be,this.currentView=dt}_dragStarted(be){this._activeDrag=be}_dragEnded(be){this._activeDrag&&(be.value&&this._userDragDrop.emit(be),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(qe),s.Y36(N._A,8),s.Y36(N.sG,8),s.Y36(s.sBO))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-calendar"]],viewQuery:function(be,dt){if(1&be&&(s.Gf($e,5),s.Gf(Ct,5),s.Gf(mt,5)),2&be){let Dt;s.iGM(Dt=s.CRH())&&(dt.monthView=Dt.first),s.iGM(Dt=s.CRH())&&(dt.yearView=Dt.first),s.iGM(Dt=s.CRH())&&(dt.multiYearView=Dt.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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[s._Bn([rt]),s.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","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",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","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(be,dt){1&be&&(s.YNc(0,l,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,_,1,11,"mat-month-view",2),s.YNc(3,O,1,6,"mat-year-view",3),s.YNc(4,R,1,6,"mat-multi-year-view",4),s.qZA()),2&be&&(s.Q6J("cdkPortalOutlet",dt._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",dt.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,t.kH,g.Pl,$e,Ct,mt],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;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.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-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Yt})();const $={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 ue=0;const Ie=new s.OlP("mat-datepicker-scroll-strategy"),ei={provide:Ie,deps:[e.aV],useFactory:function Xe(Yt){return()=>Yt.scrollStrategies.reposition()}},zt=(0,N.pj)(class{constructor(Yt){this._elementRef=Yt}});let ni=(()=>{class Yt extends zt{constructor(be,dt,Dt,Ut,Ot,bi){super(be),this._changeDetectorRef=dt,this._globalModel=Dt,this._dateAdapter=Ut,this._rangeSelectionStrategy=Ot,this._subscriptions=new M.w0,this._animationDone=new d.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=bi.closeCalendarLabel}ngOnInit(){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(be){const dt=this._model.selection,Dt=be.value,Ut=dt instanceof ge;if(Ut&&this._rangeSelectionStrategy){const Ot=this._rangeSelectionStrategy.selectionFinished(Dt,dt,be.event);this._model.updateSelection(Ot,this)}else Dt&&(Ut||!this._dateAdapter.sameDate(Dt,dt))&&this._model.add(Dt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(be){this._model.updateSelection(be.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(be){this._isAnimating="start"===be.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(be,dt){this._model=be?this._globalModel.clone():this._globalModel,this._actionsPortal=be,dt&&this._changeDetectorRef.detectChanges()}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Ue),s.Y36(N._A),s.Y36(Gt,8),s.Y36(qe))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker-content"]],viewQuery:function(be,dt){if(1&be&&s.Gf(Ne,5),2&be){let Dt;s.iGM(Dt=s.CRH())&&(dt._calendar=Dt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(be,dt){1&be&&s.WFA("@transformPanel.start",function(Ut){return dt._handleAnimationEvent(Ut)})("@transformPanel.done",function(Ut){return dt._handleAnimationEvent(Ut)}),2&be&&(s.d8E("@transformPanel",dt._animationState),s.ekj("mat-datepicker-content-touch",dt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(be,dt){if(1&be&&(s.TgZ(0,"div",0)(1,"mat-calendar",1),s.NdJ("yearSelected",function(Ut){return dt.datepicker._selectYear(Ut)})("monthSelected",function(Ut){return dt.datepicker._selectMonth(Ut)})("viewChanged",function(Ut){return dt.datepicker._viewChanged(Ut)})("_userSelection",function(Ut){return dt._handleUserSelection(Ut)})("_userDragDrop",function(Ut){return dt._handleUserDragDrop(Ut)}),s.qZA(),s.YNc(2,C,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return dt._closeButtonFocused=!0})("blur",function(){return dt._closeButtonFocused=!1})("click",function(){return dt.datepicker.close()}),s._uU(4),s.qZA()()),2&be){let Dt;s.ekj("mat-datepicker-content-container-with-custom-header",dt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",dt._actionsPortal),s.uIk("aria-modal",!0)("aria-labelledby",null!==(Dt=dt._dialogLabelId)&&void 0!==Dt?Dt:void 0),s.xp6(1),s.Q6J("id",dt.datepicker.id)("ngClass",dt.datepicker.panelClass)("startAt",dt.datepicker.startAt)("startView",dt.datepicker.startView)("minDate",dt.datepicker._getMinDate())("maxDate",dt.datepicker._getMaxDate())("dateFilter",dt.datepicker._getDateFilter())("headerComponent",dt.datepicker.calendarHeaderComponent)("selected",dt._getSelected())("dateClass",dt.datepicker.dateClass)("comparisonStart",dt.comparisonStart)("comparisonEnd",dt.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",dt.startDateAccessibleName)("endDateAccessibleName",dt.endDateAccessibleName),s.xp6(1),s.Q6J("cdkPortalOutlet",dt._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!dt._closeButtonFocused),s.Q6J("color",dt.color||"primary"),s.xp6(1),s.Oqu(dt._closeButtonText)}},dependencies:[T.mk,x.lW,t.mK,g.Pl,Ne],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[$.transformPanel,$.fadeInCalendar]},changeDetection:0}),Yt})(),pt=(()=>{class Yt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(be){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(be){this._color=be}get touchUi(){return this._touchUi}set touchUi(be){this._touchUi=(0,X.Ig)(be)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(be){const dt=(0,X.Ig)(be);dt!==this._disabled&&(this._disabled=dt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(be){this._restoreFocus=(0,X.Ig)(be)}get panelClass(){return this._panelClass}set panelClass(be){this._panelClass=(0,X.du)(be)}get opened(){return this._opened}set opened(be){(0,X.Ig)(be)?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}constructor(be,dt,Dt,Ut,Ot,bi,li){this._overlay=be,this._ngZone=dt,this._viewContainerRef=Dt,this._dateAdapter=Ot,this._dir=bi,this._model=li,this._inputStateChanges=M.w0.EMPTY,this._document=(0,s.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+ue++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new d.x,this._scrollStrategy=Ut}ngOnChanges(be){const dt=be.xPosition||be.yPosition;if(dt&&!dt.firstChange&&this._overlayRef){const Dt=this._overlayRef.getConfig().positionStrategy;Dt instanceof e._G&&(this._setConnectedPositions(Dt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(be){this._model.add(be)}_selectYear(be){this.yearSelected.emit(be)}_selectMonth(be){this.monthSelected.emit(be)}_viewChanged(be){this.viewChanged.emit(be)}registerInput(be){return this._inputStateChanges.unsubscribe(),this.datepickerInput=be,this._inputStateChanges=be.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(be){this._actionsPortal=be,this._componentRef?.instance._assignActions(be,!0)}removeActions(be){be===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,B.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const be=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,dt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Dt,location:Ut}=this._componentRef;Dt._startExitAnimation(),Dt._animationDone.pipe((0,W.q)(1)).subscribe(()=>{const Ot=this._document.activeElement;be&&(!Ot||Ot===this._document.activeElement||Ut.nativeElement.contains(Ot))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}be?setTimeout(dt):dt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(be){be.datepicker=this,be.color=this.color,be._dialogLabelId=this.datepickerInput.getOverlayLabelId(),be._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const be=this.touchUi,dt=new g.C5(ni,this._viewContainerRef),Dt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:be?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[be?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:be?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(be?"dialog":"popup")}));this._getCloseStream(Dt).subscribe(Ut=>{Ut&&Ut.preventDefault(),this.close()}),Dt.keydownEvents().subscribe(Ut=>{const Ot=Ut.keyCode;(Ot===k.LH||Ot===k.JH||Ot===k.oh||Ot===k.SV||Ot===k.Ku||Ot===k.VM)&&Ut.preventDefault()}),this._componentRef=Dt.attach(dt),this._forwardContentValues(this._componentRef.instance),be||this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>Dt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const be=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(be)}_setConnectedPositions(be){const dt="end"===this.xPosition?"end":"start",Dt="start"===dt?"end":"start",Ut="above"===this.yPosition?"bottom":"top",Ot="top"===Ut?"bottom":"top";return be.withPositions([{originX:dt,originY:Ot,overlayX:dt,overlayY:Ut},{originX:dt,originY:Ut,overlayX:dt,overlayY:Ot},{originX:Dt,originY:Ot,overlayX:Dt,overlayY:Ut},{originX:Dt,originY:Ut,overlayX:Dt,overlayY:Ot}])}_getCloseStream(be){const dt=["ctrlKey","shiftKey","metaKey"];return(0,w.T)(be.backdropClick(),be.detachments(),be.keydownEvents().pipe((0,Q.h)(Dt=>Dt.keyCode===k.hY&&!(0,k.Vb)(Dt)||this.datepickerInput&&(0,k.Vb)(Dt,"altKey")&&Dt.keyCode===k.LH&&dt.every(Ut=>!(0,k.Vb)(Dt,Ut)))))}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(e.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(Ie),s.Y36(N._A,8),s.Y36(V.Is,8),s.Y36(Ue))},Yt.\u0275dir=s.lG2({type:Yt,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:[s.TTD]}),Yt})(),ot=(()=>{class Yt extends pt{}return Yt.\u0275fac=function(){let Xt;return function(dt){return(Xt||(Xt=s.n5z(Yt)))(dt||Yt)}}(),Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([rt,{provide:pt,useExisting:Yt}]),s.qOj],decls:0,vars:0,template:function(be,dt){},encapsulation:2,changeDetection:0}),Yt})();class ft{constructor(Xt,be){this.target=Xt,this.targetElement=be,this.value=this.target.value}}let St=(()=>{class Yt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(be){this._assignValueProgrammatically(be)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(be){const dt=(0,X.Ig)(be),Dt=this._elementRef.nativeElement;this._disabled!==dt&&(this._disabled=dt,this.stateChanges.next(void 0)),dt&&this._isInitialized&&Dt.blur&&Dt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(be){this._model=be,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(dt=>{if(this._shouldHandleChangeEvent(dt)){const Dt=this._getValueFromModel(dt.selection);this._lastValueValid=this._isValidValue(Dt),this._cvaOnChange(Dt),this._onTouched(),this._formatValue(Dt),this.dateInput.emit(new ft(this,this._elementRef.nativeElement)),this.dateChange.emit(new ft(this,this._elementRef.nativeElement))}})}constructor(be,dt,Dt){this._elementRef=be,this._dateAdapter=dt,this._dateFormats=Dt,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new d.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=M.w0.EMPTY,this._localeSubscription=M.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Ut=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ut.value));return!Ot||this._matchesFilter(Ot)?null:{matDatepickerFilter:!0}},this._minValidator=Ut=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ut.value)),bi=this._getMinDate();return!bi||!Ot||this._dateAdapter.compareDate(bi,Ot)<=0?null:{matDatepickerMin:{min:bi,actual:Ot}}},this._maxValidator=Ut=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ut.value)),bi=this._getMaxDate();return!bi||!Ot||this._dateAdapter.compareDate(bi,Ot)>=0?null:{matDatepickerMax:{max:bi,actual:Ot}}},this._lastValueValid=!1,this._localeSubscription=dt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(be){(function gt(Yt,Xt){const be=Object.keys(Yt);for(let dt of be){const{previousValue:Dt,currentValue:Ut}=Yt[dt];if(!Xt.isDateInstance(Dt)||!Xt.isDateInstance(Ut))return!0;if(!Xt.sameDate(Dt,Ut))return!0}return!1})(be,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(be){this._validatorOnChange=be}validate(be){return this._validator?this._validator(be):null}writeValue(be){this._assignValueProgrammatically(be)}registerOnChange(be){this._cvaOnChange=be}registerOnTouched(be){this._onTouched=be}setDisabledState(be){this.disabled=be}_onKeydown(be){(0,k.Vb)(be,"altKey")&&be.keyCode===k.JH&&["ctrlKey","shiftKey","metaKey"].every(Ut=>!(0,k.Vb)(be,Ut))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),be.preventDefault())}_onInput(be){const dt=this._lastValueValid;let Dt=this._dateAdapter.parse(be,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Dt),Dt=this._dateAdapter.getValidDateOrNull(Dt);const Ut=!this._dateAdapter.sameDate(Dt,this.value);!Dt||Ut?this._cvaOnChange(Dt):(be&&!this.value&&this._cvaOnChange(Dt),dt!==this._lastValueValid&&this._validatorOnChange()),Ut&&(this._assignValue(Dt),this.dateInput.emit(new ft(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ft(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(be){this._elementRef.nativeElement.value=null!=be?this._dateAdapter.format(be,this._dateFormats.display.dateInput):""}_assignValue(be){this._model?(this._assignValueToModel(be),this._pendingValue=null):this._pendingValue=be}_isValidValue(be){return!be||this._dateAdapter.isValid(be)}_parentDisabled(){return!1}_assignValueProgrammatically(be){be=this._dateAdapter.deserialize(be),this._lastValueValid=this._isValidValue(be),be=this._dateAdapter.getValidDateOrNull(be),this._assignValue(be),this._formatValue(be)}_matchesFilter(be){const dt=this._getDateFilter();return!dt||dt(be)}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.SBq),s.Y36(N._A,8),s.Y36(N.sG,8))},Yt.\u0275dir=s.lG2({type:Yt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),Yt})();const tt={provide:me.JU,useExisting:(0,s.Gpc)(()=>vt),multi:!0},_t={provide:me.Cf,useExisting:(0,s.Gpc)(()=>vt),multi:!0};let vt=(()=>{class Yt extends St{set matDatepicker(be){be&&(this._datepicker=be,this._closedSubscription=be.closedStream.subscribe(()=>this._onTouched()),this._registerModel(be.registerInput(this)))}get min(){return this._min}set min(be){const dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be));this._dateAdapter.sameDate(dt,this._min)||(this._min=dt,this._validatorOnChange())}get max(){return this._max}set max(be){const dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(be));this._dateAdapter.sameDate(dt,this._max)||(this._max=dt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(be){const dt=this._matchesFilter(this.value);this._dateFilter=be,this._matchesFilter(this.value)!==dt&&this._validatorOnChange()}constructor(be,dt,Dt,Ut){super(be,dt,Dt),this._formField=Ut,this._closedSubscription=M.w0.EMPTY,this._validator=me.kI.compose(super._getValidators())}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(be){return be}_assignValueToModel(be){this._model&&this._model.updateSelection(be,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(be){return be.source!==this}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(s.SBq),s.Y36(N._A,8),s.Y36(N.sG,8),s.Y36(re.G_,8))},Yt.\u0275dir=s.lG2({type:Yt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(be,dt){1&be&&s.NdJ("input",function(Ut){return dt._onInput(Ut.target.value)})("change",function(){return dt._onChange()})("blur",function(){return dt._onBlur()})("keydown",function(Ut){return dt._onKeydown(Ut)}),2&be&&(s.Ikx("disabled",dt.disabled),s.uIk("aria-haspopup",dt._datepicker?"dialog":null)("aria-owns",(null==dt._datepicker?null:dt._datepicker.opened)&&dt._datepicker.id||null)("min",dt.min?dt._dateAdapter.toIso8601(dt.min):null)("max",dt.max?dt._dateAdapter.toIso8601(dt.max):null)("data-mat-calendar",dt._datepicker?dt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([tt,_t,{provide:ie.Jk,useExisting:Yt}]),s.qOj]}),Yt})(),Ve=(()=>{class Yt{}return Yt.\u0275fac=function(be){return new(be||Yt)},Yt.\u0275dir=s.lG2({type:Yt,selectors:[["","matDatepickerToggleIcon",""]]}),Yt})(),Tt=(()=>{class Yt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(be){this._disabled=(0,X.Ig)(be)}constructor(be,dt,Dt){this._intl=be,this._changeDetectorRef=dt,this._stateChanges=M.w0.EMPTY;const Ut=Number(Dt);this.tabIndex=Ut||0===Ut?Ut:null}ngOnChanges(be){be.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(be){this.datepicker&&!this.disabled&&(this.datepicker.open(),be.stopPropagation())}_watchStateChanges(){const be=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),dt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),Dt=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,be,dt,Dt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Yt.\u0275fac=function(be){return new(be||Yt)(s.Y36(qe),s.Y36(s.sBO),s.$8M("tabindex"))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(be,dt,Dt){if(1&be&&s.Suo(Dt,Ve,5),2&be){let Ut;s.iGM(Ut=s.CRH())&&(dt._customIcon=Ut.first)}},viewQuery:function(be,dt){if(1&be&&s.Gf(n,5),2&be){let Dt;s.iGM(Dt=s.CRH())&&(dt._button=Dt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(be,dt){1&be&&s.NdJ("click",function(Ut){return dt._open(Ut)}),2&be&&(s.uIk("tabindex",null)("data-mat-calendar",dt.datepicker?dt.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",dt.datepicker&&dt.datepicker.opened)("mat-accent",dt.datepicker&&"accent"===dt.datepicker.color)("mat-warn",dt.datepicker&&"warn"===dt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:F,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(be,dt){1&be&&(s.F$t(K),s.TgZ(0,"button",0,1),s.YNc(2,v,2,0,"svg",2),s.Hsn(3),s.qZA()),2&be&&(s.Q6J("disabled",dt.disabled)("disableRipple",dt.disableRipple),s.uIk("aria-haspopup",dt.datepicker?"dialog":null)("aria-label",dt.ariaLabel||dt._intl.openCalendarLabel)("tabindex",dt.disabled?-1:dt.tabIndex),s.xp6(2),s.Q6J("ngIf",!dt._customIcon))},dependencies:[T.O5,x.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Yt})(),Qi=(()=>{class Yt{}return Yt.\u0275fac=function(be){return new(be||Yt)},Yt.\u0275mod=s.oAB({type:Yt}),Yt.\u0275inj=s.cJS({providers:[qe,ei],imports:[T.ez,x.ot,e.U8,t.rt,g.eL,N.BQ,h.ZD]}),Yt})()},5412:(We,q,m)=>{"use strict";m.d(q,{WI:()=>Se,Bq:()=>fe,uw:()=>ge,ZT:()=>Je,Is:()=>ct,so:()=>qe});var t=m(8184),e=m(6895),g=m(4650),T=m(4761),s=m(3353),x=m(4080),h=m(9521),N=m(7579),d=m(9770),M=m(9646),w=m(445),L=m(8675);function k(Ze,xt){}class V{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let W=(()=>{class Ze extends x.en{constructor(Me,$e,Pe,J,mt,Et,at,je){super(),this._elementRef=Me,this._focusTrapFactory=$e,this._config=J,this._interactivityChecker=mt,this._ngZone=Et,this._overlayRef=at,this._focusMonitor=je,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ht=>{this._portalOutlet.hasAttached();const Ct=this._portalOutlet.attachDomPortal(Ht);return this._contentAttached(),Ct},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Pe}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(Me){this._portalOutlet.hasAttached();const $e=this._portalOutlet.attachComponentPortal(Me);return this._contentAttached(),$e}attachTemplatePortal(Me){this._portalOutlet.hasAttached();const $e=this._portalOutlet.attachTemplatePortal(Me);return this._contentAttached(),$e}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Me,$e){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Pe=()=>{Me.removeEventListener("blur",Pe),Me.removeEventListener("mousedown",Pe),Me.removeAttribute("tabindex")};Me.addEventListener("blur",Pe),Me.addEventListener("mousedown",Pe)})),Me.focus($e)}_focusByCssSelector(Me,$e){let Pe=this._elementRef.nativeElement.querySelector(Me);Pe&&this._forceFocus(Pe,$e)}_trapFocus(){const Me=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Me.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then($e=>{$e||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 Me=this._config.restoreFocus;let $e=null;if("string"==typeof Me?$e=this._document.querySelector(Me):"boolean"==typeof Me?$e=Me?this._elementFocusedBeforeDialogWasOpened:null:Me&&($e=Me),this._config.restoreFocus&&$e&&"function"==typeof $e.focus){const Pe=(0,s.ht)(),J=this._elementRef.nativeElement;(!Pe||Pe===this._document.body||Pe===J||J.contains(Pe))&&(this._focusMonitor?(this._focusMonitor.focusVia($e,this._closeInteractionType),this._closeInteractionType=null):$e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Me=this._elementRef.nativeElement,$e=(0,s.ht)();return Me===$e||Me.contains($e)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,s.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Ze.\u0275fac=function(Me){return new(Me||Ze)(g.Y36(g.SBq),g.Y36(T.qV),g.Y36(e.K0,8),g.Y36(V),g.Y36(T.ic),g.Y36(g.R0b),g.Y36(t.Iu),g.Y36(T.tE))},Ze.\u0275cmp=g.Xpm({type:Ze,selectors:[["cdk-dialog-container"]],viewQuery:function(Me,$e){if(1&Me&&g.Gf(x.Pl,7),2&Me){let Pe;g.iGM(Pe=g.CRH())&&($e._portalOutlet=Pe.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Me,$e){2&Me&&g.uIk("id",$e._config.id||null)("role",$e._config.role)("aria-modal",$e._config.ariaModal)("aria-labelledby",$e._config.ariaLabel?null:$e._ariaLabelledBy)("aria-label",$e._config.ariaLabel)("aria-describedby",$e._config.ariaDescribedBy||null)},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Me,$e){1&Me&&g.YNc(0,k,0,0,"ng-template",0)},dependencies:[x.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ze})();class Y{constructor(xt,Me){this.overlayRef=xt,this.config=Me,this.closed=new N.x,this.disableClose=Me.disableClose,this.backdropClick=xt.backdropClick(),this.keydownEvents=xt.keydownEvents(),this.outsidePointerEvents=xt.outsidePointerEvents(),this.id=Me.id,this.keydownEvents.subscribe($e=>{$e.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)($e)&&($e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=xt.detachments().subscribe(()=>{!1!==Me.closeOnOverlayDetachments&&this.close()})}close(xt,Me){if(this.containerInstance){const $e=this.closed;this.containerInstance._closeInteractionType=Me?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),$e.next(xt),$e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(xt="",Me=""){return this.overlayRef.updateSize({width:xt,height:Me}),this}addPanelClass(xt){return this.overlayRef.addPanelClass(xt),this}removePanelClass(xt){return this.overlayRef.removePanelClass(xt),this}}const Q=new g.OlP("DialogScrollStrategy"),X=new g.OlP("DialogData"),ee=new g.OlP("DefaultDialogConfig"),re={provide:Q,deps:[t.aV],useFactory:function me(Ze){return()=>Ze.scrollStrategies.block()}};let ie=0,se=(()=>{class Ze{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(Me,$e,Pe,J,mt,Et){this._overlay=Me,this._injector=$e,this._defaultOptions=Pe,this._parentDialog=J,this._overlayContainer=mt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N.x,this._afterOpenedAtThisLevel=new N.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Et}open(Me,$e){($e={...this._defaultOptions||new V,...$e}).id=$e.id||"cdk-dialog-"+ie++,$e.id&&this.getDialogById($e.id);const J=this._getOverlayConfig($e),mt=this._overlay.create(J),Et=new Y(mt,$e),at=this._attachContainer(mt,Et,$e);return Et.containerInstance=at,this._attachDialogContent(Me,Et,at,$e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Et),Et.closed.subscribe(()=>this._removeOpenDialog(Et,!0)),this.afterOpened.next(Et),Et}closeAll(){ce(this.openDialogs,Me=>Me.close())}getDialogById(Me){return this.openDialogs.find($e=>$e.id===Me)}ngOnDestroy(){ce(this._openDialogsAtThisLevel,Me=>{!1===Me.config.closeOnDestroy&&this._removeOpenDialog(Me,!1)}),ce(this._openDialogsAtThisLevel,Me=>Me.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(Me){const $e=new t.X_({positionStrategy:Me.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:Me.scrollStrategy||this._scrollStrategy(),panelClass:Me.panelClass,hasBackdrop:Me.hasBackdrop,direction:Me.direction,minWidth:Me.minWidth,minHeight:Me.minHeight,maxWidth:Me.maxWidth,maxHeight:Me.maxHeight,width:Me.width,height:Me.height,disposeOnNavigation:Me.closeOnNavigation});return Me.backdropClass&&($e.backdropClass=Me.backdropClass),$e}_attachContainer(Me,$e,Pe){const J=Pe.injector||Pe.viewContainerRef?.injector,mt=[{provide:V,useValue:Pe},{provide:Y,useValue:$e},{provide:t.Iu,useValue:Me}];let Et;Pe.container?"function"==typeof Pe.container?Et=Pe.container:(Et=Pe.container.type,mt.push(...Pe.container.providers(Pe))):Et=W;const at=new x.C5(Et,Pe.viewContainerRef,g.zs3.create({parent:J||this._injector,providers:mt}),Pe.componentFactoryResolver);return Me.attach(at).instance}_attachDialogContent(Me,$e,Pe,J){if(Me instanceof g.Rgc){const mt=this._createInjector(J,$e,Pe,void 0);let Et={$implicit:J.data,dialogRef:$e};J.templateContext&&(Et={...Et,..."function"==typeof J.templateContext?J.templateContext():J.templateContext}),Pe.attachTemplatePortal(new x.UE(Me,null,Et,mt))}else{const mt=this._createInjector(J,$e,Pe,this._injector),Et=Pe.attachComponentPortal(new x.C5(Me,J.viewContainerRef,mt,J.componentFactoryResolver));$e.componentInstance=Et.instance}}_createInjector(Me,$e,Pe,J){const mt=Me.injector||Me.viewContainerRef?.injector,Et=[{provide:X,useValue:Me.data},{provide:Y,useValue:$e}];return Me.providers&&("function"==typeof Me.providers?Et.push(...Me.providers($e,Me,Pe)):Et.push(...Me.providers)),Me.direction&&(!mt||!mt.get(w.Is,null,{optional:!0}))&&Et.push({provide:w.Is,useValue:{value:Me.direction,change:(0,M.of)()}}),g.zs3.create({parent:mt||J,providers:Et})}_removeOpenDialog(Me,$e){const Pe=this.openDialogs.indexOf(Me);Pe>-1&&(this.openDialogs.splice(Pe,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((J,mt)=>{J?mt.setAttribute("aria-hidden",J):mt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),$e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Me=this._overlayContainer.getContainerElement();if(Me.parentElement){const $e=Me.parentElement.children;for(let Pe=$e.length-1;Pe>-1;Pe--){const J=$e[Pe];J!==Me&&"SCRIPT"!==J.nodeName&&"STYLE"!==J.nodeName&&!J.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(J,J.getAttribute("aria-hidden")),J.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const Me=this._parentDialog;return Me?Me._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Ze.\u0275fac=function(Me){return new(Me||Ze)(g.LFG(t.aV),g.LFG(g.zs3),g.LFG(ee,8),g.LFG(Ze,12),g.LFG(t.Xj),g.LFG(Q))},Ze.\u0275prov=g.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ce(Ze,xt){let Me=Ze.length;for(;Me--;)xt(Ze[Me])}let Te=(()=>{class Ze{}return Ze.\u0275fac=function(Me){return new(Me||Ze)},Ze.\u0275mod=g.oAB({type:Ze}),Ze.\u0275inj=g.cJS({providers:[se,re],imports:[t.U8,x.eL,T.rt,x.eL]}),Ze})();var S=m(1281),i=m(6451),a=m(9300),u=m(5698),l=m(3238);function O(Ze,xt){}m(7340);class R{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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const C="mdc-dialog--open",n="mdc-dialog--opening",v="mdc-dialog--closing";let G=(()=>{class Ze extends W{constructor(Me,$e,Pe,J,mt,Et,at,je){super(Me,$e,Pe,J,mt,Et,at,je),this._animationStateChanged=new g.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Me){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})}}return Ze.\u0275fac=function(Me){return new(Me||Ze)(g.Y36(g.SBq),g.Y36(T.qV),g.Y36(e.K0,8),g.Y36(R),g.Y36(T.ic),g.Y36(g.R0b),g.Y36(t.Iu),g.Y36(T.tE))},Ze.\u0275cmp=g.Xpm({type:Ze,selectors:[["ng-component"]],features:[g.qOj],decls:0,vars:0,template:function(Me,$e){},encapsulation:2}),Ze})();const ye="--mat-dialog-transition-duration";function Ee(Ze){return null==Ze?null:"number"==typeof Ze?Ze:Ze.endsWith("ms")?(0,S.su)(Ze.substring(0,Ze.length-2)):Ze.endsWith("s")?1e3*(0,S.su)(Ze.substring(0,Ze.length-1)):"0"===Ze?0:null}let pe=(()=>{class Ze extends G{constructor(Me,$e,Pe,J,mt,Et,at,je,Ht){super(Me,$e,Pe,J,mt,Et,at,Ht),this._animationMode=je,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?Ee(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?Ee(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ye,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(n,C)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(C),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(C),this._animationsEnabled?(this._hostElement.style.setProperty(ye,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(v)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(n,v)}_waitForAnimationToComplete(Me,$e){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout($e,Me)}_requestAnimationFrame(Me){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):Me()})}}return Ze.\u0275fac=function(Me){return new(Me||Ze)(g.Y36(g.SBq),g.Y36(T.qV),g.Y36(e.K0,8),g.Y36(R),g.Y36(T.ic),g.Y36(g.R0b),g.Y36(t.Iu),g.Y36(g.QbO,8),g.Y36(T.tE))},Ze.\u0275cmp=g.Xpm({type:Ze,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Me,$e){2&Me&&(g.Ikx("id",$e._config.id),g.uIk("aria-modal",$e._config.ariaModal)("role",$e._config.role)("aria-labelledby",$e._config.ariaLabel?null:$e._ariaLabelledBy)("aria-label",$e._config.ariaLabel)("aria-describedby",$e._config.ariaDescribedBy||null),g.ekj("_mat-animation-noopable",!$e._animationsEnabled))},features:[g.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Me,$e){1&Me&&(g.TgZ(0,"div",0)(1,"div",1),g.YNc(2,O,0,0,"ng-template",2),g.qZA()())},dependencies:[x.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),Ze})();class qe{constructor(xt,Me,$e){this._ref=xt,this._containerInstance=$e,this._afterOpened=new N.x,this._beforeClosed=new N.x,this._state=0,this.disableClose=Me.disableClose,this.id=xt.id,$e._animationStateChanged.pipe((0,a.h)(Pe=>"opened"===Pe.state),(0,u.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),$e._animationStateChanged.pipe((0,a.h)(Pe=>"closed"===Pe.state),(0,u.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),xt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,i.T)(this.backdropClick(),this.keydownEvents().pipe((0,a.h)(Pe=>Pe.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(Pe)))).subscribe(Pe=>{this.disableClose||(Pe.preventDefault(),Ce(this,"keydown"===Pe.type?"keyboard":"mouse"))})}close(xt){this._result=xt,this._containerInstance._animationStateChanged.pipe((0,a.h)(Me=>"closing"===Me.state),(0,u.q)(1)).subscribe(Me=>{this._beforeClosed.next(xt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Me.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(xt){let Me=this._ref.config.positionStrategy;return xt&&(xt.left||xt.right)?xt.left?Me.left(xt.left):Me.right(xt.right):Me.centerHorizontally(),xt&&(xt.top||xt.bottom)?xt.top?Me.top(xt.top):Me.bottom(xt.bottom):Me.centerVertically(),this._ref.updatePosition(),this}updateSize(xt="",Me=""){return this._ref.updateSize(xt,Me),this}addPanelClass(xt){return this._ref.addPanelClass(xt),this}removePanelClass(xt){return this._ref.removePanelClass(xt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Ce(Ze,xt,Me){return Ze._closeInteractionType=xt,Ze.close(Me)}const Se=new g.OlP("MatMdcDialogData"),fe=new g.OlP("mat-mdc-dialog-default-options"),Fe=new g.OlP("mat-mdc-dialog-scroll-strategy"),ze={provide:Fe,deps:[t.aV],useFactory:function oe(Ze){return()=>Ze.scrollStrategies.block()}};let he=0,Ae=(()=>{class Ze{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Me=this._parentDialog;return Me?Me._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(Me,$e,Pe,J,mt,Et,at,je,Ht,Ct){this._overlay=Me,this._defaultOptions=Pe,this._parentDialog=J,this._dialogRefConstructor=at,this._dialogContainerType=je,this._dialogDataToken=Ht,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N.x,this._afterOpenedAtThisLevel=new N.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=R,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Et,this._dialog=$e.get(se)}open(Me,$e){let Pe;($e={...this._defaultOptions||new R,...$e}).id=$e.id||`${this._idPrefix}${he++}`,$e.scrollStrategy=$e.scrollStrategy||this._scrollStrategy();const J=this._dialog.open(Me,{...$e,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:$e},{provide:V,useValue:$e}]},templateContext:()=>({dialogRef:Pe}),providers:(mt,Et,at)=>(Pe=new this._dialogRefConstructor(mt,$e,at),Pe.updatePosition($e?.position),[{provide:this._dialogContainerType,useValue:at},{provide:this._dialogDataToken,useValue:Et.data},{provide:this._dialogRefConstructor,useValue:Pe}])});return Pe.componentInstance=J.componentInstance,this.openDialogs.push(Pe),this.afterOpened.next(Pe),Pe.afterClosed().subscribe(()=>{const mt=this.openDialogs.indexOf(Pe);mt>-1&&(this.openDialogs.splice(mt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Pe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Me){return this.openDialogs.find($e=>$e.id===Me)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Me){let $e=Me.length;for(;$e--;)Me[$e].close()}}return Ze.\u0275fac=function(Me){g.$Z()},Ze.\u0275prov=g.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),ge=(()=>{class Ze extends Ae{constructor(Me,$e,Pe,J,mt,Et,at,je){super(Me,$e,J,Et,at,mt,qe,pe,Se,je),this._idPrefix="mat-mdc-dialog-"}}return Ze.\u0275fac=function(Me){return new(Me||Ze)(g.LFG(t.aV),g.LFG(g.zs3),g.LFG(e.Ye,8),g.LFG(fe,8),g.LFG(Fe),g.LFG(Ze,12),g.LFG(t.Xj),g.LFG(g.QbO,8))},Ze.\u0275prov=g.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),Je=(()=>{class Ze{constructor(Me,$e,Pe){this.dialogRef=Me,this._elementRef=$e,this._dialog=Pe,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Qe(Ze,xt){let Me=Ze.nativeElement.parentElement;for(;Me&&!Me.classList.contains("mat-mdc-dialog-container");)Me=Me.parentElement;return Me?xt.find($e=>$e.id===Me.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Me){const $e=Me._matDialogClose||Me._matDialogCloseResult;$e&&(this.dialogResult=$e.currentValue)}_onButtonClick(Me){Ce(this.dialogRef,0===Me.screenX&&0===Me.screenY?"keyboard":"mouse",this.dialogResult)}}return Ze.\u0275fac=function(Me){return new(Me||Ze)(g.Y36(qe,8),g.Y36(g.SBq),g.Y36(ge))},Ze.\u0275dir=g.lG2({type:Ze,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Me,$e){1&Me&&g.NdJ("click",function(J){return $e._onButtonClick(J)}),2&Me&&g.uIk("aria-label",$e.ariaLabel||null)("type",$e.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[g.TTD]}),Ze})(),ct=(()=>{class Ze{}return Ze.\u0275fac=function(Me){return new(Me||Ze)},Ze.\u0275mod=g.oAB({type:Ze}),Ze.\u0275inj=g.cJS({providers:[ge,ze],imports:[Te,t.U8,x.eL,l.BQ,l.BQ]}),Ze})()},4850:(We,q,m)=>{"use strict";m.d(q,{d:()=>T,t:()=>s});var t=m(4650),e=m(1281),g=m(3238);let T=(()=>{class x{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(N){this._vertical=(0,e.Ig)(N)}get inset(){return this._inset}set inset(N){this._inset=(0,e.Ig)(N)}}return x.\u0275fac=function(N){return new(N||x)},x.\u0275cmp=t.Xpm({type:x,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(N,d){2&N&&(t.uIk("aria-orientation",d.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",d.vertical)("mat-divider-horizontal",!d.vertical)("mat-divider-inset",d.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(N,d){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),x})(),s=(()=>{class x{}return x.\u0275fac=function(N){return new(N||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[g.BQ,g.BQ]}),x})()},752:(We,q,m)=>{"use strict";m.d(q,{pp:()=>Ce,To:()=>Se,ib:()=>K,u4:()=>pe,yz:()=>Ee,yK:()=>qe});var t=m(4650),e=m(5017),g=m(1281),T=m(7579),s=m(727);let x=0;const h=new t.OlP("CdkAccordion");let N=(()=>{class fe{constructor(){this._stateChanges=new T.x,this._openCloseAllActions=new T.x,this.id="cdk-accordion-"+x++,this._multi=!1}get multi(){return this._multi}set multi(oe){this._multi=(0,g.Ig)(oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:h,useExisting:fe}]),t.TTD]}),fe})(),d=0,M=(()=>{class fe{get expanded(){return this._expanded}set expanded(oe){oe=(0,g.Ig)(oe),this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(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(oe){this._disabled=(0,g.Ig)(oe)}constructor(oe,ze,Oe){this.accordion=oe,this._changeDetectorRef=ze,this._expansionDispatcher=Oe,this._openCloseAllSubscription=s.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+d++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Oe.listen((he,Ae)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ae&&this.id!==he&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}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(oe=>{this.disabled||(this.expanded=oe)})}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(h,12),t.Y36(t.sBO),t.Y36(e.A8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:h,useValue:void 0}])]}),fe})(),w=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({}),fe})();var L=m(4080),k=m(6895),V=m(3238),B=m(4761),W=m(1884),Y=m(8675),Q=m(9300),X=m(5698),ee=m(9521),me=m(515),re=m(6451),ie=m(7340);const se=["body"];function ce(fe,Fe){}const Te=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],S=["mat-expansion-panel-header","*","mat-action-row"];function i(fe,Fe){if(1&fe&&t._UZ(0,"span",2),2&fe){const oe=t.oxw();t.Q6J("@indicatorRotate",oe._getExpandedState())}}const a=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],l=new t.OlP("MAT_ACCORDION"),_="225ms cubic-bezier(0.4,0.0,0.2,1)",O={indicatorRotate:(0,ie.X$)("indicatorRotate",[(0,ie.SB)("collapsed, void",(0,ie.oB)({transform:"rotate(0deg)"})),(0,ie.SB)("expanded",(0,ie.oB)({transform:"rotate(180deg)"})),(0,ie.eR)("expanded <=> collapsed, void => collapsed",(0,ie.jt)(_))]),bodyExpansion:(0,ie.X$)("bodyExpansion",[(0,ie.SB)("collapsed, void",(0,ie.oB)({height:"0px",visibility:"hidden"})),(0,ie.SB)("expanded",(0,ie.oB)({height:"*",visibility:"visible"})),(0,ie.eR)("expanded <=> collapsed, void => collapsed",(0,ie.jt)(_))])},R=new t.OlP("MAT_EXPANSION_PANEL");let C=(()=>{class fe{constructor(oe,ze){this._template=oe,this._expansionPanel=ze}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(t.Rgc),t.Y36(R,8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["ng-template","matExpansionPanelContent",""]]}),fe})(),n=0;const v=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let K=(()=>{class fe extends M{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=(0,g.Ig)(oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}constructor(oe,ze,Oe,he,Ae,ge,Ue){super(oe,ze,Oe),this._viewContainerRef=he,this._animationMode=ge,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new T.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new T.x,this.accordion=oe,this._document=Ae,this._bodyAnimationDone.pipe((0,W.x)((Je,Re)=>Je.fromState===Re.fromState&&Je.toState===Re.toState)).subscribe(Je=>{"void"!==Je.fromState&&("expanded"===Je.toState?this.afterExpand.emit():"collapsed"===Je.toState&&this.afterCollapse.emit())}),Ue&&(this.hideToggle=Ue.hideToggle)}_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._lazyContent._expansionPanel===this&&this.opened.pipe((0,Y.O)(null),(0,Q.h)(()=>this.expanded&&!this._portal),(0,X.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,ze=this._body.nativeElement;return oe===ze||ze.contains(oe)}return!1}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(l,12),t.Y36(t.sBO),t.Y36(e.A8),t.Y36(t.s_b),t.Y36(k.K0),t.Y36(t.QbO,8),t.Y36(v,8))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-expansion-panel"]],contentQueries:function(oe,ze,Oe){if(1&oe&&t.Suo(Oe,C,5),2&oe){let he;t.iGM(he=t.CRH())&&(ze._lazyContent=he.first)}},viewQuery:function(oe,ze){if(1&oe&&t.Gf(se,5),2&oe){let Oe;t.iGM(Oe=t.CRH())&&(ze._body=Oe.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(oe,ze){2&oe&&t.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:[t._Bn([{provide:l,useValue:void 0},{provide:R,useExisting:fe}]),t.qOj,t.TTD],ngContentSelectors:S,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(oe,ze){1&oe&&(t.F$t(Te),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(he){return ze._bodyAnimationDone.next(he)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,ce,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&oe&&(t.xp6(1),t.Q6J("@bodyExpansion",ze._getExpandedState())("id",ze.id),t.uIk("aria-labelledby",ze._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",ze._portal))},dependencies:[L.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[O.bodyExpansion]},changeDetection:0}),fe})();class G{}const ye=(0,V.sb)(G);let Ee=(()=>{class fe extends ye{constructor(oe,ze,Oe,he,Ae,ge,Ue){super(),this.panel=oe,this._element=ze,this._focusMonitor=Oe,this._changeDetectorRef=he,this._animationMode=ge,this._parentChangeSubscription=s.w0.EMPTY;const Je=oe.accordion?oe.accordion._stateChanges.pipe((0,Q.h)(Re=>!(!Re.hideToggle&&!Re.togglePosition))):me.E;this.tabIndex=parseInt(Ue||"")||0,this._parentChangeSubscription=(0,re.T)(oe.opened,oe.closed,Je,oe._inputChanges.pipe((0,Q.h)(Re=>!!(Re.hideToggle||Re.disabled||Re.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Q.h)(()=>oe._containsFocus())).subscribe(()=>Oe.focusVia(ze,"program")),Ae&&(this.expandedHeight=Ae.expandedHeight,this.collapsedHeight=Ae.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,ze){oe?this._focusMonitor.focusVia(this._element,oe,ze):this._element.nativeElement.focus(ze)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(K,1),t.Y36(t.SBq),t.Y36(B.tE),t.Y36(t.sBO),t.Y36(v,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,ze){1&oe&&t.NdJ("click",function(){return ze._toggle()})("keydown",function(he){return ze._keydown(he)}),2&oe&&(t.uIk("id",ze.panel._headerId)("tabindex",ze.tabIndex)("aria-controls",ze._getPanelId())("aria-expanded",ze._isExpanded())("aria-disabled",ze.panel.disabled),t.Udp("height",ze._getHeaderHeight()),t.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:[t.qOj],ngContentSelectors:u,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(oe,ze){1&oe&&(t.F$t(a),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,i,1,1,"span",1)),2&oe&&(t.ekj("mat-content-hide-toggle",!ze._showToggle()),t.xp6(4),t.Q6J("ngIf",ze._showToggle()))},dependencies:[k.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-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[O.indicatorRotate]},changeDetection:0}),fe})(),pe=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),fe})(),qe=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),fe})(),Ce=(()=>{class fe extends N{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(oe){this._hideToggle=(0,g.Ig)(oe)}ngAfterContentInit(){this._headers.changes.pipe((0,Y.O)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(ze=>ze.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new B.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return fe.\u0275fac=function(){let Fe;return function(ze){return(Fe||(Fe=t.n5z(fe)))(ze||fe)}}(),fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-accordion"]],contentQueries:function(oe,ze,Oe){if(1&oe&&t.Suo(Oe,Ee,5),2&oe){let he;t.iGM(he=t.CRH())&&(ze._headers=he)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(oe,ze){2&oe&&t.ekj("mat-accordion-multi",ze.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:l,useExisting:fe}]),t.qOj]}),fe})(),Se=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({imports:[k.ez,V.BQ,w,L.eL]}),fe})()},9549:(We,q,m)=>{"use strict";m.d(q,{Eo:()=>Ae,G_:()=>Re,KE:()=>Ze,R9:()=>Ce,TO:()=>F,bx:()=>ye,hX:()=>n,lN:()=>xt});var t=m(4650),e=m(445),g=m(3353),T=m(7579),s=m(6451),x=m(2722),h=m(6895),N=m(1281),d=m(7340),M=m(9643),w=m(3238);const L=["matFormFieldNotchedOutline",""],k=["*"],V=["textField"],B=["iconPrefixContainer"],W=["textPrefixContainer"];function Y(Me,$e){1&Me&&t._UZ(0,"span",19)}function Q(Me,$e){if(1&Me){const Pe=t.EpF();t.TgZ(0,"label",17),t.NdJ("cdkObserveContent",function(){t.CHM(Pe);const mt=t.oxw(2);return t.KtG(mt._refreshOutlineNotchWidth())}),t.Hsn(1,1),t.YNc(2,Y,1,0,"span",18),t.qZA()}if(2&Me){const Pe=t.oxw(2);t.Q6J("floating",Pe._shouldLabelFloat())("cdkObserveContentDisabled",!Pe._hasOutline())("id",Pe._labelId),t.uIk("for",Pe._control.id)("aria-owns",Pe._control.id),t.xp6(2),t.Q6J("ngIf",!Pe.hideRequiredMarker&&Pe._control.required)}}function X(Me,$e){if(1&Me&&t.YNc(0,Q,3,6,"label",16),2&Me){const Pe=t.oxw();t.Q6J("ngIf",Pe._hasFloatingLabel())}}function ee(Me,$e){1&Me&&t._UZ(0,"div",20)}function me(Me,$e){}function re(Me,$e){if(1&Me&&t.YNc(0,me,0,0,"ng-template",22),2&Me){t.oxw(2);const Pe=t.MAs(1);t.Q6J("ngTemplateOutlet",Pe)}}function ie(Me,$e){if(1&Me&&(t.TgZ(0,"div",21),t.YNc(1,re,1,1,"ng-template",9),t.qZA()),2&Me){const Pe=t.oxw();t.Q6J("matFormFieldNotchedOutlineOpen",Pe._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",Pe._labelWidth),t.xp6(1),t.Q6J("ngIf",!Pe._forceDisplayInfixLabel())}}function se(Me,$e){1&Me&&(t.TgZ(0,"div",23,24),t.Hsn(2,2),t.qZA())}function ce(Me,$e){1&Me&&(t.TgZ(0,"div",25,26),t.Hsn(2,3),t.qZA())}function Te(Me,$e){}function S(Me,$e){if(1&Me&&t.YNc(0,Te,0,0,"ng-template",22),2&Me){t.oxw();const Pe=t.MAs(1);t.Q6J("ngTemplateOutlet",Pe)}}function i(Me,$e){1&Me&&(t.TgZ(0,"div",27),t.Hsn(1,4),t.qZA())}function a(Me,$e){1&Me&&(t.TgZ(0,"div",28),t.Hsn(1,5),t.qZA())}function u(Me,$e){1&Me&&t._UZ(0,"div",29)}function l(Me,$e){if(1&Me&&(t.TgZ(0,"div",30),t.Hsn(1,6),t.qZA()),2&Me){const Pe=t.oxw();t.Q6J("@transitionMessages",Pe._subscriptAnimationState)}}function _(Me,$e){if(1&Me&&(t.TgZ(0,"mat-hint",34),t._uU(1),t.qZA()),2&Me){const Pe=t.oxw(2);t.Q6J("id",Pe._hintLabelId),t.xp6(1),t.Oqu(Pe.hintLabel)}}function O(Me,$e){if(1&Me&&(t.TgZ(0,"div",31),t.YNc(1,_,2,2,"mat-hint",32),t.Hsn(2,7),t._UZ(3,"div",33),t.Hsn(4,8),t.qZA()),2&Me){const Pe=t.oxw();t.Q6J("@transitionMessages",Pe._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",Pe.hintLabel)}}const R=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],C=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let n=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["mat-label"]]}),Me})(),v=0;const K=new t.OlP("MatError");let F=(()=>{class Me{constructor(Pe,J){this.id="mat-mdc-error-"+v++,Pe||J.nativeElement.setAttribute("aria-live","polite")}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(t.$8M("aria-live"),t.Y36(t.SBq))},Me.\u0275dir=t.lG2({type:Me,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Pe,J){2&Pe&&t.Ikx("id",J.id)},inputs:{id:"id"},features:[t._Bn([{provide:K,useExisting:Me}])]}),Me})(),G=0,ye=(()=>{class Me{constructor(){this.align="start",this.id="mat-mdc-hint-"+G++}}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Pe,J){2&Pe&&(t.Ikx("id",J.id),t.uIk("align",null),t.ekj("mat-mdc-form-field-hint-end","end"===J.align))},inputs:{align:"align",id:"id"}}),Me})();const Ee=new t.OlP("MatPrefix"),qe=new t.OlP("MatSuffix");let Ce=(()=>{class Me{constructor(){this._isText=!1}set _isTextSelector(Pe){this._isText=!0}}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[t._Bn([{provide:qe,useExisting:Me}])]}),Me})(),Se=(()=>{class Me{constructor(Pe){this._elementRef=Pe,this.floating=!1}getWidth(){return function fe(Me){if(null!==Me.offsetParent)return Me.scrollWidth;const Pe=Me.cloneNode(!0);Pe.style.setProperty("position","absolute"),Pe.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Pe);const J=Pe.scrollWidth;return Pe.remove(),J}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(t.Y36(t.SBq))},Me.\u0275dir=t.lG2({type:Me,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Pe,J){2&Pe&&t.ekj("mdc-floating-label--float-above",J.floating)},inputs:{floating:"floating"}}),Me})();const Fe="mdc-line-ripple--active",oe="mdc-line-ripple--deactivating";let ze=(()=>{class Me{constructor(Pe,J){this._elementRef=Pe,this._handleTransitionEnd=mt=>{const Et=this._elementRef.nativeElement.classList,at=Et.contains(oe);"opacity"===mt.propertyName&&at&&Et.remove(Fe,oe)},J.runOutsideAngular(()=>{Pe.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Pe=this._elementRef.nativeElement.classList;Pe.remove(oe),Pe.add(Fe)}deactivate(){this._elementRef.nativeElement.classList.add(oe)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(t.Y36(t.SBq),t.Y36(t.R0b))},Me.\u0275dir=t.lG2({type:Me,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),Me})(),Oe=(()=>{class Me{constructor(Pe,J){this._elementRef=Pe,this._ngZone=J,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const Pe=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Pe?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Pe.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Pe.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(t.Y36(t.SBq),t.Y36(t.R0b))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Pe,J){2&Pe&&t.ekj("mdc-notched-outline--notched",J.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:L,ngContentSelectors:k,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(Pe,J){1&Pe&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA(),t._UZ(3,"div",2)),2&Pe&&(t.xp6(1),t.Udp("width",J._getNotchWidth()))},encapsulation:2,changeDetection:0}),Me})();const he={transitionMessages:(0,d.X$)("transitionMessages",[(0,d.SB)("enter",(0,d.oB)({opacity:1,transform:"translateY(0%)"})),(0,d.eR)("void => enter",[(0,d.oB)({opacity:0,transform:"translateY(-5px)"}),(0,d.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ae=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275dir=t.lG2({type:Me}),Me})();const Re=new t.OlP("MatFormField"),le=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let rt=0,Ze=(()=>{class Me{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Pe){this._hideRequiredMarker=(0,N.Ig)(Pe)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Pe){Pe!==this._floatLabel&&(this._floatLabel=Pe,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(Pe){const J=this._appearance;this._appearance=Pe||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==J&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Pe){this._subscriptSizing=Pe||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(Pe){this._hintLabel=Pe,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Pe){this._explicitFormFieldControl=Pe}constructor(Pe,J,mt,Et,at,je,Ht,Ct){this._elementRef=Pe,this._changeDetectorRef=J,this._ngZone=mt,this._dir=Et,this._platform=at,this._defaults=je,this._animationMode=Ht,this._document=Ct,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+rt++,this._hintLabelId="mat-mdc-hint-"+rt++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new T.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,je&&(je.appearance&&(this.appearance=je.appearance),this._hideRequiredMarker=Boolean(je?.hideRequiredMarker),je.color&&(this.color=je.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const Pe=this._control;Pe.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${Pe.controlType}`),Pe.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Pe.ngControl&&Pe.ngControl.valueChanges&&Pe.ngControl.valueChanges.pipe((0,x.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Pe=>!Pe._isText),this._hasTextPrefix=!!this._prefixChildren.find(Pe=>Pe._isText),this._hasIconSuffix=!!this._suffixChildren.find(Pe=>!Pe._isText),this._hasTextSuffix=!!this._suffixChildren.find(Pe=>Pe._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,s.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,x.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,x.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(Pe){const J=this._control?this._control.ngControl:null;return J&&J[Pe]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Pe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Pe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const J=this._hintChildren?this._hintChildren.find(Et=>"start"===Et.align):null,mt=this._hintChildren?this._hintChildren.find(Et=>"end"===Et.align):null;J?Pe.push(J.id):this._hintLabel&&Pe.push(this._hintLabelId),mt&&Pe.push(mt.id)}else this._errorChildren&&Pe.push(...this._errorChildren.map(J=>J.id));this._control.setDescribedByIds(Pe)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const Pe=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Pe.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const J=this._iconPrefixContainer?.nativeElement,mt=this._textPrefixContainer?.nativeElement,Et=J?.getBoundingClientRect().width??0,at=mt?.getBoundingClientRect().width??0;Pe.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Et+at}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const Pe=this._elementRef.nativeElement;if(Pe.getRootNode){const J=Pe.getRootNode();return J&&J!==Pe}return document.documentElement.contains(Pe)}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(e.Is),t.Y36(g.t4),t.Y36(le,8),t.Y36(t.QbO,8),t.Y36(h.K0))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-form-field"]],contentQueries:function(Pe,J,mt){if(1&Pe&&(t.Suo(mt,n,5),t.Suo(mt,n,7),t.Suo(mt,Ae,5),t.Suo(mt,Ee,5),t.Suo(mt,qe,5),t.Suo(mt,K,5),t.Suo(mt,ye,5)),2&Pe){let Et;t.iGM(Et=t.CRH())&&(J._labelChildNonStatic=Et.first),t.iGM(Et=t.CRH())&&(J._labelChildStatic=Et.first),t.iGM(Et=t.CRH())&&(J._formFieldControl=Et.first),t.iGM(Et=t.CRH())&&(J._prefixChildren=Et),t.iGM(Et=t.CRH())&&(J._suffixChildren=Et),t.iGM(Et=t.CRH())&&(J._errorChildren=Et),t.iGM(Et=t.CRH())&&(J._hintChildren=Et)}},viewQuery:function(Pe,J){if(1&Pe&&(t.Gf(V,5),t.Gf(B,5),t.Gf(W,5),t.Gf(Se,5),t.Gf(Oe,5),t.Gf(ze,5)),2&Pe){let mt;t.iGM(mt=t.CRH())&&(J._textField=mt.first),t.iGM(mt=t.CRH())&&(J._iconPrefixContainer=mt.first),t.iGM(mt=t.CRH())&&(J._textPrefixContainer=mt.first),t.iGM(mt=t.CRH())&&(J._floatingLabel=mt.first),t.iGM(mt=t.CRH())&&(J._notchedOutline=mt.first),t.iGM(mt=t.CRH())&&(J._lineRipple=mt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Pe,J){2&Pe&&t.ekj("mat-mdc-form-field-label-always-float",J._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",J._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",J._hasIconSuffix)("mat-form-field-invalid",J._control.errorState)("mat-form-field-disabled",J._control.disabled)("mat-form-field-autofilled",J._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===J._animationMode)("mat-form-field-appearance-fill","fill"==J.appearance)("mat-form-field-appearance-outline","outline"==J.appearance)("mat-form-field-hide-placeholder",J._hasFloatingLabel()&&!J._shouldLabelFloat())("mat-focused",J._control.focused)("mat-primary","accent"!==J.color&&"warn"!==J.color)("mat-accent","accent"===J.color)("mat-warn","warn"===J.color)("ng-untouched",J._shouldForward("untouched"))("ng-touched",J._shouldForward("touched"))("ng-pristine",J._shouldForward("pristine"))("ng-dirty",J._shouldForward("dirty"))("ng-valid",J._shouldForward("valid"))("ng-invalid",J._shouldForward("invalid"))("ng-pending",J._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:Re,useExisting:Me}])],ngContentSelectors:C,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(Pe,J){1&Pe&&(t.F$t(R),t.YNc(0,X,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.NdJ("click",function(Et){return J._control.onContainerClick&&J._control.onContainerClick(Et)}),t.YNc(4,ee,1,0,"div",3),t.TgZ(5,"div",4),t.YNc(6,ie,2,3,"div",5),t.YNc(7,se,3,0,"div",6),t.YNc(8,ce,3,0,"div",7),t.TgZ(9,"div",8),t.YNc(10,S,1,1,"ng-template",9),t.Hsn(11),t.qZA(),t.YNc(12,i,2,0,"div",10),t.YNc(13,a,2,0,"div",11),t.qZA(),t.YNc(14,u,1,0,"div",12),t.qZA(),t.TgZ(15,"div",13),t.YNc(16,l,2,1,"div",14),t.YNc(17,O,5,2,"div",15),t.qZA()),2&Pe&&(t.xp6(2),t.ekj("mdc-text-field--filled",!J._hasOutline())("mdc-text-field--outlined",J._hasOutline())("mdc-text-field--no-label",!J._hasFloatingLabel())("mdc-text-field--disabled",J._control.disabled)("mdc-text-field--invalid",J._control.errorState),t.xp6(2),t.Q6J("ngIf",!J._hasOutline()&&!J._control.disabled),t.xp6(2),t.Q6J("ngIf",J._hasOutline()),t.xp6(1),t.Q6J("ngIf",J._hasIconPrefix),t.xp6(1),t.Q6J("ngIf",J._hasTextPrefix),t.xp6(2),t.Q6J("ngIf",!J._hasOutline()||J._forceDisplayInfixLabel()),t.xp6(2),t.Q6J("ngIf",J._hasTextSuffix),t.xp6(1),t.Q6J("ngIf",J._hasIconSuffix),t.xp6(1),t.Q6J("ngIf",!J._hasOutline()),t.xp6(1),t.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===J.subscriptSizing),t.Q6J("ngSwitch",J._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[h.O5,h.tP,h.RF,h.n9,M.wD,ye,Se,Oe,ze],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[he.transitionMessages]},changeDetection:0}),Me})(),xt=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275mod=t.oAB({type:Me}),Me.\u0275inj=t.cJS({imports:[w.BQ,h.ez,M.Q8,w.BQ]}),Me})()},782:(We,q,m)=>{"use strict";m.d(q,{DX:()=>L,Il:()=>ce,N6:()=>Te});var t=m(4650),e=m(3238),g=m(1281),T=m(445);const s=["*"];class d{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,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(l=>this._trackTile(l))}_trackTile(a){const u=this._findMatchingGap(a.colspan);return this._markTilePosition(u,a),this.columnIndex=u+a.colspan,new M(this.rowIndex,u)}_findMatchingGap(a){let u=-1,l=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(l=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(u)))}while(l-u<a||0==l);return Math.max(u,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let a=0;a<this.tracker.length;a++)this.tracker[a]=Math.max(0,this.tracker[a]-1)}_findGapEndIndex(a){for(let u=a+1;u<this.tracker.length;u++)if(0!=this.tracker[u])return u;return this.tracker.length}_markTilePosition(a,u){for(let l=0;l<u.colspan;l++)this.tracker[a+l]=u.rowspan}}class M{constructor(a,u){this.row=a,this.col=u}}const w=new t.OlP("MAT_GRID_LIST");let L=(()=>{class i{constructor(u,l){this._element=u,this._gridList=l,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,g.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,g.su)(u))}_setStyle(u,l){this._element.nativeElement.style[u]=l}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(w,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,l){2&u&&t.uIk("rowspan",l.rowspan)("colspan",l.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(u,l){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),i})();const Y=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Q{constructor(){this._rows=0,this._rowspan=0}init(a,u,l,_){this._gutterSize=ie(a),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=l,this._direction=_}getBaseTileSize(a,u){return`(${a}% - (${this._gutterSize} * ${u}))`}getTilePosition(a,u){return 0===u?"0":re(`(${a} + ${this._gutterSize}) * ${u}`)}getTileSize(a,u){return`(${a} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(a,u,l){let _=100/this._cols,O=(this._cols-1)/this._cols;this.setColStyles(a,l,_,O),this.setRowStyles(a,u,_,O)}setColStyles(a,u,l,_){let O=this.getBaseTileSize(l,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(O,u)),a._setStyle("width",re(this.getTileSize(O,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class X extends Q{constructor(a){super(),this.fixedRowHeight=a}init(a,u,l,_){super.init(a,u,l,_),this.fixedRowHeight=ie(this.fixedRowHeight),Y.test(this.fixedRowHeight)}setRowStyles(a,u){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),a._setStyle("height",re(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",re(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class ee extends Q{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,u,l,_){this.baseTileHeight=this.getBaseTileSize(l/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),a._setStyle("paddingTop",re(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",re(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(a){const u=a.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class me extends Q{setRowStyles(a,u){let O=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(O,u)),a._setStyle("height",re(this.getTileSize(O,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function re(i){return`calc(${i})`}function ie(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let ce=(()=>{class i{constructor(u,l){this._element=u,this._dir=l,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,g.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${u??""}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const l=`${u??""}`;l!==this._rowHeight&&(this._rowHeight=l,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new me:u&&u.indexOf(":")>-1?new ee(u):new X(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new d);const u=this._tileCoordinator,l=this._tiles.filter(O=>!O._gridList||O._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,l),this._tileStyler.init(this.gutterSize,u,this.cols,_),l.forEach((O,R)=>{const C=u.positions[R];this._tileStyler.setStyle(O,C.row,C.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(T.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,l,_){if(1&u&&t.Suo(_,L,5),2&u){let O;t.iGM(O=t.CRH())&&(l._tiles=O)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,l){2&u&&t.uIk("cols",l.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:w,useExisting:i}])],ngContentSelectors:s,decls:2,vars:0,template:function(u,l){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),i})(),Te=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[e.uc,e.BQ,e.uc,e.BQ]}),i})()},7392:(We,q,m)=>{"use strict";m.d(q,{Hw:()=>F,Ps:()=>G});var t=m(4650),e=m(3238),g=m(1281),T=m(6895),s=m(9646),x=m(2843),h=m(4128),N=m(727),d=m(8505),M=m(4004),w=m(262),L=m(8746),k=m(3099),V=m(5698),B=m(529),W=m(1481);const Y=["*"];let Q;function ee(ye){return function X(){if(void 0===Q&&(Q=null,typeof window<"u")){const ye=window;void 0!==ye.trustedTypes&&(Q=ye.trustedTypes.createPolicy("angular#components",{createHTML:Ee=>Ee}))}return Q}()?.createHTML(ye)||ye}function me(ye){return Error(`Unable to find icon with the name "${ye}"`)}function ie(ye){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ye}".`)}function se(ye){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ye}".`)}class ce{constructor(Ee,pe,qe){this.url=Ee,this.svgText=pe,this.options=qe}}let Te=(()=>{class ye{constructor(pe,qe,Ce,Se){this._httpClient=pe,this._sanitizer=qe,this._errorHandler=Se,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","mat-ligature-font"],this._document=Ce}addSvgIcon(pe,qe,Ce){return this.addSvgIconInNamespace("",pe,qe,Ce)}addSvgIconLiteral(pe,qe,Ce){return this.addSvgIconLiteralInNamespace("",pe,qe,Ce)}addSvgIconInNamespace(pe,qe,Ce,Se){return this._addSvgIconConfig(pe,qe,new ce(Ce,null,Se))}addSvgIconResolver(pe){return this._resolvers.push(pe),this}addSvgIconLiteralInNamespace(pe,qe,Ce,Se){const fe=this._sanitizer.sanitize(t.q3G.HTML,Ce);if(!fe)throw se(Ce);const Fe=ee(fe);return this._addSvgIconConfig(pe,qe,new ce("",Fe,Se))}addSvgIconSet(pe,qe){return this.addSvgIconSetInNamespace("",pe,qe)}addSvgIconSetLiteral(pe,qe){return this.addSvgIconSetLiteralInNamespace("",pe,qe)}addSvgIconSetInNamespace(pe,qe,Ce){return this._addSvgIconSetConfig(pe,new ce(qe,null,Ce))}addSvgIconSetLiteralInNamespace(pe,qe,Ce){const Se=this._sanitizer.sanitize(t.q3G.HTML,qe);if(!Se)throw se(qe);const fe=ee(Se);return this._addSvgIconSetConfig(pe,new ce("",fe,Ce))}registerFontClassAlias(pe,qe=pe){return this._fontCssClassesByAlias.set(pe,qe),this}classNameForFontAlias(pe){return this._fontCssClassesByAlias.get(pe)||pe}setDefaultFontSetClass(...pe){return this._defaultFontSetClass=pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(pe){const qe=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,pe);if(!qe)throw ie(pe);const Ce=this._cachedIconsByUrl.get(qe);return Ce?(0,s.of)(a(Ce)):this._loadSvgIconFromConfig(new ce(pe,null)).pipe((0,d.b)(Se=>this._cachedIconsByUrl.set(qe,Se)),(0,M.U)(Se=>a(Se)))}getNamedSvgIcon(pe,qe=""){const Ce=u(qe,pe);let Se=this._svgIconConfigs.get(Ce);if(Se)return this._getSvgFromConfig(Se);if(Se=this._getIconConfigFromResolvers(qe,pe),Se)return this._svgIconConfigs.set(Ce,Se),this._getSvgFromConfig(Se);const fe=this._iconSetConfigs.get(qe);return fe?this._getSvgFromIconSetConfigs(pe,fe):(0,x._)(me(Ce))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(pe){return pe.svgText?(0,s.of)(a(this._svgElementFromConfig(pe))):this._loadSvgIconFromConfig(pe).pipe((0,M.U)(qe=>a(qe)))}_getSvgFromIconSetConfigs(pe,qe){const Ce=this._extractIconWithNameFromAnySet(pe,qe);if(Ce)return(0,s.of)(Ce);const Se=qe.filter(fe=>!fe.svgText).map(fe=>this._loadSvgIconSetFromConfig(fe).pipe((0,w.K)(Fe=>{const ze=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,fe.url)} failed: ${Fe.message}`;return this._errorHandler.handleError(new Error(ze)),(0,s.of)(null)})));return(0,h.D)(Se).pipe((0,M.U)(()=>{const fe=this._extractIconWithNameFromAnySet(pe,qe);if(!fe)throw me(pe);return fe}))}_extractIconWithNameFromAnySet(pe,qe){for(let Ce=qe.length-1;Ce>=0;Ce--){const Se=qe[Ce];if(Se.svgText&&Se.svgText.toString().indexOf(pe)>-1){const fe=this._svgElementFromConfig(Se),Fe=this._extractSvgIconFromSet(fe,pe,Se.options);if(Fe)return Fe}}return null}_loadSvgIconFromConfig(pe){return this._fetchIcon(pe).pipe((0,d.b)(qe=>pe.svgText=qe),(0,M.U)(()=>this._svgElementFromConfig(pe)))}_loadSvgIconSetFromConfig(pe){return pe.svgText?(0,s.of)(null):this._fetchIcon(pe).pipe((0,d.b)(qe=>pe.svgText=qe))}_extractSvgIconFromSet(pe,qe,Ce){const Se=pe.querySelector(`[id="${qe}"]`);if(!Se)return null;const fe=Se.cloneNode(!0);if(fe.removeAttribute("id"),"svg"===fe.nodeName.toLowerCase())return this._setSvgAttributes(fe,Ce);if("symbol"===fe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(fe),Ce);const Fe=this._svgElementFromString(ee("<svg></svg>"));return Fe.appendChild(fe),this._setSvgAttributes(Fe,Ce)}_svgElementFromString(pe){const qe=this._document.createElement("DIV");qe.innerHTML=pe;const Ce=qe.querySelector("svg");if(!Ce)throw Error("<svg> tag not found");return Ce}_toSvgElement(pe){const qe=this._svgElementFromString(ee("<svg></svg>")),Ce=pe.attributes;for(let Se=0;Se<Ce.length;Se++){const{name:fe,value:Fe}=Ce[Se];"id"!==fe&&qe.setAttribute(fe,Fe)}for(let Se=0;Se<pe.childNodes.length;Se++)pe.childNodes[Se].nodeType===this._document.ELEMENT_NODE&&qe.appendChild(pe.childNodes[Se].cloneNode(!0));return qe}_setSvgAttributes(pe,qe){return pe.setAttribute("fit",""),pe.setAttribute("height","100%"),pe.setAttribute("width","100%"),pe.setAttribute("preserveAspectRatio","xMidYMid meet"),pe.setAttribute("focusable","false"),qe&&qe.viewBox&&pe.setAttribute("viewBox",qe.viewBox),pe}_fetchIcon(pe){const{url:qe,options:Ce}=pe,Se=Ce?.withCredentials??!1;if(!this._httpClient)throw function re(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==qe)throw Error(`Cannot fetch icon from URL "${qe}".`);const fe=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,qe);if(!fe)throw ie(qe);const Fe=this._inProgressUrlFetches.get(fe);if(Fe)return Fe;const oe=this._httpClient.get(fe,{responseType:"text",withCredentials:Se}).pipe((0,M.U)(ze=>ee(ze)),(0,L.x)(()=>this._inProgressUrlFetches.delete(fe)),(0,k.B)());return this._inProgressUrlFetches.set(fe,oe),oe}_addSvgIconConfig(pe,qe,Ce){return this._svgIconConfigs.set(u(pe,qe),Ce),this}_addSvgIconSetConfig(pe,qe){const Ce=this._iconSetConfigs.get(pe);return Ce?Ce.push(qe):this._iconSetConfigs.set(pe,[qe]),this}_svgElementFromConfig(pe){if(!pe.svgElement){const qe=this._svgElementFromString(pe.svgText);this._setSvgAttributes(qe,pe.options),pe.svgElement=qe}return pe.svgElement}_getIconConfigFromResolvers(pe,qe){for(let Ce=0;Ce<this._resolvers.length;Ce++){const Se=this._resolvers[Ce](qe,pe);if(Se)return l(Se)?new ce(Se.url,null,Se.options):new ce(Se,null)}}}return ye.\u0275fac=function(pe){return new(pe||ye)(t.LFG(B.eN,8),t.LFG(W.H7),t.LFG(T.K0,8),t.LFG(t.qLn))},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();function a(ye){return ye.cloneNode(!0)}function u(ye,Ee){return ye+":"+Ee}function l(ye){return!(!ye.url||!ye.options)}const _=(0,e.pj)(class{constructor(ye){this._elementRef=ye}}),O=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),R=new t.OlP("mat-icon-location",{providedIn:"root",factory:function C(){const ye=(0,t.f3M)(T.K0),Ee=ye?ye.location:null;return{getPathname:()=>Ee?Ee.pathname+Ee.search:""}}}),n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],v=n.map(ye=>`[${ye}]`).join(", "),K=/^url\(['"]?#(.*?)['"]?\)$/;let F=(()=>{class ye extends _{get inline(){return this._inline}set inline(pe){this._inline=(0,g.Ig)(pe)}get svgIcon(){return this._svgIcon}set svgIcon(pe){pe!==this._svgIcon&&(pe?this._updateSvgIcon(pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=pe)}get fontSet(){return this._fontSet}set fontSet(pe){const qe=this._cleanupFontValue(pe);qe!==this._fontSet&&(this._fontSet=qe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(pe){const qe=this._cleanupFontValue(pe);qe!==this._fontIcon&&(this._fontIcon=qe,this._updateFontIconClasses())}constructor(pe,qe,Ce,Se,fe,Fe){super(pe),this._iconRegistry=qe,this._location=Se,this._errorHandler=fe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=N.w0.EMPTY,Fe&&(Fe.color&&(this.color=this.defaultColor=Fe.color),Fe.fontSet&&(this.fontSet=Fe.fontSet)),Ce||pe.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(pe){if(!pe)return["",""];const qe=pe.split(":");switch(qe.length){case 1:return["",qe[0]];case 2:return qe;default:throw Error(`Invalid icon name: "${pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const pe=this._elementsWithExternalReferences;if(pe&&pe.size){const qe=this._location.getPathname();qe!==this._previousPath&&(this._previousPath=qe,this._prependPathToReferences(qe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(pe){this._clearSvgElement();const qe=this._location.getPathname();this._previousPath=qe,this._cacheChildrenWithExternalReferences(pe),this._prependPathToReferences(qe),this._elementRef.nativeElement.appendChild(pe)}_clearSvgElement(){const pe=this._elementRef.nativeElement;let qe=pe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();qe--;){const Ce=pe.childNodes[qe];(1!==Ce.nodeType||"svg"===Ce.nodeName.toLowerCase())&&Ce.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const pe=this._elementRef.nativeElement,qe=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ce=>Ce.length>0);this._previousFontSetClass.forEach(Ce=>pe.classList.remove(Ce)),qe.forEach(Ce=>pe.classList.add(Ce)),this._previousFontSetClass=qe,this.fontIcon!==this._previousFontIconClass&&!qe.includes("mat-ligature-font")&&(this._previousFontIconClass&&pe.classList.remove(this._previousFontIconClass),this.fontIcon&&pe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(pe){return"string"==typeof pe?pe.trim().split(" ")[0]:pe}_prependPathToReferences(pe){const qe=this._elementsWithExternalReferences;qe&&qe.forEach((Ce,Se)=>{Ce.forEach(fe=>{Se.setAttribute(fe.name,`url('${pe}#${fe.value}')`)})})}_cacheChildrenWithExternalReferences(pe){const qe=pe.querySelectorAll(v),Ce=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Se=0;Se<qe.length;Se++)n.forEach(fe=>{const Fe=qe[Se],oe=Fe.getAttribute(fe),ze=oe?oe.match(K):null;if(ze){let Oe=Ce.get(Fe);Oe||(Oe=[],Ce.set(Fe,Oe)),Oe.push({name:fe,value:ze[1]})}})}_updateSvgIcon(pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),pe){const[qe,Ce]=this._splitIconName(pe);qe&&(this._svgNamespace=qe),Ce&&(this._svgName=Ce),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ce,qe).pipe((0,V.q)(1)).subscribe(Se=>this._setSvgElement(Se),Se=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${qe}:${Ce}! ${Se.message}`))})}}}return ye.\u0275fac=function(pe){return new(pe||ye)(t.Y36(t.SBq),t.Y36(Te),t.$8M("aria-hidden"),t.Y36(R),t.Y36(t.qLn),t.Y36(O,8))},ye.\u0275cmp=t.Xpm({type:ye,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(pe,qe){2&pe&&(t.uIk("data-mat-icon-type",qe._usingFontIcon()?"font":"svg")("data-mat-icon-name",qe._svgName||qe.fontIcon)("data-mat-icon-namespace",qe._svgNamespace||qe.fontSet)("fontIcon",qe._usingFontIcon()?qe.fontIcon:null),t.ekj("mat-icon-inline",qe.inline)("mat-icon-no-color","primary"!==qe.color&&"accent"!==qe.color&&"warn"!==qe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(pe,qe){1&pe&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),ye})(),G=(()=>{class ye{}return ye.\u0275fac=function(pe){return new(pe||ye)},ye.\u0275mod=t.oAB({type:ye}),ye.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),ye})()},4144:(We,q,m)=>{"use strict";m.d(q,{Jk:()=>B,Nt:()=>X,c:()=>ee});var t=m(1281),e=m(3353),g=m(4650),T=m(515),s=m(7579);const x=(0,e.i$)({passive:!0});let h=(()=>{class me{constructor(ie,se){this._platform=ie,this._ngZone=se,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return T.E;const se=(0,t.fI)(ie),ce=this._monitoredElements.get(se);if(ce)return ce.subject;const Te=new s.x,S="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||se.classList.contains(S)?"cdk-text-field-autofill-end"===a.animationName&&se.classList.contains(S)&&(se.classList.remove(S),this._ngZone.run(()=>Te.next({target:a.target,isAutofilled:!1}))):(se.classList.add(S),this._ngZone.run(()=>Te.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{se.addEventListener("animationstart",i,x),se.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(se,{subject:Te,unlisten:()=>{se.removeEventListener("animationstart",i,x)}}),Te}stopMonitoring(ie){const se=(0,t.fI)(ie),ce=this._monitoredElements.get(se);ce&&(ce.unlisten(),ce.subject.complete(),se.classList.remove("cdk-text-field-autofill-monitored"),se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(se))}ngOnDestroy(){this._monitoredElements.forEach((ie,se)=>this.stopMonitoring(se))}}return me.\u0275fac=function(ie){return new(ie||me)(g.LFG(e.t4),g.LFG(g.R0b))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),M=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({}),me})();var w=m(4006),L=m(3238),k=m(9549);const B=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),W=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Y=0;const Q=(0,L.FD)(class{constructor(me,re,ie,se){this._defaultErrorStateMatcher=me,this._parentForm=re,this._parentFormGroup=ie,this.ngControl=se,this.stateChanges=new s.x}});let X=(()=>{class me extends Q{get disabled(){return this._disabled}set disabled(ie){this._disabled=(0,t.Ig)(ie),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ie){this._id=ie||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(w.kI.required)??!1}set required(ie){this._required=(0,t.Ig)(ie)}get type(){return this._type}set type(ie){this._type=ie||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ie){ie!==this.value&&(this._inputValueAccessor.value=ie,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ie){this._readonly=(0,t.Ig)(ie)}constructor(ie,se,ce,Te,S,i,a,u,l,_){super(i,Te,S,ce),this._elementRef=ie,this._platform=se,this._autofillMonitor=u,this._formField=_,this._uid="mat-input-"+Y++,this.focused=!1,this.stateChanges=new s.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(C=>(0,e.qK)().has(C)),this._iOSKeyupListener=C=>{const n=C.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const O=this._elementRef.nativeElement,R=O.nodeName.toLowerCase();this._inputValueAccessor=a||O,this._previousNativeValue=this.value,this.id=this.id,se.IOS&&l.runOutsideAngular(()=>{ie.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===R,this._isTextarea="textarea"===R,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=O.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ie=>{this.autofilled=ie.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ie){this._elementRef.nativeElement.focus(ie)}_focusChanged(ie){ie!==this.focused&&(this.focused=ie,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const ie=this._elementRef.nativeElement.value;this._previousNativeValue!==ie&&(this._previousNativeValue=ie,this.stateChanges.next())}_dirtyCheckPlaceholder(){const ie=this._getPlaceholder();if(ie!==this._previousPlaceholder){const se=this._elementRef.nativeElement;this._previousPlaceholder=ie,ie?se.setAttribute("placeholder",ie):se.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){W.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ie=this._elementRef.nativeElement.validity;return ie&&ie.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ie=this._elementRef.nativeElement,se=ie.options[0];return this.focused||ie.multiple||!this.empty||!!(ie.selectedIndex>-1&&se&&se.label)}return this.focused||!this.empty}setDescribedByIds(ie){ie.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ie.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ie=this._elementRef.nativeElement;return this._isNativeSelect&&(ie.multiple||ie.size>1)}}return me.\u0275fac=function(ie){return new(ie||me)(g.Y36(g.SBq),g.Y36(e.t4),g.Y36(w.a5,10),g.Y36(w.F,8),g.Y36(w.sg,8),g.Y36(L.rD),g.Y36(B,10),g.Y36(h),g.Y36(g.R0b),g.Y36(k.G_,8))},me.\u0275dir=g.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ie,se){1&ie&&g.NdJ("focus",function(){return se._focusChanged(!0)})("blur",function(){return se._focusChanged(!1)})("input",function(){return se._onInput()}),2&ie&&(g.Ikx("id",se.id)("disabled",se.disabled)("required",se.required),g.uIk("name",se.name||null)("readonly",se.readonly&&!se._isNativeSelect||null)("aria-invalid",se.empty&&se.required?null:se.errorState)("aria-required",se.required)("id",se.id),g.ekj("mat-input-server",se._isServer)("mat-mdc-form-field-textarea-control",se._isInFormField&&se._isTextarea)("mat-mdc-form-field-input-control",se._isInFormField)("mdc-text-field__input",se._isInFormField)("mat-mdc-native-select-inline",se._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[g._Bn([{provide:k.Eo,useExisting:me}]),g.qOj,g.TTD]}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({imports:[L.BQ,k.lN,k.lN,M,L.BQ]}),me})()},6338:(We,q,m)=>{"use strict";m.d(q,{Tg:()=>Ae,i$:()=>he,ie:()=>Gt});var t=m(4650),e=m(1281),g=m(3353),T=m(3238),s=m(727),x=m(6451),N=(m(7579),m(9643)),d=m(6895),M=m(4850);m(4761),m(5017),m(9521),m(4006),m(2722);const W=["*"],Q=["unscopedContent"],X=["text"],ee=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],me=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],F=new t.OlP("ListOption");let G=(()=>{class ut{constructor(xt){this._elementRef=xt}}return ut.\u0275fac=function(xt){return new(xt||ut)(t.Y36(t.SBq))},ut.\u0275dir=t.lG2({type:ut,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]}),ut})(),ye=(()=>{class ut{constructor(xt){this._elementRef=xt}}return ut.\u0275fac=function(xt){return new(xt||ut)(t.Y36(t.SBq))},ut.\u0275dir=t.lG2({type:ut,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]}),ut})(),Ee=(()=>{class ut{}return ut.\u0275fac=function(xt){return new(xt||ut)},ut.\u0275dir=t.lG2({type:ut,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]}),ut})(),pe=(()=>{class ut{constructor(xt){this._listOption=xt}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}}return ut.\u0275fac=function(xt){return new(xt||ut)(t.Y36(F,8))},ut.\u0275dir=t.lG2({type:ut,hostVars:4,hostBindings:function(xt,Me){2&xt&&t.ekj("mdc-list-item__start",Me._isAlignedAtStart())("mdc-list-item__end",!Me._isAlignedAtStart())}}),ut})(),qe=(()=>{class ut extends pe{}return ut.\u0275fac=function(){let Ze;return function(Me){return(Ze||(Ze=t.n5z(ut)))(Me||ut)}}(),ut.\u0275dir=t.lG2({type:ut,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[t.qOj]}),ut})(),Ce=(()=>{class ut extends pe{}return ut.\u0275fac=function(){let Ze;return function(Me){return(Ze||(Ze=t.n5z(ut)))(Me||ut)}}(),ut.\u0275dir=t.lG2({type:ut,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[t.qOj]}),ut})();const Se=new t.OlP("MAT_LIST_CONFIG");let fe=(()=>{class ut{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=(0,t.f3M)(Se,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(xt){this._disableRipple=(0,e.Ig)(xt)}get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,e.Ig)(xt)}}return ut.\u0275fac=function(xt){return new(xt||ut)},ut.\u0275dir=t.lG2({type:ut,hostVars:1,hostBindings:function(xt,Me){2&xt&&t.uIk("aria-disabled",Me.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),ut})(),Fe=(()=>{class ut{set lines(xt){this._explicitLines=(0,e.su)(xt,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(xt){this._disableRipple=(0,e.Ig)(xt)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(xt){this._disabled=(0,e.Ig)(xt)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(xt,Me,$e,Pe,J,mt){this._elementRef=xt,this._ngZone=Me,this._listBase=$e,this._platform=Pe,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new s.w0,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=J||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===mt,$e&&!$e._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new T.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,x.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(xt){if(!this._lines||!this._titles||!this._unscopedContent)return;xt&&this._checkDomForUnscopedTextContent();const Me=this._explicitLines??this._inferLinesFromContent(),$e=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",Me<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",Me<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===Me),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===Me),this._hasUnscopedTextContent){const Pe=0===this._titles.length&&1===Me;$e.classList.toggle("mdc-list-item__primary-text",Pe),$e.classList.toggle("mdc-list-item__secondary-text",!Pe)}else $e.classList.remove("mdc-list-item__primary-text"),$e.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let xt=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(xt+=1),xt}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(xt=>xt.nodeType!==xt.COMMENT_NODE).some(xt=>!(!xt.textContent||!xt.textContent.trim()))}}return ut.\u0275fac=function(xt){return new(xt||ut)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(fe,8),t.Y36(g.t4),t.Y36(T.Y2,8),t.Y36(t.QbO,8))},ut.\u0275dir=t.lG2({type:ut,contentQueries:function(xt,Me,$e){if(1&xt&&(t.Suo($e,qe,4),t.Suo($e,Ce,4)),2&xt){let Pe;t.iGM(Pe=t.CRH())&&(Me._avatars=Pe),t.iGM(Pe=t.CRH())&&(Me._icons=Pe)}},hostVars:4,hostBindings:function(xt,Me){2&xt&&(t.uIk("aria-disabled",Me.disabled)("disabled",Me._isButtonElement&&Me.disabled||null),t.ekj("mdc-list-item--disabled",Me.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}}),ut})(),he=(()=>{class ut extends fe{}return ut.\u0275fac=function(){let Ze;return function(Me){return(Ze||(Ze=t.n5z(ut)))(Me||ut)}}(),ut.\u0275cmp=t.Xpm({type:ut,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[t._Bn([{provide:fe,useExisting:ut}]),t.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(xt,Me){1&xt&&(t.F$t(),t.Hsn(0))},styles:['@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::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 a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0}),ut})(),Ae=(()=>{class ut extends Fe{get activated(){return this._activated}set activated(xt){this._activated=(0,e.Ig)(xt)}constructor(xt,Me,$e,Pe,J,mt){super(xt,Me,$e,Pe,J,mt),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}}return ut.\u0275fac=function(xt){return new(xt||ut)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(fe,8),t.Y36(g.t4),t.Y36(T.Y2,8),t.Y36(t.QbO,8))},ut.\u0275cmp=t.Xpm({type:ut,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(xt,Me,$e){if(1&xt&&(t.Suo($e,ye,5),t.Suo($e,G,5),t.Suo($e,Ee,5)),2&xt){let Pe;t.iGM(Pe=t.CRH())&&(Me._lines=Pe),t.iGM(Pe=t.CRH())&&(Me._titles=Pe),t.iGM(Pe=t.CRH())&&(Me._meta=Pe)}},viewQuery:function(xt,Me){if(1&xt&&(t.Gf(Q,5),t.Gf(X,5)),2&xt){let $e;t.iGM($e=t.CRH())&&(Me._unscopedContent=$e.first),t.iGM($e=t.CRH())&&(Me._itemText=$e.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(xt,Me){2&xt&&(t.uIk("aria-current",Me._getAriaCurrent()),t.ekj("mdc-list-item--activated",Me.activated)("mdc-list-item--with-leading-avatar",0!==Me._avatars.length)("mdc-list-item--with-leading-icon",0!==Me._icons.length)("mdc-list-item--with-trailing-meta",0!==Me._meta.length)("_mat-animation-noopable",Me._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:me,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(xt,Me){1&xt&&(t.F$t(ee),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.Hsn(3,2),t.TgZ(4,"span",1,2),t.NdJ("cdkObserveContent",function(){return Me._updateItemLines(!0)}),t.Hsn(6,3),t.qZA()(),t.Hsn(7,4),t.Hsn(8,5),t._UZ(9,"div",3))},dependencies:[N.wD],encapsulation:2,changeDetection:0}),ut})(),Gt=(()=>{class ut{}return ut.\u0275fac=function(xt){return new(xt||ut)},ut.\u0275mod=t.oAB({type:ut}),ut.\u0275inj=t.cJS({imports:[N.Q8,d.ez,T.BQ,T.si,T.us,M.t]}),ut})()},8255:(We,q,m)=>{"use strict";m.d(q,{OP:()=>_,Tx:()=>ge,VK:()=>Se,p6:()=>Ae});var t=m(4650),e=m(4761),g=m(1281),T=m(9521),s=m(7579),x=m(6451),h=m(727),N=m(9646),d=m(3101),M=m(8675),w=m(3900),L=m(5698),k=m(2722),V=m(9300),B=m(4086),W=m(3238),Y=m(6895),Q=m(4080),X=m(7340),ee=m(445),me=m(8184),re=m(3353),ie=m(531);const se=["mat-menu-item",""];function ce(Ue,Je){1&Ue&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"polygon",4),t.qZA())}const Te=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],S=["mat-icon, [matMenuItemIcon]","*"];function i(Ue,Je){if(1&Ue){const Re=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(rt){t.CHM(Re);const Qe=t.oxw();return t.KtG(Qe._handleKeydown(rt))})("click",function(){t.CHM(Re);const rt=t.oxw();return t.KtG(rt.closed.emit("click"))})("@transformMenu.start",function(rt){t.CHM(Re);const Qe=t.oxw();return t.KtG(Qe._onAnimationStart(rt))})("@transformMenu.done",function(rt){t.CHM(Re);const Qe=t.oxw();return t.KtG(Qe._onAnimationDone(rt))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&Ue){const Re=t.oxw();t.Q6J("id",Re.panelId)("ngClass",Re._classList)("@transformMenu",Re._panelAnimationState),t.uIk("aria-label",Re.ariaLabel||null)("aria-labelledby",Re.ariaLabelledby||null)("aria-describedby",Re.ariaDescribedby||null)}}const a=["*"],u=new t.OlP("MAT_MENU_PANEL"),l=(0,W.Kr)((0,W.Id)(class{}));let _=(()=>{class Ue extends l{constructor(Re,le,rt,Qe,ct){super(),this._elementRef=Re,this._document=le,this._focusMonitor=rt,this._parentMenu=Qe,this._changeDetectorRef=ct,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,Qe?.addItem?.(this)}focus(Re,le){this._focusMonitor&&Re?this._focusMonitor.focusVia(this._getHostElement(),Re,le):this._getHostElement().focus(le),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(Re){this.disabled&&(Re.preventDefault(),Re.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Re=this._elementRef.nativeElement.cloneNode(!0),le=Re.querySelectorAll("mat-icon, .material-icons");for(let rt=0;rt<le.length;rt++)le[rt].remove();return Re.textContent?.trim()||""}_setHighlighted(Re){this._highlighted=Re,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(Re){this._triggersSubmenu=Re,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return Ue.\u0275fac=function(Re){return new(Re||Ue)(t.Y36(t.SBq),t.Y36(Y.K0),t.Y36(e.tE),t.Y36(u,8),t.Y36(t.sBO))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(Re,le){1&Re&&t.NdJ("click",function(Qe){return le._checkDisabled(Qe)})("mouseenter",function(){return le._handleMouseEnter()}),2&Re&&(t.uIk("role",le.role)("tabindex",le._getTabIndex())("aria-disabled",le.disabled)("disabled",le.disabled||null),t.ekj("mat-mdc-menu-item-highlighted",le._highlighted)("mat-mdc-menu-item-submenu-trigger",le._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:se,ngContentSelectors:S,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Re,le){1&Re&&(t.F$t(Te),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.qZA(),t._UZ(3,"div",1),t.YNc(4,ce,2,0,"svg",2)),2&Re&&(t.xp6(3),t.Q6J("matRippleDisabled",le.disableRipple||le.disabled)("matRippleTrigger",le._getHostElement()),t.xp6(1),t.Q6J("ngIf",le._triggersSubmenu))},dependencies:[Y.O5,W.wG],encapsulation:2,changeDetection:0}),Ue})();const n=new t.OlP("MatMenuContent"),F={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ee=0;const pe=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function qe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ce=(()=>{class Ue{get xPosition(){return this._xPosition}set xPosition(Re){this._xPosition=Re,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Re){this._yPosition=Re,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Re){this._overlapTrigger=(0,g.Ig)(Re)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Re){this._hasBackdrop=(0,g.Ig)(Re)}set panelClass(Re){const le=this._previousPanelClass;le&&le.length&&le.split(" ").forEach(rt=>{this._classList[rt]=!1}),this._previousPanelClass=Re,Re&&Re.length&&(Re.split(" ").forEach(rt=>{this._classList[rt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Re){this.panelClass=Re}constructor(Re,le,rt,Qe){this._elementRef=Re,this._ngZone=le,this._defaultOptions=rt,this._changeDetectorRef=Qe,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Ee++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,M.O)(this._directDescendantItems),(0,w.w)(Re=>(0,x.T)(...Re.map(le=>le._focused)))).subscribe(Re=>this._keyManager.updateActiveItem(Re)),this._directDescendantItems.changes.subscribe(Re=>{const le=this._keyManager;if("enter"===this._panelAnimationState&&le.activeItem?._hasFocus()){const rt=Re.toArray(),Qe=Math.max(0,Math.min(rt.length-1,le.activeItemIndex||0));rt[Qe]&&!rt[Qe].disabled?le.setActiveItem(Qe):le.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,M.O)(this._directDescendantItems),(0,w.w)(le=>(0,x.T)(...le.map(rt=>rt._hovered))))}addItem(Re){}removeItem(Re){}_handleKeydown(Re){const le=Re.keyCode,rt=this._keyManager;switch(le){case T.hY:(0,T.Vb)(Re)||(Re.preventDefault(),this.closed.emit("keydown"));break;case T.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case T.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(le===T.LH||le===T.JH)&&rt.setFocusOrigin("keyboard"),void rt.onKeydown(Re)}Re.stopPropagation()}focusFirstItem(Re="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{let le=null;if(this._directDescendantItems.length&&(le=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!le||!le.contains(document.activeElement)){const rt=this._keyManager;rt.setFocusOrigin(Re).setFirstItemActive(),!rt.activeItem&&le&&le.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Re){const le=Math.min(this._baseElevation+Re,24),rt=`${this._elevationPrefix}${le}`,Qe=Object.keys(this._classList).find(ct=>ct.startsWith(this._elevationPrefix));(!Qe||Qe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[rt]=!0,this._previousElevation=rt)}setPositionClasses(Re=this.xPosition,le=this.yPosition){const rt=this._classList;rt["mat-menu-before"]="before"===Re,rt["mat-menu-after"]="after"===Re,rt["mat-menu-above"]="above"===le,rt["mat-menu-below"]="below"===le,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Re){this._animationDone.next(Re),this._isAnimating=!1}_onAnimationStart(Re){this._isAnimating=!0,"enter"===Re.toState&&0===this._keyManager.activeItemIndex&&(Re.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,M.O)(this._allItems)).subscribe(Re=>{this._directDescendantItems.reset(Re.filter(le=>le._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ue.\u0275fac=function(Re){return new(Re||Ue)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pe),t.Y36(t.sBO))},Ue.\u0275dir=t.lG2({type:Ue,contentQueries:function(Re,le,rt){if(1&Re&&(t.Suo(rt,n,5),t.Suo(rt,_,5),t.Suo(rt,_,4)),2&Re){let Qe;t.iGM(Qe=t.CRH())&&(le.lazyContent=Qe.first),t.iGM(Qe=t.CRH())&&(le._allItems=Qe),t.iGM(Qe=t.CRH())&&(le.items=Qe)}},viewQuery:function(Re,le){if(1&Re&&t.Gf(t.Rgc,5),2&Re){let rt;t.iGM(rt=t.CRH())&&(le.templateRef=rt.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"}}),Ue})(),Se=(()=>{class Ue extends Ce{constructor(Re,le,rt,Qe){super(Re,le,rt,Qe),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return Ue.\u0275fac=function(Re){return new(Re||Ue)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pe),t.Y36(t.sBO))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Re,le){2&Re&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:u,useExisting:Ue}]),t.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(Re,le){1&Re&&(t.F$t(),t.YNc(0,i,3,6,"ng-template"))},dependencies:[Y.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[F.transformMenu,F.fadeInItems]},changeDetection:0}),Ue})();const fe=new t.OlP("mat-menu-scroll-strategy"),oe={provide:fe,deps:[me.aV],useFactory:function Fe(Ue){return()=>Ue.scrollStrategies.reposition()}},ze=(0,re.i$)({passive:!0});let he=(()=>{class Ue{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Re){this.menu=Re}get menu(){return this._menu}set menu(Re){Re!==this._menu&&(this._menu=Re,this._menuCloseSubscription.unsubscribe(),Re&&(this._menuCloseSubscription=Re.close.subscribe(le=>{this._destroyMenu(le),("click"===le||"tab"===le)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(le)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Re,le,rt,Qe,ct,Gt,ut,Ze,xt){this._overlay=Re,this._element=le,this._viewContainerRef=rt,this._menuItemInstance=Gt,this._dir=ut,this._focusMonitor=Ze,this._ngZone=xt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.w0.EMPTY,this._hoverSubscription=h.w0.EMPTY,this._menuCloseSubscription=h.w0.EMPTY,this._changeDetectorRef=(0,t.f3M)(t.sBO),this._handleTouchStart=Me=>{(0,e.yG)(Me)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Qe,this._parentMaterialMenu=ct instanceof Ce?ct:void 0,le.nativeElement.addEventListener("touchstart",this._handleTouchStart,ze)}ngAfterContentInit(){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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Re=this.menu;if(this._menuOpen||!Re)return;const le=this._createOverlay(Re),rt=le.getConfig(),Qe=rt.positionStrategy;this._setPosition(Re,Qe),rt.hasBackdrop=null==Re.hasBackdrop?!this.triggersSubmenu():Re.hasBackdrop,le.attach(this._getPortal(Re)),Re.lazyContent&&Re.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Re),Re instanceof Ce&&(Re._startAnimation(),Re._directDescendantItems.changes.pipe((0,k.R)(Re.close)).subscribe(()=>{Qe.withLockedPosition(!1).reapplyLastPosition(),Qe.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Re,le){this._focusMonitor&&Re?this._focusMonitor.focusVia(this._element,Re,le):this._element.nativeElement.focus(le)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Re){if(!this._overlayRef||!this.menuOpen)return;const le=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Re||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,le instanceof Ce?(le._resetAnimation(),le.lazyContent?le._animationDone.pipe((0,V.h)(rt=>"void"===rt.toState),(0,L.q)(1),(0,k.R)(le.lazyContent._attached)).subscribe({next:()=>le.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),le?.lazyContent?.detach())}_initMenu(Re){Re.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Re.direction=this.dir,this._setMenuElevation(Re),Re.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Re){if(Re.setElevation){let le=0,rt=Re.parentMenu;for(;rt;)le++,rt=rt.parentMenu;Re.setElevation(le)}}_setIsMenuOpen(Re){Re!==this._menuOpen&&(this._menuOpen=Re,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Re),this._changeDetectorRef.markForCheck())}_createOverlay(Re){if(!this._overlayRef){const le=this._getOverlayConfig(Re);this._subscribeToPositions(Re,le.positionStrategy),this._overlayRef=this._overlay.create(le),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Re){return new me.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Re.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Re.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Re,le){Re.setPositionClasses&&le.positionChanges.subscribe(rt=>{const Qe="start"===rt.connectionPair.overlayX?"after":"before",ct="top"===rt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Re.setPositionClasses(Qe,ct)):Re.setPositionClasses(Qe,ct)})}_setPosition(Re,le){let[rt,Qe]="before"===Re.xPosition?["end","start"]:["start","end"],[ct,Gt]="above"===Re.yPosition?["bottom","top"]:["top","bottom"],[ut,Ze]=[ct,Gt],[xt,Me]=[rt,Qe],$e=0;if(this.triggersSubmenu()){if(Me=rt="before"===Re.xPosition?"start":"end",Qe=xt="end"===rt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Pe=this._parentMaterialMenu.items.first;this._parentInnerPadding=Pe?Pe._getHostElement().offsetTop:0}$e="bottom"===ct?this._parentInnerPadding:-this._parentInnerPadding}}else Re.overlapTrigger||(ut="top"===ct?"bottom":"top",Ze="top"===Gt?"bottom":"top");le.withPositions([{originX:rt,originY:ut,overlayX:xt,overlayY:ct,offsetY:$e},{originX:Qe,originY:ut,overlayX:Me,overlayY:ct,offsetY:$e},{originX:rt,originY:Ze,overlayX:xt,overlayY:Gt,offsetY:-$e},{originX:Qe,originY:Ze,overlayX:Me,overlayY:Gt,offsetY:-$e}])}_menuClosingActions(){const Re=this._overlayRef.backdropClick(),le=this._overlayRef.detachments(),rt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,N.of)(),Qe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,V.h)(ct=>ct!==this._menuItemInstance),(0,V.h)(()=>this._menuOpen)):(0,N.of)();return(0,x.T)(Re,rt,Qe,le)}_handleMousedown(Re){(0,e.X6)(Re)||(this._openedBy=0===Re.button?"mouse":void 0,this.triggersSubmenu()&&Re.preventDefault())}_handleKeydown(Re){const le=Re.keyCode;(le===T.K5||le===T.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(le===T.SV&&"ltr"===this.dir||le===T.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Re){this.triggersSubmenu()?(Re.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,V.h)(Re=>Re===this._menuItemInstance&&!Re.disabled),(0,B.g)(0,d.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ce&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,B.g)(0,d.E),(0,k.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Re){return(!this._portal||this._portal.templateRef!==Re.templateRef)&&(this._portal=new Q.UE(Re.templateRef,this._viewContainerRef)),this._portal}}return Ue.\u0275fac=function(Re){return new(Re||Ue)(t.Y36(me.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(fe),t.Y36(u,8),t.Y36(_,10),t.Y36(ee.Is,8),t.Y36(e.tE),t.Y36(t.R0b))},Ue.\u0275dir=t.lG2({type:Ue,hostVars:3,hostBindings:function(Re,le){1&Re&&t.NdJ("click",function(Qe){return le._handleClick(Qe)})("mousedown",function(Qe){return le._handleMousedown(Qe)})("keydown",function(Qe){return le._handleKeydown(Qe)}),2&Re&&t.uIk("aria-haspopup",le.menu?"menu":null)("aria-expanded",le.menuOpen)("aria-controls",le.menuOpen?le.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"}}),Ue})(),Ae=(()=>{class Ue extends he{}return Ue.\u0275fac=function(){let Je;return function(le){return(Je||(Je=t.n5z(Ue)))(le||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]}),Ue})(),ge=(()=>{class Ue{}return Ue.\u0275fac=function(Re){return new(Re||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({providers:[oe],imports:[Y.ez,W.si,W.BQ,me.U8,ie.ZD,W.BQ]}),Ue})()},8739:(We,q,m)=>{"use strict";m.d(q,{NW:()=>ce,TU:()=>Te,ye:()=>W});var t=m(6895),e=m(4650),g=m(7579),T=m(4859),s=m(4385),x=m(266),h=m(3238),N=m(1281),d=m(9549);function M(S,i){if(1&S&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&S){const a=i.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}function w(S,i){if(1&S){const a=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(l){e.CHM(a);const _=e.oxw(2);return e.KtG(_._changePageSize(l.value))}),e.YNc(2,M,2,2,"mat-option",18),e.qZA()()}if(2&S){const a=e.oxw(2);e.Q6J("appearance",a._formFieldAppearance)("color",a.color),e.xp6(1),e.Q6J("value",a.pageSize)("disabled",a.disabled)("aria-labelledby",a._pageSizeLabelId)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),e.xp6(1),e.Q6J("ngForOf",a._displayedPageSizeOptions)}}function L(S,i){if(1&S&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&S){const a=e.oxw(2);e.xp6(1),e.Oqu(a.pageSize)}}function k(S,i){if(1&S&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,w,3,8,"mat-form-field",14),e.YNc(4,L,2,1,"div",15),e.qZA()),2&S){const a=e.oxw();e.xp6(1),e.s9C("id",a._pageSizeLabelId),e.xp6(1),e.hij(" ",a._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length<=1)}}function V(S,i){if(1&S){const a=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&S){const a=e.oxw();e.Q6J("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),e.uIk("aria-label",a._intl.firstPageLabel)}}function B(S,i){if(1&S){const a=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&S){const a=e.oxw();e.Q6J("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),e.uIk("aria-label",a._intl.lastPageLabel)}}let W=(()=>{class S{constructor(){this.changes=new g.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(a,u,l)=>{if(0==l||0==u)return`0 of ${l}`;const _=a*u;return`${_+1} \u2013 ${_<(l=Math.max(l,0))?Math.min(_+u,l):_+u} of ${l}`}}}return S.\u0275fac=function(a){return new(a||S)},S.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();const Q={provide:W,deps:[[new e.FiY,new e.tp0,W]],useFactory:function Y(S){return S||new W}},me=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),re=(0,h.Id)((0,h.dB)(class{}));let ie=(()=>{class S extends re{get pageIndex(){return this._pageIndex}set pageIndex(a){this._pageIndex=Math.max((0,N.su)(a),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(a){this._length=(0,N.su)(a),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(a){this._pageSize=Math.max((0,N.su)(a),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(a){this._pageSizeOptions=(a||[]).map(u=>(0,N.su)(u)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(a){this._hidePageSize=(0,N.Ig)(a)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(a){this._showFirstLastButtons=(0,N.Ig)(a)}constructor(a,u,l){if(super(),this._intl=a,this._changeDetectorRef=u,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new e.vpe,this._intlChanges=a.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),l){const{pageSize:_,pageSizeOptions:O,hidePageSize:R,showFirstLastButtons:C}=l;null!=_&&(this._pageSize=_),null!=O&&(this._pageSizeOptions=O),null!=R&&(this._hidePageSize=R),null!=C&&(this._showFirstLastButtons=C)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(a)}previousPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(a)}firstPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=0,this._emitPageEvent(a)}lastPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(a)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const a=this.getNumberOfPages()-1;return this.pageIndex<a&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(a){const l=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0,this.pageSize=a,this._emitPageEvent(l)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((a,u)=>a-u),this._changeDetectorRef.markForCheck())}_emitPageEvent(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return S.\u0275fac=function(a){e.$Z()},S.\u0275dir=e.lG2({type:S,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[e.qOj]}),S})(),se=0,ce=(()=>{class S extends ie{constructor(a,u,l){super(a,u,l),this._pageSizeLabelId="mat-paginator-page-size-label-"+se++,this._formFieldAppearance=l?.formFieldAppearance||"outline"}}return S.\u0275fac=function(a){return new(a||S)(e.Y36(W),e.Y36(e.sBO),e.Y36(me,8))},S.\u0275cmp=e.Xpm({type:S,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-mdc-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-mdc-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-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-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-mdc-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(a,u){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,k,5,4,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,V,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return u.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return u.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,B,3,5,"button",11),e.qZA()()()),2&a&&(e.xp6(2),e.Q6J("ngIf",!u.hidePageSize),e.xp6(3),e.hij(" ",u._intl.getRangeLabel(u.pageIndex,u.pageSize,u.length)," "),e.xp6(1),e.Q6J("ngIf",u.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",u._intl.previousPageLabel)("matTooltipDisabled",u._previousButtonsDisabled())("matTooltipPosition","above")("disabled",u._previousButtonsDisabled()),e.uIk("aria-label",u._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",u._intl.nextPageLabel)("matTooltipDisabled",u._nextButtonsDisabled())("matTooltipPosition","above")("disabled",u._nextButtonsDisabled()),e.uIk("aria-label",u._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",u.showFirstLastButtons))},dependencies:[t.sg,t.O5,T.RK,d.KE,s.gD,h.ey,x.gM],styles:[".mat-mdc-paginator{display:block}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),S})(),Te=(()=>{class S{}return S.\u0275fac=function(a){return new(a||S)},S.\u0275mod=e.oAB({type:S}),S.\u0275inj=e.cJS({providers:[Q],imports:[t.ez,T.ot,s.LD,x.AV]}),S})()},3162:(We,q,m)=>{"use strict";m.d(q,{Cv:()=>w,pW:()=>d});var t=m(4650),g=(m(6895),m(3238)),T=m(1281);const s=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),N=(0,g.pj)(class{constructor(L){this._elementRef=L}},"primary");let d=(()=>{class L extends N{constructor(V,B,W,Y,Q){super(V),this._ngZone=B,this._changeDetectorRef=W,this._animationMode=Y,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._mode="determinate",this._transitionendHandler=X=>{0===this.animationEnd.observers.length||!X.target||!X.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Y,Q&&(Q.color&&(this.color=this.defaultColor=Q.color),this.mode=Q.mode||this.mode)}get value(){return this._value}set value(V){this._value=M((0,T.su)(V)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(V){this._bufferValue=M((0,T.su)(V)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(V){this._mode=V,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return L.\u0275fac=function(V){return new(V||L)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.QbO,8),t.Y36(s,8))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(V,B){2&V&&(t.uIk("aria-valuenow",B._isIndeterminate()?null:B.value)("mode",B.mode),t.ekj("_mat-animation-noopable",B._isNoopAnimation)("mdc-linear-progress--animation-ready",!B._isNoopAnimation)("mdc-linear-progress--indeterminate",B._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(V,B){1&V&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA(),t.TgZ(3,"div",3),t._UZ(4,"span",4),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",4),t.qZA()),2&V&&(t.xp6(1),t.Udp("flex-basis",B._getBufferBarFlexBasis()),t.xp6(2),t.Udp("transform",B._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-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(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-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 mdc-linear-progress-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(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{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(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{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(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),L})();function M(L,k=0,V=100){return Math.max(k,Math.min(V,L))}let w=(()=>{class L{}return L.\u0275fac=function(V){return new(V||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[g.BQ]}),L})()},1572:(We,q,m)=>{"use strict";m.d(q,{Cq:()=>V,Ou:()=>L});var t=m(4650),e=m(3238),g=m(1281),T=m(6895);const s=["determinateSpinner"];function x(B,W){if(1&B&&(t.O4$(),t.TgZ(0,"svg",11),t._UZ(1,"circle",12),t.qZA()),2&B){const Y=t.oxw();t.uIk("viewBox",Y._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",Y._strokeCircumference(),"px")("stroke-dashoffset",Y._strokeCircumference()/2,"px")("stroke-width",Y._circleStrokeWidth(),"%"),t.uIk("r",Y._circleRadius())}}const h=(0,e.pj)(class{constructor(B){this._elementRef=B}},"primary"),N=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function d(){return{diameter:M}}}),M=100;let L=(()=>{class B extends h{constructor(Y,Q,X){super(Y),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=M,this._noopAnimations="NoopAnimations"===Q&&!!X&&!X._forceAnimations,X&&(X.color&&(this.color=this.defaultColor=X.color),X.diameter&&(this.diameter=X.diameter),X.strokeWidth&&(this.strokeWidth=X.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(Y){this._value=Math.max(0,Math.min(100,(0,g.su)(Y)))}get diameter(){return this._diameter}set diameter(Y){this._diameter=(0,g.su)(Y)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(Y){this._strokeWidth=(0,g.su)(Y)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const Y=2*this._circleRadius()+this.strokeWidth;return`0 0 ${Y} ${Y}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return B.\u0275fac=function(Y){return new(Y||B)(t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(N))},B.\u0275cmp=t.Xpm({type:B,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(Y,Q){if(1&Y&&t.Gf(s,5),2&Y){let X;t.iGM(X=t.CRH())&&(Q._determinateCircle=X.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(Y,Q){2&Y&&(t.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Q.mode?Q.value:null)("mode",Q.mode),t.Udp("width",Q.diameter,"px")("height",Q.diameter,"px"),t.ekj("_mat-animation-noopable",Q._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Q.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(Y,Q){if(1&Y&&(t.YNc(0,x,2,8,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.O4$(),t.TgZ(4,"svg",3),t._UZ(5,"circle",4),t.qZA()(),t.kcU(),t.TgZ(6,"div",5)(7,"div",6)(8,"div",7),t.GkF(9,8),t.qZA(),t.TgZ(10,"div",9),t.GkF(11,8),t.qZA(),t.TgZ(12,"div",10),t.GkF(13,8),t.qZA()()()),2&Y){const X=t.MAs(1);t.xp6(4),t.uIk("viewBox",Q._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",Q._strokeCircumference(),"px")("stroke-dashoffset",Q._strokeDashOffset(),"px")("stroke-width",Q._circleStrokeWidth(),"%"),t.uIk("r",Q._circleRadius()),t.xp6(4),t.Q6J("ngTemplateOutlet",X),t.xp6(2),t.Q6J("ngTemplateOutlet",X),t.xp6(2),t.Q6J("ngTemplateOutlet",X)}},dependencies:[T.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),B})(),V=(()=>{class B{}return B.\u0275fac=function(Y){return new(Y||B)},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({imports:[T.ez,e.BQ]}),B})()},1948:(We,q,m)=>{"use strict";m.d(q,{Fk:()=>re,U0:()=>me,VQ:()=>ee});var t=m(4650),e=m(3238),g=m(4761),T=m(1281),s=m(5017),x=m(4006),h=m(6895);const N=["input"],d=["*"];let M=0;class w{constructor(se,ce){this.source=se,this.value=ce}}const L={provide:x.JU,useExisting:(0,t.Gpc)(()=>ee),multi:!0},k=new t.OlP("MatRadioGroup"),V=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function B(){return{color:"accent"}}});let W=(()=>{class ie{get name(){return this._name}set name(ce){this._name=ce,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ce){this._labelPosition="before"===ce?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ce){this._selected=ce,this.value=ce?ce.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,T.Ig)(ce),this._markRadiosForCheck()}get required(){return this._required}set required(ce){this._required=(0,T.Ig)(ce),this._markRadiosForCheck()}constructor(ce){this._changeDetector=ce,this._value=null,this._name="mat-radio-group-"+M++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ce=>{ce.name=this.name,ce._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(Te=>{Te.checked=this.value===Te.value,Te.checked&&(this._selected=Te)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ce=>ce._markForCheck())}writeValue(ce){this.value=ce,this._changeDetector.markForCheck()}registerOnChange(ce){this._controlValueAccessorChangeFn=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.disabled=ce,this._changeDetector.markForCheck()}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t.sBO))},ie.\u0275dir=t.lG2({type:ie,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ie})();class Y{constructor(se){this._elementRef=se}}const Q=(0,e.Kr)((0,e.sb)(Y));let X=(()=>{class ie extends Q{get checked(){return this._checked}set checked(ce){const Te=(0,T.Ig)(ce);this._checked!==Te&&(this._checked=Te,Te&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!Te&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),Te&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ce),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ce){this._labelPosition=ce}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ce){this._setDisabled((0,T.Ig)(ce))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ce){this._required=(0,T.Ig)(ce)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ce){this._color=ce}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(ce,Te,S,i,a,u,l,_){super(Te),this._changeDetector=S,this._focusMonitor=i,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++M,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ce,this._noopAnimations="NoopAnimations"===u,_&&(this.tabIndex=(0,T.su)(_,0))}focus(ce,Te){Te?this._focusMonitor.focusVia(this._inputElement,Te,ce):this._inputElement.nativeElement.focus(ce)}_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),this._removeUniqueSelectionListener=this._radioDispatcher.listen((ce,Te)=>{ce!==this.id&&Te===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{!ce&&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(ce){ce.stopPropagation()}_onInputInteraction(ce){if(ce.stopPropagation(),!this.checked&&!this.disabled){const Te=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),Te&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(ce){this._onInputInteraction(ce),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(ce){this._disabled!==ce&&(this._disabled=ce,this._changeDetector.markForCheck())}_updateTabIndex(){const ce=this.radioGroup;let Te;if(Te=ce&&ce.selected&&!this.disabled?ce.selected===this?this.tabIndex:-1:this.tabIndex,Te!==this._previousTabIndex){const S=this._inputElement?.nativeElement;S&&(S.setAttribute("tabindex",Te+""),this._previousTabIndex=Te)}}}return ie.\u0275fac=function(ce){t.$Z()},ie.\u0275dir=t.lG2({type:ie,viewQuery:function(ce,Te){if(1&ce&&t.Gf(N,5),2&ce){let S;t.iGM(S=t.CRH())&&(Te._inputElement=S.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]}),ie})(),ee=(()=>{class ie extends W{}return ie.\u0275fac=function(){let se;return function(Te){return(se||(se=t.n5z(ie)))(Te||ie)}}(),ie.\u0275dir=t.lG2({type:ie,selectors:[["mat-radio-group"]],contentQueries:function(ce,Te,S){if(1&ce&&t.Suo(S,me,5),2&ce){let i;t.iGM(i=t.CRH())&&(Te._radios=i)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([L,{provide:k,useExisting:ie}]),t.qOj]}),ie})(),me=(()=>{class ie extends X{constructor(ce,Te,S,i,a,u,l,_){super(ce,Te,S,i,a,u,l,_)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(k,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(g.tE),t.Y36(s.A8),t.Y36(t.QbO,8),t.Y36(V,8),t.$8M("tabindex"))},ie.\u0275cmp=t.Xpm({type:ie,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(ce,Te){1&ce&&t.NdJ("focus",function(){return Te._inputElement.nativeElement.focus()}),2&ce&&(t.uIk("id",Te.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-primary","primary"===Te.color)("mat-accent","accent"===Te.color)("mat-warn","warn"===Te.color)("mat-mdc-radio-checked",Te.checked)("_mat-animation-noopable",Te._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:d,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(ce,Te){if(1&ce&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),t.NdJ("click",function(i){return Te._onTouchTargetClick(i)}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return Te._onInputInteraction(i)}),t.qZA(),t.TgZ(6,"div",6),t._UZ(7,"div",7)(8,"div",8),t.qZA(),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA()(),t.TgZ(11,"label",11),t.Hsn(12),t.qZA()()),2&ce){const S=t.MAs(1);t.ekj("mdc-form-field--align-end","before"==Te.labelPosition),t.xp6(2),t.ekj("mdc-radio--disabled",Te.disabled),t.xp6(2),t.Q6J("id",Te.inputId)("checked",Te.checked)("disabled",Te.disabled)("required",Te.required),t.uIk("name",Te.name)("value",Te.value)("aria-label",Te.ariaLabel)("aria-labelledby",Te.ariaLabelledby)("aria-describedby",Te.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",S)("matRippleDisabled",Te._isRippleDisabled())("matRippleCentered",!0),t.xp6(2),t.Q6J("for",Te.inputId)}},dependencies:[e.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),ie})(),re=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({imports:[e.BQ,h.ez,e.si,e.BQ]}),ie})()},4385:(We,q,m)=>{"use strict";m.d(q,{$L:()=>Se,LD:()=>Fe,PG:()=>G,gD:()=>fe});var t=m(8184),e=m(6895),g=m(4650),T=m(3238),s=m(9549),x=m(531),h=m(4761),N=m(445),d=m(1281),M=m(5017),w=m(9521),L=m(4006),k=m(7579),V=m(9770),B=m(6451),W=m(8675),Y=m(3900),Q=m(5698),X=m(9300),ee=m(4004),me=m(1884),re=m(2722),ie=m(7340);const se=["trigger"],ce=["panel"];function Te(oe,ze){if(1&oe&&(g.TgZ(0,"span",10),g._uU(1),g.qZA()),2&oe){const Oe=g.oxw();g.xp6(1),g.Oqu(Oe.placeholder)}}function S(oe,ze){if(1&oe&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&oe){const Oe=g.oxw(2);g.xp6(1),g.Oqu(Oe.triggerValue)}}function i(oe,ze){1&oe&&g.Hsn(0,0,["*ngSwitchCase","true"])}function a(oe,ze){if(1&oe&&(g.TgZ(0,"span",11),g.YNc(1,S,2,1,"span",12),g.YNc(2,i,1,0,"ng-content",13),g.qZA()),2&oe){const Oe=g.oxw();g.Q6J("ngSwitch",!!Oe.customTrigger),g.xp6(2),g.Q6J("ngSwitchCase",!0)}}function u(oe,ze){if(1&oe){const Oe=g.EpF();g.O4$(),g.kcU(),g.TgZ(0,"div",15,16),g.NdJ("@transformPanel.done",function(Ae){g.CHM(Oe);const ge=g.oxw();return g.KtG(ge._panelDoneAnimatingStream.next(Ae.toState))})("keydown",function(Ae){g.CHM(Oe);const ge=g.oxw();return g.KtG(ge._handleKeydown(Ae))}),g.Hsn(2,1),g.qZA()}if(2&oe){const Oe=g.oxw();g.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Oe._getPanelTheme(),""),g.Q6J("ngClass",Oe.panelClass)("@transformPanel","showing"),g.uIk("id",Oe.id+"-panel")("aria-multiselectable",Oe.multiple)("aria-label",Oe.ariaLabel||null)("aria-labelledby",Oe._getPanelAriaLabelledby())}}const l=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],O={transformPanelWrap:(0,ie.X$)("transformPanelWrap",[(0,ie.eR)("* => void",(0,ie.IO)("@transformPanel",[(0,ie.pV)()],{optional:!0}))]),transformPanel:(0,ie.X$)("transformPanel",[(0,ie.SB)("void",(0,ie.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,ie.eR)("void => showing",(0,ie.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,ie.eR)("* => void",(0,ie.jt)("100ms linear",(0,ie.oB)({opacity:0})))])};let v=0;const K=new g.OlP("mat-select-scroll-strategy"),G=new g.OlP("MAT_SELECT_CONFIG"),ye={provide:K,deps:[t.aV],useFactory:function F(oe){return()=>oe.scrollStrategies.reposition()}},Ee=new g.OlP("MatSelectTrigger");class pe{constructor(ze,Oe){this.source=ze,this.value=Oe}}const qe=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(oe,ze,Oe,he,Ae){this._elementRef=oe,this._defaultErrorStateMatcher=ze,this._parentForm=Oe,this._parentFormGroup=he,this.ngControl=Ae,this.stateChanges=new k.x}}))));let Ce=(()=>{class oe extends qe{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Oe){this._placeholder=Oe,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.kI.required)??!1}set required(Oe){this._required=(0,d.Ig)(Oe),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Oe){this._multiple=(0,d.Ig)(Oe)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Oe){this._disableOptionCentering=(0,d.Ig)(Oe)}get compareWith(){return this._compareWith}set compareWith(Oe){this._compareWith=Oe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Oe){this._assignValue(Oe)&&this._onChange(Oe)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Oe){this._typeaheadDebounceInterval=(0,d.su)(Oe)}get id(){return this._id}set id(Oe){this._id=Oe||this._uid,this.stateChanges.next()}constructor(Oe,he,Ae,ge,Ue,Je,Re,le,rt,Qe,ct,Gt,ut,Ze){super(Ue,ge,Re,le,Qe),this._viewportRuler=Oe,this._changeDetectorRef=he,this._ngZone=Ae,this._dir=Je,this._parentFormField=rt,this._liveAnnouncer=ut,this._defaultOptions=Ze,this._panelOpen=!1,this._compareWith=(xt,Me)=>xt===Me,this._uid="mat-select-"+v++,this._triggerAriaLabelledBy=null,this._destroy=new k.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+v++,this._panelDoneAnimatingStream=new k.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,V.P)(()=>{const xt=this.options;return xt?xt.changes.pipe((0,W.O)(xt),(0,Y.w)(()=>(0,B.T)(...xt.map(Me=>Me.onSelectionChange)))):this._ngZone.onStable.pipe((0,Q.q)(1),(0,Y.w)(()=>this.optionSelectionChanges))}),this.openedChange=new g.vpe,this._openedStream=this.openedChange.pipe((0,X.h)(xt=>xt),(0,ee.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,X.h)(xt=>!xt),(0,ee.U)(()=>{})),this.selectionChange=new g.vpe,this.valueChange=new g.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ze?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ze.typeaheadDebounceInterval),this._scrollStrategyFactory=Gt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ct)||0,this.id=this.id}ngOnInit(){this._selectionModel=new M.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,me.x)(),(0,re.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,re.R)(this._destroy)).subscribe(Oe=>{Oe.added.forEach(he=>he.select()),Oe.removed.forEach(he=>he.deselect())}),this.options.changes.pipe((0,W.O)(null),(0,re.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Oe=this._getTriggerAriaLabelledby(),he=this.ngControl;if(Oe!==this._triggerAriaLabelledBy){const Ae=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Oe,Oe?Ae.setAttribute("aria-labelledby",Oe):Ae.removeAttribute("aria-labelledby")}he&&(this._previousControl!==he.control&&(void 0!==this._previousControl&&null!==he.disabled&&he.disabled!==this.disabled&&(this.disabled=he.disabled),this._previousControl=he.control),this.updateErrorState())}ngOnChanges(Oe){(Oe.disabled||Oe.userAriaDescribedBy)&&this.stateChanges.next(),Oe.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),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(Oe){this._assignValue(Oe)}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this.disabled=Oe,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Oe=this._selectionModel.selected.map(he=>he.viewValue);return this._isRtl()&&Oe.reverse(),Oe.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Oe){this.disabled||(this.panelOpen?this._handleOpenKeydown(Oe):this._handleClosedKeydown(Oe))}_handleClosedKeydown(Oe){const he=Oe.keyCode,Ae=he===w.JH||he===w.LH||he===w.oh||he===w.SV,ge=he===w.K5||he===w.L_,Ue=this._keyManager;if(!Ue.isTyping()&&ge&&!(0,w.Vb)(Oe)||(this.multiple||Oe.altKey)&&Ae)Oe.preventDefault(),this.open();else if(!this.multiple){const Je=this.selected;Ue.onKeydown(Oe);const Re=this.selected;Re&&Je!==Re&&this._liveAnnouncer.announce(Re.viewValue,1e4)}}_handleOpenKeydown(Oe){const he=this._keyManager,Ae=Oe.keyCode,ge=Ae===w.JH||Ae===w.LH,Ue=he.isTyping();if(ge&&Oe.altKey)Oe.preventDefault(),this.close();else if(Ue||Ae!==w.K5&&Ae!==w.L_||!he.activeItem||(0,w.Vb)(Oe))if(!Ue&&this._multiple&&Ae===w.A&&Oe.ctrlKey){Oe.preventDefault();const Je=this.options.some(Re=>!Re.disabled&&!Re.selected);this.options.forEach(Re=>{Re.disabled||(Je?Re.select():Re.deselect())})}else{const Je=he.activeItemIndex;he.onKeydown(Oe),this._multiple&&ge&&Oe.shiftKey&&he.activeItem&&he.activeItemIndex!==Je&&he.activeItem._selectViaInteraction()}else Oe.preventDefault(),he.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Oe){if(this.options.forEach(he=>he.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Oe)Array.isArray(Oe),Oe.forEach(he=>this._selectOptionByValue(he)),this._sortValues();else{const he=this._selectOptionByValue(Oe);he?this._keyManager.updateActiveItem(he):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Oe){const he=this.options.find(Ae=>{if(this._selectionModel.isSelected(Ae))return!1;try{return null!=Ae.value&&this._compareWith(Ae.value,Oe)}catch{return!1}});return he&&this._selectionModel.select(he),he}_assignValue(Oe){return!!(Oe!==this._value||this._multiple&&Array.isArray(Oe))&&(this.options&&this._setSelectionByValue(Oe),this._value=Oe,!0)}_initKeyManager(){this._keyManager=new h.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Oe=(0,B.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,re.R)(Oe)).subscribe(he=>{this._onSelect(he.source,he.isUserInput),he.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,B.T)(...this.options.map(he=>he._stateChanges)).pipe((0,re.R)(Oe)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Oe,he){const Ae=this._selectionModel.isSelected(Oe);null!=Oe.value||this._multiple?(Ae!==Oe.selected&&(Oe.selected?this._selectionModel.select(Oe):this._selectionModel.deselect(Oe)),he&&this._keyManager.setActiveItem(Oe),this.multiple&&(this._sortValues(),he&&this.focus())):(Oe.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Oe.value)),Ae!==this._selectionModel.isSelected(Oe)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Oe=this.options.toArray();this._selectionModel.sort((he,Ae)=>this.sortComparator?this.sortComparator(he,Ae,Oe):Oe.indexOf(he)-Oe.indexOf(Ae)),this.stateChanges.next()}}_propagateChanges(Oe){let he=null;he=this.multiple?this.selected.map(Ae=>Ae.value):this.selected?this.selected.value:Oe,this._value=he,this.valueChange.emit(he),this._onChange(he),this.selectionChange.emit(this._getChangeEvent(he)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(Oe){this._elementRef.nativeElement.focus(Oe)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Oe=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Oe=this._parentFormField?.getLabelId();let he=(Oe?Oe+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}_panelDoneAnimating(Oe){this.openedChange.emit(Oe)}setDescribedByIds(Oe){Oe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Oe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(g.Y36(x.rL),g.Y36(g.sBO),g.Y36(g.R0b),g.Y36(T.rD),g.Y36(g.SBq),g.Y36(N.Is,8),g.Y36(L.F,8),g.Y36(L.sg,8),g.Y36(s.G_,8),g.Y36(L.a5,10),g.$8M("tabindex"),g.Y36(K),g.Y36(h.Kd),g.Y36(G,8))},oe.\u0275dir=g.lG2({type:oe,viewQuery:function(Oe,he){if(1&Oe&&(g.Gf(se,5),g.Gf(ce,5),g.Gf(t.pI,5)),2&Oe){let Ae;g.iGM(Ae=g.CRH())&&(he.trigger=Ae.first),g.iGM(Ae=g.CRH())&&(he.panel=Ae.first),g.iGM(Ae=g.CRH())&&(he._overlayDir=Ae.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],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:[g.qOj,g.TTD]}),oe})(),Se=(()=>{class oe{}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275dir=g.lG2({type:oe,selectors:[["mat-select-trigger"]],features:[g._Bn([{provide:Ee,useExisting:oe}])]}),oe})(),fe=(()=>{class oe extends Ce{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,re.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Oe){const he=this.options.toArray()[Oe];if(he){const Ae=this.panel.nativeElement,ge=(0,T.CB)(Oe,this.options,this.optionGroups),Ue=he._getHostElement();Ae.scrollTop=0===Oe&&1===ge?0:(0,T.jH)(Ue.offsetTop,Ue.offsetHeight,Ae.scrollTop,Ae.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Oe){return new pe(this,Oe)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof t.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Oe){this._hideSingleSelectionIndicator=(0,d.Ig)(Oe),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Oe of this.options)Oe._changeDetectorRef.markForCheck()}}return oe.\u0275fac=function(){let ze;return function(he){return(ze||(ze=g.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=g.Xpm({type:oe,selectors:[["mat-select"]],contentQueries:function(Oe,he,Ae){if(1&Oe&&(g.Suo(Ae,Ee,5),g.Suo(Ae,T.ey,5),g.Suo(Ae,T.K7,5)),2&Oe){let ge;g.iGM(ge=g.CRH())&&(he.customTrigger=ge.first),g.iGM(ge=g.CRH())&&(he.options=ge),g.iGM(ge=g.CRH())&&(he.optionGroups=ge)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Oe,he){1&Oe&&g.NdJ("keydown",function(ge){return he._handleKeydown(ge)})("focus",function(){return he._onFocus()})("blur",function(){return he._onBlur()}),2&Oe&&(g.uIk("id",he.id)("tabindex",he.tabIndex)("aria-controls",he.panelOpen?he.id+"-panel":null)("aria-expanded",he.panelOpen)("aria-label",he.ariaLabel||null)("aria-required",he.required.toString())("aria-disabled",he.disabled.toString())("aria-invalid",he.errorState)("aria-activedescendant",he._getAriaActiveDescendant()),g.ekj("mat-mdc-select-disabled",he.disabled)("mat-mdc-select-invalid",he.errorState)("mat-mdc-select-required",he.required)("mat-mdc-select-empty",he.empty)("mat-mdc-select-multiple",he.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[g._Bn([{provide:s.Eo,useExisting:oe},{provide:T.HF,useExisting:oe}]),g.qOj],ngContentSelectors:_,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Oe,he){if(1&Oe&&(g.F$t(l),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return he.toggle()}),g.TgZ(3,"div",2),g.YNc(4,Te,2,1,"span",3),g.YNc(5,a,3,2,"span",4),g.qZA(),g.TgZ(6,"div",5)(7,"div",6),g.O4$(),g.TgZ(8,"svg",7),g._UZ(9,"path",8),g.qZA()()()(),g.YNc(10,u,3,9,"ng-template",9),g.NdJ("backdropClick",function(){return he.close()})("attach",function(){return he._onAttached()})("detach",function(){return he.close()})),2&Oe){const Ae=g.MAs(1);g.uIk("aria-owns",he.panelOpen?he.id+"-panel":null),g.xp6(3),g.Q6J("ngSwitch",he.empty),g.uIk("id",he._valueId),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1),g.xp6(5),g.Q6J("cdkConnectedOverlayPanelClass",he._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",he._scrollStrategy)("cdkConnectedOverlayOrigin",he._preferredOverlayOrigin||Ae)("cdkConnectedOverlayOpen",he.panelOpen)("cdkConnectedOverlayPositions",he._positions)("cdkConnectedOverlayWidth",he._overlayWidth)}},dependencies:[e.mk,e.RF,e.n9,e.ED,t.pI,t.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[O.transformPanel]},changeDetection:0}),oe})(),Fe=(()=>{class oe{}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275mod=g.oAB({type:oe}),oe.\u0275inj=g.cJS({providers:[ye],imports:[e.ez,t.U8,T.Ng,T.BQ,x.ZD,s.lN,T.Ng,T.BQ]}),oe})()},3267:(We,q,m)=>{"use strict";m.d(q,{JX:()=>Ee,Rh:()=>ye,SJ:()=>qe,TM:()=>pe});var t=m(531),e=m(6895),g=m(4650),T=m(3238),s=m(4761),x=m(445),h=m(1281),N=m(9521),d=m(3353),M=m(7579),w=m(4968),L=m(6451),k=m(9300),V=m(4004),B=m(9718),W=m(2722),Y=m(1884),Q=m(5698),X=m(8675),ee=m(8372),me=m(7340);const re=["*"],ie=["content"];function se(Ce,Se){if(1&Ce){const fe=g.EpF();g.TgZ(0,"div",2),g.NdJ("click",function(){g.CHM(fe);const oe=g.oxw();return g.KtG(oe._onBackdropClicked())}),g.qZA()}if(2&Ce){const fe=g.oxw();g.ekj("mat-drawer-shown",fe._isShowingBackdrop())}}function ce(Ce,Se){1&Ce&&(g.TgZ(0,"mat-drawer-content"),g.Hsn(1,2),g.qZA())}const Te=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],S=["mat-drawer","mat-drawer-content","*"];function i(Ce,Se){if(1&Ce){const fe=g.EpF();g.TgZ(0,"div",2),g.NdJ("click",function(){g.CHM(fe);const oe=g.oxw();return g.KtG(oe._onBackdropClicked())}),g.qZA()}if(2&Ce){const fe=g.oxw();g.ekj("mat-drawer-shown",fe._isShowingBackdrop())}}function a(Ce,Se){1&Ce&&(g.TgZ(0,"mat-sidenav-content"),g.Hsn(1,2),g.qZA())}const u=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l=["mat-sidenav","mat-sidenav-content","*"],O={transformDrawer:(0,me.X$)("transform",[(0,me.SB)("open, open-instant",(0,me.oB)({transform:"none",visibility:"visible"})),(0,me.SB)("void",(0,me.oB)({"box-shadow":"none",visibility:"hidden"})),(0,me.eR)("void => open-instant",(0,me.jt)("0ms")),(0,me.eR)("void <=> open, open-instant => void",(0,me.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},C=new g.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function v(){return!1}}),n=new g.OlP("MAT_DRAWER_CONTAINER");let K=(()=>{class Ce extends t.PQ{constructor(fe,Fe,oe,ze,Oe){super(oe,ze,Oe),this._changeDetectorRef=fe,this._container=Fe}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(g.Y36(g.sBO),g.Y36((0,g.Gpc)(()=>G)),g.Y36(g.SBq),g.Y36(t.mF),g.Y36(g.R0b))},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(fe,Fe){2&fe&&g.Udp("margin-left",Fe._container._contentMargins.left,"px")("margin-right",Fe._container._contentMargins.right,"px")},features:[g._Bn([{provide:t.PQ,useExisting:Ce}]),g.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(fe,Fe){1&fe&&(g.F$t(),g.Hsn(0))},encapsulation:2,changeDetection:0}),Ce})(),F=(()=>{class Ce{get position(){return this._position}set position(fe){(fe="end"===fe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(fe),this._position=fe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(fe){this._mode=fe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(fe){this._disableClose=(0,h.Ig)(fe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(fe){("true"===fe||"false"===fe||null==fe)&&(fe=(0,h.Ig)(fe)),this._autoFocus=fe}get opened(){return this._opened}set opened(fe){this.toggle((0,h.Ig)(fe))}constructor(fe,Fe,oe,ze,Oe,he,Ae,ge){this._elementRef=fe,this._focusTrapFactory=Fe,this._focusMonitor=oe,this._platform=ze,this._ngZone=Oe,this._interactivityChecker=he,this._doc=Ae,this._container=ge,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new M.x,this._animationEnd=new M.x,this._animationState="void",this.openedChange=new g.vpe(!0),this._openedStream=this.openedChange.pipe((0,k.h)(Ue=>Ue),(0,V.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,k.h)(Ue=>Ue.fromState!==Ue.toState&&0===Ue.toState.indexOf("open")),(0,B.h)(void 0)),this._closedStream=this.openedChange.pipe((0,k.h)(Ue=>!Ue),(0,V.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,k.h)(Ue=>Ue.fromState!==Ue.toState&&"void"===Ue.toState),(0,B.h)(void 0)),this._destroyed=new M.x,this.onPositionChanged=new g.vpe,this._modeChanged=new M.x,this.openedChange.subscribe(Ue=>{Ue?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,w.R)(this._elementRef.nativeElement,"keydown").pipe((0,k.h)(Ue=>Ue.keyCode===N.hY&&!this.disableClose&&!(0,N.Vb)(Ue)),(0,W.R)(this._destroyed)).subscribe(Ue=>this._ngZone.run(()=>{this.close(),Ue.stopPropagation(),Ue.preventDefault()}))}),this._animationEnd.pipe((0,Y.x)((Ue,Je)=>Ue.fromState===Je.fromState&&Ue.toState===Je.toState)).subscribe(Ue=>{const{fromState:Je,toState:Re}=Ue;(0===Re.indexOf("open")&&"void"===Je||"void"===Re&&0===Je.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(fe,Fe){this._interactivityChecker.isFocusable(fe)||(fe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const oe=()=>{fe.removeEventListener("blur",oe),fe.removeEventListener("mousedown",oe),fe.removeAttribute("tabindex")};fe.addEventListener("blur",oe),fe.addEventListener("mousedown",oe)})),fe.focus(Fe)}_focusByCssSelector(fe,Fe){let oe=this._elementRef.nativeElement.querySelector(fe);oe&&this._forceFocus(oe,Fe)}_takeFocus(){if(!this._focusTrap)return;const fe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Fe=>{!Fe&&"function"==typeof this._elementRef.nativeElement.focus&&fe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(fe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,fe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const fe=this._doc.activeElement;return!!fe&&this._elementRef.nativeElement.contains(fe)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(fe){return this.toggle(!0,fe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(fe=!this.opened,Fe){fe&&Fe&&(this._openedVia=Fe);const oe=this._setOpen(fe,!fe&&this._isFocusWithinDrawer(),this._openedVia||"program");return fe||(this._openedVia=null),oe}_setOpen(fe,Fe,oe){return this._opened=fe,fe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Fe&&this._restoreFocus(oe)),this._updateFocusTrapState(),new Promise(ze=>{this.openedChange.pipe((0,Q.q)(1)).subscribe(Oe=>ze(Oe?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(fe){const Fe=this._elementRef.nativeElement,oe=Fe.parentNode;"end"===fe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),oe.insertBefore(this._anchor,Fe)),oe.appendChild(Fe)):this._anchor&&this._anchor.parentNode.insertBefore(Fe,this._anchor)}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(g.Y36(g.SBq),g.Y36(s.qV),g.Y36(s.tE),g.Y36(d.t4),g.Y36(g.R0b),g.Y36(s.ic),g.Y36(e.K0,8),g.Y36(n,8))},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-drawer"]],viewQuery:function(fe,Fe){if(1&fe&&g.Gf(ie,5),2&fe){let oe;g.iGM(oe=g.CRH())&&(Fe._content=oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(fe,Fe){1&fe&&g.WFA("@transform.start",function(ze){return Fe._animationStarted.next(ze)})("@transform.done",function(ze){return Fe._animationEnd.next(ze)}),2&fe&&(g.uIk("align",null),g.d8E("@transform",Fe._animationState),g.ekj("mat-drawer-end","end"===Fe.position)("mat-drawer-over","over"===Fe.mode)("mat-drawer-push","push"===Fe.mode)("mat-drawer-side","side"===Fe.mode)("mat-drawer-opened",Fe.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(fe,Fe){1&fe&&(g.F$t(),g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[O.transformDrawer]},changeDetection:0}),Ce})(),G=(()=>{class Ce{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(fe){this._autosize=(0,h.Ig)(fe)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(fe){this._backdropOverride=null==fe?null:(0,h.Ig)(fe)}get scrollable(){return this._userContent||this._content}constructor(fe,Fe,oe,ze,Oe,he=!1,Ae){this._dir=fe,this._element=Fe,this._ngZone=oe,this._changeDetectorRef=ze,this._animationMode=Ae,this._drawers=new g.n_E,this.backdropClick=new g.vpe,this._destroyed=new M.x,this._doCheckSubject=new M.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new M.x,fe&&fe.change.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Oe.change().pipe((0,W.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=he}ngAfterContentInit(){this._allDrawers.changes.pipe((0,X.O)(this._allDrawers),(0,W.R)(this._destroyed)).subscribe(fe=>{this._drawers.reset(fe.filter(Fe=>!Fe._container||Fe._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,X.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(fe=>{this._watchDrawerToggle(fe),this._watchDrawerPosition(fe),this._watchDrawerMode(fe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ee.b)(10),(0,W.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(fe=>fe.open())}close(){this._drawers.forEach(fe=>fe.close())}updateContentMargins(){let fe=0,Fe=0;if(this._left&&this._left.opened)if("side"==this._left.mode)fe+=this._left._getWidth();else if("push"==this._left.mode){const oe=this._left._getWidth();fe+=oe,Fe-=oe}if(this._right&&this._right.opened)if("side"==this._right.mode)Fe+=this._right._getWidth();else if("push"==this._right.mode){const oe=this._right._getWidth();Fe+=oe,fe-=oe}fe=fe||null,Fe=Fe||null,(fe!==this._contentMargins.left||Fe!==this._contentMargins.right)&&(this._contentMargins={left:fe,right:Fe},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(fe){fe._animationStarted.pipe((0,k.h)(Fe=>Fe.fromState!==Fe.toState),(0,W.R)(this._drawers.changes)).subscribe(Fe=>{"open-instant"!==Fe.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==fe.mode&&fe.openedChange.pipe((0,W.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(fe.opened))}_watchDrawerPosition(fe){fe&&fe.onPositionChanged.pipe((0,W.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Q.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(fe){fe&&fe._modeChanged.pipe((0,W.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(fe){const Fe=this._element.nativeElement.classList,oe="mat-drawer-container-has-open";fe?Fe.add(oe):Fe.remove(oe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(fe=>{"end"==fe.position?this._end=fe:this._start=fe}),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(fe=>fe&&!fe.disableClose&&this._canHaveBackdrop(fe)).forEach(fe=>fe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(fe){return"side"!==fe.mode||!!this._backdropOverride}_isDrawerOpen(fe){return null!=fe&&fe.opened}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(g.Y36(x.Is,8),g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(g.sBO),g.Y36(t.rL),g.Y36(C),g.Y36(g.QbO,8))},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-drawer-container"]],contentQueries:function(fe,Fe,oe){if(1&fe&&(g.Suo(oe,K,5),g.Suo(oe,F,5)),2&fe){let ze;g.iGM(ze=g.CRH())&&(Fe._content=ze.first),g.iGM(ze=g.CRH())&&(Fe._allDrawers=ze)}},viewQuery:function(fe,Fe){if(1&fe&&g.Gf(K,5),2&fe){let oe;g.iGM(oe=g.CRH())&&(Fe._userContent=oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(fe,Fe){2&fe&&g.ekj("mat-drawer-container-explicit-backdrop",Fe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[g._Bn([{provide:n,useExisting:Ce}])],ngContentSelectors:S,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(fe,Fe){1&fe&&(g.F$t(Te),g.YNc(0,se,1,2,"div",0),g.Hsn(1),g.Hsn(2,1),g.YNc(3,ce,2,0,"mat-drawer-content",1)),2&fe&&(g.Q6J("ngIf",Fe.hasBackdrop),g.xp6(3),g.Q6J("ngIf",!Fe._content))},dependencies:[e.O5,K],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Ce})(),ye=(()=>{class Ce extends K{constructor(fe,Fe,oe,ze,Oe){super(fe,Fe,oe,ze,Oe)}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(g.Y36(g.sBO),g.Y36((0,g.Gpc)(()=>pe)),g.Y36(g.SBq),g.Y36(t.mF),g.Y36(g.R0b))},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(fe,Fe){2&fe&&g.Udp("margin-left",Fe._container._contentMargins.left,"px")("margin-right",Fe._container._contentMargins.right,"px")},features:[g._Bn([{provide:t.PQ,useExisting:Ce}]),g.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(fe,Fe){1&fe&&(g.F$t(),g.Hsn(0))},encapsulation:2,changeDetection:0}),Ce})(),Ee=(()=>{class Ce extends F{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(fe){this._fixedInViewport=(0,h.Ig)(fe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(fe){this._fixedTopGap=(0,h.su)(fe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(fe){this._fixedBottomGap=(0,h.su)(fe)}}return Ce.\u0275fac=function(){let Se;return function(Fe){return(Se||(Se=g.n5z(Ce)))(Fe||Ce)}}(),Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(fe,Fe){2&fe&&(g.uIk("align",null),g.Udp("top",Fe.fixedInViewport?Fe.fixedTopGap:null,"px")("bottom",Fe.fixedInViewport?Fe.fixedBottomGap:null,"px"),g.ekj("mat-drawer-end","end"===Fe.position)("mat-drawer-over","over"===Fe.mode)("mat-drawer-push","push"===Fe.mode)("mat-drawer-side","side"===Fe.mode)("mat-drawer-opened",Fe.opened)("mat-sidenav-fixed",Fe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[g.qOj],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(fe,Fe){1&fe&&(g.F$t(),g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[O.transformDrawer]},changeDetection:0}),Ce})(),pe=(()=>{class Ce extends G{}return Ce.\u0275fac=function(){let Se;return function(Fe){return(Se||(Se=g.n5z(Ce)))(Fe||Ce)}}(),Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["mat-sidenav-container"]],contentQueries:function(fe,Fe,oe){if(1&fe&&(g.Suo(oe,ye,5),g.Suo(oe,Ee,5)),2&fe){let ze;g.iGM(ze=g.CRH())&&(Fe._content=ze.first),g.iGM(ze=g.CRH())&&(Fe._allDrawers=ze)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(fe,Fe){2&fe&&g.ekj("mat-drawer-container-explicit-backdrop",Fe._backdropOverride)},exportAs:["matSidenavContainer"],features:[g._Bn([{provide:n,useExisting:Ce}]),g.qOj],ngContentSelectors:l,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(fe,Fe){1&fe&&(g.F$t(u),g.YNc(0,i,1,2,"div",0),g.Hsn(1),g.Hsn(2,1),g.YNc(3,a,2,0,"mat-sidenav-content",1)),2&fe&&(g.Q6J("ngIf",Fe.hasBackdrop),g.xp6(3),g.Q6J("ngIf",!Fe._content))},dependencies:[e.O5,ye],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Ce})(),qe=(()=>{class Ce{}return Ce.\u0275fac=function(fe){return new(fe||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({imports:[e.ez,T.BQ,t.ZD,t.ZD,T.BQ]}),Ce})()},455:(We,q,m)=>{"use strict";m.d(q,{Rr:()=>B,rP:()=>X});var t=m(4650),e=m(4006),g=m(4761),T=m(3238),s=m(1281),x=m(6895);const h=["switch"],N=["*"],d=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),M={provide:e.JU,useExisting:(0,t.Gpc)(()=>B),multi:!0};class w{constructor(me,re){this.source=me,this.checked=re}}let L=0;const k=(0,T.sb)((0,T.pj)((0,T.Kr)((0,T.Id)(class{constructor(ee){this._elementRef=ee}}))));let V=(()=>{class ee extends k{get required(){return this._required}set required(re){this._required=(0,s.Ig)(re)}get checked(){return this._checked}set checked(re){this._checked=(0,s.Ig)(re),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(re,ie,se,ce,Te,S,i){super(re),this._focusMonitor=ie,this._changeDetectorRef=se,this.defaults=Te,this._onChange=a=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(ce)||0,this.color=this.defaultColor=Te.color||"accent",this._noopAnimations="NoopAnimations"===S,this.id=this._uniqueId=`${i}${++L}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(re=>{"keyboard"===re||"program"===re?(this._focused=!0,this._changeDetectorRef.markForCheck()):re||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(re){this.checked=!!re}registerOnChange(re){this._onChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ee.\u0275fac=function(re){t.$Z()},ee.\u0275dir=t.lG2({type:ee,inputs:{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"},features:[t.qOj]}),ee})(),B=(()=>{class ee extends V{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(re,ie,se,ce,Te,S){super(re,ie,se,ce,Te,S,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new w(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(re){return new w(this,re)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return ee.\u0275fac=function(re){return new(re||ee)(t.Y36(t.SBq),t.Y36(g.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(d),t.Y36(t.QbO,8))},ee.\u0275cmp=t.Xpm({type:ee,selectors:[["mat-slide-toggle"]],viewQuery:function(re,ie){if(1&re&&t.Gf(h,5),2&re){let se;t.iGM(se=t.CRH())&&(ie._switchElement=se.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(re,ie){2&re&&(t.Ikx("id",ie.id),t.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.ekj("mat-mdc-slide-toggle-focused",ie._focused)("mat-mdc-slide-toggle-checked",ie.checked)("_mat-animation-noopable",ie._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([M]),t.qOj],ngContentSelectors:N,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(re,ie){if(1&re&&(t.F$t(),t.TgZ(0,"div",0)(1,"button",1,2),t.NdJ("click",function(){return ie._handleClick()}),t._UZ(3,"div",3),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6),t._UZ(7,"div",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"div",9),t.qZA(),t.TgZ(10,"div",10),t.O4$(),t.TgZ(11,"svg",11),t._UZ(12,"path",12),t.qZA(),t.TgZ(13,"svg",13),t._UZ(14,"path",14),t.qZA()()()()(),t.kcU(),t.TgZ(15,"label",15),t.NdJ("click",function(ce){return ce.stopPropagation()}),t.Hsn(16),t.qZA()()),2&re){const se=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==ie.labelPosition),t.xp6(1),t.ekj("mdc-switch--selected",ie.checked)("mdc-switch--unselected",!ie.checked)("mdc-switch--checked",ie.checked)("mdc-switch--disabled",ie.disabled),t.Q6J("tabIndex",ie.tabIndex)("disabled",ie.disabled),t.uIk("id",ie.buttonId)("name",ie.name)("aria-label",ie.ariaLabel)("aria-labelledby",ie._getAriaLabelledBy())("aria-describedby",ie.ariaDescribedby)("aria-required",ie.required||null)("aria-checked",ie.checked),t.xp6(8),t.Q6J("matRippleTrigger",se)("matRippleDisabled",ie.disableRipple||ie.disabled)("matRippleCentered",!0),t.xp6(6),t.Q6J("for",ie.buttonId),t.uIk("id",ie._labelId)}},dependencies:[T.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),ee})(),Q=(()=>{class ee{}return ee.\u0275fac=function(re){return new(re||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({}),ee})(),X=(()=>{class ee{}return ee.\u0275fac=function(re){return new(re||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({imports:[Q,T.BQ,T.si,x.ez,Q,T.BQ]}),ee})()},7009:(We,q,m)=>{"use strict";m.d(q,{Ve:()=>l,ZX:()=>a,ux:()=>O});var t=m(4650),e=m(7579),g=m(6895),T=m(4859),s=m(7340),x=m(4080),h=m(3353),N=m(5698),d=m(2722),M=m(4761),w=m(2289),L=m(8184),k=m(3238);function V(R,C){if(1&R){const n=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(n);const K=t.oxw();return t.KtG(K.action())}),t._uU(2),t.qZA()()}if(2&R){const n=t.oxw();t.xp6(2),t.hij(" ",n.data.action," ")}}const B=["label"];function W(R,C){}const Y=Math.pow(2,31)-1;class Q{constructor(C,n){this._overlayRef=n,this._afterDismissed=new e.x,this._afterOpened=new e.x,this._onAction=new e.x,this._dismissedByAction=!1,this.containerInstance=C,C._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(C){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(C,Y))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const X=new t.OlP("MatSnackBarData");class ee{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let me=(()=>{class R{}return R.\u0275fac=function(n){return new(n||R)},R.\u0275dir=t.lG2({type:R,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),R})(),re=(()=>{class R{}return R.\u0275fac=function(n){return new(n||R)},R.\u0275dir=t.lG2({type:R,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),R})(),ie=(()=>{class R{}return R.\u0275fac=function(n){return new(n||R)},R.\u0275dir=t.lG2({type:R,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),R})(),se=(()=>{class R{constructor(n,v){this.snackBarRef=n,this.data=v}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return R.\u0275fac=function(n){return new(n||R)(t.Y36(Q),t.Y36(X))},R.\u0275cmp=t.Xpm({type:R,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,v){1&n&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.YNc(2,V,3,1,"div",1)),2&n&&(t.xp6(1),t.hij(" ",v.data.message,"\n"),t.xp6(1),t.Q6J("ngIf",v.hasAction))},dependencies:[g.O5,T.lW,me,re,ie],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),R})();const ce={snackBarState:(0,s.X$)("state",[(0,s.SB)("void, hidden",(0,s.oB)({transform:"scale(0.8)",opacity:0})),(0,s.SB)("visible",(0,s.oB)({transform:"scale(1)",opacity:1})),(0,s.eR)("* => visible",(0,s.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,s.eR)("* => void, * => hidden",(0,s.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,s.oB)({opacity:0})))])};let Te=0,S=(()=>{class R extends x.en{constructor(n,v,K,F,G){super(),this._ngZone=n,this._elementRef=v,this._changeDetectorRef=K,this._platform=F,this.snackBarConfig=G,this._document=(0,t.f3M)(g.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new e.x,this._onExit=new e.x,this._onEnter=new e.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Te++,this.attachDomPortal=ye=>{this._assertNotAttached();const Ee=this._portalOutlet.attachDomPortal(ye);return this._afterPortalAttached(),Ee},this._live="assertive"!==G.politeness||G.announcementMessage?"off"===G.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();const v=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),v}attachTemplatePortal(n){this._assertNotAttached();const v=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),v}onAnimationEnd(n){const{fromState:v,toState:K}=n;if(("void"===K&&"void"!==v||"hidden"===K)&&this._completeExit(),"visible"===K){const F=this._onEnter;this._ngZone.run(()=>{F.next(),F.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,N.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const n=this._elementRef.nativeElement,v=this.snackBarConfig.panelClass;v&&(Array.isArray(v)?v.forEach(K=>n.classList.add(K)):n.classList.add(v)),this._exposeToModals()}_exposeToModals(){const n=this._liveElementId,v=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let K=0;K<v.length;K++){const F=v[K],G=F.getAttribute("aria-owns");this._trackedModals.add(F),G?-1===G.indexOf(n)&&F.setAttribute("aria-owns",G+" "+n):F.setAttribute("aria-owns",n)}}_clearFromModals(){this._trackedModals.forEach(n=>{const v=n.getAttribute("aria-owns");if(v){const K=v.replace(this._liveElementId,"").trim();K.length>0?n.setAttribute("aria-owns",K):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),v=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&v){let K=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(K=document.activeElement),n.removeAttribute("aria-hidden"),v.appendChild(n),K?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return R.\u0275fac=function(n){return new(n||R)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(h.t4),t.Y36(ee))},R.\u0275dir=t.lG2({type:R,viewQuery:function(n,v){if(1&n&&t.Gf(x.Pl,7),2&n){let K;t.iGM(K=t.CRH())&&(v._portalOutlet=K.first)}},features:[t.qOj]}),R})(),i=(()=>{class R extends S{_afterPortalAttached(){super._afterPortalAttached();const n=this._label.nativeElement,v="mdc-snackbar__label";n.classList.toggle(v,!n.querySelector(`.${v}`))}}return R.\u0275fac=function(){let C;return function(v){return(C||(C=t.n5z(R)))(v||R)}}(),R.\u0275cmp=t.Xpm({type:R,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,v){if(1&n&&t.Gf(B,7),2&n){let K;t.iGM(K=t.CRH())&&(v._label=K.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(n,v){1&n&&t.WFA("@state.done",function(F){return v.onAnimationEnd(F)}),2&n&&t.d8E("@state",v._animationState)},features:[t.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,v){1&n&&(t.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),t.YNc(4,W,0,0,"ng-template",4),t.qZA(),t._UZ(5,"div"),t.qZA()()),2&n&&(t.xp6(5),t.uIk("aria-live",v._live)("role",v._role)("id",v._liveElementId))},dependencies:[x.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[ce.snackBarState]}}),R})(),a=(()=>{class R{}return R.\u0275fac=function(n){return new(n||R)},R.\u0275mod=t.oAB({type:R}),R.\u0275inj=t.cJS({imports:[L.U8,x.eL,g.ez,T.ot,k.BQ,k.BQ]}),R})();const l=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function u(){return new ee}});let _=(()=>{class R{get _openedSnackBarRef(){const n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,v,K,F,G,ye){this._overlay=n,this._live=v,this._injector=K,this._breakpointObserver=F,this._parentSnackBar=G,this._defaultConfig=ye,this._snackBarRefAtThisLevel=null}openFromComponent(n,v){return this._attach(n,v)}openFromTemplate(n,v){return this._attach(n,v)}open(n,v="",K){const F={...this._defaultConfig,...K};return F.data={message:n,action:v},F.announcementMessage===n&&(F.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,F)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,v){const F=t.zs3.create({parent:v&&v.viewContainerRef&&v.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:v}]}),G=new x.C5(this.snackBarContainerComponent,v.viewContainerRef,F),ye=n.attach(G);return ye.instance.snackBarConfig=v,ye.instance}_attach(n,v){const K={...new ee,...this._defaultConfig,...v},F=this._createOverlay(K),G=this._attachSnackBarContainer(F,K),ye=new Q(G,F);if(n instanceof t.Rgc){const Ee=new x.UE(n,null,{$implicit:K.data,snackBarRef:ye});ye.instance=G.attachTemplatePortal(Ee)}else{const Ee=this._createInjector(K,ye),pe=new x.C5(n,void 0,Ee),qe=G.attachComponentPortal(pe);ye.instance=qe.instance}return this._breakpointObserver.observe(w.u3.HandsetPortrait).pipe((0,d.R)(F.detachments())).subscribe(Ee=>{F.overlayElement.classList.toggle(this.handsetCssClass,Ee.matches)}),K.announcementMessage&&G._onAnnounce.subscribe(()=>{this._live.announce(K.announcementMessage,K.politeness)}),this._animateSnackBar(ye,K),this._openedSnackBarRef=ye,this._openedSnackBarRef}_animateSnackBar(n,v){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),v.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),v.duration&&v.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(v.duration))}_createOverlay(n){const v=new L.X_;v.direction=n.direction;let K=this._overlay.position().global();const F="rtl"===n.direction,G="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!F||"end"===n.horizontalPosition&&F,ye=!G&&"center"!==n.horizontalPosition;return G?K.left("0"):ye?K.right("0"):K.centerHorizontally(),"top"===n.verticalPosition?K.top("0"):K.bottom("0"),v.positionStrategy=K,this._overlay.create(v)}_createInjector(n,v){return t.zs3.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Q,useValue:v},{provide:X,useValue:n.data}]})}}return R.\u0275fac=function(n){return new(n||R)(t.LFG(L.aV),t.LFG(M.Kd),t.LFG(t.zs3),t.LFG(w.Yg),t.LFG(R,12),t.LFG(l))},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})(),O=(()=>{class R extends _{constructor(n,v,K,F,G,ye){super(n,v,K,F,G,ye),this.simpleSnackBarComponent=se,this.snackBarContainerComponent=i,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return R.\u0275fac=function(n){return new(n||R)(t.LFG(L.aV),t.LFG(M.Kd),t.LFG(t.zs3),t.LFG(w.Yg),t.LFG(R,12),t.LFG(l))},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:a}),R})()},6308:(We,q,m)=>{"use strict";m.d(q,{JX:()=>i,YE:()=>X,nU:()=>S});var t=m(4650),e=m(4761),g=m(1281),T=m(9521),s=m(3238),x=m(7579),h=m(6451),N=m(7340),d=m(6895);const M=["mat-sort-header",""];function w(a,u){if(1&a){const l=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(l);const O=t.oxw();return t.KtG(O._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(l);const O=t.oxw();return t.KtG(O._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&a){const l=t.oxw();t.Q6J("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",l._getArrowDirectionState())}}const L=["*"],Y=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),Q=(0,s.dB)((0,s.Id)(class{}));let X=(()=>{class a extends Q{get direction(){return this._direction}set direction(l){this._direction=l}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,g.Ig)(l)}constructor(l){super(),this._defaultOptions=l,this.sortables=new Map,this._stateChanges=new x.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}register(l){this.sortables.set(l.id,l)}deregister(l){this.sortables.delete(l.id)}sort(l){this.active!=l.id?(this.active=l.id,this.direction=l.start?l.start:this.start):this.direction=this.getNextSortDirection(l),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(l){if(!l)return"";let O=function ee(a,u){let l=["asc","desc"];return"desc"==a&&l.reverse(),u||l.push(""),l}(l.start||this.start,l?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),R=O.indexOf(this.direction)+1;return R>=O.length&&(R=0),O[R]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(l){return new(l||a)(t.Y36(Y,8))},a.\u0275dir=t.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:[t.qOj,t.TTD]}),a})();const me=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,re={indicator:(0,N.X$)("indicator",[(0,N.SB)("active-asc, asc",(0,N.oB)({transform:"translateY(0px)"})),(0,N.SB)("active-desc, desc",(0,N.oB)({transform:"translateY(10px)"})),(0,N.eR)("active-asc <=> active-desc",(0,N.jt)(me))]),leftPointer:(0,N.X$)("leftPointer",[(0,N.SB)("active-asc, asc",(0,N.oB)({transform:"rotate(-45deg)"})),(0,N.SB)("active-desc, desc",(0,N.oB)({transform:"rotate(45deg)"})),(0,N.eR)("active-asc <=> active-desc",(0,N.jt)(me))]),rightPointer:(0,N.X$)("rightPointer",[(0,N.SB)("active-asc, asc",(0,N.oB)({transform:"rotate(45deg)"})),(0,N.SB)("active-desc, desc",(0,N.oB)({transform:"rotate(-45deg)"})),(0,N.eR)("active-asc <=> active-desc",(0,N.jt)(me))]),arrowOpacity:(0,N.X$)("arrowOpacity",[(0,N.SB)("desc-to-active, asc-to-active, active",(0,N.oB)({opacity:1})),(0,N.SB)("desc-to-hint, asc-to-hint, hint",(0,N.oB)({opacity:.54})),(0,N.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,N.oB)({opacity:0})),(0,N.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,N.jt)("0ms")),(0,N.eR)("* <=> *",(0,N.jt)(me))]),arrowPosition:(0,N.X$)("arrowPosition",[(0,N.eR)("* => desc-to-hint, * => desc-to-active",(0,N.jt)(me,(0,N.F4)([(0,N.oB)({transform:"translateY(-25%)"}),(0,N.oB)({transform:"translateY(0)"})]))),(0,N.eR)("* => hint-to-desc, * => active-to-desc",(0,N.jt)(me,(0,N.F4)([(0,N.oB)({transform:"translateY(0)"}),(0,N.oB)({transform:"translateY(25%)"})]))),(0,N.eR)("* => asc-to-hint, * => asc-to-active",(0,N.jt)(me,(0,N.F4)([(0,N.oB)({transform:"translateY(25%)"}),(0,N.oB)({transform:"translateY(0)"})]))),(0,N.eR)("* => hint-to-asc, * => active-to-asc",(0,N.jt)(me,(0,N.F4)([(0,N.oB)({transform:"translateY(0)"}),(0,N.oB)({transform:"translateY(-25%)"})]))),(0,N.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,N.oB)({transform:"translateY(0)"})),(0,N.SB)("hint-to-desc, active-to-desc, desc",(0,N.oB)({transform:"translateY(-25%)"})),(0,N.SB)("hint-to-asc, active-to-asc, asc",(0,N.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,N.X$)("allowChildren",[(0,N.eR)("* <=> *",[(0,N.IO)("@*",(0,N.pV)(),{optional:!0})])])};let ie=(()=>{class a{constructor(){this.changes=new x.x}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ce={provide:ie,deps:[[new t.FiY,new t.tp0,ie]],useFactory:function se(a){return a||new ie}},Te=(0,s.Id)(class{});let S=(()=>{class a extends Te{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(l){this._updateSortActionDescription(l)}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,g.Ig)(l)}constructor(l,_,O,R,C,n,v,K){super(),this._intl=l,this._changeDetectorRef=_,this._sort=O,this._columnDef=R,this._focusMonitor=C,this._elementRef=n,this._ariaDescriber=v,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",K?.arrowPosition&&(this.arrowPosition=K?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(l=>{const _=!!l;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(l){this._isDisabled()&&l||(this._showIndicatorHint=l,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(l){this._viewState=l||{},this._disableViewStateAnimation&&(this._viewState={toState:l.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(l){!this._isDisabled()&&(l.keyCode===T.L_||l.keyCode===T.K5)&&(l.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 l=this._viewState.fromState;return(l?`${l}-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(l){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,l)),this._sortActionDescription=l}_handleStateChanges(){this._rerenderSubscription=(0,h.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(l){return new(l||a)(t.Y36(ie),t.Y36(t.sBO),t.Y36(X,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(e.tE),t.Y36(t.SBq),t.Y36(e.$s,8),t.Y36(Y,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(l,_){1&l&&t.NdJ("click",function(){return _._handleClick()})("keydown",function(R){return _._handleKeydown(R)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&l&&(t.uIk("aria-sort",_._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",_._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:M,ngContentSelectors:L,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(l,_){1&l&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,w,6,6,"div",2),t.qZA()),2&l&&(t.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"===_.arrowPosition),t.uIk("tabindex",_._isDisabled()?null:0)("role",_._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",_._renderArrow()))},dependencies:[d.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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}"],encapsulation:2,data:{animation:[re.indicator,re.leftPointer,re.rightPointer,re.arrowOpacity,re.arrowPosition,re.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[ce],imports:[d.ez,s.BQ]}),a})()},8425:(We,q,m)=>{"use strict";m.d(q,{C0:()=>Oe,Ic:()=>Ae,T5:()=>Ue,VY:()=>G,Vq:()=>he,fd:()=>ge,z9:()=>oe});var t=m(4080),e=m(2138),g=m(6895),T=m(4650),s=m(3238),x=m(7392),h=m(4761),N=m(7579),d=m(727),M=m(445),w=m(3900),L=m(4004),k=m(8675),V=m(2722),B=m(1884),W=m(7340);function Y(Je,Re){if(1&Je&&T.GkF(0,8),2&Je){const le=T.oxw();T.Q6J("ngTemplateOutlet",le.iconOverrides[le.state])("ngTemplateOutletContext",le._getIconContext())}}function Q(Je,Re){if(1&Je&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&Je){const le=T.oxw(2);T.xp6(1),T.Oqu(le._getDefaultTextForState(le.state))}}function X(Je,Re){if(1&Je&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&Je){const le=T.oxw(2);T.xp6(1),T.Oqu(le._intl.completedLabel)}}function ee(Je,Re){if(1&Je&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&Je){const le=T.oxw(2);T.xp6(1),T.Oqu(le._intl.editableLabel)}}function me(Je,Re){if(1&Je&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&Je){const le=T.oxw(2);T.xp6(1),T.Oqu(le._getDefaultTextForState(le.state))}}function re(Je,Re){if(1&Je&&(T.ynx(0,9),T.YNc(1,Q,2,1,"span",10),T.YNc(2,X,2,1,"span",11),T.YNc(3,ee,2,1,"span",11),T.YNc(4,me,2,1,"mat-icon",12),T.BQk()),2&Je){const le=T.oxw();T.Q6J("ngSwitch",le.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===le.state),T.xp6(1),T.Q6J("ngIf","edit"===le.state)}}function ie(Je,Re){if(1&Je&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&Je){const le=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",le._templateLabel().template)}}function se(Je,Re){if(1&Je&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&Je){const le=T.oxw();T.xp6(1),T.Oqu(le.label)}}function ce(Je,Re){if(1&Je&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&Je){const le=T.oxw();T.xp6(1),T.Oqu(le._intl.optionalLabel)}}function Te(Je,Re){if(1&Je&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&Je){const le=T.oxw();T.xp6(1),T.Oqu(le.errorMessage)}}function S(Je,Re){}function i(Je,Re){if(1&Je&&(T.Hsn(0),T.YNc(1,S,0,0,"ng-template",0)),2&Je){const le=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",le._portal)}}const a=["*"];function u(Je,Re){1&Je&&T._UZ(0,"div",11)}const l=function(Je,Re){return{step:Je,i:Re}};function _(Je,Re){if(1&Je&&(T.ynx(0),T.GkF(1,9),T.YNc(2,u,1,0,"div",10),T.BQk()),2&Je){const le=Re.$implicit,rt=Re.index,Qe=Re.last;T.oxw(2);const ct=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",ct)("ngTemplateOutletContext",T.WLB(3,l,le,rt)),T.xp6(1),T.Q6J("ngIf",!Qe)}}const O=function(Je){return{animationDuration:Je}},R=function(Je,Re){return{value:Je,params:Re}};function C(Je,Re){if(1&Je){const le=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(Qe){T.CHM(le);const ct=T.oxw(2);return T.KtG(ct._animationDone.next(Qe))}),T.GkF(1,13),T.qZA()}if(2&Je){const le=Re.$implicit,rt=Re.index,Qe=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",Qe.selectedIndex!==rt),T.Q6J("@horizontalStepTransition",T.WLB(8,R,Qe._getAnimationDirection(rt),T.VKq(6,O,Qe._getAnimationDuration())))("id",Qe._getStepContentId(rt)),T.uIk("aria-labelledby",Qe._getStepLabelId(rt)),T.xp6(1),T.Q6J("ngTemplateOutlet",le.content)}}function n(Je,Re){if(1&Je&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,_,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,C,2,11,"div",8),T.qZA()()),2&Je){const le=T.oxw();T.xp6(2),T.Q6J("ngForOf",le.steps),T.xp6(2),T.Q6J("ngForOf",le.steps)}}function v(Je,Re){if(1&Je){const le=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(Qe){T.CHM(le);const ct=T.oxw(2);return T.KtG(ct._animationDone.next(Qe))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&Je){const le=Re.$implicit,rt=Re.index,Qe=Re.last,ct=T.oxw(2),Gt=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Gt)("ngTemplateOutletContext",T.WLB(10,l,le,rt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!Qe),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",ct.selectedIndex!==rt),T.Q6J("@verticalStepTransition",T.WLB(15,R,ct._getAnimationDirection(rt),T.VKq(13,O,ct._getAnimationDuration())))("id",ct._getStepContentId(rt)),T.uIk("aria-labelledby",ct._getStepLabelId(rt)),T.xp6(2),T.Q6J("ngTemplateOutlet",le.content)}}function K(Je,Re){if(1&Je&&(T.ynx(0),T.YNc(1,v,6,18,"div",14),T.BQk()),2&Je){const le=T.oxw();T.xp6(1),T.Q6J("ngForOf",le.steps)}}function F(Je,Re){if(1&Je){const le=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const ct=T.CHM(le).step;return T.KtG(ct.select())})("keydown",function(Qe){T.CHM(le);const ct=T.oxw();return T.KtG(ct._onKeydown(Qe))}),T.qZA()}if(2&Je){const le=Re.step,rt=Re.i,Qe=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===Qe.orientation)("mat-vertical-stepper-header","vertical"===Qe.orientation),T.Q6J("tabIndex",Qe._getFocusIndex()===rt?0:-1)("id",Qe._getStepLabelId(rt))("index",rt)("state",Qe._getIndicatorType(rt,le.state))("label",le.stepLabel||le.label)("selected",Qe.selectedIndex===rt)("active",Qe._stepIsNavigable(rt,le))("optional",le.optional)("errorMessage",le.errorMessage)("iconOverrides",Qe._iconOverrides)("disableRipple",Qe.disableRipple||!Qe._stepIsNavigable(rt,le))("color",le.color||Qe.color),T.uIk("aria-posinset",rt+1)("aria-setsize",Qe.steps.length)("aria-controls",Qe._getStepContentId(rt))("aria-selected",Qe.selectedIndex==rt)("aria-label",le.ariaLabel||null)("aria-labelledby",!le.ariaLabel&&le.ariaLabelledby?le.ariaLabelledby:null)("aria-disabled",!Qe._stepIsNavigable(rt,le)||null)}}let G=(()=>{class Je extends e.u6{}return Je.\u0275fac=function(){let Re;return function(rt){return(Re||(Re=T.n5z(Je)))(rt||Je)}}(),Je.\u0275dir=T.lG2({type:Je,selectors:[["","matStepLabel",""]],features:[T.qOj]}),Je})(),ye=(()=>{class Je{constructor(){this.changes=new N.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Je.\u0275fac=function(le){return new(le||Je)},Je.\u0275prov=T.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const pe={provide:ye,deps:[[new T.FiY,new T.tp0,ye]],useFactory:function Ee(Je){return Je||new ye}},qe=(0,s.pj)(class extends e.KL{constructor(Re){super(Re)}},"primary");let Ce=(()=>{class Je extends qe{constructor(le,rt,Qe,ct){super(Qe),this._intl=le,this._focusMonitor=rt,this._intlSubscription=le.changes.subscribe(()=>ct.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(le,rt){le?this._focusMonitor.focusVia(this._elementRef,le,rt):this._elementRef.nativeElement.focus(rt)}_stringLabel(){return this.label instanceof G?null:this.label}_templateLabel(){return this.label instanceof G?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(le){return"number"==le?`${this.index+1}`:"edit"==le?"create":"error"==le?"warning":le}}return Je.\u0275fac=function(le){return new(le||Je)(T.Y36(ye),T.Y36(h.tE),T.Y36(T.SBq),T.Y36(T.sBO))},Je.\u0275cmp=T.Xpm({type:Je,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:[T.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(le,rt){1&le&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,Y,1,2,"ng-container",2),T.YNc(4,re,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,ie,2,1,"div",5),T.YNc(7,se,2,1,"div",5),T.YNc(8,ce,2,1,"div",6),T.YNc(9,Te,2,1,"div",7),T.qZA()),2&le&&(T.Q6J("matRippleTrigger",rt._getHostElement())("matRippleDisabled",rt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",rt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",rt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!rt.iconOverrides||!rt.iconOverrides[rt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",rt.active)("mat-step-label-selected",rt.selected)("mat-step-label-error","error"==rt.state),T.xp6(1),T.Q6J("ngIf",rt._templateLabel()),T.xp6(1),T.Q6J("ngIf",rt._stringLabel()),T.xp6(1),T.Q6J("ngIf",rt.optional&&"error"!=rt.state),T.xp6(1),T.Q6J("ngIf","error"==rt.state))},dependencies:[g.O5,g.tP,g.RF,g.n9,g.ED,x.Hw,s.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Je})();const Fe={horizontalStepTransition:(0,W.X$)("horizontalStepTransition",[(0,W.SB)("previous",(0,W.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,W.SB)("current",(0,W.oB)({transform:"none",visibility:"inherit"})),(0,W.SB)("next",(0,W.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,W.eR)("* => *",(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,W.X$)("verticalStepTransition",[(0,W.SB)("previous",(0,W.oB)({height:"0px",visibility:"hidden"})),(0,W.SB)("next",(0,W.oB)({height:"0px",visibility:"hidden"})),(0,W.SB)("current",(0,W.oB)({height:"*",visibility:"inherit"})),(0,W.eR)("* <=> current",(0,W.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let oe=(()=>{class Je{constructor(le){this.templateRef=le}}return Je.\u0275fac=function(le){return new(le||Je)(T.Y36(T.Rgc))},Je.\u0275dir=T.lG2({type:Je,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Je})(),ze=(()=>{class Je{constructor(le){this._template=le}}return Je.\u0275fac=function(le){return new(le||Je)(T.Y36(T.Rgc))},Je.\u0275dir=T.lG2({type:Je,selectors:[["ng-template","matStepContent",""]]}),Je})(),Oe=(()=>{class Je extends e.be{constructor(le,rt,Qe,ct){super(le,ct),this._errorStateMatcher=rt,this._viewContainerRef=Qe,this._isSelected=d.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,w.w)(()=>this._stepper.selectionChange.pipe((0,L.U)(le=>le.selectedStep===this),(0,k.O)(this._stepper.selected===this)))).subscribe(le=>{le&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(le,rt){return this._errorStateMatcher.isErrorState(le,rt)||!!(le&&le.invalid&&this.interacted)}}return Je.\u0275fac=function(le){return new(le||Je)(T.Y36((0,T.Gpc)(()=>he)),T.Y36(s.rD,4),T.Y36(T.s_b),T.Y36(e.gx,8))},Je.\u0275cmp=T.Xpm({type:Je,selectors:[["mat-step"]],contentQueries:function(le,rt,Qe){if(1&le&&(T.Suo(Qe,G,5),T.Suo(Qe,ze,5)),2&le){let ct;T.iGM(ct=T.CRH())&&(rt.stepLabel=ct.first),T.iGM(ct=T.CRH())&&(rt._lazyContent=ct.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:s.rD,useExisting:Je},{provide:e.be,useExisting:Je}]),T.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(le,rt){1&le&&(T.F$t(),T.YNc(0,i,2,1,"ng-template"))},dependencies:[t.Pl],encapsulation:2,changeDetection:0}),Je})(),he=(()=>{class Je extends e.B8{get animationDuration(){return this._animationDuration}set animationDuration(le){this._animationDuration=/^\d+$/.test(le)?le+"ms":le}constructor(le,rt,Qe){super(le,rt,Qe),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new N.x,this._animationDuration="";const ct=Qe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ct?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:le,templateRef:rt})=>this._iconOverrides[le]=rt),this.steps.changes.pipe((0,V.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,B.x)((le,rt)=>le.fromState===rt.fromState&&le.toState===rt.toState),(0,V.R)(this._destroyed)).subscribe(le=>{"current"===le.toState&&this.animationDone.emit()})}_stepIsNavigable(le,rt){return rt.completed||this.selectedIndex===le||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return Je.\u0275fac=function(le){return new(le||Je)(T.Y36(M.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},Je.\u0275cmp=T.Xpm({type:Je,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(le,rt,Qe){if(1&le&&(T.Suo(Qe,Oe,5),T.Suo(Qe,oe,5)),2&le){let ct;T.iGM(ct=T.CRH())&&(rt._steps=ct),T.iGM(ct=T.CRH())&&(rt._icons=ct)}},viewQuery:function(le,rt){if(1&le&&T.Gf(Ce,5),2&le){let Qe;T.iGM(Qe=T.CRH())&&(rt._stepHeader=Qe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(le,rt){2&le&&(T.uIk("aria-orientation",rt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===rt.orientation)("mat-stepper-vertical","vertical"===rt.orientation)("mat-stepper-label-position-end","horizontal"===rt.orientation&&"end"==rt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===rt.orientation&&"bottom"==rt.labelPosition)("mat-stepper-header-position-bottom","bottom"===rt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:e.B8,useExisting:Je}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",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(le,rt){1&le&&(T.ynx(0,0),T.YNc(1,n,5,2,"div",1),T.YNc(2,K,2,1,"ng-container",2),T.BQk(),T.YNc(3,F,1,23,"ng-template",null,3,T.W1O)),2&le&&(T.Q6J("ngSwitch",rt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[g.sg,g.O5,g.tP,g.RF,g.n9,Ce],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.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-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Fe.horizontalStepTransition,Fe.verticalStepTransition]},changeDetection:0}),Je})(),Ae=(()=>{class Je extends e.st{}return Je.\u0275fac=function(){let Re;return function(rt){return(Re||(Re=T.n5z(Je)))(rt||Je)}}(),Je.\u0275dir=T.lG2({type:Je,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(le,rt){2&le&&T.Ikx("type",rt.type)},inputs:{type:"type"},features:[T.qOj]}),Je})(),ge=(()=>{class Je extends e.po{}return Je.\u0275fac=function(){let Re;return function(rt){return(Re||(Re=T.n5z(Je)))(rt||Je)}}(),Je.\u0275dir=T.lG2({type:Je,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(le,rt){2&le&&T.Ikx("type",rt.type)},inputs:{type:"type"},features:[T.qOj]}),Je})(),Ue=(()=>{class Je{}return Je.\u0275fac=function(le){return new(le||Je)},Je.\u0275mod=T.oAB({type:Je}),Je.\u0275inj=T.cJS({providers:[pe,s.rD],imports:[s.BQ,g.ez,t.eL,e.U5,x.Ps,s.si,s.BQ]}),Je})()},671:(We,q,m)=>{"use strict";m.d(q,{ev:()=>ft,Dz:()=>Xe,w1:()=>ni,yh:()=>ot,mD:()=>zt,Q2:()=>vt,Ke:()=>gt,ge:()=>pt,fO:()=>ei,XQ:()=>_t,as:()=>St,Gk:()=>Ve,nj:()=>tt,BZ:()=>Ie,by:()=>Wi,p0:()=>Bi});var t=m(4650),e=m(445),g=m(1281),T=m(5017),s=m(3353),x=m(531),h=m(6895),N=m(7579),d=m(457),M=m(1135),w=m(5191),L=m(9646),k=m(2722),V=m(5698);const B=[[["caption"]],[["colgroup"],["col"]]],W=["caption","colgroup, col"];function X(et){return class extends et{get sticky(){return this._sticky}set sticky(It){const Le=this._sticky;this._sticky=(0,g.Ig)(It),this._hasStickyChanged=Le!==this._sticky}hasStickyChanged(){const It=this._hasStickyChanged;return this._hasStickyChanged=!1,It}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...It){super(...It),this._sticky=!1,this._hasStickyChanged=!1}}}const ee=new t.OlP("CDK_TABLE");let re=(()=>{class et{constructor(Le){this.template=Le}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkCellDef",""]]}),et})(),ie=(()=>{class et{constructor(Le){this.template=Le}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkHeaderCellDef",""]]}),et})(),se=(()=>{class et{constructor(Le){this.template=Le}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkFooterCellDef",""]]}),et})();class ce{}const Te=X(ce);let S=(()=>{class et extends Te{get name(){return this._name}set name(Le){this._setNameInput(Le)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Le){const Mt=this._stickyEnd;this._stickyEnd=(0,g.Ig)(Le),this._hasStickyChanged=Mt!==this._stickyEnd}constructor(Le){super(),this._table=Le,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Le){Le&&(this._name=Le,this.cssClassFriendlyName=Le.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(ee,8))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkColumnDef",""]],contentQueries:function(Le,Mt,Wt){if(1&Le&&(t.Suo(Wt,re,5),t.Suo(Wt,ie,5),t.Suo(Wt,se,5)),2&Le){let si;t.iGM(si=t.CRH())&&(Mt.cell=si.first),t.iGM(si=t.CRH())&&(Mt.headerCell=si.first),t.iGM(si=t.CRH())&&(Mt.footerCell=si.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:et}]),t.qOj]}),et})();class i{constructor(It,Le){Le.nativeElement.classList.add(...It._columnCssClassName)}}let a=(()=>{class et extends i{constructor(Le,Mt){super(Le,Mt)}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(S),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),et})(),u=(()=>{class et extends i{constructor(Le,Mt){if(super(Le,Mt),1===Le._table?._elementRef.nativeElement.nodeType){const Wt=Le._table._elementRef.nativeElement.getAttribute("role");Mt.nativeElement.setAttribute("role","grid"===Wt||"treegrid"===Wt?"gridcell":"cell")}}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(S),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),et})(),l=(()=>{class et extends i{constructor(Le,Mt){if(super(Le,Mt),1===Le._table?._elementRef.nativeElement.nodeType){const Wt=Le._table._elementRef.nativeElement.getAttribute("role");Mt.nativeElement.setAttribute("role","grid"===Wt||"treegrid"===Wt?"gridcell":"cell")}}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(S),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),et})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const O=new t.OlP("_COALESCED_STYLE_SCHEDULER");let R=(()=>{class et{constructor(Le){this._ngZone=Le,this._currentSchedule=null,this._destroyed=new N.x}schedule(Le){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Le)}scheduleEnd(Le){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Le)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,k.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Le=this._currentSchedule;this._currentSchedule=new _;for(const Mt of Le.tasks)Mt();for(const Mt of Le.endTasks)Mt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,V.q)(1))}}return et.\u0275fac=function(Le){return new(Le||et)(t.LFG(t.R0b))},et.\u0275prov=t.Yz7({token:et,factory:et.\u0275fac}),et})(),n=(()=>{class et{constructor(Le,Mt){this.template=Le,this._differs=Mt}ngOnChanges(Le){if(!this._columnsDiffer){const Mt=Le.columns&&Le.columns.currentValue||[];this._columnsDiffer=this._differs.find(Mt).create(),this._columnsDiffer.diff(Mt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Le){return this instanceof F?Le.headerCell.template:this instanceof Ee?Le.footerCell.template:Le.cell.template}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},et.\u0275dir=t.lG2({type:et,features:[t.TTD]}),et})();class v extends n{}const K=X(v);let F=(()=>{class et extends K{constructor(Le,Mt,Wt){super(Le,Mt),this._table=Wt}ngOnChanges(Le){super.ngOnChanges(Le)}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),et})();class G extends n{}const ye=X(G);let Ee=(()=>{class et extends ye{constructor(Le,Mt,Wt){super(Le,Mt),this._table=Wt}ngOnChanges(Le){super.ngOnChanges(Le)}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),et})(),pe=(()=>{class et extends n{constructor(Le,Mt,Wt){super(Le,Mt),this._table=Wt}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),et})(),qe=(()=>{class et{constructor(Le){this._viewContainer=Le,et.mostRecentCellOutlet=this}ngOnDestroy(){et.mostRecentCellOutlet===this&&(et.mostRecentCellOutlet=null)}}return et.mostRecentCellOutlet=null,et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.s_b))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkCellOutlet",""]]}),et})(),Ce=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275cmp=t.Xpm({type:et,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Le,Mt){1&Le&&t.GkF(0,0)},dependencies:[qe],encapsulation:2}),et})(),Se=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275cmp=t.Xpm({type:et,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Le,Mt){1&Le&&t.GkF(0,0)},dependencies:[qe],encapsulation:2}),et})(),fe=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275cmp=t.Xpm({type:et,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Le,Mt){1&Le&&t.GkF(0,0)},dependencies:[qe],encapsulation:2}),et})(),Fe=(()=>{class et{constructor(Le){this.templateRef=Le,this._contentClassName="cdk-no-data-row"}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.Rgc))},et.\u0275dir=t.lG2({type:et,selectors:[["ng-template","cdkNoDataRow",""]]}),et})();const oe=["top","bottom","left","right"];class ze{constructor(It,Le,Mt,Wt,si=!0,Ai=!0,Ri){this._isNativeHtmlTable=It,this._stickCellCss=Le,this.direction=Mt,this._coalescedStyleScheduler=Wt,this._isBrowser=si,this._needsPositionStickyOnElement=Ai,this._positionListener=Ri,this._cachedCellWidths=[],this._borderCellCss={top:`${Le}-border-elem-top`,bottom:`${Le}-border-elem-bottom`,left:`${Le}-border-elem-left`,right:`${Le}-border-elem-right`}}clearStickyPositioning(It,Le){const Mt=[];for(const Wt of It)if(Wt.nodeType===Wt.ELEMENT_NODE){Mt.push(Wt);for(let si=0;si<Wt.children.length;si++)Mt.push(Wt.children[si])}this._coalescedStyleScheduler.schedule(()=>{for(const Wt of Mt)this._removeStickyStyle(Wt,Le)})}updateStickyColumns(It,Le,Mt,Wt=!0){if(!It.length||!this._isBrowser||!Le.some(Xt=>Xt)&&!Mt.some(Xt=>Xt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const si=It[0],Ai=si.children.length,Ri=this._getCellWidths(si,Wt),$i=this._getStickyStartColumnPositions(Ri,Le),nn=this._getStickyEndColumnPositions(Ri,Mt),Qi=Le.lastIndexOf(!0),Yt=Mt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Xt="rtl"===this.direction,be=Xt?"right":"left",dt=Xt?"left":"right";for(const Dt of It)for(let Ut=0;Ut<Ai;Ut++){const Ot=Dt.children[Ut];Le[Ut]&&this._addStickyStyle(Ot,be,$i[Ut],Ut===Qi),Mt[Ut]&&this._addStickyStyle(Ot,dt,nn[Ut],Ut===Yt)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Qi?[]:Ri.slice(0,Qi+1).map((Dt,Ut)=>Le[Ut]?Dt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Yt?[]:Ri.slice(Yt).map((Dt,Ut)=>Mt[Ut+Yt]?Dt:null).reverse()}))})}stickRows(It,Le,Mt){if(!this._isBrowser)return;const Wt="bottom"===Mt?It.slice().reverse():It,si="bottom"===Mt?Le.slice().reverse():Le,Ai=[],Ri=[],$i=[];for(let Qi=0,Yt=0;Qi<Wt.length;Qi++){if(!si[Qi])continue;Ai[Qi]=Yt;const Xt=Wt[Qi];$i[Qi]=this._isNativeHtmlTable?Array.from(Xt.children):[Xt];const be=Xt.getBoundingClientRect().height;Yt+=be,Ri[Qi]=be}const nn=si.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Qi=0;Qi<Wt.length;Qi++){if(!si[Qi])continue;const Yt=Ai[Qi],Xt=Qi===nn;for(const be of $i[Qi])this._addStickyStyle(be,Mt,Yt,Xt)}"top"===Mt?this._positionListener?.stickyHeaderRowsUpdated({sizes:Ri,offsets:Ai,elements:$i}):this._positionListener?.stickyFooterRowsUpdated({sizes:Ri,offsets:Ai,elements:$i})})}updateStickyFooterContainer(It,Le){if(!this._isNativeHtmlTable)return;const Mt=It.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{Le.some(Wt=>!Wt)?this._removeStickyStyle(Mt,["bottom"]):this._addStickyStyle(Mt,"bottom",0,!1)})}_removeStickyStyle(It,Le){for(const Wt of Le)It.style[Wt]="",It.classList.remove(this._borderCellCss[Wt]);oe.some(Wt=>-1===Le.indexOf(Wt)&&It.style[Wt])?It.style.zIndex=this._getCalculatedZIndex(It):(It.style.zIndex="",this._needsPositionStickyOnElement&&(It.style.position=""),It.classList.remove(this._stickCellCss))}_addStickyStyle(It,Le,Mt,Wt){It.classList.add(this._stickCellCss),Wt&&It.classList.add(this._borderCellCss[Le]),It.style[Le]=`${Mt}px`,It.style.zIndex=this._getCalculatedZIndex(It),this._needsPositionStickyOnElement&&(It.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(It){const Le={top:100,bottom:10,left:1,right:1};let Mt=0;for(const Wt of oe)It.style[Wt]&&(Mt+=Le[Wt]);return Mt?`${Mt}`:""}_getCellWidths(It,Le=!0){if(!Le&&this._cachedCellWidths.length)return this._cachedCellWidths;const Mt=[],Wt=It.children;for(let si=0;si<Wt.length;si++)Mt.push(Wt[si].getBoundingClientRect().width);return this._cachedCellWidths=Mt,Mt}_getStickyStartColumnPositions(It,Le){const Mt=[];let Wt=0;for(let si=0;si<It.length;si++)Le[si]&&(Mt[si]=Wt,Wt+=It[si]);return Mt}_getStickyEndColumnPositions(It,Le){const Mt=[];let Wt=0;for(let si=It.length;si>0;si--)Le[si]&&(Mt[si]=Wt,Wt+=It[si]);return Mt}}const rt=new t.OlP("CDK_SPL");let ct=(()=>{class et{constructor(Le,Mt){this.viewContainer=Le,this.elementRef=Mt}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.s_b),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["","rowOutlet",""]]}),et})(),Gt=(()=>{class et{constructor(Le,Mt){this.viewContainer=Le,this.elementRef=Mt}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.s_b),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["","headerRowOutlet",""]]}),et})(),ut=(()=>{class et{constructor(Le,Mt){this.viewContainer=Le,this.elementRef=Mt}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.s_b),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["","footerRowOutlet",""]]}),et})(),Ze=(()=>{class et{constructor(Le,Mt){this.viewContainer=Le,this.elementRef=Mt}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.s_b),t.Y36(t.SBq))},et.\u0275dir=t.lG2({type:et,selectors:[["","noDataRowOutlet",""]]}),et})(),$e=(()=>{class et{get trackBy(){return this._trackByFn}set trackBy(Le){this._trackByFn=Le}get dataSource(){return this._dataSource}set dataSource(Le){this._dataSource!==Le&&this._switchDataSource(Le)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Le){this._multiTemplateDataRows=(0,g.Ig)(Le),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Le){this._fixedLayout=(0,g.Ig)(Le),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Le,Mt,Wt,si,Ai,Ri,$i,nn,Qi,Yt,Xt,be){this._differs=Le,this._changeDetectorRef=Mt,this._elementRef=Wt,this._dir=Ai,this._platform=$i,this._viewRepeater=nn,this._coalescedStyleScheduler=Qi,this._viewportRuler=Yt,this._stickyPositioningListener=Xt,this._ngZone=be,this._onDestroy=new N.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE}),si||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Ri,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Le,Mt)=>this.trackBy?this.trackBy(Mt.dataIndex,Mt.data):Mt),this._viewportRuler.change().pipe((0,k.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Mt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Mt,this._forceRecalculateCellWidths=Mt,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Le=>{Le.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Le=this._dataDiffer.diff(this._renderRows);if(!Le)return this._updateNoDataRow(),void this.contentChanged.next();const Mt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Le,Mt,(Wt,si,Ai)=>this._getEmbeddedViewArgs(Wt.item,Ai),Wt=>Wt.item.data,Wt=>{1===Wt.operation&&Wt.context&&this._renderCellTemplateForItem(Wt.record.item.rowDef,Wt.context)}),this._updateRowIndexContext(),Le.forEachIdentityChange(Wt=>{Mt.get(Wt.currentIndex).context.$implicit=Wt.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,V.q)(1),(0,k.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Le){this._customColumnDefs.add(Le)}removeColumnDef(Le){this._customColumnDefs.delete(Le)}addRowDef(Le){this._customRowDefs.add(Le)}removeRowDef(Le){this._customRowDefs.delete(Le)}addHeaderRowDef(Le){this._customHeaderRowDefs.add(Le),this._headerRowDefChanged=!0}removeHeaderRowDef(Le){this._customHeaderRowDefs.delete(Le),this._headerRowDefChanged=!0}addFooterRowDef(Le){this._customFooterRowDefs.add(Le),this._footerRowDefChanged=!0}removeFooterRowDef(Le){this._customFooterRowDefs.delete(Le),this._footerRowDefChanged=!0}setNoDataRow(Le){this._customNoDataRow=Le}updateStickyHeaderRowStyles(){const Le=this._getRenderedRows(this._headerRowOutlet),Wt=this._elementRef.nativeElement.querySelector("thead");Wt&&(Wt.style.display=Le.length?"":"none");const si=this._headerRowDefs.map(Ai=>Ai.sticky);this._stickyStyler.clearStickyPositioning(Le,["top"]),this._stickyStyler.stickRows(Le,si,"top"),this._headerRowDefs.forEach(Ai=>Ai.resetStickyChanged())}updateStickyFooterRowStyles(){const Le=this._getRenderedRows(this._footerRowOutlet),Wt=this._elementRef.nativeElement.querySelector("tfoot");Wt&&(Wt.style.display=Le.length?"":"none");const si=this._footerRowDefs.map(Ai=>Ai.sticky);this._stickyStyler.clearStickyPositioning(Le,["bottom"]),this._stickyStyler.stickRows(Le,si,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,si),this._footerRowDefs.forEach(Ai=>Ai.resetStickyChanged())}updateStickyColumnStyles(){const Le=this._getRenderedRows(this._headerRowOutlet),Mt=this._getRenderedRows(this._rowOutlet),Wt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Le,...Mt,...Wt],["left","right"]),this._stickyColumnStylesNeedReset=!1),Le.forEach((si,Ai)=>{this._addStickyColumnStyles([si],this._headerRowDefs[Ai])}),this._rowDefs.forEach(si=>{const Ai=[];for(let Ri=0;Ri<Mt.length;Ri++)this._renderRows[Ri].rowDef===si&&Ai.push(Mt[Ri]);this._addStickyColumnStyles(Ai,si)}),Wt.forEach((si,Ai)=>{this._addStickyColumnStyles([si],this._footerRowDefs[Ai])}),Array.from(this._columnDefsByName.values()).forEach(si=>si.resetStickyChanged())}_getAllRenderRows(){const Le=[],Mt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Wt=0;Wt<this._data.length;Wt++){let si=this._data[Wt];const Ai=this._getRenderRowsForData(si,Wt,Mt.get(si));this._cachedRenderRowsMap.has(si)||this._cachedRenderRowsMap.set(si,new WeakMap);for(let Ri=0;Ri<Ai.length;Ri++){let $i=Ai[Ri];const nn=this._cachedRenderRowsMap.get($i.data);nn.has($i.rowDef)?nn.get($i.rowDef).push($i):nn.set($i.rowDef,[$i]),Le.push($i)}}return Le}_getRenderRowsForData(Le,Mt,Wt){return this._getRowDefs(Le,Mt).map(Ai=>{const Ri=Wt&&Wt.has(Ai)?Wt.get(Ai):[];if(Ri.length){const $i=Ri.shift();return $i.dataIndex=Mt,$i}return{data:Le,rowDef:Ai,dataIndex:Mt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Pe(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Mt=>{this._columnDefsByName.has(Mt.name),this._columnDefsByName.set(Mt.name,Mt)})}_cacheRowDefs(){this._headerRowDefs=Pe(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Pe(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Pe(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Le=this._rowDefs.filter(Mt=>!Mt.when);this._defaultRowDef=Le[0]}_renderUpdatedColumns(){const Le=(Ai,Ri)=>Ai||!!Ri.getColumnsDiff(),Mt=this._rowDefs.reduce(Le,!1);Mt&&this._forceRenderDataRows();const Wt=this._headerRowDefs.reduce(Le,!1);Wt&&this._forceRenderHeaderRows();const si=this._footerRowDefs.reduce(Le,!1);return si&&this._forceRenderFooterRows(),Mt||Wt||si}_switchDataSource(Le){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Le||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Le}_observeRenderChanges(){if(!this.dataSource)return;let Le;(0,T.Z9)(this.dataSource)?Le=this.dataSource.connect(this):(0,w.b)(this.dataSource)?Le=this.dataSource:Array.isArray(this.dataSource)&&(Le=(0,L.of)(this.dataSource)),this._renderChangeSubscription=Le.pipe((0,k.R)(this._onDestroy)).subscribe(Mt=>{this._data=Mt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Le,Mt)=>this._renderRow(this._headerRowOutlet,Le,Mt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Le,Mt)=>this._renderRow(this._footerRowOutlet,Le,Mt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Le,Mt){const Wt=Array.from(Mt.columns||[]).map(Ri=>this._columnDefsByName.get(Ri)),si=Wt.map(Ri=>Ri.sticky),Ai=Wt.map(Ri=>Ri.stickyEnd);this._stickyStyler.updateStickyColumns(Le,si,Ai,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Le){const Mt=[];for(let Wt=0;Wt<Le.viewContainer.length;Wt++){const si=Le.viewContainer.get(Wt);Mt.push(si.rootNodes[0])}return Mt}_getRowDefs(Le,Mt){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Wt=[];if(this.multiTemplateDataRows)Wt=this._rowDefs.filter(si=>!si.when||si.when(Mt,Le));else{let si=this._rowDefs.find(Ai=>Ai.when&&Ai.when(Mt,Le))||this._defaultRowDef;si&&Wt.push(si)}return Wt}_getEmbeddedViewArgs(Le,Mt){return{templateRef:Le.rowDef.template,context:{$implicit:Le.data},index:Mt}}_renderRow(Le,Mt,Wt,si={}){const Ai=Le.viewContainer.createEmbeddedView(Mt.template,si,Wt);return this._renderCellTemplateForItem(Mt,si),Ai}_renderCellTemplateForItem(Le,Mt){for(let Wt of this._getCellTemplates(Le))qe.mostRecentCellOutlet&&qe.mostRecentCellOutlet._viewContainer.createEmbeddedView(Wt,Mt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Le=this._rowOutlet.viewContainer;for(let Mt=0,Wt=Le.length;Mt<Wt;Mt++){const Ai=Le.get(Mt).context;Ai.count=Wt,Ai.first=0===Mt,Ai.last=Mt===Wt-1,Ai.even=Mt%2==0,Ai.odd=!Ai.even,this.multiTemplateDataRows?(Ai.dataIndex=this._renderRows[Mt].dataIndex,Ai.renderIndex=Mt):Ai.index=this._renderRows[Mt].dataIndex}}_getCellTemplates(Le){return Le&&Le.columns?Array.from(Le.columns,Mt=>{const Wt=this._columnDefsByName.get(Mt);return Le.extractCellTemplate(Wt)}):[]}_applyNativeTableSections(){const Le=this._document.createDocumentFragment(),Mt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Wt of Mt){const si=this._document.createElement(Wt.tag);si.setAttribute("role","rowgroup");for(const Ai of Wt.outlets)si.appendChild(Ai.elementRef.nativeElement);Le.appendChild(si)}this._elementRef.nativeElement.appendChild(Le)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Le=(Mt,Wt)=>Mt||Wt.hasStickyChanged();this._headerRowDefs.reduce(Le,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Le,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Le,!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,L.of)()).pipe((0,k.R)(this._onDestroy)).subscribe(Mt=>{this._stickyStyler.direction=Mt,this.updateStickyColumnStyles()})}_getOwnDefs(Le){return Le.filter(Mt=>!Mt._table||Mt._table===this)}_updateNoDataRow(){const Le=this._customNoDataRow||this._noDataRow;if(!Le)return;const Mt=0===this._rowOutlet.viewContainer.length;if(Mt===this._isShowingNoDataRow)return;const Wt=this._noDataRowOutlet.viewContainer;if(Mt){const si=Wt.createEmbeddedView(Le.templateRef),Ai=si.rootNodes[0];1===si.rootNodes.length&&Ai?.nodeType===this._document.ELEMENT_NODE&&(Ai.setAttribute("role","row"),Ai.classList.add(Le._contentClassName))}else Wt.clear();this._isShowingNoDataRow=Mt}}return et.\u0275fac=function(Le){return new(Le||et)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(e.Is,8),t.Y36(h.K0),t.Y36(s.t4),t.Y36(T.k),t.Y36(O),t.Y36(x.rL),t.Y36(rt,12),t.Y36(t.R0b,8))},et.\u0275cmp=t.Xpm({type:et,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Le,Mt,Wt){if(1&Le&&(t.Suo(Wt,Fe,5),t.Suo(Wt,S,5),t.Suo(Wt,pe,5),t.Suo(Wt,F,5),t.Suo(Wt,Ee,5)),2&Le){let si;t.iGM(si=t.CRH())&&(Mt._noDataRow=si.first),t.iGM(si=t.CRH())&&(Mt._contentColumnDefs=si),t.iGM(si=t.CRH())&&(Mt._contentRowDefs=si),t.iGM(si=t.CRH())&&(Mt._contentHeaderRowDefs=si),t.iGM(si=t.CRH())&&(Mt._contentFooterRowDefs=si)}},viewQuery:function(Le,Mt){if(1&Le&&(t.Gf(ct,7),t.Gf(Gt,7),t.Gf(ut,7),t.Gf(Ze,7)),2&Le){let Wt;t.iGM(Wt=t.CRH())&&(Mt._rowOutlet=Wt.first),t.iGM(Wt=t.CRH())&&(Mt._headerRowOutlet=Wt.first),t.iGM(Wt=t.CRH())&&(Mt._footerRowOutlet=Wt.first),t.iGM(Wt=t.CRH())&&(Mt._noDataRowOutlet=Wt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Le,Mt){2&Le&&t.ekj("cdk-table-fixed-layout",Mt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ee,useExisting:et},{provide:T.k,useClass:T.yy},{provide:O,useClass:R},{provide:rt,useValue:null}])],ngContentSelectors:W,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Le,Mt){1&Le&&(t.F$t(B),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ct,Gt,ut,Ze],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),et})();function Pe(et,It){return et.concat(Array.from(It))}let Et=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=t.oAB({type:et}),et.\u0275inj=t.cJS({imports:[x.Cl]}),et})();var at=m(3238),je=m(6451),Ht=m(9841),Ct=m(4004);const Nt=[[["caption"]],[["colgroup"],["col"]]],Bt=["caption","colgroup, col"];let Ie=(()=>{class et extends $e{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275cmp=t.Xpm({type:et,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(Le,Mt){2&Le&&t.ekj("mdc-table-fixed-layout",Mt.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:$e,useExisting:et},{provide:ee,useExisting:et},{provide:O,useClass:R},{provide:T.k,useClass:T.yy},{provide:rt,useValue:null}]),t.qOj],ngContentSelectors:Bt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Le,Mt){1&Le&&(t.F$t(Nt),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ct,Gt,ut,Ze],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),et})(),Xe=(()=>{class et extends re{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:re,useExisting:et}]),t.qOj]}),et})(),ei=(()=>{class et extends ie{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:ie,useExisting:et}]),t.qOj]}),et})(),zt=(()=>{class et extends se{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:se,useExisting:et}]),t.qOj]}),et})(),ni=(()=>{class et extends S{get name(){return this._name}set name(Le){this._setNameInput(Le)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:S,useExisting:et},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:et}]),t.qOj]}),et})(),pt=(()=>{class et extends a{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[t.qOj]}),et})(),ot=(()=>{class et extends u{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[t.qOj]}),et})(),ft=(()=>{class et extends l{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[t.qOj]}),et})(),St=(()=>{class et extends F{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:F,useExisting:et}]),t.qOj]}),et})(),gt=(()=>{class et extends Ee{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:Ee,useExisting:et}]),t.qOj]}),et})(),tt=(()=>{class et extends pe{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275dir=t.lG2({type:et,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:pe,useExisting:et}]),t.qOj]}),et})(),_t=(()=>{class et extends Ce{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275cmp=t.Xpm({type:et,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Ce,useExisting:et}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Le,Mt){1&Le&&t.GkF(0,0)},dependencies:[qe],encapsulation:2}),et})(),vt=(()=>{class et extends Se{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275cmp=t.Xpm({type:et,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Se,useExisting:et}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Le,Mt){1&Le&&t.GkF(0,0)},dependencies:[qe],encapsulation:2}),et})(),Ve=(()=>{class et extends fe{}return et.\u0275fac=function(){let It;return function(Mt){return(It||(It=t.n5z(et)))(Mt||et)}}(),et.\u0275cmp=t.Xpm({type:et,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[t._Bn([{provide:fe,useExisting:et}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Le,Mt){1&Le&&t.GkF(0,0)},dependencies:[qe],encapsulation:2}),et})(),Bi=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=t.oAB({type:et}),et.\u0275inj=t.cJS({imports:[at.BQ,Et,at.BQ]}),et})();class Si extends T.o2{get data(){return this._data.value}set data(It){It=Array.isArray(It)?It:[],this._data.next(It),this._renderChangesSubscription||this._filterData(It)}get filter(){return this._filter.value}set filter(It){this._filter.next(It),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(It){this._sort=It,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(It){this._paginator=It,this._updateChangeSubscription()}constructor(It=[]){super(),this._renderData=new M.X([]),this._filter=new M.X(""),this._internalPageChanges=new N.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(Le,Mt)=>{const Wt=Le[Mt];if((0,g.t6)(Wt)){const si=Number(Wt);return si<9007199254740991?si:Wt}return Wt},this.sortData=(Le,Mt)=>{const Wt=Mt.active,si=Mt.direction;return Wt&&""!=si?Le.sort((Ai,Ri)=>{let $i=this.sortingDataAccessor(Ai,Wt),nn=this.sortingDataAccessor(Ri,Wt);const Qi=typeof $i,Yt=typeof nn;Qi!==Yt&&("number"===Qi&&($i+=""),"number"===Yt&&(nn+=""));let Xt=0;return null!=$i&&null!=nn?$i>nn?Xt=1:$i<nn&&(Xt=-1):null!=$i?Xt=1:null!=nn&&(Xt=-1),Xt*("asc"==si?1:-1)}):Le},this.filterPredicate=(Le,Mt)=>{const Wt=Object.keys(Le).reduce((Ai,Ri)=>Ai+Le[Ri]+"\u25ec","").toLowerCase(),si=Mt.trim().toLowerCase();return-1!=Wt.indexOf(si)},this._data=new M.X(It),this._updateChangeSubscription()}_updateChangeSubscription(){const It=this._sort?(0,je.T)(this._sort.sortChange,this._sort.initialized):(0,L.of)(null),Le=this._paginator?(0,je.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,L.of)(null),Wt=(0,Ht.a)([this._data,this._filter]).pipe((0,Ct.U)(([Ri])=>this._filterData(Ri))),si=(0,Ht.a)([Wt,It]).pipe((0,Ct.U)(([Ri])=>this._orderData(Ri))),Ai=(0,Ht.a)([si,Le]).pipe((0,Ct.U)(([Ri])=>this._pageData(Ri)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Ai.subscribe(Ri=>this._renderData.next(Ri))}_filterData(It){return this.filteredData=null==this.filter||""===this.filter?It:It.filter(Le=>this.filterPredicate(Le,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(It){return this.sort?this.sortData(It.slice(),this.sort):It}_pageData(It){if(!this.paginator)return It;const Le=this.paginator.pageIndex*this.paginator.pageSize;return It.slice(Le,Le+this.paginator.pageSize)}_updatePaginator(It){Promise.resolve().then(()=>{const Le=this.paginator;if(Le&&(Le.length=It,Le.pageIndex>0)){const Mt=Math.ceil(Le.length/Le.pageSize)-1||0,Wt=Math.min(Le.pageIndex,Mt);Wt!==Le.pageIndex&&(Le.pageIndex=Wt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Wi extends Si{}},3848:(We,q,m)=>{"use strict";m.d(q,{BU:()=>ft,Nh:()=>tt,Nj:()=>St,SP:()=>Ie,sW:()=>gt,uD:()=>Je,uX:()=>mt});var t=m(6895),e=m(4650),g=m(3238),T=m(4080),s=m(9643),x=m(4761),h=m(445),N=m(727),d=m(7579),M=m(4968),w=m(9646),L=m(6451),k=m(515),V=m(9751),B=m(2805),W=m(1135),Y=m(8675),Q=m(1884),X=m(2722),ee=m(5698),me=m(3900),re=m(5684),ie=m(9300),se=m(7340),ce=m(1281),Te=m(531),S=m(3353),i=m(9521);function a(_t,vt){}const u=function(_t){return{animationDuration:_t}},l=function(_t,vt){return{value:_t,params:vt}};function _(_t,vt){1&_t&&e.Hsn(0)}const O=["*"],R=["tabListContainer"],C=["tabList"],n=["tabListInner"],v=["nextPaginator"],K=["previousPaginator"],F=["tabBodyWrapper"],G=["tabHeader"];function ye(_t,vt){}function Ee(_t,vt){if(1&_t&&e.YNc(0,ye,0,0,"ng-template",14),2&_t){const Ve=e.oxw().$implicit;e.Q6J("cdkPortalOutlet",Ve.templateLabel)}}function pe(_t,vt){if(1&_t&&e._uU(0),2&_t){const Ve=e.oxw().$implicit;e.Oqu(Ve.textLabel)}}function qe(_t,vt){if(1&_t){const Ve=e.EpF();e.TgZ(0,"div",6,7),e.NdJ("click",function(){const Lt=e.CHM(Ve),Qt=Lt.$implicit,Bi=Lt.index,Hi=e.oxw(),Si=e.MAs(1);return e.KtG(Hi._handleClick(Qt,Si,Bi))})("cdkFocusChange",function(Lt){const Bi=e.CHM(Ve).index,Hi=e.oxw();return e.KtG(Hi._tabFocusChanged(Lt,Bi))}),e._UZ(2,"span",8)(3,"div",9),e.TgZ(4,"span",10)(5,"span",11),e.YNc(6,Ee,1,1,"ng-template",12),e.YNc(7,pe,1,1,"ng-template",null,13,e.W1O),e.qZA()()()}if(2&_t){const Ve=vt.$implicit,Tt=vt.index,Lt=e.MAs(1),Qt=e.MAs(8),Bi=e.oxw();e.ekj("mdc-tab--active",Bi.selectedIndex===Tt),e.Q6J("id",Bi._getTabLabelId(Tt))("ngClass",Ve.labelClass)("disabled",Ve.disabled)("fitInkBarToContent",Bi.fitInkBarToContent),e.uIk("tabIndex",Bi._getTabIndex(Tt))("aria-posinset",Tt+1)("aria-setsize",Bi._tabs.length)("aria-controls",Bi._getTabContentId(Tt))("aria-selected",Bi.selectedIndex===Tt)("aria-label",Ve.ariaLabel||null)("aria-labelledby",!Ve.ariaLabel&&Ve.ariaLabelledby?Ve.ariaLabelledby:null),e.xp6(3),e.Q6J("matRippleTrigger",Lt)("matRippleDisabled",Ve.disabled||Bi.disableRipple),e.xp6(3),e.Q6J("ngIf",Ve.templateLabel)("ngIfElse",Qt)}}function Ce(_t,vt){if(1&_t){const Ve=e.EpF();e.TgZ(0,"mat-tab-body",15),e.NdJ("_onCentered",function(){e.CHM(Ve);const Lt=e.oxw();return e.KtG(Lt._removeTabBodyWrapperHeight())})("_onCentering",function(Lt){e.CHM(Ve);const Qt=e.oxw();return e.KtG(Qt._setTabBodyWrapperHeight(Lt))}),e.qZA()}if(2&_t){const Ve=vt.$implicit,Tt=vt.index,Lt=e.oxw();e.ekj("mat-mdc-tab-body-active",Lt.selectedIndex===Tt),e.Q6J("id",Lt._getTabContentId(Tt))("ngClass",Ve.bodyClass)("content",Ve.content)("position",Ve.position)("origin",Ve.origin)("animationDuration",Lt.animationDuration)("preserveContent",Lt.preserveContent),e.uIk("tabindex",null!=Lt.contentTabIndex&&Lt.selectedIndex===Tt?Lt.contentTabIndex:null)("aria-labelledby",Lt._getTabLabelId(Tt))}}const Se=["mat-tab-nav-bar",""],fe=["mat-tab-link",""],Fe={translateTab:(0,se.X$)("translateTab",[(0,se.SB)("center, void, left-origin-center, right-origin-center",(0,se.oB)({transform:"none"})),(0,se.SB)("left",(0,se.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,se.SB)("right",(0,se.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,se.eR)("* => left, * => right, left => center, right => center",(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,se.eR)("void => left-origin-center",[(0,se.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,se.eR)("void => right-origin-center",[(0,se.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let oe=(()=>{class _t extends T.Pl{constructor(Ve,Tt,Lt,Qt){super(Ve,Tt,Qt),this._host=Lt,this._centeringSub=N.w0.EMPTY,this._leavingSub=N.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,Y.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ve=>{Ve&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36((0,e.Gpc)(()=>Oe)),e.Y36(t.K0))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabBodyHost",""]],features:[e.qOj]}),_t})(),ze=(()=>{class _t{set position(Ve){this._positionIndex=Ve,this._computePositionAnimationState()}constructor(Ve,Tt,Lt){this._elementRef=Ve,this._dir=Tt,this._dirChangeSubscription=N.w0.EMPTY,this._translateTabComplete=new d.x,this._onCentering=new e.vpe,this._beforeCentering=new e.vpe,this._afterLeavingCenter=new e.vpe,this._onCentered=new e.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Tt&&(this._dirChangeSubscription=Tt.change.subscribe(Qt=>{this._computePositionAnimationState(Qt),Lt.markForCheck()})),this._translateTabComplete.pipe((0,Q.x)((Qt,Bi)=>Qt.fromState===Bi.fromState&&Qt.toState===Bi.toState)).subscribe(Qt=>{this._isCenterPosition(Qt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Qt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Ve){const Tt=this._isCenterPosition(Ve.toState);this._beforeCentering.emit(Tt),Tt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Ve){return"center"==Ve||"left-origin-center"==Ve||"right-origin-center"==Ve}_computePositionAnimationState(Ve=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Ve?"left":"right":this._positionIndex>0?"ltr"==Ve?"right":"left":"center"}_computePositionFromOrigin(Ve){const Tt=this._getLayoutDirection();return"ltr"==Tt&&Ve<=0||"rtl"==Tt&&Ve>0?"left-origin-center":"right-origin-center"}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},_t.\u0275dir=e.lG2({type:_t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),_t})(),Oe=(()=>{class _t extends ze{constructor(Ve,Tt,Lt){super(Ve,Tt,Lt)}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-body"]],viewQuery:function(Ve,Tt){if(1&Ve&&e.Gf(T.Pl,5),2&Ve){let Lt;e.iGM(Lt=e.CRH())&&(Tt._portalHost=Lt.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[e.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ve,Tt){1&Ve&&(e.TgZ(0,"div",0,1),e.NdJ("@translateTab.start",function(Qt){return Tt._onTranslateTabStarted(Qt)})("@translateTab.done",function(Qt){return Tt._translateTabComplete.next(Qt)}),e.YNc(2,a,0,0,"ng-template",2),e.qZA()),2&Ve&&e.Q6J("@translateTab",e.WLB(3,l,Tt._position,e.VKq(1,u,Tt.animationDuration)))},dependencies:[oe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Fe.translateTab]}}),_t})();const he=new e.OlP("MatTabContent");let Ae=(()=>{class _t{constructor(Ve){this.template=Ve}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabContent",""]],features:[e._Bn([{provide:he,useExisting:_t}])]}),_t})();const ge=new e.OlP("MatTabLabel"),Ue=new e.OlP("MAT_TAB");let Je=(()=>{class _t extends T.ig{constructor(Ve,Tt,Lt){super(Ve,Tt),this._closestTab=Lt}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.Rgc),e.Y36(e.s_b),e.Y36(Ue,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[e._Bn([{provide:ge,useExisting:_t}]),e.qOj]}),_t})();const Re="mdc-tab-indicator--active",le="mdc-tab-indicator--no-transition";class rt{constructor(vt){this._items=vt}hide(){this._items.forEach(vt=>vt.deactivateInkBar())}alignToElement(vt){const Ve=this._items.find(Lt=>Lt.elementRef.nativeElement===vt),Tt=this._currentItem;if(Tt?.deactivateInkBar(),Ve){const Lt=Tt?.elementRef.nativeElement.getBoundingClientRect?.();Ve.activateInkBar(Lt),this._currentItem=Ve}}}function Qe(_t){return class extends _t{constructor(...vt){super(...vt),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(vt){const Ve=(0,ce.Ig)(vt);this._fitToContent!==Ve&&(this._fitToContent=Ve,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(vt){const Ve=this.elementRef.nativeElement;if(!vt||!Ve.getBoundingClientRect||!this._inkBarContentElement)return void Ve.classList.add(Re);const Tt=Ve.getBoundingClientRect(),Lt=vt.width/Tt.width,Qt=vt.left-Tt.left;Ve.classList.add(le),this._inkBarContentElement.style.setProperty("transform",`translateX(${Qt}px) scaleX(${Lt})`),Ve.getBoundingClientRect(),Ve.classList.remove(le),Ve.classList.add(Re),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Re)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const vt=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=vt.createElement("span"),this._inkBarContentElement=vt.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const ut=(0,g.Id)(class{}),xt=Qe((()=>{class _t extends ut{constructor(Ve){super(),this.elementRef=Ve}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,features:[e.qOj]}),_t})());let Me=(()=>{class _t extends xt{}return _t.\u0275fac=function(){let vt;return function(Tt){return(vt||(vt=e.n5z(_t)))(Tt||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ve,Tt){2&Ve&&(e.uIk("aria-disabled",!!Tt.disabled),e.ekj("mat-mdc-tab-disabled",Tt.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[e.qOj]}),_t})();const $e=(0,g.Id)(class{}),Pe=new e.OlP("MAT_TAB_GROUP");let J=(()=>{class _t extends $e{get content(){return this._contentPortal}constructor(Ve,Tt){super(),this._viewContainerRef=Ve,this._closestTabGroup=Tt,this.textLabel="",this._contentPortal=null,this._stateChanges=new d.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(Ve){(Ve.hasOwnProperty("textLabel")||Ve.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new T.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ve){Ve&&Ve._closestTab===this&&(this._templateLabel=Ve)}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.s_b),e.Y36(Pe,8))},_t.\u0275dir=e.lG2({type:_t,viewQuery:function(Ve,Tt){if(1&Ve&&e.Gf(e.Rgc,7),2&Ve){let Lt;e.iGM(Lt=e.CRH())&&(Tt._implicitContent=Lt.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[e.qOj,e.TTD]}),_t})(),mt=(()=>{class _t extends J{get templateLabel(){return this._templateLabel}set templateLabel(Ve){this._setTemplateLabelInput(Ve)}}return _t.\u0275fac=function(){let vt;return function(Tt){return(vt||(vt=e.n5z(_t)))(Tt||_t)}}(),_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab"]],contentQueries:function(Ve,Tt,Lt){if(1&Ve&&(e.Suo(Lt,Ae,7,e.Rgc),e.Suo(Lt,Je,5)),2&Ve){let Qt;e.iGM(Qt=e.CRH())&&(Tt._explicitContent=Qt.first),e.iGM(Qt=e.CRH())&&(Tt.templateLabel=Qt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[e._Bn([{provide:Ue,useExisting:_t}]),e.qOj],ngContentSelectors:O,decls:1,vars:0,template:function(Ve,Tt){1&Ve&&(e.F$t(),e.YNc(0,_,1,0,"ng-template"))},encapsulation:2}),_t})();const Et=(0,S.i$)({passive:!0});let Ht=(()=>{class _t{get disablePagination(){return this._disablePagination}set disablePagination(Ve){this._disablePagination=(0,ce.Ig)(Ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ve){Ve=(0,ce.su)(Ve),this._selectedIndex!=Ve&&(this._selectedIndexChanged=!0,this._selectedIndex=Ve,this._keyManager&&this._keyManager.updateActiveItem(Ve))}constructor(Ve,Tt,Lt,Qt,Bi,Hi,Si){this._elementRef=Ve,this._changeDetectorRef=Tt,this._viewportRuler=Lt,this._dir=Qt,this._ngZone=Bi,this._platform=Hi,this._animationMode=Si,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new d.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new d.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new e.vpe,this.indexFocused=new e.vpe,Bi.runOutsideAngular(()=>{(0,M.R)(Ve.nativeElement,"mouseleave").pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,M.R)(this._previousPaginator.nativeElement,"touchstart",Et).pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",Et).pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ve=this._dir?this._dir.change:(0,w.of)("ltr"),Tt=this._viewportRuler.change(150),Lt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new x.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(Lt),(0,L.T)(Ve,Tt,this._items.changes,this._itemsResized()).pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Lt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Qt=>{this.indexFocused.emit(Qt),this._setTabFocus(Qt)})}_itemsResized(){return"function"!=typeof ResizeObserver?k.E:this._items.changes.pipe((0,Y.O)(this._items),(0,me.w)(Ve=>new V.y(Tt=>this._ngZone.runOutsideAngular(()=>{const Lt=new ResizeObserver(Qt=>Tt.next(Qt));return Ve.forEach(Qt=>Lt.observe(Qt.elementRef.nativeElement)),()=>{Lt.disconnect()}}))),(0,re.T)(1),(0,ie.h)(Ve=>Ve.some(Tt=>Tt.contentRect.width>0&&Tt.contentRect.height>0)))}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._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ve){if(!(0,i.Vb)(Ve))switch(Ve.keyCode){case i.K5:case i.L_:if(this.focusIndex!==this.selectedIndex){const Tt=this._items.get(this.focusIndex);Tt&&!Tt.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ve))}break;default:this._keyManager.onKeydown(Ve)}}_onContentChanges(){const Ve=this._elementRef.nativeElement.textContent;Ve!==this._currentTextContent&&(this._currentTextContent=Ve||"",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(Ve){!this._isValidIndex(Ve)||this.focusIndex===Ve||!this._keyManager||this._keyManager.setActiveItem(Ve)}_isValidIndex(Ve){return!this._items||!!this._items.toArray()[Ve]}_setTabFocus(Ve){if(this._showPaginationControls&&this._scrollToLabel(Ve),this._items&&this._items.length){this._items.toArray()[Ve].focus();const Tt=this._tabListContainer.nativeElement;Tt.scrollLeft="ltr"==this._getLayoutDirection()?0:Tt.scrollWidth-Tt.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ve=this.scrollDistance,Tt="ltr"===this._getLayoutDirection()?-Ve:Ve;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Tt)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ve){this._scrollTo(Ve)}_scrollHeader(Ve){return this._scrollTo(this._scrollDistance+("before"==Ve?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ve){this._stopInterval(),this._scrollHeader(Ve)}_scrollToLabel(Ve){if(this.disablePagination)return;const Tt=this._items?this._items.toArray()[Ve]:null;if(!Tt)return;const Lt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Qt,offsetWidth:Bi}=Tt.elementRef.nativeElement;let Hi,Si;"ltr"==this._getLayoutDirection()?(Hi=Qt,Si=Hi+Bi):(Si=this._tabListInner.nativeElement.offsetWidth-Qt,Hi=Si-Bi);const Wi=this.scrollDistance,et=this.scrollDistance+Lt;Hi<Wi?this.scrollDistance-=Wi-Hi:Si>et&&(this.scrollDistance+=Math.min(Si-et,Hi-Wi))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Ve=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Ve||(this.scrollDistance=0),Ve!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Ve}}_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 Ve=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Tt=Ve?Ve.elementRef.nativeElement:null;Tt?this._inkBar.alignToElement(Tt):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ve,Tt){Tt&&null!=Tt.button&&0!==Tt.button||(this._stopInterval(),(0,B.H)(650,100).pipe((0,X.R)((0,L.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Lt,distance:Qt}=this._scrollHeader(Ve);(0===Qt||Qt>=Lt)&&this._stopInterval()}))}_scrollTo(Ve){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Tt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Tt,Ve)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Tt,distance:this._scrollDistance}}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Te.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(S.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{disablePagination:"disablePagination"}}),_t})(),Ct=(()=>{class _t extends Ht{get disableRipple(){return this._disableRipple}set disableRipple(Ve){this._disableRipple=(0,ce.Ig)(Ve)}constructor(Ve,Tt,Lt,Qt,Bi,Hi,Si){super(Ve,Tt,Lt,Qt,Bi,Hi,Si),this._disableRipple=!1}_itemSelected(Ve){Ve.preventDefault()}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Te.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(S.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{disableRipple:"disableRipple"},features:[e.qOj]}),_t})(),Nt=(()=>{class _t extends Ct{constructor(Ve,Tt,Lt,Qt,Bi,Hi,Si){super(Ve,Tt,Lt,Qt,Bi,Hi,Si)}ngAfterContentInit(){this._inkBar=new rt(this._items),super.ngAfterContentInit()}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Te.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(S.t4),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-header"]],contentQueries:function(Ve,Tt,Lt){if(1&Ve&&e.Suo(Lt,Me,4),2&Ve){let Qt;e.iGM(Qt=e.CRH())&&(Tt._items=Qt)}},viewQuery:function(Ve,Tt){if(1&Ve&&(e.Gf(R,7),e.Gf(C,7),e.Gf(n,7),e.Gf(v,5),e.Gf(K,5)),2&Ve){let Lt;e.iGM(Lt=e.CRH())&&(Tt._tabListContainer=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._tabList=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._tabListInner=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._nextPaginator=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._previousPaginator=Lt.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(Ve,Tt){2&Ve&&e.ekj("mat-mdc-tab-header-pagination-controls-enabled",Tt._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Tt._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[e.qOj],ngContentSelectors:O,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ve,Tt){1&Ve&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Tt._handlePaginatorClick("before")})("mousedown",function(Qt){return Tt._handlePaginatorPress("before",Qt)})("touchend",function(){return Tt._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(Qt){return Tt._handleKeydown(Qt)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return Tt._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(Qt){return Tt._handlePaginatorPress("after",Qt)})("click",function(){return Tt._handlePaginatorClick("after")})("touchend",function(){return Tt._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&Ve&&(e.ekj("mat-mdc-tab-header-pagination-disabled",Tt._disableScrollBefore),e.Q6J("matRippleDisabled",Tt._disableScrollBefore||Tt.disableRipple)("disabled",Tt._disableScrollBefore||null),e.xp6(3),e.ekj("_mat-animation-noopable","NoopAnimations"===Tt._animationMode),e.xp6(7),e.ekj("mat-mdc-tab-header-pagination-disabled",Tt._disableScrollAfter),e.Q6J("matRippleDisabled",Tt._disableScrollAfter||Tt.disableRipple)("disabled",Tt._disableScrollAfter||null))},dependencies:[g.wG,s.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),_t})();const Bt=new e.OlP("MAT_TABS_CONFIG");let Ne=0;const $=(0,g.pj)((0,g.Kr)(class{constructor(_t){this._elementRef=_t}}),"primary");let ue=(()=>{class _t extends ${get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ve){this._dynamicHeight=(0,ce.Ig)(Ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ve){this._indexToSelect=(0,ce.su)(Ve,null)}get animationDuration(){return this._animationDuration}set animationDuration(Ve){this._animationDuration=/^\d+$/.test(Ve+"")?Ve+"ms":Ve}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ve){this._contentTabIndex=(0,ce.su)(Ve,null)}get disablePagination(){return this._disablePagination}set disablePagination(Ve){this._disablePagination=(0,ce.Ig)(Ve)}get preserveContent(){return this._preserveContent}set preserveContent(Ve){this._preserveContent=(0,ce.Ig)(Ve)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ve){const Tt=this._elementRef.nativeElement.classList;Tt.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ve&&Tt.add("mat-tabs-with-background",`mat-background-${Ve}`),this._backgroundColor=Ve}constructor(Ve,Tt,Lt,Qt){super(Ve),this._changeDetectorRef=Tt,this._animationMode=Qt,this._tabs=new e.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=N.w0.EMPTY,this._tabLabelSubscription=N.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new e.vpe,this.focusChange=new e.vpe,this.animationDone=new e.vpe,this.selectedTabChange=new e.vpe(!0),this._groupId=Ne++,this.animationDuration=Lt&&Lt.animationDuration?Lt.animationDuration:"500ms",this.disablePagination=!(!Lt||null==Lt.disablePagination)&&Lt.disablePagination,this.dynamicHeight=!(!Lt||null==Lt.dynamicHeight)&&Lt.dynamicHeight,this.contentTabIndex=Lt?.contentTabIndex??null,this.preserveContent=!!Lt?.preserveContent}ngAfterContentChecked(){const Ve=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ve){const Tt=null==this._selectedIndex;if(!Tt){this.selectedTabChange.emit(this._createChangeEvent(Ve));const Lt=this._tabBodyWrapper.nativeElement;Lt.style.minHeight=Lt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Lt,Qt)=>Lt.isActive=Qt===Ve),Tt||(this.selectedIndexChange.emit(Ve),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Tt,Lt)=>{Tt.position=Lt-Ve,null!=this._selectedIndex&&0==Tt.position&&!Tt.origin&&(Tt.origin=Ve-this._selectedIndex)}),this._selectedIndex!==Ve&&(this._selectedIndex=Ve,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ve=this._clampTabIndex(this._indexToSelect);if(Ve===this._selectedIndex){const Tt=this._tabs.toArray();let Lt;for(let Qt=0;Qt<Tt.length;Qt++)if(Tt[Qt].isActive){this._indexToSelect=this._selectedIndex=Qt,this._lastFocusedTabIndex=null,Lt=Tt[Qt];break}!Lt&&Tt[Ve]&&Promise.resolve().then(()=>{Tt[Ve].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ve))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,Y.O)(this._allTabs)).subscribe(Ve=>{this._tabs.reset(Ve.filter(Tt=>Tt._closestTabGroup===this||!Tt._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ve){const Tt=this._tabHeader;Tt&&(Tt.focusIndex=Ve)}_focusChanged(Ve){this._lastFocusedTabIndex=Ve,this.focusChange.emit(this._createChangeEvent(Ve))}_createChangeEvent(Ve){const Tt=new Xe;return Tt.index=Ve,this._tabs&&this._tabs.length&&(Tt.tab=this._tabs.toArray()[Ve]),Tt}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,L.T)(...this._tabs.map(Ve=>Ve._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ve){return Math.min(this._tabs.length-1,Math.max(Ve||0,0))}_getTabLabelId(Ve){return`mat-tab-label-${this._groupId}-${Ve}`}_getTabContentId(Ve){return`mat-tab-content-${this._groupId}-${Ve}`}_setTabBodyWrapperHeight(Ve){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Tt=this._tabBodyWrapper.nativeElement;Tt.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Tt.style.height=Ve+"px")}_removeTabBodyWrapperHeight(){const Ve=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ve.clientHeight,Ve.style.height="",this.animationDone.emit()}_handleClick(Ve,Tt,Lt){Tt.focusIndex=Lt,Ve.disabled||(this.selectedIndex=Lt)}_getTabIndex(Ve){return Ve===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Ve,Tt){Ve&&"mouse"!==Ve&&"touch"!==Ve&&(this._tabHeader.focusIndex=Tt)}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Bt,8),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[e.qOj]}),_t})(),Ie=(()=>{class _t extends ue{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Ve){this._fitInkBarToContent=(0,ce.Ig)(Ve),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(Ve){this._stretchTabs=(0,ce.Ig)(Ve)}constructor(Ve,Tt,Lt,Qt){super(Ve,Tt,Lt,Qt),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!Lt||null==Lt.fitInkBarToContent)&&Lt.fitInkBarToContent}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Bt,8),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-group"]],contentQueries:function(Ve,Tt,Lt){if(1&Ve&&e.Suo(Lt,mt,5),2&Ve){let Qt;e.iGM(Qt=e.CRH())&&(Tt._allTabs=Qt)}},viewQuery:function(Ve,Tt){if(1&Ve&&(e.Gf(F,5),e.Gf(G,5)),2&Ve){let Lt;e.iGM(Lt=e.CRH())&&(Tt._tabBodyWrapper=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._tabHeader=Lt.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(Ve,Tt){2&Ve&&e.ekj("mat-mdc-tab-group-dynamic-height",Tt.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Tt.headerPosition)("mat-mdc-tab-group-stretch-tabs",Tt.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[e._Bn([{provide:Pe,useExisting:_t}]),e.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Ve,Tt){1&Ve&&(e.TgZ(0,"mat-tab-header",0,1),e.NdJ("indexFocused",function(Qt){return Tt._focusChanged(Qt)})("selectFocusedIndex",function(Qt){return Tt.selectedIndex=Qt}),e.YNc(2,qe,9,17,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.YNc(5,Ce,1,11,"mat-tab-body",5),e.qZA()),2&Ve&&(e.Q6J("selectedIndex",Tt.selectedIndex||0)("disableRipple",Tt.disableRipple)("disablePagination",Tt.disablePagination),e.xp6(2),e.Q6J("ngForOf",Tt._tabs),e.xp6(1),e.ekj("_mat-animation-noopable","NoopAnimations"===Tt._animationMode),e.xp6(2),e.Q6J("ngForOf",Tt._tabs))},dependencies:[t.mk,t.sg,t.O5,T.Pl,g.wG,x.kH,Oe,Me,Nt],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),_t})();class Xe{}let ei=0,zt=(()=>{class _t extends Ht{get backgroundColor(){return this._backgroundColor}set backgroundColor(Ve){const Tt=this._elementRef.nativeElement.classList;Tt.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ve&&Tt.add("mat-tabs-with-background",`mat-background-${Ve}`),this._backgroundColor=Ve}get disableRipple(){return this._disableRipple}set disableRipple(Ve){this._disableRipple=(0,ce.Ig)(Ve)}constructor(Ve,Tt,Lt,Qt,Bi,Hi,Si){super(Ve,Qt,Bi,Tt,Lt,Hi,Si),this._disableRipple=!1,this.color="primary"}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,Y.O)(null),(0,X.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Ve=this._items.toArray();for(let Tt=0;Tt<Ve.length;Tt++)if(Ve[Tt].active)return this.selectedIndex=Tt,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Ve[Tt].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(Te.rL),e.Y36(S.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[e.qOj]}),_t})();const ni=(0,g.sb)((0,g.Kr)((0,g.Id)(class{}))),ot=Qe((()=>{class _t extends ni{get active(){return this._isActive}set active(Ve){const Tt=(0,ce.Ig)(Ve);Tt!==this._isActive&&(this._isActive=Tt,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(Ve,Tt,Lt,Qt,Bi,Hi){super(),this._tabNavBar=Ve,this.elementRef=Tt,this._focusMonitor=Bi,this._isActive=!1,this.id="mat-tab-link-"+ei++,this.rippleConfig=Lt||{},this.tabIndex=parseInt(Qt)||0,"NoopAnimations"===Hi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ve){this._tabNavBar.tabPanel&&Ve.keyCode===i.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(zt),e.Y36(e.SBq),e.Y36(g.Y2,8),e.$8M("tabindex"),e.Y36(x.tE),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{active:"active",id:"id"},features:[e.qOj]}),_t})());let ft=(()=>{class _t extends zt{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(Ve){this._fitInkBarToContent.next((0,ce.Ig)(Ve)),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(Ve){this._stretchTabs=(0,ce.Ig)(Ve)}constructor(Ve,Tt,Lt,Qt,Bi,Hi,Si,Wi){super(Ve,Tt,Lt,Qt,Bi,Hi,Si),this._fitInkBarToContent=new W.X(!1),this._stretchTabs=!0,this.disablePagination=!(!Wi||null==Wi.disablePagination)&&Wi.disablePagination,this.fitInkBarToContent=!(!Wi||null==Wi.fitInkBarToContent)&&Wi.fitInkBarToContent}ngAfterContentInit(){this._inkBar=new rt(this._items),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(Te.rL),e.Y36(S.t4),e.Y36(e.QbO,8),e.Y36(Bt,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Ve,Tt,Lt){if(1&Ve&&e.Suo(Lt,St,5),2&Ve){let Qt;e.iGM(Qt=e.CRH())&&(Tt._items=Qt)}},viewQuery:function(Ve,Tt){if(1&Ve&&(e.Gf(R,7),e.Gf(C,7),e.Gf(n,7),e.Gf(v,5),e.Gf(K,5)),2&Ve){let Lt;e.iGM(Lt=e.CRH())&&(Tt._tabListContainer=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._tabList=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._tabListInner=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._nextPaginator=Lt.first),e.iGM(Lt=e.CRH())&&(Tt._previousPaginator=Lt.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:15,hostBindings:function(Ve,Tt){2&Ve&&(e.uIk("role",Tt._getRole()),e.ekj("mat-mdc-tab-header-pagination-controls-enabled",Tt._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Tt._getLayoutDirection())("mat-mdc-tab-nav-bar-stretch-tabs",Tt.stretchTabs)("mat-primary","warn"!==Tt.color&&"accent"!==Tt.color)("mat-accent","accent"===Tt.color)("mat-warn","warn"===Tt.color)("_mat-animation-noopable","NoopAnimations"===Tt._animationMode))},inputs:{color:"color",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabNavBar","matTabNav"],features:[e.qOj],attrs:Se,ngContentSelectors:O,decls:13,vars:8,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ve,Tt){1&Ve&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Tt._handlePaginatorClick("before")})("mousedown",function(Qt){return Tt._handlePaginatorPress("before",Qt)})("touchend",function(){return Tt._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(Qt){return Tt._handleKeydown(Qt)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return Tt._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(Qt){return Tt._handlePaginatorPress("after",Qt)})("click",function(){return Tt._handlePaginatorClick("after")})("touchend",function(){return Tt._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&Ve&&(e.ekj("mat-mdc-tab-header-pagination-disabled",Tt._disableScrollBefore),e.Q6J("matRippleDisabled",Tt._disableScrollBefore||Tt.disableRipple)("disabled",Tt._disableScrollBefore||null),e.xp6(10),e.ekj("mat-mdc-tab-header-pagination-disabled",Tt._disableScrollAfter),e.Q6J("matRippleDisabled",Tt._disableScrollAfter||Tt.disableRipple)("disabled",Tt._disableScrollAfter||null))},dependencies:[g.wG,s.wD],styles:[".mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}"],encapsulation:2}),_t})(),St=(()=>{class _t extends ot{constructor(Ve,Tt,Lt,Qt,Bi,Hi){super(Ve,Tt,Lt,Qt,Bi,Hi),this._destroyed=new d.x,Ve._fitInkBarToContent.pipe((0,X.R)(this._destroyed)).subscribe(Si=>{this.fitInkBarToContent=Si})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy()}}return _t.\u0275fac=function(Ve){return new(Ve||_t)(e.Y36(ft),e.Y36(e.SBq),e.Y36(g.Y2,8),e.$8M("tabindex"),e.Y36(x.tE),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(Ve,Tt){1&Ve&&e.NdJ("focus",function(){return Tt._handleFocus()})("keydown",function(Qt){return Tt._handleKeydown(Qt)}),2&Ve&&(e.uIk("aria-controls",Tt._getAriaControls())("aria-current",Tt._getAriaCurrent())("aria-disabled",Tt.disabled)("aria-selected",Tt._getAriaSelected())("id",Tt.id)("tabIndex",Tt._getTabIndex())("role",Tt._getRole()),e.ekj("mat-mdc-tab-disabled",Tt.disabled)("mdc-tab--active",Tt.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",active:"active",id:"id"},exportAs:["matTabLink"],features:[e.qOj],attrs:fe,ngContentSelectors:O,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(Ve,Tt){1&Ve&&(e.F$t(),e._UZ(0,"span",0)(1,"div",1),e.TgZ(2,"span",2)(3,"span",3),e.Hsn(4),e.qZA()()),2&Ve&&(e.xp6(1),e.Q6J("matRippleTrigger",Tt.elementRef.nativeElement)("matRippleDisabled",Tt.rippleDisabled))},dependencies:[g.wG],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab-link.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab-link .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12}.mat-mdc-tab-link.mat-mdc-tab-disabled{pointer-events:none;opacity:.4}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0}),_t})(),gt=(()=>{class _t{constructor(){this.id="mat-tab-nav-panel-"+ei++}}return _t.\u0275fac=function(Ve){return new(Ve||_t)},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(Ve,Tt){2&Ve&&e.uIk("aria-labelledby",Tt._activeTabId)("id",Tt.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:O,decls:1,vars:0,template:function(Ve,Tt){1&Ve&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_t})(),tt=(()=>{class _t{}return _t.\u0275fac=function(Ve){return new(Ve||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[t.ez,g.BQ,T.eL,g.si,s.Q8,x.rt,g.BQ]}),_t})()},3683:(We,q,m)=>{"use strict";m.d(q,{Ye:()=>d,g0:()=>w});var t=m(4650),e=m(3238),g=m(3353),T=m(6895);const s=["*",[["mat-toolbar-row"]]],x=["*","mat-toolbar-row"],h=(0,e.pj)(class{constructor(L){this._elementRef=L}});let N=(()=>{class L{}return L.\u0275fac=function(V){return new(V||L)},L.\u0275dir=t.lG2({type:L,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),L})(),d=(()=>{class L extends h{constructor(V,B,W){super(V),this._platform=B,this._document=W}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return L.\u0275fac=function(V){return new(V||L)(t.Y36(t.SBq),t.Y36(g.t4),t.Y36(T.K0))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-toolbar"]],contentQueries:function(V,B,W){if(1&V&&t.Suo(W,N,5),2&V){let Y;t.iGM(Y=t.CRH())&&(B._toolbarRows=Y)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(V,B){2&V&&t.ekj("mat-toolbar-multiple-rows",B._toolbarRows.length>0)("mat-toolbar-single-row",0===B._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:x,decls:2,vars:0,template:function(V,B){1&V&&(t.F$t(s),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.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%}"],encapsulation:2,changeDetection:0}),L})(),w=(()=>{class L{}return L.\u0275fac=function(V){return new(V||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),L})()},266:(We,q,m)=>{"use strict";m.d(q,{AV:()=>v,gM:()=>O});var t=m(2722),e=m(5698),g=m(1281),T=m(9521),s=m(4650),x=m(6895),h=m(3353),N=m(4761),d=m(445),M=m(8184),w=m(531),L=m(4080),k=m(7579),B=(m(7340),m(3238));const W=["tooltip"],X=new s.OlP("mat-tooltip-scroll-strategy"),me={provide:X,deps:[M.aV],useFactory:function ee(K){return()=>K.scrollStrategies.reposition({scrollThrottle:20})}},ie=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function re(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ce="tooltip-panel",Te=(0,h.i$)({passive:!0});let _=(()=>{class K{get position(){return this._position}set position(G){G!==this._position&&(this._position=G,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(G){this._positionAtOrigin=(0,g.Ig)(G),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(G){this._disabled=(0,g.Ig)(G),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(G){this._showDelay=(0,g.su)(G)}get hideDelay(){return this._hideDelay}set hideDelay(G){this._hideDelay=(0,g.su)(G),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(G){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=G?String(G).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(G){this._tooltipClass=G,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(G,ye,Ee,pe,qe,Ce,Se,fe,Fe,oe,ze,Oe){this._overlay=G,this._elementRef=ye,this._scrollDispatcher=Ee,this._viewContainerRef=pe,this._ngZone=qe,this._platform=Ce,this._ariaDescriber=Se,this._focusMonitor=fe,this._dir=oe,this._defaultOptions=ze,this._position="below",this._positionAtOrigin=!1,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 k.x,this._scrollStrategy=Fe,this._document=Oe,ze&&(ze.position&&(this.position=ze.position),ze.positionAtOrigin&&(this.positionAtOrigin=ze.positionAtOrigin),ze.touchGestures&&(this.touchGestures=ze.touchGestures)),oe.change.pipe((0,t.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.R)(this._destroyed)).subscribe(G=>{G?"keyboard"===G&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const G=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ye,Ee])=>{G.removeEventListener(ye,Ee,Te)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(G,this.message,"tooltip"),this._focusMonitor.stopMonitoring(G)}show(G=this.showDelay,ye){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Ee=this._createOverlay(ye);this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const pe=this._tooltipInstance=Ee.attach(this._portal).instance;pe._triggerElement=this._elementRef.nativeElement,pe._mouseLeaveHideDelay=this._hideDelay,pe.afterHidden().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),pe.show(G)}hide(G=this.hideDelay){const ye=this._tooltipInstance;ye&&(ye.isVisible()?ye.hide(G):(ye._cancelPendingAnimations(),this._detach()))}toggle(G){this._isTooltipVisible()?this.hide():this.show(void 0,G)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(G){if(this._overlayRef){const pe=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!G)&&pe._origin instanceof s.SBq)return this._overlayRef;this._detach()}const ye=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ee=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&G||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ye);return Ee.positionChanges.pipe((0,t.R)(this._destroyed)).subscribe(pe=>{this._updateCurrentPositionClass(pe.connectionPair),this._tooltipInstance&&pe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ee,panelClass:`${this._cssClassPrefix}-${ce}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.R)(this._destroyed)).subscribe(pe=>{this._isTooltipVisible()&&pe.keyCode===T.hY&&!(0,T.Vb)(pe)&&(pe.preventDefault(),pe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(G){const ye=G.getConfig().positionStrategy,Ee=this._getOrigin(),pe=this._getOverlayPosition();ye.withPositions([this._addOffset({...Ee.main,...pe.main}),this._addOffset({...Ee.fallback,...pe.fallback})])}_addOffset(G){return G}_getOrigin(){const G=!this._dir||"ltr"==this._dir.value,ye=this.position;let Ee;"above"==ye||"below"==ye?Ee={originX:"center",originY:"above"==ye?"top":"bottom"}:"before"==ye||"left"==ye&&G||"right"==ye&&!G?Ee={originX:"start",originY:"center"}:("after"==ye||"right"==ye&&G||"left"==ye&&!G)&&(Ee={originX:"end",originY:"center"});const{x:pe,y:qe}=this._invertPosition(Ee.originX,Ee.originY);return{main:Ee,fallback:{originX:pe,originY:qe}}}_getOverlayPosition(){const G=!this._dir||"ltr"==this._dir.value,ye=this.position;let Ee;"above"==ye?Ee={overlayX:"center",overlayY:"bottom"}:"below"==ye?Ee={overlayX:"center",overlayY:"top"}:"before"==ye||"left"==ye&&G||"right"==ye&&!G?Ee={overlayX:"end",overlayY:"center"}:("after"==ye||"right"==ye&&G||"left"==ye&&!G)&&(Ee={overlayX:"start",overlayY:"center"});const{x:pe,y:qe}=this._invertPosition(Ee.overlayX,Ee.overlayY);return{main:Ee,fallback:{overlayX:pe,overlayY:qe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,e.q)(1),(0,t.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(G){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=G,this._tooltipInstance._markForCheck())}_invertPosition(G,ye){return"above"===this.position||"below"===this.position?"top"===ye?ye="bottom":"bottom"===ye&&(ye="top"):"end"===G?G="start":"start"===G&&(G="end"),{x:G,y:ye}}_updateCurrentPositionClass(G){const{overlayY:ye,originX:Ee,originY:pe}=G;let qe;if(qe="center"===ye?this._dir&&"rtl"===this._dir.value?"end"===Ee?"left":"right":"start"===Ee?"left":"right":"bottom"===ye&&"top"===pe?"above":"below",qe!==this._currentPosition){const Ce=this._overlayRef;if(Ce){const Se=`${this._cssClassPrefix}-${ce}-`;Ce.removePanelClass(Se+this._currentPosition),Ce.addPanelClass(Se+qe)}this._currentPosition=qe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",G=>{let ye;this._setupPointerExitEventsIfNeeded(),void 0!==G.x&&void 0!==G.y&&(ye=G),this.show(void 0,ye)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",G=>{const ye=G.targetTouches?.[0],Ee=ye?{x:ye.clientX,y:ye.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Ee),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const G=[];if(this._platformSupportsMouseEvents())G.push(["mouseleave",ye=>{const Ee=ye.relatedTarget;(!Ee||!this._overlayRef?.overlayElement.contains(Ee))&&this.hide()}],["wheel",ye=>this._wheelListener(ye)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ye=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};G.push(["touchend",ye],["touchcancel",ye])}this._addListeners(G),this._passiveListeners.push(...G)}_addListeners(G){G.forEach(([ye,Ee])=>{this._elementRef.nativeElement.addEventListener(ye,Ee,Te)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(G){if(this._isTooltipVisible()){const ye=this._document.elementFromPoint(G.clientX,G.clientY),Ee=this._elementRef.nativeElement;ye!==Ee&&!Ee.contains(ye)&&this.hide()}}_disableNativeGesturesIfNecessary(){const G=this.touchGestures;if("off"!==G){const ye=this._elementRef.nativeElement,Ee=ye.style;("on"===G||"INPUT"!==ye.nodeName&&"TEXTAREA"!==ye.nodeName)&&(Ee.userSelect=Ee.msUserSelect=Ee.webkitUserSelect=Ee.MozUserSelect="none"),("on"===G||!ye.draggable)&&(Ee.webkitUserDrag="none"),Ee.touchAction="none",Ee.webkitTapHighlightColor="transparent"}}}return K.\u0275fac=function(G){s.$Z()},K.\u0275dir=s.lG2({type:K,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),K})(),O=(()=>{class K extends _{constructor(G,ye,Ee,pe,qe,Ce,Se,fe,Fe,oe,ze,Oe){super(G,ye,Ee,pe,qe,Ce,Se,fe,Fe,oe,ze,Oe),this._tooltipComponent=C,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(G){const Ee=!this._dir||"ltr"==this._dir.value;return"top"===G.originY?G.offsetY=-8:"bottom"===G.originY?G.offsetY=8:"start"===G.originX?G.offsetX=Ee?-8:8:"end"===G.originX&&(G.offsetX=Ee?8:-8),G}}return K.\u0275fac=function(G){return new(G||K)(s.Y36(M.aV),s.Y36(s.SBq),s.Y36(w.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(h.t4),s.Y36(N.$s),s.Y36(N.tE),s.Y36(X),s.Y36(d.Is,8),s.Y36(ie,8),s.Y36(x.K0))},K.\u0275dir=s.lG2({type:K,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),K})(),R=(()=>{class K{constructor(G,ye){this._changeDetectorRef=G,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new k.x,this._animationsDisabled="NoopAnimations"===ye}show(G){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},G)}hide(G){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},G)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:G}){(!G||!this._triggerElement.contains(G))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:G}){(G===this._showAnimation||G===this._hideAnimation)&&this._finalizeAnimation(G===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(G){G?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(G){const ye=this._tooltip.nativeElement,Ee=this._showAnimation,pe=this._hideAnimation;if(ye.classList.remove(G?pe:Ee),ye.classList.add(G?Ee:pe),this._isVisible=G,G&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const qe=getComputedStyle(ye);("0s"===qe.getPropertyValue("animation-duration")||"none"===qe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}G&&this._onShow(),this._animationsDisabled&&(ye.classList.add("_mat-animation-noopable"),this._finalizeAnimation(G))}}return K.\u0275fac=function(G){return new(G||K)(s.Y36(s.sBO),s.Y36(s.QbO,8))},K.\u0275dir=s.lG2({type:K}),K})(),C=(()=>{class K extends R{constructor(G,ye,Ee){super(G,Ee),this._elementRef=ye,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const G=this._elementRef.nativeElement.getBoundingClientRect();return G.height>24&&G.width>=200}}return K.\u0275fac=function(G){return new(G||K)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.QbO,8))},K.\u0275cmp=s.Xpm({type:K,selectors:[["mat-tooltip-component"]],viewQuery:function(G,ye){if(1&G&&s.Gf(W,7),2&G){let Ee;s.iGM(Ee=s.CRH())&&(ye._tooltip=Ee.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(G,ye){1&G&&s.NdJ("mouseleave",function(pe){return ye._handleMouseLeave(pe)}),2&G&&s.Udp("zoom",ye.isVisible()?1:null)},features:[s.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(G,ye){1&G&&(s.TgZ(0,"div",0,1),s.NdJ("animationend",function(pe){return ye._handleAnimationEnd(pe)}),s.TgZ(2,"div",2),s._uU(3),s.qZA()()),2&G&&(s.ekj("mdc-tooltip--multiline",ye._isMultiline),s.Q6J("ngClass",ye.tooltipClass),s.xp6(3),s.Oqu(ye.message))},dependencies:[x.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),K})(),v=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275mod=s.oAB({type:K}),K.\u0275inj=s.cJS({providers:[me],imports:[N.rt,x.ez,M.U8,B.BQ,B.BQ,w.ZD]}),K})()},5423:(We,q,m)=>{"use strict";m.d(q,{Ar:()=>V,GZ:()=>L,WX:()=>me,dp:()=>Q,eu:()=>W,fQ:()=>w,gi:()=>B,uo:()=>M});var t=m(7851),e=m(4650),g=m(3238),T=m(1281),s=m(5017),x=m(1135),h=m(6451),N=m(4004);const d=(0,g.sb)((0,g.Id)(t.Hs));let M=(()=>{class re extends d{constructor(se,ce,Te){super(se,ce),this.tabIndex=Number(Te)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},re.\u0275dir=e.lG2({type:re,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:re}]),e.qOj]}),re})(),w=(()=>{class re extends t.rO{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:re}]),e.qOj]}),re})(),L=(()=>{class re extends t.Xx{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,T.Ig)(se)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(se){this._tabIndex=se??0}constructor(se,ce,Te,S){super(se,ce,Te),this._disabled=!1,this.tabIndex=Number(S)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},re.\u0275dir=e.lG2({type:re,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:re},{provide:t.Hs,useExisting:re},{provide:t.HI,useExisting:re}]),e.qOj]}),re})(),V=(()=>{class re{constructor(se,ce){this.viewContainer=se,this._node=ce}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.s_b),e.Y36(t.HI,8))},re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:re}])]}),re})(),B=(()=>{class re extends t._0{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-tree"]],viewQuery:function(se,ce){if(1&se&&e.Gf(V,7),2&se){let Te;e.iGM(Te=e.CRH())&&(ce._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:re}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(se,ce){1&se&&e.GkF(0,0)},dependencies:[V],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}"],encapsulation:2}),re})(),W=(()=>{class re extends t.Ud{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:re}]),e.qOj]}),re})(),Q=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[t.nZ,g.BQ,g.BQ]}),re})();class me extends s.o2{constructor(){super(...arguments),this._data=new x.X([])}get data(){return this._data.value}set data(ie){this._data.next(ie)}connect(ie){return(0,h.T)(ie.viewChange,this._data).pipe((0,N.U)(()=>this.data))}disconnect(){}}},1481:(We,q,m)=>{"use strict";m.d(q,{Dx:()=>Gt,H7:()=>ni,b2:()=>Re,q6:()=>Ae,se:()=>l,t6:()=>zt});var t=m(6895),e=m(4650);class g extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends g{static makeCurrent(){(0,t.HT)(new T)}onAndCancel(gt,tt,_t){return gt.addEventListener(tt,_t,!1),()=>{gt.removeEventListener(tt,_t,!1)}}dispatchEvent(gt,tt){gt.dispatchEvent(tt)}remove(gt){gt.parentNode&&gt.parentNode.removeChild(gt)}createElement(gt,tt){return(tt=tt||this.getDefaultDocument()).createElement(gt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(gt){return gt.nodeType===Node.ELEMENT_NODE}isShadowRoot(gt){return gt instanceof DocumentFragment}getGlobalEventTarget(gt,tt){return"window"===tt?window:"document"===tt?gt:"body"===tt?gt.body:null}getBaseHref(gt){const tt=function x(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==tt?null:function N(St){h=h||document.createElement("a"),h.setAttribute("href",St);const gt=h.pathname;return"/"===gt.charAt(0)?gt:`/${gt}`}(tt)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(gt){return(0,t.Mx)(document.cookie,gt)}}let h,s=null;const d=new e.OlP("TRANSITION_ID"),w=[{provide:e.ip1,useFactory:function M(St,gt,tt){return()=>{tt.get(e.CZH).donePromise.then(()=>{const _t=(0,t.q)(),vt=gt.querySelectorAll(`style[ng-transition="${St}"]`);for(let Ve=0;Ve<vt.length;Ve++)_t.remove(vt[Ve])})}},deps:[d,t.K0,e.zs3],multi:!0}];let k=(()=>{class St{build(){return new XMLHttpRequest}}return St.\u0275fac=function(tt){return new(tt||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const V=new e.OlP("EventManagerPlugins");let B=(()=>{class St{constructor(tt,_t){this._zone=_t,this._eventNameToPlugin=new Map,tt.forEach(vt=>{vt.manager=this}),this._plugins=tt.slice().reverse()}addEventListener(tt,_t,vt){return this._findPluginFor(_t).addEventListener(tt,_t,vt)}addGlobalEventListener(tt,_t,vt){return this._findPluginFor(_t).addGlobalEventListener(tt,_t,vt)}getZone(){return this._zone}_findPluginFor(tt){const _t=this._eventNameToPlugin.get(tt);if(_t)return _t;const vt=this._plugins;for(let Ve=0;Ve<vt.length;Ve++){const Tt=vt[Ve];if(Tt.supports(tt))return this._eventNameToPlugin.set(tt,Tt),Tt}throw new Error(`No event manager plugin found for event ${tt}`)}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(V),e.LFG(e.R0b))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();class W{constructor(gt){this._doc=gt}addGlobalEventListener(gt,tt,_t){const vt=(0,t.q)().getGlobalEventTarget(this._doc,gt);if(!vt)throw new Error(`Unsupported event target ${vt} for event ${tt}`);return this.addEventListener(vt,tt,_t)}}let Y=(()=>{class St{constructor(){this.usageCount=new Map}addStyles(tt){for(const _t of tt)1===this.changeUsageCount(_t,1)&&this.onStyleAdded(_t)}removeStyles(tt){for(const _t of tt)0===this.changeUsageCount(_t,-1)&&this.onStyleRemoved(_t)}onStyleRemoved(tt){}onStyleAdded(tt){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(tt,_t){const vt=this.usageCount;let Ve=vt.get(tt)??0;return Ve+=_t,Ve>0?vt.set(tt,Ve):vt.delete(tt),Ve}ngOnDestroy(){for(const tt of this.getAllStyles())this.onStyleRemoved(tt);this.usageCount.clear()}}return St.\u0275fac=function(tt){return new(tt||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),Q=(()=>{class St extends Y{constructor(tt){super(),this.doc=tt,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(tt){for(const _t of this.hostNodes)this.addStyleToHost(_t,tt)}onStyleRemoved(tt){const _t=this.styleRef;_t.get(tt)?.forEach(Ve=>Ve.remove()),_t.delete(tt)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(tt){this.hostNodes.add(tt);for(const _t of this.getAllStyles())this.addStyleToHost(tt,_t)}removeHost(tt){this.hostNodes.delete(tt)}addStyleToHost(tt,_t){const vt=this.doc.createElement("style");vt.textContent=_t,tt.appendChild(vt);const Ve=this.styleRef.get(_t);Ve?Ve.push(vt):this.styleRef.set(_t,[vt])}resetHostNodes(){const tt=this.hostNodes;tt.clear(),tt.add(this.doc.head)}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const X={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ee=/%COMP%/g,Te=new e.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function a(St,gt){return gt.flat(100).map(tt=>tt.replace(ee,St))}function u(St){return gt=>{if("__ngUnwrap__"===gt)return St;!1===St(gt)&&(gt.preventDefault(),gt.returnValue=!1)}}let l=(()=>{class St{constructor(tt,_t,vt,Ve){this.eventManager=tt,this.sharedStylesHost=_t,this.appId=vt,this.removeStylesOnCompDestory=Ve,this.rendererByCompId=new Map,this.defaultRenderer=new _(tt)}createRenderer(tt,_t){if(!tt||!_t)return this.defaultRenderer;const vt=this.getOrCreateRenderer(tt,_t);return vt instanceof K?vt.applyToHost(tt):vt instanceof v&&vt.applyStyles(),vt}getOrCreateRenderer(tt,_t){const vt=this.rendererByCompId;let Ve=vt.get(_t.id);if(!Ve){const Tt=this.eventManager,Lt=this.sharedStylesHost,Qt=this.removeStylesOnCompDestory;switch(_t.encapsulation){case e.ifc.Emulated:Ve=new K(Tt,Lt,_t,this.appId,Qt);break;case e.ifc.ShadowDom:return new n(Tt,Lt,tt,_t);default:Ve=new v(Tt,Lt,_t,Qt)}Ve.onDestroy=()=>vt.delete(_t.id),vt.set(_t.id,Ve)}return Ve}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(B),e.LFG(Q),e.LFG(e.AFp),e.LFG(Te))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();class _{constructor(gt){this.eventManager=gt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(gt,tt){return tt?document.createElementNS(X[tt]||tt,gt):document.createElement(gt)}createComment(gt){return document.createComment(gt)}createText(gt){return document.createTextNode(gt)}appendChild(gt,tt){(C(gt)?gt.content:gt).appendChild(tt)}insertBefore(gt,tt,_t){gt&&(C(gt)?gt.content:gt).insertBefore(tt,_t)}removeChild(gt,tt){gt&&gt.removeChild(tt)}selectRootElement(gt,tt){let _t="string"==typeof gt?document.querySelector(gt):gt;if(!_t)throw new Error(`The selector "${gt}" did not match any elements`);return tt||(_t.textContent=""),_t}parentNode(gt){return gt.parentNode}nextSibling(gt){return gt.nextSibling}setAttribute(gt,tt,_t,vt){if(vt){tt=vt+":"+tt;const Ve=X[vt];Ve?gt.setAttributeNS(Ve,tt,_t):gt.setAttribute(tt,_t)}else gt.setAttribute(tt,_t)}removeAttribute(gt,tt,_t){if(_t){const vt=X[_t];vt?gt.removeAttributeNS(vt,tt):gt.removeAttribute(`${_t}:${tt}`)}else gt.removeAttribute(tt)}addClass(gt,tt){gt.classList.add(tt)}removeClass(gt,tt){gt.classList.remove(tt)}setStyle(gt,tt,_t,vt){vt&(e.JOm.DashCase|e.JOm.Important)?gt.style.setProperty(tt,_t,vt&e.JOm.Important?"important":""):gt.style[tt]=_t}removeStyle(gt,tt,_t){_t&e.JOm.DashCase?gt.style.removeProperty(tt):gt.style[tt]=""}setProperty(gt,tt,_t){gt[tt]=_t}setValue(gt,tt){gt.nodeValue=tt}listen(gt,tt,_t){return"string"==typeof gt?this.eventManager.addGlobalEventListener(gt,tt,u(_t)):this.eventManager.addEventListener(gt,tt,u(_t))}}function C(St){return"TEMPLATE"===St.tagName&&void 0!==St.content}class n extends _{constructor(gt,tt,_t,vt){super(gt),this.sharedStylesHost=tt,this.hostEl=_t,this.shadowRoot=_t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ve=a(vt.id,vt.styles);for(const Tt of Ve){const Lt=document.createElement("style");Lt.textContent=Tt,this.shadowRoot.appendChild(Lt)}}nodeOrShadowRoot(gt){return gt===this.hostEl?this.shadowRoot:gt}appendChild(gt,tt){return super.appendChild(this.nodeOrShadowRoot(gt),tt)}insertBefore(gt,tt,_t){return super.insertBefore(this.nodeOrShadowRoot(gt),tt,_t)}removeChild(gt,tt){return super.removeChild(this.nodeOrShadowRoot(gt),tt)}parentNode(gt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(gt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class v extends _{constructor(gt,tt,_t,vt,Ve=_t.id){super(gt),this.sharedStylesHost=tt,this.removeStylesOnCompDestory=vt,this.rendererUsageCount=0,this.styles=a(Ve,_t.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class K extends v{constructor(gt,tt,_t,vt,Ve){const Tt=vt+"-"+_t.id;super(gt,tt,_t,Ve,Tt),this.contentAttr=function S(St){return"_ngcontent-%COMP%".replace(ee,St)}(Tt),this.hostAttr=function i(St){return"_nghost-%COMP%".replace(ee,St)}(Tt)}applyToHost(gt){this.applyStyles(),this.setAttribute(gt,this.hostAttr,"")}createElement(gt,tt){const _t=super.createElement(gt,tt);return super.setAttribute(_t,this.contentAttr,""),_t}}let F=(()=>{class St extends W{constructor(tt){super(tt)}supports(tt){return!0}addEventListener(tt,_t,vt){return tt.addEventListener(_t,vt,!1),()=>this.removeEventListener(tt,_t,vt)}removeEventListener(tt,_t,vt){return tt.removeEventListener(_t,vt)}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const G=["alt","control","meta","shift"],ye={"\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"},Ee={alt:St=>St.altKey,control:St=>St.ctrlKey,meta:St=>St.metaKey,shift:St=>St.shiftKey};let pe=(()=>{class St extends W{constructor(tt){super(tt)}supports(tt){return null!=St.parseEventName(tt)}addEventListener(tt,_t,vt){const Ve=St.parseEventName(_t),Tt=St.eventCallback(Ve.fullKey,vt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(tt,Ve.domEventName,Tt))}static parseEventName(tt){const _t=tt.toLowerCase().split("."),vt=_t.shift();if(0===_t.length||"keydown"!==vt&&"keyup"!==vt)return null;const Ve=St._normalizeKey(_t.pop());let Tt="",Lt=_t.indexOf("code");if(Lt>-1&&(_t.splice(Lt,1),Tt="code."),G.forEach(Bi=>{const Hi=_t.indexOf(Bi);Hi>-1&&(_t.splice(Hi,1),Tt+=Bi+".")}),Tt+=Ve,0!=_t.length||0===Ve.length)return null;const Qt={};return Qt.domEventName=vt,Qt.fullKey=Tt,Qt}static matchEventFullKeyCode(tt,_t){let vt=ye[tt.key]||tt.key,Ve="";return _t.indexOf("code.")>-1&&(vt=tt.code,Ve="code."),!(null==vt||!vt)&&(vt=vt.toLowerCase()," "===vt?vt="space":"."===vt&&(vt="dot"),G.forEach(Tt=>{Tt!==vt&&(0,Ee[Tt])(tt)&&(Ve+=Tt+".")}),Ve+=vt,Ve===_t)}static eventCallback(tt,_t,vt){return Ve=>{St.matchEventFullKeyCode(Ve,tt)&&vt.runGuarded(()=>_t(Ve))}}static _normalizeKey(tt){return"esc"===tt?"escape":tt}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const Ae=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function oe(){T.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function Oe(){return(0,e.RDi)(document),document},deps:[]}]),ge=new e.OlP(""),Ue=[{provide:e.rWj,useClass:class L{addToWindow(gt){e.dqk.getAngularTestability=(_t,vt=!0)=>{const Ve=gt.findTestabilityInTree(_t,vt);if(null==Ve)throw new Error("Could not find testability for element.");return Ve},e.dqk.getAllAngularTestabilities=()=>gt.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>gt.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(_t=>{const vt=e.dqk.getAllAngularTestabilities();let Ve=vt.length,Tt=!1;const Lt=function(Qt){Tt=Tt||Qt,Ve--,0==Ve&&_t(Tt)};vt.forEach(function(Qt){Qt.whenStable(Lt)})})}findTestabilityInTree(gt,tt,_t){return null==tt?null:gt.getTestability(tt)??(_t?(0,t.q)().isShadowRoot(tt)?this.findTestabilityInTree(gt,tt.host,!0):this.findTestabilityInTree(gt,tt.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Je=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function ze(){return new e.qLn},deps:[]},{provide:V,useClass:F,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:V,useClass:pe,multi:!0,deps:[t.K0]},{provide:l,useClass:l,deps:[B,Q,e.AFp,Te]},{provide:e.FYo,useExisting:l},{provide:Y,useExisting:Q},{provide:Q,useClass:Q,deps:[t.K0]},{provide:B,useClass:B,deps:[V,e.R0b]},{provide:t.JF,useClass:k,deps:[]},[]];let Re=(()=>{class St{constructor(tt){}static withServerTransition(tt){return{ngModule:St,providers:[{provide:e.AFp,useValue:tt.appId},{provide:d,useExisting:e.AFp},w]}}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(ge,12))},St.\u0275mod=e.oAB({type:St}),St.\u0275inj=e.cJS({providers:[...Je,...Ue],imports:[t.ez,e.hGG]}),St})(),Gt=(()=>{class St{constructor(tt){this._doc=tt}getTitle(){return this._doc.title}setTitle(tt){this._doc.title=tt||""}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:function(tt){let _t=null;return _t=tt?new tt:function ct(){return new Gt((0,e.LFG)(t.K0))}(),_t},providedIn:"root"}),St})();typeof window<"u"&&window;const $={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},ue=new e.OlP("HammerGestureConfig"),Ie=new e.OlP("HammerLoader");let Xe=(()=>{class St{constructor(){this.events=[],this.overrides={}}buildHammer(tt){const _t=new Hammer(tt,this.options);_t.get("pinch").set({enable:!0}),_t.get("rotate").set({enable:!0});for(const vt in this.overrides)_t.get(vt).set(this.overrides[vt]);return _t}}return St.\u0275fac=function(tt){return new(tt||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),ei=(()=>{class St extends W{constructor(tt,_t,vt,Ve){super(tt),this._config=_t,this.console=vt,this.loader=Ve,this._loaderPromise=null}supports(tt){return!(!$.hasOwnProperty(tt.toLowerCase())&&!this.isCustomEvent(tt)||!window.Hammer&&!this.loader)}addEventListener(tt,_t,vt){const Ve=this.manager.getZone();if(_t=_t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Ve.runOutsideAngular(()=>this.loader());let Tt=!1,Lt=()=>{Tt=!0};return Ve.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Tt||(Lt=this.addEventListener(tt,_t,vt)):Lt=()=>{}}).catch(()=>{Lt=()=>{}})),()=>{Lt()}}return Ve.runOutsideAngular(()=>{const Tt=this._config.buildHammer(tt),Lt=function(Qt){Ve.runGuarded(function(){vt(Qt)})};return Tt.on(_t,Lt),()=>{Tt.off(_t,Lt),"function"==typeof Tt.destroy&&Tt.destroy()}})}isCustomEvent(tt){return this._config.events.indexOf(tt)>-1}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(t.K0),e.LFG(ue),e.LFG(e.c2e),e.LFG(Ie,8))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),zt=(()=>{class St{}return St.\u0275fac=function(tt){return new(tt||St)},St.\u0275mod=e.oAB({type:St}),St.\u0275inj=e.cJS({providers:[{provide:V,useClass:ei,multi:!0,deps:[t.K0,ue,e.c2e,[new e.FiY,Ie]]},{provide:ue,useClass:Xe,deps:[]}]}),St})(),ni=(()=>{class St{}return St.\u0275fac=function(tt){return new(tt||St)},St.\u0275prov=e.Yz7({token:St,factory:function(tt){let _t=null;return _t=tt?new(tt||St):e.LFG(ot),_t},providedIn:"root"}),St})(),ot=(()=>{class St extends ni{constructor(tt){super(),this._doc=tt}sanitize(tt,_t){if(null==_t)return null;switch(tt){case e.q3G.NONE:return _t;case e.q3G.HTML:return(0,e.qzn)(_t,"HTML")?(0,e.z3N)(_t):(0,e.EiD)(this._doc,String(_t)).toString();case e.q3G.STYLE:return(0,e.qzn)(_t,"Style")?(0,e.z3N)(_t):_t;case e.q3G.SCRIPT:if((0,e.qzn)(_t,"Script"))return(0,e.z3N)(_t);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(_t,"URL")?(0,e.z3N)(_t):(0,e.mCW)(String(_t));case e.q3G.RESOURCE_URL:if((0,e.qzn)(_t,"ResourceURL"))return(0,e.z3N)(_t);throw new Error(`unsafe value used in a resource URL context (see ${e.JZr})`);default:throw new Error(`Unexpected SecurityContext ${tt} (see ${e.JZr})`)}}bypassSecurityTrustHtml(tt){return(0,e.JVY)(tt)}bypassSecurityTrustStyle(tt){return(0,e.L6k)(tt)}bypassSecurityTrustScript(tt){return(0,e.eBb)(tt)}bypassSecurityTrustUrl(tt){return(0,e.LAX)(tt)}bypassSecurityTrustResourceUrl(tt){return(0,e.pB0)(tt)}}return St.\u0275fac=function(tt){return new(tt||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:function(tt){let _t=null;return _t=tt?new tt:function pt(St){return new ot(St.get(t.K0))}(e.LFG(e.zs3)),_t},providedIn:"root"}),St})()},9116:(We,q,m)=>{"use strict";m.d(q,{gz:()=>jn,gk:()=>li,m2:()=>bi,Q3:()=>gi,OD:()=>Ot,Av:()=>Aa,F0:()=>Or,rH:()=>Os,Od:()=>Zc,Bz:()=>M2,lC:()=>sa});var t=m(4650),e=m(457),g=m(9646),T=m(1135),s=m(6805),x=m(9841),h=m(7272),N=m(9770),d=m(9635),M=m(2843),w=m(9751),L=m(515),k=m(4033),V=m(7579),B=m(6895),W=m(4004),Y=m(3900),Q=m(5698),X=m(8675),ee=m(9300),me=m(5577),re=m(590),ie=m(4351),se=m(8505),ce=m(262),Te=m(5026),S=m(4482),i=m(5403);function a(_e){return _e<=0?()=>L.E:(0,S.e)((xe,ae)=>{let Ge=[];xe.subscribe((0,i.x)(ae,ht=>{Ge.push(ht),_e<Ge.length&&Ge.shift()},()=>{for(const ht of Ge)ae.next(ht);ae.complete()},void 0,()=>{Ge=null}))})}var u=m(8068),l=m(6590),_=m(4671);function O(_e,xe){const ae=arguments.length>=2;return Ge=>Ge.pipe(_e?(0,ee.h)((ht,At)=>_e(ht,At,Ge)):_.y,a(1),ae?(0,l.d)(xe):(0,u.T)(()=>new s.K))}var R=m(2529),C=m(9718),n=m(8746),v=m(8343),K=m(8189),F=m(1481);const G="primary",ye=Symbol("RouteTitle");class Ee{constructor(xe){this.params=xe||{}}has(xe){return Object.prototype.hasOwnProperty.call(this.params,xe)}get(xe){if(this.has(xe)){const ae=this.params[xe];return Array.isArray(ae)?ae[0]:ae}return null}getAll(xe){if(this.has(xe)){const ae=this.params[xe];return Array.isArray(ae)?ae:[ae]}return[]}get keys(){return Object.keys(this.params)}}function pe(_e){return new Ee(_e)}function qe(_e,xe,ae){const Ge=ae.path.split("/");if(Ge.length>_e.length||"full"===ae.pathMatch&&(xe.hasChildren()||Ge.length<_e.length))return null;const ht={};for(let At=0;At<Ge.length;At++){const Vt=Ge[At],ui=_e[At];if(Vt.startsWith(":"))ht[Vt.substring(1)]=ui;else if(Vt!==ui.path)return null}return{consumed:_e.slice(0,Ge.length),posParams:ht}}function Se(_e,xe){const ae=_e?Object.keys(_e):void 0,Ge=xe?Object.keys(xe):void 0;if(!ae||!Ge||ae.length!=Ge.length)return!1;let ht;for(let At=0;At<ae.length;At++)if(ht=ae[At],!fe(_e[ht],xe[ht]))return!1;return!0}function fe(_e,xe){if(Array.isArray(_e)&&Array.isArray(xe)){if(_e.length!==xe.length)return!1;const ae=[..._e].sort(),Ge=[...xe].sort();return ae.every((ht,At)=>Ge[At]===ht)}return _e===xe}function Fe(_e){return Array.prototype.concat.apply([],_e)}function oe(_e){return _e.length>0?_e[_e.length-1]:null}function Oe(_e,xe){for(const ae in _e)_e.hasOwnProperty(ae)&&xe(_e[ae],ae)}function he(_e){return(0,t.CqO)(_e)?_e:(0,t.QGY)(_e)?(0,e.D)(Promise.resolve(_e)):(0,g.of)(_e)}const Ae=!1,ge={exact:function le(_e,xe,ae){if(!$e(_e.segments,xe.segments)||!Gt(_e.segments,xe.segments,ae)||_e.numberOfChildren!==xe.numberOfChildren)return!1;for(const Ge in xe.children)if(!_e.children[Ge]||!le(_e.children[Ge],xe.children[Ge],ae))return!1;return!0},subset:Qe},Ue={exact:function Re(_e,xe){return Se(_e,xe)},subset:function rt(_e,xe){return Object.keys(xe).length<=Object.keys(_e).length&&Object.keys(xe).every(ae=>fe(_e[ae],xe[ae]))},ignored:()=>!0};function Je(_e,xe,ae){return ge[ae.paths](_e.root,xe.root,ae.matrixParams)&&Ue[ae.queryParams](_e.queryParams,xe.queryParams)&&!("exact"===ae.fragment&&_e.fragment!==xe.fragment)}function Qe(_e,xe,ae){return ct(_e,xe,xe.segments,ae)}function ct(_e,xe,ae,Ge){if(_e.segments.length>ae.length){const ht=_e.segments.slice(0,ae.length);return!(!$e(ht,ae)||xe.hasChildren()||!Gt(ht,ae,Ge))}if(_e.segments.length===ae.length){if(!$e(_e.segments,ae)||!Gt(_e.segments,ae,Ge))return!1;for(const ht in xe.children)if(!_e.children[ht]||!Qe(_e.children[ht],xe.children[ht],Ge))return!1;return!0}{const ht=ae.slice(0,_e.segments.length),At=ae.slice(_e.segments.length);return!!($e(_e.segments,ht)&&Gt(_e.segments,ht,Ge)&&_e.children[G])&&ct(_e.children[G],xe,At,Ge)}}function Gt(_e,xe,ae){return xe.every((Ge,ht)=>Ue[ae](_e[ht].parameters,Ge.parameters))}class ut{constructor(xe=new Ze([],{}),ae={},Ge=null){this.root=xe,this.queryParams=ae,this.fragment=Ge}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=pe(this.queryParams)),this._queryParamMap}toString(){return Et.serialize(this)}}class Ze{constructor(xe,ae){this.segments=xe,this.children=ae,this.parent=null,Oe(ae,(Ge,ht)=>Ge.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return at(this)}}class xt{constructor(xe,ae){this.path=xe,this.parameters=ae}get parameterMap(){return this._parameterMap||(this._parameterMap=pe(this.parameters)),this._parameterMap}toString(){return ue(this)}}function $e(_e,xe){return _e.length===xe.length&&_e.every((ae,Ge)=>ae.path===xe[Ge].path)}let J=(()=>{class _e{}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:function(){return new mt},providedIn:"root"}),_e})();class mt{parse(xe){const ae=new St(xe);return new ut(ae.parseRootSegment(),ae.parseQueryParams(),ae.parseFragment())}serialize(xe){const ae=`/${je(xe.root,!0)}`,Ge=function Xe(_e){const xe=Object.keys(_e).map(ae=>{const Ge=_e[ae];return Array.isArray(Ge)?Ge.map(ht=>`${Ct(ae)}=${Ct(ht)}`).join("&"):`${Ct(ae)}=${Ct(Ge)}`}).filter(ae=>!!ae);return xe.length?`?${xe.join("&")}`:""}(xe.queryParams);return`${ae}${Ge}${"string"==typeof xe.fragment?`#${function Nt(_e){return encodeURI(_e)}(xe.fragment)}`:""}`}}const Et=new mt;function at(_e){return _e.segments.map(xe=>ue(xe)).join("/")}function je(_e,xe){if(!_e.hasChildren())return at(_e);if(xe){const ae=_e.children[G]?je(_e.children[G],!1):"",Ge=[];return Oe(_e.children,(ht,At)=>{At!==G&&Ge.push(`${At}:${je(ht,!1)}`)}),Ge.length>0?`${ae}(${Ge.join("//")})`:ae}{const ae=function Pe(_e,xe){let ae=[];return Oe(_e.children,(Ge,ht)=>{ht===G&&(ae=ae.concat(xe(Ge,ht)))}),Oe(_e.children,(Ge,ht)=>{ht!==G&&(ae=ae.concat(xe(Ge,ht)))}),ae}(_e,(Ge,ht)=>ht===G?[je(_e.children[G],!1)]:[`${ht}:${je(Ge,!1)}`]);return 1===Object.keys(_e.children).length&&null!=_e.children[G]?`${at(_e)}/${ae[0]}`:`${at(_e)}/(${ae.join("//")})`}}function Ht(_e){return encodeURIComponent(_e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(_e){return Ht(_e).replace(/%3B/gi,";")}function Bt(_e){return Ht(_e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ne(_e){return decodeURIComponent(_e)}function $(_e){return Ne(_e.replace(/\+/g,"%20"))}function ue(_e){return`${Bt(_e.path)}${function Ie(_e){return Object.keys(_e).map(xe=>`;${Bt(xe)}=${Bt(_e[xe])}`).join("")}(_e.parameters)}`}const ei=/^[^\/()?;=#]+/;function zt(_e){const xe=_e.match(ei);return xe?xe[0]:""}const ni=/^[^=?&#]+/,ot=/^[^&#]+/;class St{constructor(xe){this.url=xe,this.remaining=xe}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ze([],{}):new Ze([],this.parseChildren())}parseQueryParams(){const xe={};if(this.consumeOptional("?"))do{this.parseQueryParam(xe)}while(this.consumeOptional("&"));return xe}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const xe=[];for(this.peekStartsWith("(")||xe.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),xe.push(this.parseSegment());let ae={};this.peekStartsWith("/(")&&(this.capture("/"),ae=this.parseParens(!0));let Ge={};return this.peekStartsWith("(")&&(Ge=this.parseParens(!1)),(xe.length>0||Object.keys(ae).length>0)&&(Ge[G]=new Ze(xe,ae)),Ge}parseSegment(){const xe=zt(this.remaining);if(""===xe&&this.peekStartsWith(";"))throw new t.vHH(4009,Ae);return this.capture(xe),new xt(Ne(xe),this.parseMatrixParams())}parseMatrixParams(){const xe={};for(;this.consumeOptional(";");)this.parseParam(xe);return xe}parseParam(xe){const ae=zt(this.remaining);if(!ae)return;this.capture(ae);let Ge="";if(this.consumeOptional("=")){const ht=zt(this.remaining);ht&&(Ge=ht,this.capture(Ge))}xe[Ne(ae)]=Ne(Ge)}parseQueryParam(xe){const ae=function pt(_e){const xe=_e.match(ni);return xe?xe[0]:""}(this.remaining);if(!ae)return;this.capture(ae);let Ge="";if(this.consumeOptional("=")){const Vt=function ft(_e){const xe=_e.match(ot);return xe?xe[0]:""}(this.remaining);Vt&&(Ge=Vt,this.capture(Ge))}const ht=$(ae),At=$(Ge);if(xe.hasOwnProperty(ht)){let Vt=xe[ht];Array.isArray(Vt)||(Vt=[Vt],xe[ht]=Vt),Vt.push(At)}else xe[ht]=At}parseParens(xe){const ae={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ge=zt(this.remaining),ht=this.remaining[Ge.length];if("/"!==ht&&")"!==ht&&";"!==ht)throw new t.vHH(4010,Ae);let At;Ge.indexOf(":")>-1?(At=Ge.slice(0,Ge.indexOf(":")),this.capture(At),this.capture(":")):xe&&(At=G);const Vt=this.parseChildren();ae[At]=1===Object.keys(Vt).length?Vt[G]:new Ze([],Vt),this.consumeOptional("//")}return ae}peekStartsWith(xe){return this.remaining.startsWith(xe)}consumeOptional(xe){return!!this.peekStartsWith(xe)&&(this.remaining=this.remaining.substring(xe.length),!0)}capture(xe){if(!this.consumeOptional(xe))throw new t.vHH(4011,Ae)}}function gt(_e){return _e.segments.length>0?new Ze([],{[G]:_e}):_e}function tt(_e){const xe={};for(const Ge of Object.keys(_e.children)){const At=tt(_e.children[Ge]);(At.segments.length>0||At.hasChildren())&&(xe[Ge]=At)}return function _t(_e){if(1===_e.numberOfChildren&&_e.children[G]){const xe=_e.children[G];return new Ze(_e.segments.concat(xe.segments),xe.children)}return _e}(new Ze(_e.segments,xe))}function vt(_e){return _e instanceof ut}const Ve=!1;function Bi(_e,xe,ae,Ge,ht){if(0===ae.length)return Wi(xe.root,xe.root,xe.root,Ge,ht);const At=function Le(_e){if("string"==typeof _e[0]&&1===_e.length&&"/"===_e[0])return new It(!0,0,_e);let xe=0,ae=!1;const Ge=_e.reduce((ht,At,Vt)=>{if("object"==typeof At&&null!=At){if(At.outlets){const ui={};return Oe(At.outlets,(ki,on)=>{ui[on]="string"==typeof ki?ki.split("/"):ki}),[...ht,{outlets:ui}]}if(At.segmentPath)return[...ht,At.segmentPath]}return"string"!=typeof At?[...ht,At]:0===Vt?(At.split("/").forEach((ui,ki)=>{0==ki&&"."===ui||(0==ki&&""===ui?ae=!0:".."===ui?xe++:""!=ui&&ht.push(ui))}),ht):[...ht,At]},[]);return new It(ae,xe,Ge)}(ae);return At.toRoot()?Wi(xe.root,xe.root,new Ze([],{}),Ge,ht):function Vt(ki){const on=function si(_e,xe,ae,Ge){if(_e.isAbsolute)return new Mt(xe.root,!0,0);if(-1===Ge)return new Mt(ae,ae===xe.root,0);return function Ai(_e,xe,ae){let Ge=_e,ht=xe,At=ae;for(;At>ht;){if(At-=ht,Ge=Ge.parent,!Ge)throw new t.vHH(4005,Ve&&"Invalid number of '../'");ht=Ge.segments.length}return new Mt(Ge,!1,ht-At)}(ae,Ge+(Hi(_e.commands[0])?0:1),_e.numberOfDoubleDots)}(At,xe,_e.snapshot?._urlSegment,ki),rn=on.processChildren?nn(on.segmentGroup,on.index,At.commands):$i(on.segmentGroup,on.index,At.commands);return Wi(xe.root,on.segmentGroup,rn,Ge,ht)}(_e.snapshot?._lastPathIndex)}function Hi(_e){return"object"==typeof _e&&null!=_e&&!_e.outlets&&!_e.segmentPath}function Si(_e){return"object"==typeof _e&&null!=_e&&_e.outlets}function Wi(_e,xe,ae,Ge,ht){let Vt,At={};Ge&&Oe(Ge,(ki,on)=>{At[on]=Array.isArray(ki)?ki.map(rn=>`${rn}`):`${ki}`}),Vt=_e===xe?ae:et(_e,xe,ae);const ui=gt(tt(Vt));return new ut(ui,At,ht)}function et(_e,xe,ae){const Ge={};return Oe(_e.children,(ht,At)=>{Ge[At]=ht===xe?ae:et(ht,xe,ae)}),new Ze(_e.segments,Ge)}class It{constructor(xe,ae,Ge){if(this.isAbsolute=xe,this.numberOfDoubleDots=ae,this.commands=Ge,xe&&Ge.length>0&&Hi(Ge[0]))throw new t.vHH(4003,Ve&&"Root segment cannot have matrix parameters");const ht=Ge.find(Si);if(ht&&ht!==oe(Ge))throw new t.vHH(4004,Ve&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mt{constructor(xe,ae,Ge){this.segmentGroup=xe,this.processChildren=ae,this.index=Ge}}function $i(_e,xe,ae){if(_e||(_e=new Ze([],{})),0===_e.segments.length&&_e.hasChildren())return nn(_e,xe,ae);const Ge=function Qi(_e,xe,ae){let Ge=0,ht=xe;const At={match:!1,pathIndex:0,commandIndex:0};for(;ht<_e.segments.length;){if(Ge>=ae.length)return At;const Vt=_e.segments[ht],ui=ae[Ge];if(Si(ui))break;const ki=`${ui}`,on=Ge<ae.length-1?ae[Ge+1]:null;if(ht>0&&void 0===ki)break;if(ki&&on&&"object"==typeof on&&void 0===on.outlets){if(!dt(ki,on,Vt))return At;Ge+=2}else{if(!dt(ki,{},Vt))return At;Ge++}ht++}return{match:!0,pathIndex:ht,commandIndex:Ge}}(_e,xe,ae),ht=ae.slice(Ge.commandIndex);if(Ge.match&&Ge.pathIndex<_e.segments.length){const At=new Ze(_e.segments.slice(0,Ge.pathIndex),{});return At.children[G]=new Ze(_e.segments.slice(Ge.pathIndex),_e.children),nn(At,0,ht)}return Ge.match&&0===ht.length?new Ze(_e.segments,{}):Ge.match&&!_e.hasChildren()?Yt(_e,xe,ae):Ge.match?nn(_e,0,ht):Yt(_e,xe,ae)}function nn(_e,xe,ae){if(0===ae.length)return new Ze(_e.segments,{});{const Ge=function Ri(_e){return Si(_e[0])?_e[0].outlets:{[G]:_e}}(ae),ht={};if(!Ge[G]&&_e.children[G]&&1===_e.numberOfChildren&&0===_e.children[G].segments.length){const At=nn(_e.children[G],xe,ae);return new Ze(_e.segments,At.children)}return Oe(Ge,(At,Vt)=>{"string"==typeof At&&(At=[At]),null!==At&&(ht[Vt]=$i(_e.children[Vt],xe,At))}),Oe(_e.children,(At,Vt)=>{void 0===Ge[Vt]&&(ht[Vt]=At)}),new Ze(_e.segments,ht)}}function Yt(_e,xe,ae){const Ge=_e.segments.slice(0,xe);let ht=0;for(;ht<ae.length;){const At=ae[ht];if(Si(At)){const ki=Xt(At.outlets);return new Ze(Ge,ki)}if(0===ht&&Hi(ae[0])){Ge.push(new xt(_e.segments[xe].path,be(ae[0]))),ht++;continue}const Vt=Si(At)?At.outlets[G]:`${At}`,ui=ht<ae.length-1?ae[ht+1]:null;Vt&&ui&&Hi(ui)?(Ge.push(new xt(Vt,be(ui))),ht+=2):(Ge.push(new xt(Vt,{})),ht++)}return new Ze(Ge,{})}function Xt(_e){const xe={};return Oe(_e,(ae,Ge)=>{"string"==typeof ae&&(ae=[ae]),null!==ae&&(xe[Ge]=Yt(new Ze([],{}),0,ae))}),xe}function be(_e){const xe={};return Oe(_e,(ae,Ge)=>xe[Ge]=`${ae}`),xe}function dt(_e,xe,ae){return _e==ae.path&&Se(xe,ae.parameters)}const Dt="imperative";class Ut{constructor(xe,ae){this.id=xe,this.url=ae}}class Ot extends Ut{constructor(xe,ae,Ge="imperative",ht=null){super(xe,ae),this.type=0,this.navigationTrigger=Ge,this.restoredState=ht}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class bi extends Ut{constructor(xe,ae,Ge){super(xe,ae),this.urlAfterRedirects=Ge,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class li extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.reason=Ge,this.code=ht,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class pi extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.reason=Ge,this.code=ht,this.type=16}}class gi extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.error=Ge,this.target=ht,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Zi extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.urlAfterRedirects=Ge,this.state=ht,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wn extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.urlAfterRedirects=Ge,this.state=ht,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class An extends Ut{constructor(xe,ae,Ge,ht,At){super(xe,ae),this.urlAfterRedirects=Ge,this.state=ht,this.shouldActivate=At,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class oa extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.urlAfterRedirects=Ge,this.state=ht,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Aa extends Ut{constructor(xe,ae,Ge,ht){super(xe,ae),this.urlAfterRedirects=Ge,this.state=ht,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ta{constructor(xe){this.route=xe,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nr{constructor(xe){this.route=xe,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $t{constructor(xe){this.snapshot=xe,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mi{constructor(xe){this.snapshot=xe,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jt{constructor(xe){this.snapshot=xe,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oi{constructor(xe){this.snapshot=xe,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wi{constructor(xe,ae,Ge){this.routerEvent=xe,this.position=ae,this.anchor=Ge,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Yn=(()=>{class _e{createUrlTree(ae,Ge,ht,At,Vt,ui){return Bi(ae||Ge.root,ht,At,Vt,ui)}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),_a=(()=>{class _e{}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:function(xe){return Yn.\u0275fac(xe)},providedIn:"root"}),_e})();class Ln{constructor(xe){this._root=xe}get root(){return this._root.value}parent(xe){const ae=this.pathFromRoot(xe);return ae.length>1?ae[ae.length-2]:null}children(xe){const ae=Gn(xe,this._root);return ae?ae.children.map(Ge=>Ge.value):[]}firstChild(xe){const ae=Gn(xe,this._root);return ae&&ae.children.length>0?ae.children[0].value:null}siblings(xe){const ae=Co(xe,this._root);return ae.length<2?[]:ae[ae.length-2].children.map(ht=>ht.value).filter(ht=>ht!==xe)}pathFromRoot(xe){return Co(xe,this._root).map(ae=>ae.value)}}function Gn(_e,xe){if(_e===xe.value)return xe;for(const ae of xe.children){const Ge=Gn(_e,ae);if(Ge)return Ge}return null}function Co(_e,xe){if(_e===xe.value)return[xe];for(const ae of xe.children){const Ge=Co(_e,ae);if(Ge.length)return Ge.unshift(xe),Ge}return[]}class Un{constructor(xe,ae){this.value=xe,this.children=ae}toString(){return`TreeNode(${this.value})`}}function ia(_e){const xe={};return _e&&_e.children.forEach(ae=>xe[ae.value.outlet]=ae),xe}class wo extends Ln{constructor(xe,ae){super(xe),this.snapshot=ae,qr(this,xe)}toString(){return this.snapshot.toString()}}function Fr(_e,xe){const ae=function Tr(_e,xe){const Vt=new Hr([],{},{},"",{},G,xe,null,_e.root,-1,{});return new zr("",new Un(Vt,[]))}(_e,xe),Ge=new T.X([new xt("",{})]),ht=new T.X({}),At=new T.X({}),Vt=new T.X({}),ui=new T.X(""),ki=new jn(Ge,ht,Vt,ui,At,G,xe,ae.root);return ki.snapshot=ae.root,new wo(new Un(ki,[]),ae)}class jn{constructor(xe,ae,Ge,ht,At,Vt,ui,ki){this.url=xe,this.params=ae,this.queryParams=Ge,this.fragment=ht,this.data=At,this.outlet=Vt,this.component=ui,this.title=this.data?.pipe((0,W.U)(on=>on[ye]))??(0,g.of)(void 0),this._futureSnapshot=ki}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,W.U)(xe=>pe(xe)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,W.U)(xe=>pe(xe)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function La(_e,xe="emptyOnly"){const ae=_e.pathFromRoot;let Ge=0;if("always"!==xe)for(Ge=ae.length-1;Ge>=1;){const ht=ae[Ge],At=ae[Ge-1];if(ht.routeConfig&&""===ht.routeConfig.path)Ge--;else{if(At.component)break;Ge--}}return function Po(_e){return _e.reduce((xe,ae)=>({params:{...xe.params,...ae.params},data:{...xe.data,...ae.data},resolve:{...ae.data,...xe.resolve,...ae.routeConfig?.data,...ae._resolvedData}}),{params:{},data:{},resolve:{}})}(ae.slice(Ge))}class Hr{get title(){return this.data?.[ye]}constructor(xe,ae,Ge,ht,At,Vt,ui,ki,on,rn,fa){this.url=xe,this.params=ae,this.queryParams=Ge,this.fragment=ht,this.data=At,this.outlet=Vt,this.component=ui,this.routeConfig=ki,this._urlSegment=on,this._lastPathIndex=rn,this._resolve=fa}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=pe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=pe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ge=>Ge.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class zr extends Ln{constructor(xe,ae){super(ae),this.url=xe,qr(this,ae)}toString(){return Ra(this._root)}}function qr(_e,xe){xe.value._routerState=_e,xe.children.forEach(ae=>qr(_e,ae))}function Ra(_e){const xe=_e.children.length>0?` { ${_e.children.map(Ra).join(", ")} } `:"";return`${_e.value}${xe}`}function Ma(_e){if(_e.snapshot){const xe=_e.snapshot,ae=_e._futureSnapshot;_e.snapshot=ae,Se(xe.queryParams,ae.queryParams)||_e.queryParams.next(ae.queryParams),xe.fragment!==ae.fragment&&_e.fragment.next(ae.fragment),Se(xe.params,ae.params)||_e.params.next(ae.params),function Ce(_e,xe){if(_e.length!==xe.length)return!1;for(let ae=0;ae<_e.length;++ae)if(!Se(_e[ae],xe[ae]))return!1;return!0}(xe.url,ae.url)||_e.url.next(ae.url),Se(xe.data,ae.data)||_e.data.next(ae.data)}else _e.snapshot=_e._futureSnapshot,_e.data.next(_e._futureSnapshot.data)}function Ro(_e,xe){const ae=Se(_e.params,xe.params)&&function Me(_e,xe){return $e(_e,xe)&&_e.every((ae,Ge)=>Se(ae.parameters,xe[Ge].parameters))}(_e.url,xe.url);return ae&&!(!_e.parent!=!xe.parent)&&(!_e.parent||Ro(_e.parent,xe.parent))}function Jr(_e,xe,ae){if(ae&&_e.shouldReuseRoute(xe.value,ae.value.snapshot)){const Ge=ae.value;Ge._futureSnapshot=xe.value;const ht=function _r(_e,xe,ae){return xe.children.map(Ge=>{for(const ht of ae.children)if(_e.shouldReuseRoute(Ge.value,ht.value.snapshot))return Jr(_e,Ge,ht);return Jr(_e,Ge)})}(_e,xe,ae);return new Un(Ge,ht)}{if(_e.shouldAttach(xe.value)){const At=_e.retrieve(xe.value);if(null!==At){const Vt=At.route;return Vt.value._futureSnapshot=xe.value,Vt.children=xe.children.map(ui=>Jr(_e,ui)),Vt}}const Ge=function dr(_e){return new jn(new T.X(_e.url),new T.X(_e.params),new T.X(_e.queryParams),new T.X(_e.fragment),new T.X(_e.data),_e.outlet,_e.component,_e)}(xe.value),ht=xe.children.map(At=>Jr(_e,At));return new Un(Ge,ht)}}const ro="ngNavigationCancelingError";function oo(_e,xe){const{redirectTo:ae,navigationBehaviorOptions:Ge}=vt(xe)?{redirectTo:xe,navigationBehaviorOptions:void 0}:xe,ht=No(!1,0,xe);return ht.url=ae,ht.navigationBehaviorOptions=Ge,ht}function No(_e,xe,ae){const Ge=new Error("NavigationCancelingError: "+(_e||""));return Ge[ro]=!0,Ge.cancellationCode=xe,ae&&(Ge.url=ae),Ge}function Da(_e){return Xr(_e)&&vt(_e.url)}function Xr(_e){return _e&&_e[ro]}class Vr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Qa,this.attachRef=null}}let Qa=(()=>{class _e{constructor(){this.contexts=new Map}onChildOutletCreated(ae,Ge){const ht=this.getOrCreateContext(ae);ht.outlet=Ge,this.contexts.set(ae,ht)}onChildOutletDestroyed(ae){const Ge=this.getContext(ae);Ge&&(Ge.outlet=null,Ge.attachRef=null)}onOutletDeactivated(){const ae=this.contexts;return this.contexts=new Map,ae}onOutletReAttached(ae){this.contexts=ae}getOrCreateContext(ae){let Ge=this.getContext(ae);return Ge||(Ge=new Vr,this.contexts.set(ae,Ge)),Ge}getContext(ae){return this.contexts.get(ae)||null}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Br=!1;let sa=(()=>{class _e{constructor(){this.activated=null,this._activatedRoute=null,this.name=G,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Qa),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(ae){if(ae.name){const{firstChange:Ge,previousValue:ht}=ae.name;if(Ge)return;this.isTrackedInParentContexts(ht)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ht)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(ae){return this.parentContexts.getContext(ae)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const ae=this.parentContexts.getContext(this.name);ae?.route&&(ae.attachRef?this.attach(ae.attachRef,ae.route):this.activateWith(ae.route,ae.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,Br);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,Br);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,Br);this.location.detach();const ae=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ae.instance),ae}attach(ae,Ge){this.activated=ae,this._activatedRoute=Ge,this.location.insert(ae.hostView),this.attachEvents.emit(ae.instance)}deactivate(){if(this.activated){const ae=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ae)}}activateWith(ae,Ge){if(this.isActivated)throw new t.vHH(4013,Br);this._activatedRoute=ae;const ht=this.location,Vt=ae.snapshot.component,ui=this.parentContexts.getOrCreateContext(this.name).children,ki=new Wa(ae,ui,ht.injector);if(Ge&&function hr(_e){return!!_e.resolveComponentFactory}(Ge)){const on=Ge.resolveComponentFactory(Vt);this.activated=ht.createComponent(on,ht.length,ki)}else this.activated=ht.createComponent(Vt,{index:ht.length,injector:ki,environmentInjector:Ge??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275dir=t.lG2({type:_e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),_e})();class Wa{constructor(xe,ae,Ge){this.route=xe,this.childContexts=ae,this.parent=Ge}get(xe,ae){return xe===jn?this.route:xe===Qa?this.childContexts:this.parent.get(xe,ae)}}let vr=(()=>{class _e{}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(ae,Ge){1&ae&&t._UZ(0,"router-outlet")},dependencies:[sa],encapsulation:2}),_e})();function Er(_e,xe){return _e.providers&&!_e._injector&&(_e._injector=(0,t.MMx)(_e.providers,xe,`Route: ${_e.path}`)),_e._injector??xe}function Ar(_e){const xe=_e.children&&_e.children.map(Ar),ae=xe?{..._e,children:xe}:{..._e};return!ae.component&&!ae.loadComponent&&(xe||ae.loadChildren)&&ae.outlet&&ae.outlet!==G&&(ae.component=vr),ae}function qn(_e){return _e.outlet||G}function kn(_e,xe){const ae=_e.filter(Ge=>qn(Ge)===xe);return ae.push(..._e.filter(Ge=>qn(Ge)!==xe)),ae}function fr(_e){if(!_e)return null;if(_e.routeConfig?._injector)return _e.routeConfig._injector;for(let xe=_e.parent;xe;xe=xe.parent){const ae=xe.routeConfig;if(ae?._loadedInjector)return ae._loadedInjector;if(ae?._injector)return ae._injector}return null}class Ca{constructor(xe,ae,Ge,ht){this.routeReuseStrategy=xe,this.futureState=ae,this.currState=Ge,this.forwardEvent=ht}activate(xe){const ae=this.futureState._root,Ge=this.currState?this.currState._root:null;this.deactivateChildRoutes(ae,Ge,xe),Ma(this.futureState.root),this.activateChildRoutes(ae,Ge,xe)}deactivateChildRoutes(xe,ae,Ge){const ht=ia(ae);xe.children.forEach(At=>{const Vt=At.value.outlet;this.deactivateRoutes(At,ht[Vt],Ge),delete ht[Vt]}),Oe(ht,(At,Vt)=>{this.deactivateRouteAndItsChildren(At,Ge)})}deactivateRoutes(xe,ae,Ge){const ht=xe.value,At=ae?ae.value:null;if(ht===At)if(ht.component){const Vt=Ge.getContext(ht.outlet);Vt&&this.deactivateChildRoutes(xe,ae,Vt.children)}else this.deactivateChildRoutes(xe,ae,Ge);else At&&this.deactivateRouteAndItsChildren(ae,Ge)}deactivateRouteAndItsChildren(xe,ae){xe.value.component&&this.routeReuseStrategy.shouldDetach(xe.value.snapshot)?this.detachAndStoreRouteSubtree(xe,ae):this.deactivateRouteAndOutlet(xe,ae)}detachAndStoreRouteSubtree(xe,ae){const Ge=ae.getContext(xe.value.outlet),ht=Ge&&xe.value.component?Ge.children:ae,At=ia(xe);for(const Vt of Object.keys(At))this.deactivateRouteAndItsChildren(At[Vt],ht);if(Ge&&Ge.outlet){const Vt=Ge.outlet.detach(),ui=Ge.children.onOutletDeactivated();this.routeReuseStrategy.store(xe.value.snapshot,{componentRef:Vt,route:xe,contexts:ui})}}deactivateRouteAndOutlet(xe,ae){const Ge=ae.getContext(xe.value.outlet),ht=Ge&&xe.value.component?Ge.children:ae,At=ia(xe);for(const Vt of Object.keys(At))this.deactivateRouteAndItsChildren(At[Vt],ht);Ge&&(Ge.outlet&&(Ge.outlet.deactivate(),Ge.children.onOutletDeactivated()),Ge.attachRef=null,Ge.resolver=null,Ge.route=null)}activateChildRoutes(xe,ae,Ge){const ht=ia(ae);xe.children.forEach(At=>{this.activateRoutes(At,ht[At.value.outlet],Ge),this.forwardEvent(new oi(At.value.snapshot))}),xe.children.length&&this.forwardEvent(new mi(xe.value.snapshot))}activateRoutes(xe,ae,Ge){const ht=xe.value,At=ae?ae.value:null;if(Ma(ht),ht===At)if(ht.component){const Vt=Ge.getOrCreateContext(ht.outlet);this.activateChildRoutes(xe,ae,Vt.children)}else this.activateChildRoutes(xe,ae,Ge);else if(ht.component){const Vt=Ge.getOrCreateContext(ht.outlet);if(this.routeReuseStrategy.shouldAttach(ht.snapshot)){const ui=this.routeReuseStrategy.retrieve(ht.snapshot);this.routeReuseStrategy.store(ht.snapshot,null),Vt.children.onOutletReAttached(ui.contexts),Vt.attachRef=ui.componentRef,Vt.route=ui.route.value,Vt.outlet&&Vt.outlet.attach(ui.componentRef,ui.route.value),Ma(ui.route.value),this.activateChildRoutes(xe,null,Vt.children)}else{const ui=fr(ht.snapshot),ki=ui?.get(t._Vd)??null;Vt.attachRef=null,Vt.route=ht,Vt.resolver=ki,Vt.injector=ui,Vt.outlet&&Vt.outlet.activateWith(ht,Vt.injector),this.activateChildRoutes(xe,null,Vt.children)}}else this.activateChildRoutes(xe,null,Ge)}}class zo{constructor(xe){this.path=xe,this.route=this.path[this.path.length-1]}}class Ft{constructor(xe,ae){this.component=xe,this.route=ae}}function hi(_e,xe,ae){const Ge=_e._root;return Pi(Ge,xe?xe._root:null,ae,[Ge.value])}function ai(_e,xe){const ae=Symbol(),Ge=xe.get(_e,ae);return Ge===ae?"function"!=typeof _e||(0,t.Z0I)(_e)?xe.get(_e):_e:Ge}function Pi(_e,xe,ae,Ge,ht={canDeactivateChecks:[],canActivateChecks:[]}){const At=ia(xe);return _e.children.forEach(Vt=>{(function an(_e,xe,ae,Ge,ht={canDeactivateChecks:[],canActivateChecks:[]}){const At=_e.value,Vt=xe?xe.value:null,ui=ae?ae.getContext(_e.value.outlet):null;if(Vt&&At.routeConfig===Vt.routeConfig){const ki=function aa(_e,xe,ae){if("function"==typeof ae)return ae(_e,xe);switch(ae){case"pathParamsChange":return!$e(_e.url,xe.url);case"pathParamsOrQueryParamsChange":return!$e(_e.url,xe.url)||!Se(_e.queryParams,xe.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ro(_e,xe)||!Se(_e.queryParams,xe.queryParams);default:return!Ro(_e,xe)}}(Vt,At,At.routeConfig.runGuardsAndResolvers);ki?ht.canActivateChecks.push(new zo(Ge)):(At.data=Vt.data,At._resolvedData=Vt._resolvedData),Pi(_e,xe,At.component?ui?ui.children:null:ae,Ge,ht),ki&&ui&&ui.outlet&&ui.outlet.isActivated&&ht.canDeactivateChecks.push(new Ft(ui.outlet.component,Vt))}else Vt&&ca(xe,ui,ht),ht.canActivateChecks.push(new zo(Ge)),Pi(_e,null,At.component?ui?ui.children:null:ae,Ge,ht)})(Vt,At[Vt.value.outlet],ae,Ge.concat([Vt.value]),ht),delete At[Vt.value.outlet]}),Oe(At,(Vt,ui)=>ca(Vt,ae.getContext(ui),ht)),ht}function ca(_e,xe,ae){const Ge=ia(_e),ht=_e.value;Oe(Ge,(At,Vt)=>{ca(At,ht.component?xe?xe.children.getContext(Vt):null:xe,ae)}),ae.canDeactivateChecks.push(new Ft(ht.component&&xe&&xe.outlet&&xe.outlet.isActivated?xe.outlet.component:null,ht))}function Fi(_e){return"function"==typeof _e}function va(_e){return _e instanceof s.K||"EmptyError"===_e?.name}const Ti=Symbol("INITIAL_VALUE");function Dn(){return(0,Y.w)(_e=>(0,x.a)(_e.map(xe=>xe.pipe((0,Q.q)(1),(0,X.O)(Ti)))).pipe((0,W.U)(xe=>{for(const ae of xe)if(!0!==ae){if(ae===Ti)return Ti;if(!1===ae||ae instanceof ut)return ae}return!0}),(0,ee.h)(xe=>xe!==Ti),(0,Q.q)(1)))}function js(_e){return(0,d.z)((0,se.b)(xe=>{if(vt(xe))throw oo(0,xe)}),(0,W.U)(xe=>!0===xe))}const Jn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Di(_e,xe,ae,Ge,ht){const At=Na(_e,xe,ae);return At.matched?function $o(_e,xe,ae,Ge){const ht=xe.canMatch;if(!ht||0===ht.length)return(0,g.of)(!0);const At=ht.map(Vt=>{const ui=ai(Vt,_e);return he(function kt(_e){return _e&&Fi(_e.canMatch)}(ui)?ui.canMatch(xe,ae):_e.runInContext(()=>ui(xe,ae)))});return(0,g.of)(At).pipe(Dn(),js())}(Ge=Er(xe,Ge),xe,ae).pipe((0,W.U)(Vt=>!0===Vt?At:{...Jn})):(0,g.of)(At)}function Na(_e,xe,ae){if(""===xe.path)return"full"===xe.pathMatch&&(_e.hasChildren()||ae.length>0)?{...Jn}:{matched:!0,consumedSegments:[],remainingSegments:ae,parameters:{},positionalParamSegments:{}};const ht=(xe.matcher||qe)(ae,_e,xe);if(!ht)return{...Jn};const At={};Oe(ht.posParams,(ui,ki)=>{At[ki]=ui.path});const Vt=ht.consumed.length>0?{...At,...ht.consumed[ht.consumed.length-1].parameters}:At;return{matched:!0,consumedSegments:ht.consumed,remainingSegments:ae.slice(ht.consumed.length),parameters:Vt,positionalParamSegments:ht.posParams??{}}}function lo(_e,xe,ae,Ge){if(ae.length>0&&function So(_e,xe,ae){return ae.some(Ge=>Ir(_e,xe,Ge)&&qn(Ge)!==G)}(_e,ae,Ge)){const At=new Ze(xe,function Vo(_e,xe,ae,Ge){const ht={};ht[G]=Ge,Ge._sourceSegment=_e,Ge._segmentIndexShift=xe.length;for(const At of ae)if(""===At.path&&qn(At)!==G){const Vt=new Ze([],{});Vt._sourceSegment=_e,Vt._segmentIndexShift=xe.length,ht[qn(At)]=Vt}return ht}(_e,xe,Ge,new Ze(ae,_e.children)));return At._sourceSegment=_e,At._segmentIndexShift=xe.length,{segmentGroup:At,slicedSegments:[]}}if(0===ae.length&&function mc(_e,xe,ae){return ae.some(Ge=>Ir(_e,xe,Ge))}(_e,ae,Ge)){const At=new Ze(_e.segments,function Ii(_e,xe,ae,Ge,ht){const At={};for(const Vt of Ge)if(Ir(_e,ae,Vt)&&!ht[qn(Vt)]){const ui=new Ze([],{});ui._sourceSegment=_e,ui._segmentIndexShift=xe.length,At[qn(Vt)]=ui}return{...ht,...At}}(_e,xe,ae,Ge,_e.children));return At._sourceSegment=_e,At._segmentIndexShift=xe.length,{segmentGroup:At,slicedSegments:ae}}const ht=new Ze(_e.segments,_e.children);return ht._sourceSegment=_e,ht._segmentIndexShift=xe.length,{segmentGroup:ht,slicedSegments:ae}}function Ir(_e,xe,ae){return(!(_e.hasChildren()||xe.length>0)||"full"!==ae.pathMatch)&&""===ae.path}function mr(_e,xe,ae,Ge){return!!(qn(_e)===Ge||Ge!==G&&Ir(xe,ae,_e))&&("**"===_e.path||Na(xe,_e,ae).matched)}function Yo(_e,xe,ae){return 0===xe.length&&!_e.children[ae]}const ho=!1;class hs{constructor(xe){this.segmentGroup=xe||null}}class Qs{constructor(xe){this.urlTree=xe}}function Bo(_e){return(0,M._)(new hs(_e))}function Is(_e){return(0,M._)(new Qs(_e))}class Ia{constructor(xe,ae,Ge,ht,At){this.injector=xe,this.configLoader=ae,this.urlSerializer=Ge,this.urlTree=ht,this.config=At,this.allowRedirects=!0}apply(){const xe=lo(this.urlTree.root,[],[],this.config).segmentGroup,ae=new Ze(xe.segments,xe.children);return this.expandSegmentGroup(this.injector,this.config,ae,G).pipe((0,W.U)(At=>this.createUrlTree(tt(At),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ce.K)(At=>{if(At instanceof Qs)return this.allowRedirects=!1,this.match(At.urlTree);throw At instanceof hs?this.noMatchError(At):At}))}match(xe){return this.expandSegmentGroup(this.injector,this.config,xe.root,G).pipe((0,W.U)(ht=>this.createUrlTree(tt(ht),xe.queryParams,xe.fragment))).pipe((0,ce.K)(ht=>{throw ht instanceof hs?this.noMatchError(ht):ht}))}noMatchError(xe){return new t.vHH(4002,ho)}createUrlTree(xe,ae,Ge){const ht=gt(xe);return new ut(ht,ae,Ge)}expandSegmentGroup(xe,ae,Ge,ht){return 0===Ge.segments.length&&Ge.hasChildren()?this.expandChildren(xe,ae,Ge).pipe((0,W.U)(At=>new Ze([],At))):this.expandSegment(xe,Ge,ae,Ge.segments,ht,!0)}expandChildren(xe,ae,Ge){const ht=[];for(const At of Object.keys(Ge.children))"primary"===At?ht.unshift(At):ht.push(At);return(0,e.D)(ht).pipe((0,ie.b)(At=>{const Vt=Ge.children[At],ui=kn(ae,At);return this.expandSegmentGroup(xe,ui,Vt,At).pipe((0,W.U)(ki=>({segment:ki,outlet:At})))}),(0,Te.R)((At,Vt)=>(At[Vt.outlet]=Vt.segment,At),{}),O())}expandSegment(xe,ae,Ge,ht,At,Vt){return(0,e.D)(Ge).pipe((0,ie.b)(ui=>this.expandSegmentAgainstRoute(xe,ae,Ge,ui,ht,At,Vt).pipe((0,ce.K)(on=>{if(on instanceof hs)return(0,g.of)(null);throw on}))),(0,re.P)(ui=>!!ui),(0,ce.K)((ui,ki)=>{if(va(ui))return Yo(ae,ht,At)?(0,g.of)(new Ze([],{})):Bo(ae);throw ui}))}expandSegmentAgainstRoute(xe,ae,Ge,ht,At,Vt,ui){return mr(ht,ae,At,Vt)?void 0===ht.redirectTo?this.matchSegmentAgainstRoute(xe,ae,ht,At,Vt):ui&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(xe,ae,Ge,ht,At,Vt):Bo(ae):Bo(ae)}expandSegmentAgainstRouteUsingRedirect(xe,ae,Ge,ht,At,Vt){return"**"===ht.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(xe,Ge,ht,Vt):this.expandRegularSegmentAgainstRouteUsingRedirect(xe,ae,Ge,ht,At,Vt)}expandWildCardWithParamsAgainstRouteUsingRedirect(xe,ae,Ge,ht){const At=this.applyRedirectCommands([],Ge.redirectTo,{});return Ge.redirectTo.startsWith("/")?Is(At):this.lineralizeSegments(Ge,At).pipe((0,me.z)(Vt=>{const ui=new Ze(Vt,{});return this.expandSegment(xe,ui,ae,Vt,ht,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(xe,ae,Ge,ht,At,Vt){const{matched:ui,consumedSegments:ki,remainingSegments:on,positionalParamSegments:rn}=Na(ae,ht,At);if(!ui)return Bo(ae);const fa=this.applyRedirectCommands(ki,ht.redirectTo,rn);return ht.redirectTo.startsWith("/")?Is(fa):this.lineralizeSegments(ht,fa).pipe((0,me.z)(sr=>this.expandSegment(xe,ae,Ge,sr.concat(on),Vt,!1)))}matchSegmentAgainstRoute(xe,ae,Ge,ht,At){return"**"===Ge.path?(xe=Er(Ge,xe),Ge.loadChildren?(Ge._loadedRoutes?(0,g.of)({routes:Ge._loadedRoutes,injector:Ge._loadedInjector}):this.configLoader.loadChildren(xe,Ge)).pipe((0,W.U)(ui=>(Ge._loadedRoutes=ui.routes,Ge._loadedInjector=ui.injector,new Ze(ht,{})))):(0,g.of)(new Ze(ht,{}))):Di(ae,Ge,ht,xe).pipe((0,Y.w)(({matched:Vt,consumedSegments:ui,remainingSegments:ki})=>Vt?this.getChildConfig(xe=Ge._injector??xe,Ge,ht).pipe((0,me.z)(rn=>{const fa=rn.injector??xe,sr=rn.routes,{segmentGroup:ps,slicedSegments:is}=lo(ae,ui,ki,sr),Eo=new Ze(ps.segments,ps.children);if(0===is.length&&Eo.hasChildren())return this.expandChildren(fa,sr,Eo).pipe((0,W.U)(br=>new Ze(ui,br)));if(0===sr.length&&0===is.length)return(0,g.of)(new Ze(ui,{}));const za=qn(Ge)===At;return this.expandSegment(fa,Eo,sr,is,za?G:At,!0).pipe((0,W.U)(Xs=>new Ze(ui.concat(Xs.segments),Xs.children)))})):Bo(ae)))}getChildConfig(xe,ae,Ge){return ae.children?(0,g.of)({routes:ae.children,injector:xe}):ae.loadChildren?void 0!==ae._loadedRoutes?(0,g.of)({routes:ae._loadedRoutes,injector:ae._loadedInjector}):function Bc(_e,xe,ae,Ge){const ht=xe.canLoad;if(void 0===ht||0===ht.length)return(0,g.of)(!0);const At=ht.map(Vt=>{const ui=ai(Vt,_e);return he(function qa(_e){return _e&&Fi(_e.canLoad)}(ui)?ui.canLoad(xe,ae):_e.runInContext(()=>ui(xe,ae)))});return(0,g.of)(At).pipe(Dn(),js())}(xe,ae,Ge).pipe((0,me.z)(ht=>ht?this.configLoader.loadChildren(xe,ae).pipe((0,se.b)(At=>{ae._loadedRoutes=At.routes,ae._loadedInjector=At.injector})):function pc(_e){return(0,M._)(No(ho,3))}())):(0,g.of)({routes:[],injector:xe})}lineralizeSegments(xe,ae){let Ge=[],ht=ae.root;for(;;){if(Ge=Ge.concat(ht.segments),0===ht.numberOfChildren)return(0,g.of)(Ge);if(ht.numberOfChildren>1||!ht.children[G])return xe.redirectTo,(0,M._)(new t.vHH(4e3,ho));ht=ht.children[G]}}applyRedirectCommands(xe,ae,Ge){return this.applyRedirectCreateUrlTree(ae,this.urlSerializer.parse(ae),xe,Ge)}applyRedirectCreateUrlTree(xe,ae,Ge,ht){const At=this.createSegmentGroup(xe,ae.root,Ge,ht);return new ut(At,this.createQueryParams(ae.queryParams,this.urlTree.queryParams),ae.fragment)}createQueryParams(xe,ae){const Ge={};return Oe(xe,(ht,At)=>{if("string"==typeof ht&&ht.startsWith(":")){const ui=ht.substring(1);Ge[At]=ae[ui]}else Ge[At]=ht}),Ge}createSegmentGroup(xe,ae,Ge,ht){const At=this.createSegments(xe,ae.segments,Ge,ht);let Vt={};return Oe(ae.children,(ui,ki)=>{Vt[ki]=this.createSegmentGroup(xe,ui,Ge,ht)}),new Ze(At,Vt)}createSegments(xe,ae,Ge,ht){return ae.map(At=>At.path.startsWith(":")?this.findPosParam(xe,At,ht):this.findOrReturn(At,Ge))}findPosParam(xe,ae,Ge){const ht=Ge[ae.path.substring(1)];if(!ht)throw new t.vHH(4001,ho);return ht}findOrReturn(xe,ae){let Ge=0;for(const ht of ae){if(ht.path===xe.path)return ae.splice(Ge),ht;Ge++}return xe}}class Ki{}class la{constructor(xe,ae,Ge,ht,At,Vt,ui){this.injector=xe,this.rootComponentType=ae,this.config=Ge,this.urlTree=ht,this.url=At,this.paramsInheritanceStrategy=Vt,this.urlSerializer=ui}recognize(){const xe=lo(this.urlTree.root,[],[],this.config.filter(ae=>void 0===ae.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,xe,G).pipe((0,W.U)(ae=>{if(null===ae)return null;const Ge=new Hr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},G,this.rootComponentType,null,this.urlTree.root,-1,{}),ht=new Un(Ge,ae),At=new zr(this.url,ht);return this.inheritParamsAndData(At._root),At}))}inheritParamsAndData(xe){const ae=xe.value,Ge=La(ae,this.paramsInheritanceStrategy);ae.params=Object.freeze(Ge.params),ae.data=Object.freeze(Ge.data),xe.children.forEach(ht=>this.inheritParamsAndData(ht))}processSegmentGroup(xe,ae,Ge,ht){return 0===Ge.segments.length&&Ge.hasChildren()?this.processChildren(xe,ae,Ge):this.processSegment(xe,ae,Ge,Ge.segments,ht)}processChildren(xe,ae,Ge){return(0,e.D)(Object.keys(Ge.children)).pipe((0,ie.b)(ht=>{const At=Ge.children[ht],Vt=kn(ae,ht);return this.processSegmentGroup(xe,Vt,At,ht)}),(0,Te.R)((ht,At)=>ht&&At?(ht.push(...At),ht):null),(0,R.o)(ht=>null!==ht),(0,l.d)(null),O(),(0,W.U)(ht=>{if(null===ht)return null;const At=On(ht);return function fs(_e){_e.sort((xe,ae)=>xe.value.outlet===G?-1:ae.value.outlet===G?1:xe.value.outlet.localeCompare(ae.value.outlet))}(At),At}))}processSegment(xe,ae,Ge,ht,At){return(0,e.D)(ae).pipe((0,ie.b)(Vt=>this.processSegmentAgainstRoute(Vt._injector??xe,Vt,Ge,ht,At)),(0,re.P)(Vt=>!!Vt),(0,ce.K)(Vt=>{if(va(Vt))return Yo(Ge,ht,At)?(0,g.of)([]):(0,g.of)(null);throw Vt}))}processSegmentAgainstRoute(xe,ae,Ge,ht,At){if(ae.redirectTo||!mr(ae,Ge,ht,At))return(0,g.of)(null);let Vt;if("**"===ae.path){const ui=ht.length>0?oe(ht).parameters:{},ki=ma(Ge)+ht.length,on=new Hr(ht,ui,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Rn(ae),qn(ae),ae.component??ae._loadedComponent??null,ae,ba(Ge),ki,Be(ae));Vt=(0,g.of)({snapshot:on,consumedSegments:[],remainingSegments:[]})}else Vt=Di(Ge,ae,ht,xe).pipe((0,W.U)(({matched:ui,consumedSegments:ki,remainingSegments:on,parameters:rn})=>{if(!ui)return null;const fa=ma(Ge)+ki.length;return{snapshot:new Hr(ki,rn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Rn(ae),qn(ae),ae.component??ae._loadedComponent??null,ae,ba(Ge),fa,Be(ae)),consumedSegments:ki,remainingSegments:on}}));return Vt.pipe((0,Y.w)(ui=>{if(null===ui)return(0,g.of)(null);const{snapshot:ki,consumedSegments:on,remainingSegments:rn}=ui;xe=ae._injector??xe;const fa=ae._loadedInjector??xe,sr=function Uc(_e){return _e.children?_e.children:_e.loadChildren?_e._loadedRoutes:[]}(ae),{segmentGroup:ps,slicedSegments:is}=lo(Ge,on,rn,sr.filter(za=>void 0===za.redirectTo));if(0===is.length&&ps.hasChildren())return this.processChildren(fa,sr,ps).pipe((0,W.U)(za=>null===za?null:[new Un(ki,za)]));if(0===sr.length&&0===is.length)return(0,g.of)([new Un(ki,[])]);const Eo=qn(ae)===At;return this.processSegment(fa,sr,ps,is,Eo?G:At).pipe((0,W.U)(za=>null===za?null:[new Un(ki,za)]))}))}}function gc(_e){const xe=_e.value.routeConfig;return xe&&""===xe.path&&void 0===xe.redirectTo}function On(_e){const xe=[],ae=new Set;for(const Ge of _e){if(!gc(Ge)){xe.push(Ge);continue}const ht=xe.find(At=>Ge.value.routeConfig===At.value.routeConfig);void 0!==ht?(ht.children.push(...Ge.children),ae.add(ht)):xe.push(Ge)}for(const Ge of ae){const ht=On(Ge.children);xe.push(new Un(Ge.value,ht))}return xe.filter(Ge=>!ae.has(Ge))}function ba(_e){let xe=_e;for(;xe._sourceSegment;)xe=xe._sourceSegment;return xe}function ma(_e){let xe=_e,ae=xe._segmentIndexShift??0;for(;xe._sourceSegment;)xe=xe._sourceSegment,ae+=xe._segmentIndexShift??0;return ae-1}function Rn(_e){return _e.data||{}}function Be(_e){return _e.resolve||{}}function ii(_e){return"string"==typeof _e.title||null===_e.title}function qt(_e){return(0,Y.w)(xe=>{const ae=_e(xe);return ae?(0,e.D)(ae).pipe((0,W.U)(()=>xe)):(0,g.of)(xe)})}const yi=new t.OlP("ROUTES");let Oi=(()=>{class _e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(ae){if(this.componentLoaders.get(ae))return this.componentLoaders.get(ae);if(ae._loadedComponent)return(0,g.of)(ae._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ae);const Ge=he(ae.loadComponent()).pipe((0,W.U)(tn),(0,se.b)(At=>{this.onLoadEndListener&&this.onLoadEndListener(ae),ae._loadedComponent=At}),(0,n.x)(()=>{this.componentLoaders.delete(ae)})),ht=new k.c(Ge,()=>new V.x).pipe((0,v.x)());return this.componentLoaders.set(ae,ht),ht}loadChildren(ae,Ge){if(this.childrenLoaders.get(Ge))return this.childrenLoaders.get(Ge);if(Ge._loadedRoutes)return(0,g.of)({routes:Ge._loadedRoutes,injector:Ge._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ge);const At=this.loadModuleFactoryOrRoutes(Ge.loadChildren).pipe((0,W.U)(ui=>{this.onLoadEndListener&&this.onLoadEndListener(Ge);let ki,on,rn=!1;Array.isArray(ui)?on=ui:(ki=ui.create(ae).injector,on=Fe(ki.get(yi,[],t.XFs.Self|t.XFs.Optional)));return{routes:on.map(Ar),injector:ki}}),(0,n.x)(()=>{this.childrenLoaders.delete(Ge)})),Vt=new k.c(At,()=>new V.x).pipe((0,v.x)());return this.childrenLoaders.set(Ge,Vt),Vt}loadModuleFactoryOrRoutes(ae){return he(ae()).pipe((0,W.U)(tn),(0,me.z)(Ge=>Ge instanceof t.YKP||Array.isArray(Ge)?(0,g.of)(Ge):(0,e.D)(this.compiler.compileModuleAsync(Ge))))}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();function tn(_e){return function qi(_e){return _e&&"object"==typeof _e&&"default"in _e}(_e)?_e.default:_e}let da=(()=>{class _e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new V.x,this.configLoader=(0,t.f3M)(Oi),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(J),this.rootContexts=(0,t.f3M)(Qa),this.navigationId=0,this.afterPreactivation=()=>(0,g.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ht=>this.events.next(new nr(ht)),this.configLoader.onLoadStartListener=ht=>this.events.next(new ta(ht))}complete(){this.transitions?.complete()}handleNavigationRequest(ae){const Ge=++this.navigationId;this.transitions?.next({...this.transitions.value,...ae,id:Ge})}setupNavigations(ae){return this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:ae.currentUrlTree,currentRawUrl:ae.currentUrlTree,extractedUrl:ae.urlHandlingStrategy.extract(ae.currentUrlTree),urlAfterRedirects:ae.urlHandlingStrategy.extract(ae.currentUrlTree),rawUrl:ae.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Dt,restoredState:null,currentSnapshot:ae.routerState.snapshot,targetSnapshot:null,currentRouterState:ae.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ee.h)(Ge=>0!==Ge.id),(0,W.U)(Ge=>({...Ge,extractedUrl:ae.urlHandlingStrategy.extract(Ge.rawUrl)})),(0,Y.w)(Ge=>{let ht=!1,At=!1;return(0,g.of)(Ge).pipe((0,se.b)(Vt=>{this.currentNavigation={id:Vt.id,initialUrl:Vt.rawUrl,extractedUrl:Vt.extractedUrl,trigger:Vt.source,extras:Vt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Y.w)(Vt=>{const ui=ae.browserUrlTree.toString(),ki=!ae.navigated||Vt.extractedUrl.toString()!==ui||ui!==ae.currentUrlTree.toString();if(!ki&&"reload"!==(Vt.extras.onSameUrlNavigation??ae.onSameUrlNavigation)){const rn="";return this.events.next(new pi(Vt.id,ae.serializeUrl(Ge.rawUrl),rn,0)),ae.rawUrlTree=Vt.rawUrl,Vt.resolve(null),L.E}if(ae.urlHandlingStrategy.shouldProcessUrl(Vt.rawUrl))return pa(Vt.source)&&(ae.browserUrlTree=Vt.extractedUrl),(0,g.of)(Vt).pipe((0,Y.w)(rn=>{const fa=this.transitions?.getValue();return this.events.next(new Ot(rn.id,this.urlSerializer.serialize(rn.extractedUrl),rn.source,rn.restoredState)),fa!==this.transitions?.getValue()?L.E:Promise.resolve(rn)}),function es(_e,xe,ae,Ge){return(0,Y.w)(ht=>function qs(_e,xe,ae,Ge,ht){return new Ia(_e,xe,ae,Ge,ht).apply()}(_e,xe,ae,ht.extractedUrl,Ge).pipe((0,W.U)(At=>({...ht,urlAfterRedirects:At}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,ae.config),(0,se.b)(rn=>{this.currentNavigation={...this.currentNavigation,finalUrl:rn.urlAfterRedirects},Ge.urlAfterRedirects=rn.urlAfterRedirects}),function ne(_e,xe,ae,Ge,ht){return(0,me.z)(At=>function Uo(_e,xe,ae,Ge,ht,At,Vt="emptyOnly"){return new la(_e,xe,ae,Ge,ht,Vt,At).recognize().pipe((0,Y.w)(ui=>null===ui?function Ja(_e){return new w.y(xe=>xe.error(_e))}(new Ki):(0,g.of)(ui)))}(_e,xe,ae,At.urlAfterRedirects,Ge.serialize(At.urlAfterRedirects),Ge,ht).pipe((0,W.U)(Vt=>({...At,targetSnapshot:Vt}))))}(this.environmentInjector,this.rootComponentType,ae.config,this.urlSerializer,ae.paramsInheritanceStrategy),(0,se.b)(rn=>{if(Ge.targetSnapshot=rn.targetSnapshot,"eager"===ae.urlUpdateStrategy){if(!rn.extras.skipLocationChange){const sr=ae.urlHandlingStrategy.merge(rn.urlAfterRedirects,rn.rawUrl);ae.setBrowserUrl(sr,rn)}ae.browserUrlTree=rn.urlAfterRedirects}const fa=new Zi(rn.id,this.urlSerializer.serialize(rn.extractedUrl),this.urlSerializer.serialize(rn.urlAfterRedirects),rn.targetSnapshot);this.events.next(fa)}));if(ki&&ae.urlHandlingStrategy.shouldProcessUrl(ae.rawUrlTree)){const{id:rn,extractedUrl:fa,source:sr,restoredState:ps,extras:is}=Vt,Eo=new Ot(rn,this.urlSerializer.serialize(fa),sr,ps);this.events.next(Eo);const za=Fr(fa,this.rootComponentType).snapshot;return Ge={...Vt,targetSnapshot:za,urlAfterRedirects:fa,extras:{...is,skipLocationChange:!1,replaceUrl:!1}},(0,g.of)(Ge)}{const rn="";return this.events.next(new pi(Vt.id,ae.serializeUrl(Ge.extractedUrl),rn,1)),ae.rawUrlTree=Vt.rawUrl,Vt.resolve(null),L.E}}),(0,se.b)(Vt=>{const ui=new Wn(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects),Vt.targetSnapshot);this.events.next(ui)}),(0,W.U)(Vt=>Ge={...Vt,guards:hi(Vt.targetSnapshot,Vt.currentSnapshot,this.rootContexts)}),function co(_e,xe){return(0,me.z)(ae=>{const{targetSnapshot:Ge,currentSnapshot:ht,guards:{canActivateChecks:At,canDeactivateChecks:Vt}}=ae;return 0===Vt.length&&0===At.length?(0,g.of)({...ae,guardsResult:!0}):function Ks(_e,xe,ae,Ge){return(0,e.D)(_e).pipe((0,me.z)(ht=>function Ds(_e,xe,ae,Ge,ht){const At=xe&&xe.routeConfig?xe.routeConfig.canDeactivate:null;if(!At||0===At.length)return(0,g.of)(!0);const Vt=At.map(ui=>{const ki=fr(xe)??ht,on=ai(ui,ki);return he(function Ye(_e){return _e&&Fi(_e.canDeactivate)}(on)?on.canDeactivate(_e,xe,ae,Ge):ki.runInContext(()=>on(_e,xe,ae,Ge))).pipe((0,re.P)())});return(0,g.of)(Vt).pipe(Dn())}(ht.component,ht.route,ae,xe,Ge)),(0,re.P)(ht=>!0!==ht,!0))}(Vt,Ge,ht,_e).pipe((0,me.z)(ui=>ui&&function gn(_e){return"boolean"==typeof _e}(ui)?function Ka(_e,xe,ae,Ge){return(0,e.D)(xe).pipe((0,ie.b)(ht=>(0,h.z)(function Zo(_e,xe){return null!==_e&&xe&&xe(new $t(_e)),(0,g.of)(!0)}(ht.route.parent,Ge),function ds(_e,xe){return null!==_e&&xe&&xe(new jt(_e)),(0,g.of)(!0)}(ht.route,Ge),function Wo(_e,xe,ae){const Ge=xe[xe.length-1],At=xe.slice(0,xe.length-1).reverse().map(Vt=>function wt(_e){const xe=_e.routeConfig?_e.routeConfig.canActivateChild:null;return xe&&0!==xe.length?{node:_e,guards:xe}:null}(Vt)).filter(Vt=>null!==Vt).map(Vt=>(0,N.P)(()=>{const ui=Vt.guards.map(ki=>{const on=fr(Vt.node)??ae,rn=ai(ki,on);return he(function it(_e){return _e&&Fi(_e.canActivateChild)}(rn)?rn.canActivateChild(Ge,_e):on.runInContext(()=>rn(Ge,_e))).pipe((0,re.P)())});return(0,g.of)(ui).pipe(Dn())}));return(0,g.of)(At).pipe(Dn())}(_e,ht.path,ae),function Dr(_e,xe,ae){const Ge=xe.routeConfig?xe.routeConfig.canActivate:null;if(!Ge||0===Ge.length)return(0,g.of)(!0);const ht=Ge.map(At=>(0,N.P)(()=>{const Vt=fr(xe)??ae,ui=ai(At,Vt);return he(function lt(_e){return _e&&Fi(_e.canActivate)}(ui)?ui.canActivate(xe,_e):Vt.runInContext(()=>ui(xe,_e))).pipe((0,re.P)())}));return(0,g.of)(ht).pipe(Dn())}(_e,ht.route,ae))),(0,re.P)(ht=>!0!==ht,!0))}(Ge,At,_e,xe):(0,g.of)(ui)),(0,W.U)(ui=>({...ae,guardsResult:ui})))})}(this.environmentInjector,Vt=>this.events.next(Vt)),(0,se.b)(Vt=>{if(Ge.guardsResult=Vt.guardsResult,vt(Vt.guardsResult))throw oo(0,Vt.guardsResult);const ui=new An(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects),Vt.targetSnapshot,!!Vt.guardsResult);this.events.next(ui)}),(0,ee.h)(Vt=>!!Vt.guardsResult||(ae.restoreHistory(Vt),this.cancelNavigationTransition(Vt,"",3),!1)),qt(Vt=>{if(Vt.guards.canActivateChecks.length)return(0,g.of)(Vt).pipe((0,se.b)(ui=>{const ki=new oa(ui.id,this.urlSerializer.serialize(ui.extractedUrl),this.urlSerializer.serialize(ui.urlAfterRedirects),ui.targetSnapshot);this.events.next(ki)}),(0,Y.w)(ui=>{let ki=!1;return(0,g.of)(ui).pipe(function te(_e,xe){return(0,me.z)(ae=>{const{targetSnapshot:Ge,guards:{canActivateChecks:ht}}=ae;if(!ht.length)return(0,g.of)(ae);let At=0;return(0,e.D)(ht).pipe((0,ie.b)(Vt=>function De(_e,xe,ae,Ge){const ht=_e.routeConfig,At=_e._resolve;return void 0!==ht?.title&&!ii(ht)&&(At[ye]=ht.title),function nt(_e,xe,ae,Ge){const ht=function we(_e){return[...Object.keys(_e),...Object.getOwnPropertySymbols(_e)]}(_e);if(0===ht.length)return(0,g.of)({});const At={};return(0,e.D)(ht).pipe((0,me.z)(Vt=>function Rt(_e,xe,ae,Ge){const ht=fr(xe)??Ge,At=ai(_e,ht);return he(At.resolve?At.resolve(xe,ae):ht.runInContext(()=>At(xe,ae)))}(_e[Vt],xe,ae,Ge).pipe((0,re.P)(),(0,se.b)(ui=>{At[Vt]=ui}))),a(1),(0,C.h)(At),(0,ce.K)(Vt=>va(Vt)?L.E:(0,M._)(Vt)))}(At,_e,xe,Ge).pipe((0,W.U)(Vt=>(_e._resolvedData=Vt,_e.data=La(_e,ae).resolve,ht&&ii(ht)&&(_e.data[ye]=ht.title),null)))}(Vt.route,Ge,_e,xe)),(0,se.b)(()=>At++),a(1),(0,me.z)(Vt=>At===ht.length?(0,g.of)(ae):L.E))})}(ae.paramsInheritanceStrategy,this.environmentInjector),(0,se.b)({next:()=>ki=!0,complete:()=>{ki||(ae.restoreHistory(ui),this.cancelNavigationTransition(ui,"",2))}}))}),(0,se.b)(ui=>{const ki=new Aa(ui.id,this.urlSerializer.serialize(ui.extractedUrl),this.urlSerializer.serialize(ui.urlAfterRedirects),ui.targetSnapshot);this.events.next(ki)}))}),qt(Vt=>{const ui=ki=>{const on=[];ki.routeConfig?.loadComponent&&!ki.routeConfig._loadedComponent&&on.push(this.configLoader.loadComponent(ki.routeConfig).pipe((0,se.b)(rn=>{ki.component=rn}),(0,W.U)(()=>{})));for(const rn of ki.children)on.push(...ui(rn));return on};return(0,x.a)(ui(Vt.targetSnapshot.root)).pipe((0,l.d)(),(0,Q.q)(1))}),qt(()=>this.afterPreactivation()),(0,W.U)(Vt=>{const ui=function ao(_e,xe,ae){const Ge=Jr(_e,xe._root,ae?ae._root:void 0);return new wo(Ge,xe)}(ae.routeReuseStrategy,Vt.targetSnapshot,Vt.currentRouterState);return Ge={...Vt,targetRouterState:ui}}),(0,se.b)(Vt=>{ae.currentUrlTree=Vt.urlAfterRedirects,ae.rawUrlTree=ae.urlHandlingStrategy.merge(Vt.urlAfterRedirects,Vt.rawUrl),ae.routerState=Vt.targetRouterState,"deferred"===ae.urlUpdateStrategy&&(Vt.extras.skipLocationChange||ae.setBrowserUrl(ae.rawUrlTree,Vt),ae.browserUrlTree=Vt.urlAfterRedirects)}),((_e,xe,ae)=>(0,W.U)(Ge=>(new Ca(xe,Ge.targetRouterState,Ge.currentRouterState,ae).activate(_e),Ge)))(this.rootContexts,ae.routeReuseStrategy,Vt=>this.events.next(Vt)),(0,Q.q)(1),(0,se.b)({next:Vt=>{ht=!0,this.lastSuccessfulNavigation=this.currentNavigation,ae.navigated=!0,this.events.next(new bi(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(ae.currentUrlTree))),ae.titleStrategy?.updateTitle(Vt.targetRouterState.snapshot),Vt.resolve(!0)},complete:()=>{ht=!0}}),(0,n.x)(()=>{ht||At||this.cancelNavigationTransition(Ge,"",1),this.currentNavigation?.id===Ge.id&&(this.currentNavigation=null)}),(0,ce.K)(Vt=>{if(At=!0,Xr(Vt)){Da(Vt)||(ae.navigated=!0,ae.restoreHistory(Ge,!0));const ui=new li(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),Vt.message,Vt.cancellationCode);if(this.events.next(ui),Da(Vt)){const ki=ae.urlHandlingStrategy.merge(Vt.url,ae.rawUrlTree),on={skipLocationChange:Ge.extras.skipLocationChange,replaceUrl:"eager"===ae.urlUpdateStrategy||pa(Ge.source)};ae.scheduleNavigation(ki,Dt,null,on,{resolve:Ge.resolve,reject:Ge.reject,promise:Ge.promise})}else Ge.resolve(!1)}else{ae.restoreHistory(Ge,!0);const ui=new gi(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),Vt,Ge.targetSnapshot??void 0);this.events.next(ui);try{Ge.resolve(ae.errorHandler(Vt))}catch(ki){Ge.reject(ki)}}return L.E}))}))}cancelNavigationTransition(ae,Ge,ht){const At=new li(ae.id,this.urlSerializer.serialize(ae.extractedUrl),Ge,ht);this.events.next(At),ae.resolve(!1)}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();function pa(_e){return _e!==Dt}let Fa=(()=>{class _e{buildTitle(ae){let Ge,ht=ae.root;for(;void 0!==ht;)Ge=this.getResolvedTitleForRoute(ht)??Ge,ht=ht.children.find(At=>At.outlet===G);return Ge}getResolvedTitleForRoute(ae){return ae.data[ye]}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:function(){return(0,t.f3M)(ha)},providedIn:"root"}),_e})(),ha=(()=>{class _e extends Fa{constructor(ae){super(),this.title=ae}updateTitle(ae){const Ge=this.buildTitle(ae);void 0!==Ge&&this.title.setTitle(Ge)}}return _e.\u0275fac=function(ae){return new(ae||_e)(t.LFG(F.Dx))},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),ua=(()=>{class _e{}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:function(){return(0,t.f3M)(ka)},providedIn:"root"}),_e})();class Qn{shouldDetach(xe){return!1}store(xe,ae){}shouldAttach(xe){return!1}retrieve(xe){return null}shouldReuseRoute(xe,ae){return xe.routeConfig===ae.routeConfig}}let ka=(()=>{class _e extends Qn{}return _e.\u0275fac=function(){let xe;return function(Ge){return(xe||(xe=t.n5z(_e)))(Ge||_e)}}(),_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const kr=new t.OlP("",{providedIn:"root",factory:()=>({})});let Ha=(()=>{class _e{}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:function(){return(0,t.f3M)(uo)},providedIn:"root"}),_e})(),uo=(()=>{class _e{shouldProcessUrl(ae){return!0}extract(ae){return ae}merge(ae,Ge){return ae}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();function fl(_e){throw _e}function Ko(_e,xe,ae){return xe.parse("/")}const ql={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Or=(()=>{class _e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(kr,{optional:!0})||{},this.errorHandler=this.options.errorHandler||fl,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ko,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(Ha),this.routeReuseStrategy=(0,t.f3M)(ua),this.urlCreationStrategy=(0,t.f3M)(_a),this.titleStrategy=(0,t.f3M)(Fa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Fe((0,t.f3M)(yi,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(da),this.urlSerializer=(0,t.f3M)(J),this.location=(0,t.f3M)(B.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ut,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Fr(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(ae=>{this.lastSuccessfulId=ae.id,this.currentPageId=this.browserPageId??0},ae=>{this.console.warn(`Unhandled Navigation Error: ${ae}`)})}resetRootComponentType(ae){this.routerState.root.component=ae,this.navigationTransitions.rootComponentType=ae}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const ae=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Dt,ae)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ae=>{const Ge="popstate"===ae.type?"popstate":"hashchange";"popstate"===Ge&&setTimeout(()=>{this.navigateToSyncWithBrowser(ae.url,Ge,ae.state)},0)}))}navigateToSyncWithBrowser(ae,Ge,ht){const At={replaceUrl:!0},Vt=ht?.navigationId?ht:null;if(ht){const ki={...ht};delete ki.navigationId,delete ki.\u0275routerPageId,0!==Object.keys(ki).length&&(At.state=ki)}const ui=this.parseUrl(ae);this.scheduleNavigation(ui,Ge,Vt,At)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(ae){this.config=ae.map(Ar),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(ae,Ge={}){const{relativeTo:ht,queryParams:At,fragment:Vt,queryParamsHandling:ui,preserveFragment:ki}=Ge,on=ki?this.currentUrlTree.fragment:Vt;let rn=null;switch(ui){case"merge":rn={...this.currentUrlTree.queryParams,...At};break;case"preserve":rn=this.currentUrlTree.queryParams;break;default:rn=At||null}return null!==rn&&(rn=this.removeEmptyProps(rn)),this.urlCreationStrategy.createUrlTree(ht,this.routerState,this.currentUrlTree,ae,rn,on??null)}navigateByUrl(ae,Ge={skipLocationChange:!1}){const ht=vt(ae)?ae:this.parseUrl(ae),At=this.urlHandlingStrategy.merge(ht,this.rawUrlTree);return this.scheduleNavigation(At,Dt,null,Ge)}navigate(ae,Ge={skipLocationChange:!1}){return function Jl(_e){for(let xe=0;xe<_e.length;xe++){const ae=_e[xe];if(null==ae)throw new t.vHH(4008,false)}}(ae),this.navigateByUrl(this.createUrlTree(ae,Ge),Ge)}serializeUrl(ae){return this.urlSerializer.serialize(ae)}parseUrl(ae){let Ge;try{Ge=this.urlSerializer.parse(ae)}catch(ht){Ge=this.malformedUriErrorHandler(ht,this.urlSerializer,ae)}return Ge}isActive(ae,Ge){let ht;if(ht=!0===Ge?{...ql}:!1===Ge?{...Gc}:Ge,vt(ae))return Je(this.currentUrlTree,ae,ht);const At=this.parseUrl(ae);return Je(this.currentUrlTree,At,ht)}removeEmptyProps(ae){return Object.keys(ae).reduce((Ge,ht)=>{const At=ae[ht];return null!=At&&(Ge[ht]=At),Ge},{})}scheduleNavigation(ae,Ge,ht,At,Vt){if(this.disposed)return Promise.resolve(!1);let ui,ki,on,rn;return Vt?(ui=Vt.resolve,ki=Vt.reject,on=Vt.promise):on=new Promise((fa,sr)=>{ui=fa,ki=sr}),rn="computed"===this.canceledNavigationResolution?ht&&ht.\u0275routerPageId?ht.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:rn,source:Ge,restoredState:ht,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:ae,extras:At,resolve:ui,reject:ki,promise:on,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),on.catch(fa=>Promise.reject(fa))}setBrowserUrl(ae,Ge){const ht=this.urlSerializer.serialize(ae);if(this.location.isCurrentPathEqualTo(ht)||Ge.extras.replaceUrl){const Vt={...Ge.extras.state,...this.generateNgRouterState(Ge.id,this.browserPageId)};this.location.replaceState(ht,"",Vt)}else{const At={...Ge.extras.state,...this.generateNgRouterState(Ge.id,Ge.targetPageId)};this.location.go(ht,"",At)}}restoreHistory(ae,Ge=!1){if("computed"===this.canceledNavigationResolution){const At=this.currentPageId-(this.browserPageId??this.currentPageId);0!==At?this.location.historyGo(At):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===At&&(this.resetState(ae),this.browserUrlTree=ae.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Ge&&this.resetState(ae),this.resetUrlToCurrentUrlTree())}resetState(ae){this.routerState=ae.currentRouterState,this.currentUrlTree=ae.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ae.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(ae,Ge){return"computed"===this.canceledNavigationResolution?{navigationId:ae,\u0275routerPageId:Ge}:{navigationId:ae}}}return _e.\u0275fac=function(ae){return new(ae||_e)},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),Os=(()=>{class _e{constructor(ae,Ge,ht,At,Vt,ui){this.router=ae,this.route=Ge,this.tabIndexAttribute=ht,this.renderer=At,this.el=Vt,this.locationStrategy=ui,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new V.x;const ki=Vt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ki||"area"===ki,this.isAnchorElement?this.subscription=ae.events.subscribe(on=>{on instanceof bi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(ae){this._preserveFragment=(0,t.D6c)(ae)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ae){this._skipLocationChange=(0,t.D6c)(ae)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ae){this._replaceUrl=(0,t.D6c)(ae)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(ae){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",ae)}ngOnChanges(ae){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(ae){null!=ae?(this.commands=Array.isArray(ae)?ae:[ae],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(ae,Ge,ht,At,Vt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==ae||Ge||ht||At||Vt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const ae=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(ae,Ge){const ht=this.renderer,At=this.el.nativeElement;null!==Ge?ht.setAttribute(At,ae,Ge):ht.removeAttribute(At,ae)}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:this.preserveFragment})}}return _e.\u0275fac=function(ae){return new(ae||_e)(t.Y36(Or),t.Y36(jn),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(B.S$))},_e.\u0275dir=t.lG2({type:_e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ae,Ge){1&ae&&t.NdJ("click",function(At){return Ge.onClick(At.button,At.ctrlKey,At.shiftKey,At.altKey,At.metaKey)}),2&ae&&t.uIk("target",Ge.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),_e})(),Zc=(()=>{class _e{get isActive(){return this._isActive}constructor(ae,Ge,ht,At,Vt){this.router=ae,this.element=Ge,this.renderer=ht,this.cdr=At,this.link=Vt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=ae.events.subscribe(ui=>{ui instanceof bi&&this.update()})}ngAfterContentInit(){(0,g.of)(this.links.changes,(0,g.of)(null)).pipe((0,K.J)()).subscribe(ae=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const ae=[...this.links.toArray(),this.link].filter(Ge=>!!Ge).map(Ge=>Ge.onChanges);this.linkInputChangesSubscription=(0,e.D)(ae).pipe((0,K.J)()).subscribe(Ge=>{this._isActive!==this.isLinkActive(this.router)(Ge)&&this.update()})}set routerLinkActive(ae){const Ge=Array.isArray(ae)?ae:ae.split(" ");this.classes=Ge.filter(ht=>!!ht)}ngOnChanges(ae){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const ae=this.hasActiveLinks();this._isActive!==ae&&(this._isActive=ae,this.cdr.markForCheck(),this.classes.forEach(Ge=>{ae?this.renderer.addClass(this.element.nativeElement,Ge):this.renderer.removeClass(this.element.nativeElement,Ge)}),ae&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(ae))})}isLinkActive(ae){const Ge=function ml(_e){return!!_e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ht=>!!ht.urlTree&&ae.isActive(ht.urlTree,Ge)}hasActiveLinks(){const ae=this.isLinkActive(this.router);return this.link&&ae(this.link)||this.links.some(ae)}}return _e.\u0275fac=function(ae){return new(ae||_e)(t.Y36(Or),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Os,8))},_e.\u0275dir=t.lG2({type:_e,selectors:[["","routerLinkActive",""]],contentQueries:function(ae,Ge,ht){if(1&ae&&t.Suo(ht,Os,5),2&ae){let At;t.iGM(At=t.CRH())&&(Ge.links=At)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),_e})();class pl{}let Xl=(()=>{class _e{constructor(ae,Ge,ht,At,Vt){this.router=ae,this.injector=ht,this.preloadingStrategy=At,this.loader=Vt}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(ae=>ae instanceof bi),(0,ie.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ae,Ge){const ht=[];for(const At of Ge){At.providers&&!At._injector&&(At._injector=(0,t.MMx)(At.providers,ae,`Route: ${At.path}`));const Vt=At._injector??ae,ui=At._loadedInjector??Vt;(At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent)&&ht.push(this.preloadConfig(Vt,At)),(At.children||At._loadedRoutes)&&ht.push(this.processRoutes(ui,At.children??At._loadedRoutes))}return(0,e.D)(ht).pipe((0,K.J)())}preloadConfig(ae,Ge){return this.preloadingStrategy.preload(Ge,()=>{let ht;ht=Ge.loadChildren&&void 0===Ge.canLoad?this.loader.loadChildren(ae,Ge):(0,g.of)(null);const At=ht.pipe((0,me.z)(Vt=>null===Vt?(0,g.of)(void 0):(Ge._loadedRoutes=Vt.routes,Ge._loadedInjector=Vt.injector,this.processRoutes(Vt.injector??ae,Vt.routes))));if(Ge.loadComponent&&!Ge._loadedComponent){const Vt=this.loader.loadComponent(Ge);return(0,e.D)([At,Vt]).pipe((0,K.J)())}return At})}}return _e.\u0275fac=function(ae){return new(ae||_e)(t.LFG(Or),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(pl),t.LFG(Oi))},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Wc=new t.OlP("");let Js=(()=>{class _e{constructor(ae,Ge,ht,At,Vt={}){this.urlSerializer=ae,this.transitions=Ge,this.viewportScroller=ht,this.zone=At,this.options=Vt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Vt.scrollPositionRestoration=Vt.scrollPositionRestoration||"disabled",Vt.anchorScrolling=Vt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(ae=>{ae instanceof Ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ae.navigationTrigger,this.restoredId=ae.restoredState?ae.restoredState.navigationId:0):ae instanceof bi&&(this.lastId=ae.id,this.scheduleScrollEvent(ae,this.urlSerializer.parse(ae.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(ae=>{ae instanceof wi&&(ae.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ae.position):ae.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ae.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ae,Ge){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new wi(ae,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ge))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return _e.\u0275fac=function(ae){t.$Z()},_e.\u0275prov=t.Yz7({token:_e,factory:_e.\u0275fac}),_e})();var ar=(()=>((ar=ar||{})[ar.COMPLETE=0]="COMPLETE",ar[ar.FAILED=1]="FAILED",ar[ar.REDIRECTING=2]="REDIRECTING",ar))();const Ps=!1;function Gr(_e,xe){return{\u0275kind:_e,\u0275providers:xe}}const gl=new t.OlP("",{providedIn:"root",factory:()=>!1});function _c(){const _e=(0,t.f3M)(t.zs3);return xe=>{const ae=_e.get(t.z2F);if(xe!==ae.components[0])return;const Ge=_e.get(Or),ht=_e.get(ts);1===_e.get(fo)&&Ge.initialNavigation(),_e.get(Qo,null,t.XFs.Optional)?.setUpPreloading(),_e.get(Wc,null,t.XFs.Optional)?.init(),Ge.resetRootComponentType(ae.componentTypes[0]),ht.closed||(ht.next(),ht.complete(),ht.unsubscribe())}}const ts=new t.OlP(Ps?"bootstrap done indicator":"",{factory:()=>new V.x}),fo=new t.OlP(Ps?"initial navigation":"",{providedIn:"root",factory:()=>1});function Kc(){let _e=[];return _e=Ps?[{provide:t.Xts,multi:!0,useFactory:()=>{const xe=(0,t.f3M)(Or);return()=>xe.events.subscribe(ae=>{console.group?.(`Router Event: ${ae.constructor.name}`),console.log(function Vi(_e){if(!("type"in _e))return`Unknown Router Event: ${_e.constructor.name}`;switch(_e.type){case 14:return`ActivationEnd(path: '${_e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${_e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${_e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${_e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state}, shouldActivate: ${_e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 2:return`NavigationCancel(id: ${_e.id}, url: '${_e.url}')`;case 16:return`NavigationSkipped(id: ${_e.id}, url: '${_e.url}')`;case 1:return`NavigationEnd(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${_e.id}, url: '${_e.url}', error: ${_e.error})`;case 0:return`NavigationStart(id: ${_e.id}, url: '${_e.url}')`;case 6:return`ResolveEnd(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 5:return`ResolveStart(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 10:return`RouteConfigLoadEnd(path: ${_e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${_e.route.path})`;case 4:return`RoutesRecognized(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 15:return`Scroll(anchor: '${_e.anchor}', position: '${_e.position?`${_e.position[0]}, ${_e.position[1]}`:null}')`}}(ae)),console.log(ae),console.groupEnd?.()})}}]:[],Gr(1,_e)}const Qo=new t.OlP(Ps?"router preloader":"");function vc(_e){return Gr(0,[{provide:Qo,useExisting:Xl},{provide:pl,useExisting:_e}])}const rr=!1,vl=new t.OlP(rr?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),jc=[B.Ye,{provide:J,useClass:mt},Or,Qa,{provide:jn,useFactory:function ja(_e){return _e.routerState.root},deps:[Or]},Oi,rr?{provide:gl,useValue:!0}:[]];function bl(){return new t.PXZ("Router",Or)}let M2=(()=>{class _e{constructor(ae){}static forRoot(ae,Ge){return{ngModule:_e,providers:[jc,rr&&Ge?.enableTracing?Kc().\u0275providers:[],{provide:yi,multi:!0,useValue:ae},{provide:vl,useFactory:or,deps:[[Or,new t.FiY,new t.tp0]]},{provide:kr,useValue:Ge||{}},Ge?.useHash?{provide:B.S$,useClass:B.Do}:{provide:B.S$,useClass:B.b0},{provide:Wc,useFactory:()=>{const _e=(0,t.f3M)(B.EM),xe=(0,t.f3M)(t.R0b),ae=(0,t.f3M)(kr),Ge=(0,t.f3M)(da),ht=(0,t.f3M)(J);return ae.scrollOffset&&_e.setOffset(ae.scrollOffset),new Js(ht,Ge,_e,xe,ae)}},Ge?.preloadingStrategy?vc(Ge.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:bl},Ge?.initialNavigation?Qc(Ge):[],[{provide:qo,useFactory:_c},{provide:t.tb,multi:!0,useExisting:qo}]]}}static forChild(ae){return{ngModule:_e,providers:[{provide:yi,multi:!0,useValue:ae}]}}}return _e.\u0275fac=function(ae){return new(ae||_e)(t.LFG(vl,8))},_e.\u0275mod=t.oAB({type:_e}),_e.\u0275inj=t.cJS({imports:[vr]}),_e})();function or(_e){if(rr&&_e)throw new t.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Qc(_e){return["disabled"===_e.initialNavigation?Gr(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const xe=(0,t.f3M)(Or);return()=>{xe.setUpLocationChangeListener()}}},{provide:fo,useValue:2}]).\u0275providers:[],"enabledBlocking"===_e.initialNavigation?Gr(2,[{provide:fo,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:xe=>{const ae=xe.get(B.V_,Promise.resolve());return()=>ae.then(()=>new Promise(Ge=>{const ht=xe.get(Or),At=xe.get(ts);(function jo(_e,xe){_e.events.pipe((0,ee.h)(ae=>ae instanceof bi||ae instanceof li||ae instanceof gi||ae instanceof pi),(0,W.U)(ae=>ae instanceof bi||ae instanceof pi?ar.COMPLETE:ae instanceof li&&(0===ae.code||1===ae.code)?ar.REDIRECTING:ar.FAILED),(0,ee.h)(ae=>ae!==ar.REDIRECTING),(0,Q.q)(1)).subscribe(()=>{xe()})})(ht,()=>{Ge(!0)}),xe.get(da).afterPreactivation=()=>(Ge(!0),At.closed?(0,g.of)(void 0):At),ht.initialNavigation()}))}}]).\u0275providers:[]]}const qo=new t.OlP(rr?"Router Initializer":"")},2216:(We,q,m)=>{"use strict";m.d(q,{BN:()=>On,uH:()=>Be});var t=m(4650);function e(ne,te){var De=Object.keys(ne);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(ne);te&&(nt=nt.filter(function(we){return Object.getOwnPropertyDescriptor(ne,we).enumerable})),De.push.apply(De,nt)}return De}function g(ne){for(var te=1;te<arguments.length;te++){var De=null!=arguments[te]?arguments[te]:{};te%2?e(Object(De),!0).forEach(function(nt){d(ne,nt,De[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(De)):e(Object(De)).forEach(function(nt){Object.defineProperty(ne,nt,Object.getOwnPropertyDescriptor(De,nt))})}return ne}function T(ne){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(ne)}function h(ne,te){for(var De=0;De<te.length;De++){var nt=te[De];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(ne,nt.key,nt)}}function d(ne,te,De){return te in ne?Object.defineProperty(ne,te,{value:De,enumerable:!0,configurable:!0,writable:!0}):ne[te]=De,ne}function L(ne,te){return function B(ne){if(Array.isArray(ne))return ne}(ne)||function Y(ne,te){var De=null==ne?null:typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(null!=De){var ii,qt,nt=[],we=!0,Rt=!1;try{for(De=De.call(ne);!(we=(ii=De.next()).done)&&(nt.push(ii.value),!te||nt.length!==te);we=!0);}catch(_i){Rt=!0,qt=_i}finally{try{!we&&null!=De.return&&De.return()}finally{if(Rt)throw qt}}return nt}}(ne,te)||Q(ne,te)||function me(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(ne){return function V(ne){if(Array.isArray(ne))return X(ne)}(ne)||function W(ne){if(typeof Symbol<"u"&&null!=ne[Symbol.iterator]||null!=ne["@@iterator"])return Array.from(ne)}(ne)||Q(ne)||function ee(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(ne,te){if(ne){if("string"==typeof ne)return X(ne,te);var De=Object.prototype.toString.call(ne).slice(8,-1);if("Object"===De&&ne.constructor&&(De=ne.constructor.name),"Map"===De||"Set"===De)return Array.from(ne);if("Arguments"===De||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return X(ne,te)}}function X(ne,te){(null==te||te>ne.length)&&(te=ne.length);for(var De=0,nt=new Array(te);De<te;De++)nt[De]=ne[De];return nt}var re=function(){},ie={},se={},ce=null,Te={mark:re,measure:re};try{typeof window<"u"&&(ie=window),typeof document<"u"&&(se=document),typeof MutationObserver<"u"&&(ce=MutationObserver),typeof performance<"u"&&(Te=performance)}catch{}var v,K,F,G,ye,i=(ie.navigator||{}).userAgent,a=void 0===i?"":i,u=ie,l=se,_=ce,O=Te,C=!!l.documentElement&&!!l.head&&"function"==typeof l.addEventListener&&"function"==typeof l.createElement,n=~a.indexOf("MSIE")||~a.indexOf("Trident/"),Ee="___FONT_AWESOME___",pe=16,qe="fa",Ce="svg-inline--fa",Se="data-fa-i2svg",fe="data-fa-pseudo-element",Fe="data-fa-pseudo-element-pending",oe="data-prefix",ze="data-icon",Oe="fontawesome-i2svg",he="async",Ae=["HTML","HEAD","STYLE","SCRIPT"],ge=function(){try{return!0}catch{return!1}}(),Ue="classic",Je="sharp",Re=[Ue,Je];function le(ne){return new Proxy(ne,{get:function(De,nt){return nt in De?De[nt]:De[Ue]}})}var rt=le((d(v={},Ue,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),d(v,Je,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),v)),Qe=le((d(K={},Ue,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),d(K,Je,{solid:"fass",regular:"fasr",light:"fasl"}),K)),ct=le((d(F={},Ue,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),d(F,Je,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),F)),Gt=le((d(G={},Ue,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),d(G,Je,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),G)),ut=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Ze="fa-layers-text",xt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Me=le((d(ye={},Ue,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),d(ye,Je,{900:"fass",400:"fasr",300:"fasl"}),ye)),$e=[1,2,3,4,5,6,7,8,9,10],Pe=$e.concat([11,12,13,14,15,16,17,18,19,20]),J=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],mt={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Et=new Set;Object.keys(Qe[Ue]).map(Et.add.bind(Et)),Object.keys(Qe[Je]).map(Et.add.bind(Et));var at=[].concat(Re,k(Et),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",mt.GROUP,mt.SWAP_OPACITY,mt.PRIMARY,mt.SECONDARY]).concat($e.map(function(ne){return"".concat(ne,"x")})).concat(Pe.map(function(ne){return"w-".concat(ne)})),je=u.FontAwesomeConfig||{};l&&"function"==typeof l.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(ne){var te=L(ne,2),nt=te[1],we=function Ct(ne){return""===ne||"false"!==ne&&("true"===ne||ne)}(function Ht(ne){var te=l.querySelector("script["+ne+"]");if(te)return te.getAttribute(ne)}(te[0]));null!=we&&(je[nt]=we)});var Bt={styleDefault:"solid",familyDefault:"classic",cssPrefix:qe,replacementClass:Ce,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};je.familyPrefix&&(je.cssPrefix=je.familyPrefix);var Ne=g(g({},Bt),je);Ne.autoReplaceSvg||(Ne.observeMutations=!1);var $={};Object.keys(Bt).forEach(function(ne){Object.defineProperty($,ne,{enumerable:!0,set:function(De){Ne[ne]=De,ue.forEach(function(nt){return nt($)})},get:function(){return Ne[ne]}})}),Object.defineProperty($,"familyPrefix",{enumerable:!0,set:function(te){Ne.cssPrefix=te,ue.forEach(function(De){return De($)})},get:function(){return Ne.cssPrefix}}),u.FontAwesomeConfig=$;var ue=[],Xe=pe,ei={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},ni="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function pt(){for(var ne=12,te="";ne-- >0;)te+=ni[62*Math.random()|0];return te}function ot(ne){for(var te=[],De=(ne||[]).length>>>0;De--;)te[De]=ne[De];return te}function ft(ne){return ne.classList?ot(ne.classList):(ne.getAttribute("class")||"").split(" ").filter(function(te){return te})}function St(ne){return"".concat(ne).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tt(ne){return Object.keys(ne||{}).reduce(function(te,De){return te+"".concat(De,": ").concat(ne[De].trim(),";")},"")}function _t(ne){return ne.size!==ei.size||ne.x!==ei.x||ne.y!==ei.y||ne.rotate!==ei.rotate||ne.flipX||ne.flipY}var Tt=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Lt(){var ne=qe,te=Ce,De=$.cssPrefix,nt=$.replacementClass,we=Tt;if(De!==ne||nt!==te){var Rt=new RegExp("\\.".concat(ne,"\\-"),"g"),ii=new RegExp("\\--".concat(ne,"\\-"),"g"),qt=new RegExp("\\.".concat(te),"g");we=we.replace(Rt,".".concat(De,"-")).replace(ii,"--".concat(De,"-")).replace(qt,".".concat(nt))}return we}var Qt=!1;function Bi(){$.autoAddCss&&!Qt&&(function zt(ne){if(ne&&C){var te=l.createElement("style");te.setAttribute("type","text/css"),te.innerHTML=ne;for(var De=l.head.childNodes,nt=null,we=De.length-1;we>-1;we--){var Rt=De[we],ii=(Rt.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ii)>-1&&(nt=Rt)}l.head.insertBefore(te,nt)}}(Lt()),Qt=!0)}var Hi={mixout:function(){return{dom:{css:Lt,insertCss:Bi}}},hooks:function(){return{beforeDOMElementCreation:function(){Bi()},beforeI2svg:function(){Bi()}}}},Si=u||{};Si[Ee]||(Si[Ee]={}),Si[Ee].styles||(Si[Ee].styles={}),Si[Ee].hooks||(Si[Ee].hooks={}),Si[Ee].shims||(Si[Ee].shims=[]);var Wi=Si[Ee],et=[],Le=!1;function Wt(ne){var te=ne.tag,De=ne.attributes,nt=void 0===De?{}:De,we=ne.children,Rt=void 0===we?[]:we;return"string"==typeof ne?St(ne):"<".concat(te," ").concat(function gt(ne){return Object.keys(ne||{}).reduce(function(te,De){return te+"".concat(De,'="').concat(St(ne[De]),'" ')},"").trim()}(nt),">").concat(Rt.map(Wt).join(""),"</").concat(te,">")}function si(ne,te,De){if(ne&&ne[te]&&ne[te][De])return{prefix:te,iconName:De,icon:ne[te][De]}}C&&((Le=(l.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l.readyState))||l.addEventListener("DOMContentLoaded",function ne(){l.removeEventListener("DOMContentLoaded",ne),Le=1,et.map(function(te){return te()})}));var Ri=function(te,De,nt,we){var _i,yi,Oi,Rt=Object.keys(te),ii=Rt.length,qt=void 0!==we?function(te,De){return function(nt,we,Rt,ii){return te.call(De,nt,we,Rt,ii)}}(De,we):De;for(void 0===nt?(_i=1,Oi=te[Rt[0]]):(_i=0,Oi=nt);_i<ii;_i++)Oi=qt(Oi,te[yi=Rt[_i]],yi,te);return Oi};function nn(ne){var te=function $i(ne){for(var te=[],De=0,nt=ne.length;De<nt;){var we=ne.charCodeAt(De++);if(we>=55296&&we<=56319&&De<nt){var Rt=ne.charCodeAt(De++);56320==(64512&Rt)?te.push(((1023&we)<<10)+(1023&Rt)+65536):(te.push(we),De--)}else te.push(we)}return te}(ne);return 1===te.length?te[0].toString(16):null}function Yt(ne){return Object.keys(ne).reduce(function(te,De){var nt=ne[De];return nt.icon?te[nt.iconName]=nt.icon:te[De]=nt,te},{})}function Xt(ne,te){var nt=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,we=void 0!==nt&&nt,Rt=Yt(te);"function"!=typeof Wi.hooks.addPack||we?Wi.styles[ne]=g(g({},Wi.styles[ne]||{}),Rt):Wi.hooks.addPack(ne,Yt(te)),"fas"===ne&&Xt("fa",te)}var dt,Dt,Ut,Ot=Wi.styles,bi=Wi.shims,li=(d(dt={},Ue,Object.values(ct[Ue])),d(dt,Je,Object.values(ct[Je])),dt),pi=null,gi={},Zi={},Wn={},An={},oa={},Aa=(d(Dt={},Ue,Object.keys(rt[Ue])),d(Dt,Je,Object.keys(rt[Je])),Dt);var $t=function(){var te=function(Rt){return Ri(Ot,function(ii,qt,_i){return ii[_i]=Ri(qt,Rt,{}),ii},{})};gi=te(function(we,Rt,ii){return Rt[3]&&(we[Rt[3]]=ii),Rt[2]&&Rt[2].filter(function(_i){return"number"==typeof _i}).forEach(function(_i){we[_i.toString(16)]=ii}),we}),Zi=te(function(we,Rt,ii){return we[ii]=ii,Rt[2]&&Rt[2].filter(function(_i){return"string"==typeof _i}).forEach(function(_i){we[_i]=ii}),we}),oa=te(function(we,Rt,ii){var qt=Rt[2];return we[ii]=ii,qt.forEach(function(_i){we[_i]=ii}),we});var De="far"in Ot||$.autoFetchSvg,nt=Ri(bi,function(we,Rt){var ii=Rt[0],qt=Rt[1],_i=Rt[2];return"far"===qt&&!De&&(qt="fas"),"string"==typeof ii&&(we.names[ii]={prefix:qt,iconName:_i}),"number"==typeof ii&&(we.unicodes[ii.toString(16)]={prefix:qt,iconName:_i}),we},{names:{},unicodes:{}});Wn=nt.names,An=nt.unicodes,pi=Bn($.styleDefault,{family:$.familyDefault})};function mi(ne,te){return(gi[ne]||{})[te]}function oi(ne,te){return(oa[ne]||{})[te]}function wi(ne){return Wn[ne]||{prefix:null,iconName:null}}function ln(){return pi}(function Ie(ne){ue.push(ne)})(function(ne){pi=Bn(ne.styleDefault,{family:$.familyDefault})}),$t();var Yn=function(){return{prefix:null,iconName:null,rest:[]}};function Bn(ne){var De=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,nt=void 0===De?Ue:De;return Qe[nt][ne]||Qe[nt][rt[nt][ne]]||(ne in Wi.styles?ne:null)||null}var _a=(d(Ut={},Ue,Object.keys(ct[Ue])),d(Ut,Je,Object.keys(ct[Je])),Ut);function Ln(ne){var te,nt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,we=void 0!==nt&&nt,Rt=(d(te={},Ue,"".concat($.cssPrefix,"-").concat(Ue)),d(te,Je,"".concat($.cssPrefix,"-").concat(Je)),te),ii=null,qt=Ue;(ne.includes(Rt[Ue])||ne.some(function(yi){return _a[Ue].includes(yi)}))&&(qt=Ue),(ne.includes(Rt[Je])||ne.some(function(yi){return _a[Je].includes(yi)}))&&(qt=Je);var _i=ne.reduce(function(yi,Oi){var qi=function nr(ne,te){var De=te.split("-"),nt=De[0],we=De.slice(1).join("-");return nt!==ne||""===we||function ta(ne){return~at.indexOf(ne)}(we)?null:we}($.cssPrefix,Oi);if(Ot[Oi]?(Oi=li[qt].includes(Oi)?Gt[qt][Oi]:Oi,ii=Oi,yi.prefix=Oi):Aa[qt].indexOf(Oi)>-1?(ii=Oi,yi.prefix=Bn(Oi,{family:qt})):qi?yi.iconName=qi:Oi!==$.replacementClass&&Oi!==Rt[Ue]&&Oi!==Rt[Je]&&yi.rest.push(Oi),!we&&yi.prefix&&yi.iconName){var tn="fa"===ii?wi(yi.iconName):{},dn=oi(yi.prefix,yi.iconName);tn.prefix&&(ii=null),yi.iconName=tn.iconName||dn||yi.iconName,yi.prefix=tn.prefix||yi.prefix,"far"===yi.prefix&&!Ot.far&&Ot.fas&&!$.autoFetchSvg&&(yi.prefix="fas")}return yi},Yn());return(ne.includes("fa-brands")||ne.includes("fab"))&&(_i.prefix="fab"),(ne.includes("fa-duotone")||ne.includes("fad"))&&(_i.prefix="fad"),!_i.prefix&&qt===Je&&(Ot.fass||$.autoFetchSvg)&&(_i.prefix="fass",_i.iconName=oi(_i.prefix,_i.iconName)||_i.iconName),("fa"===_i.prefix||"fa"===ii)&&(_i.prefix=ln()||"fas"),_i}var Gn=function(){function ne(){(function x(ne,te){if(!(ne instanceof te))throw new TypeError("Cannot call a class as a function")})(this,ne),this.definitions={}}return function N(ne,te,De){te&&h(ne.prototype,te),De&&h(ne,De),Object.defineProperty(ne,"prototype",{writable:!1})}(ne,[{key:"add",value:function(){for(var De=this,nt=arguments.length,we=new Array(nt),Rt=0;Rt<nt;Rt++)we[Rt]=arguments[Rt];var ii=we.reduce(this._pullDefinitions,{});Object.keys(ii).forEach(function(qt){De.definitions[qt]=g(g({},De.definitions[qt]||{}),ii[qt]),Xt(qt,ii[qt]);var _i=ct[Ue][qt];_i&&Xt(_i,ii[qt]),$t()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(De,nt){var we=nt.prefix&&nt.iconName&&nt.icon?{0:nt}:nt;return Object.keys(we).map(function(Rt){var ii=we[Rt],qt=ii.prefix,_i=ii.iconName,yi=ii.icon,Oi=yi[2];De[qt]||(De[qt]={}),Oi.length>0&&Oi.forEach(function(qi){"string"==typeof qi&&(De[qt][qi]=yi)}),De[qt][_i]=yi}),De}}]),ne}(),Co=[],Un={},ia={},wo=Object.keys(ia);function Tr(ne,te){for(var De=arguments.length,nt=new Array(De>2?De-2:0),we=2;we<De;we++)nt[we-2]=arguments[we];return(Un[ne]||[]).forEach(function(ii){te=ii.apply(null,[te].concat(nt))}),te}function jn(ne){for(var te=arguments.length,De=new Array(te>1?te-1:0),nt=1;nt<te;nt++)De[nt-1]=arguments[nt];(Un[ne]||[]).forEach(function(Rt){Rt.apply(null,De)})}function La(){var ne=arguments[0],te=Array.prototype.slice.call(arguments,1);return ia[ne]?ia[ne].apply(null,te):void 0}function Po(ne){"fa"===ne.prefix&&(ne.prefix="fas");var te=ne.iconName,De=ne.prefix||ln();if(te)return te=oi(De,te)||te,si(Hr.definitions,De,te)||si(Wi.styles,De,te)}var Hr=new Gn,qr={i2svg:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C?(jn("beforeI2svg",te),La("pseudoElements2svg",te),La("i2svg",te)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},De=te.autoReplaceSvgRoot;!1===$.autoReplaceSvg&&($.autoReplaceSvg=!0),$.observeMutations=!0,function Mt(ne){C&&(Le?setTimeout(ne,0):et.push(ne))}(function(){Ro({autoReplaceSvgRoot:De}),jn("watch",te)})}},Ma={noAuto:function(){$.autoReplaceSvg=!1,$.observeMutations=!1,jn("noAuto")},config:$,dom:qr,parse:{icon:function(te){if(null===te)return null;if("object"===T(te)&&te.prefix&&te.iconName)return{prefix:te.prefix,iconName:oi(te.prefix,te.iconName)||te.iconName};if(Array.isArray(te)&&2===te.length){var De=0===te[1].indexOf("fa-")?te[1].slice(3):te[1],nt=Bn(te[0]);return{prefix:nt,iconName:oi(nt,De)||De}}if("string"==typeof te&&(te.indexOf("".concat($.cssPrefix,"-"))>-1||te.match(ut))){var we=Ln(te.split(" "),{skipLookups:!0});return{prefix:we.prefix||ln(),iconName:oi(we.prefix,we.iconName)||we.iconName}}if("string"==typeof te){var Rt=ln();return{prefix:Rt,iconName:oi(Rt,te)||te}}}},library:Hr,findIconDefinition:Po,toHtml:Wt},Ro=function(){var De=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,nt=void 0===De?l:De;(Object.keys(Wi.styles).length>0||$.autoFetchSvg)&&C&&$.autoReplaceSvg&&Ma.dom.i2svg({node:nt})};function ao(ne,te){return Object.defineProperty(ne,"abstract",{get:te}),Object.defineProperty(ne,"html",{get:function(){return ne.abstract.map(function(nt){return Wt(nt)})}}),Object.defineProperty(ne,"node",{get:function(){if(C){var nt=l.createElement("div");return nt.innerHTML=ne.html,nt.children}}}),ne}function dr(ne){var te=ne.icons,De=te.main,nt=te.mask,we=ne.prefix,Rt=ne.iconName,ii=ne.transform,qt=ne.symbol,_i=ne.title,yi=ne.maskId,Oi=ne.titleId,qi=ne.extra,tn=ne.watchable,dn=void 0!==tn&&tn,da=nt.found?nt:De,pa=da.width,Fa=da.height,ha="fak"===we,ua=[$.replacementClass,Rt?"".concat($.cssPrefix,"-").concat(Rt):""].filter(function(Ur){return-1===qi.classes.indexOf(Ur)}).filter(function(Ur){return""!==Ur||!!Ur}).concat(qi.classes).join(" "),Qn={children:[],attributes:g(g({},qi.attributes),{},{"data-prefix":we,"data-icon":Rt,class:ua,role:qi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(pa," ").concat(Fa)})},ka=ha&&!~qi.classes.indexOf("fa-fw")?{width:"".concat(pa/Fa*16*.0625,"em")}:{};dn&&(Qn.attributes[Se]=""),_i&&(Qn.children.push({tag:"title",attributes:{id:Qn.attributes["aria-labelledby"]||"title-".concat(Oi||pt())},children:[_i]}),delete Qn.attributes.title);var Sa=g(g({},Qn),{},{prefix:we,iconName:Rt,main:De,mask:nt,maskId:yi,transform:ii,symbol:qt,styles:g(g({},ka),qi.styles)}),kr=nt.found&&De.found?La("generateAbstractMask",Sa)||{children:[],attributes:{}}:La("generateAbstractIcon",Sa)||{children:[],attributes:{}},uo=kr.attributes;return Sa.children=kr.children,Sa.attributes=uo,qt?function _r(ne){var De=ne.iconName,nt=ne.children,we=ne.attributes,Rt=ne.symbol,ii=!0===Rt?"".concat(ne.prefix,"-").concat($.cssPrefix,"-").concat(De):Rt;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:g(g({},we),{},{id:ii}),children:nt}]}]}(Sa):function Jr(ne){var te=ne.children,De=ne.main,nt=ne.mask,we=ne.attributes,Rt=ne.styles,ii=ne.transform;if(_t(ii)&&De.found&&!nt.found){var yi={x:De.width/De.height/2,y:.5};we.style=tt(g(g({},Rt),{},{"transform-origin":"".concat(yi.x+ii.x/16,"em ").concat(yi.y+ii.y/16,"em")}))}return[{tag:"svg",attributes:we,children:te}]}(Sa)}function ro(ne){var te=ne.content,De=ne.width,nt=ne.height,we=ne.transform,Rt=ne.title,ii=ne.extra,qt=ne.watchable,_i=void 0!==qt&&qt,yi=g(g(g({},ii.attributes),Rt?{title:Rt}:{}),{},{class:ii.classes.join(" ")});_i&&(yi[Se]="");var Oi=g({},ii.styles);_t(we)&&(Oi.transform=function Ve(ne){var te=ne.transform,De=ne.width,we=ne.height,Rt=void 0===we?pe:we,ii=ne.startCentered,qt=void 0!==ii&&ii,_i="";return _i+=qt&&n?"translate(".concat(te.x/Xe-(void 0===De?pe:De)/2,"em, ").concat(te.y/Xe-Rt/2,"em) "):qt?"translate(calc(-50% + ".concat(te.x/Xe,"em), calc(-50% + ").concat(te.y/Xe,"em)) "):"translate(".concat(te.x/Xe,"em, ").concat(te.y/Xe,"em) "),(_i+="scale(".concat(te.size/Xe*(te.flipX?-1:1),", ").concat(te.size/Xe*(te.flipY?-1:1),") "))+"rotate(".concat(te.rotate,"deg) ")}({transform:we,startCentered:!0,width:De,height:nt}),Oi["-webkit-transform"]=Oi.transform);var qi=tt(Oi);qi.length>0&&(yi.style=qi);var tn=[];return tn.push({tag:"span",attributes:yi,children:[te]}),Rt&&tn.push({tag:"span",attributes:{class:"sr-only"},children:[Rt]}),tn}var No=Wi.styles;function Da(ne){var te=ne[0],De=ne[1],Rt=L(ne.slice(4),1)[0];return{found:!0,width:te,height:De,icon:Array.isArray(Rt)?{tag:"g",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.GROUP)},children:[{tag:"path",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.SECONDARY),fill:"currentColor",d:Rt[0]}},{tag:"path",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.PRIMARY),fill:"currentColor",d:Rt[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Rt}}}}var Xr={found:!1,width:512,height:512};function Qa(ne,te){var De=te;return"fa"===te&&null!==$.styleDefault&&(te=ln()),new Promise(function(nt,we){if(La("missingIconAbstract"),"fa"===De){var ii=wi(ne)||{};ne=ii.iconName||ne,te=ii.prefix||te}if(ne&&te&&No[te]&&No[te][ne])return nt(Da(No[te][ne]));(function Vr(ne,te){!ge&&!$.showMissingIcons&&ne&&console.error('Icon with name "'.concat(ne,'" and prefix "').concat(te,'" is missing.'))})(ne,te),nt(g(g({},Xr),{},{icon:$.showMissingIcons&&ne&&La("missingIconAbstract")||{}}))})}var Br=function(){},sa=$.measurePerformance&&O&&O.mark&&O.measure?O:{mark:Br,measure:Br},Wa='FA "6.4.2"',vr=function(te){sa.mark("".concat(Wa," ").concat(te," ends")),sa.measure("".concat(Wa," ").concat(te),"".concat(Wa," ").concat(te," begins"),"".concat(Wa," ").concat(te," ends"))},Er={begin:function(te){return sa.mark("".concat(Wa," ").concat(te," begins")),function(){return vr(te)}},end:vr},Fo=function(){};function so(ne){return"string"==typeof(ne.getAttribute?ne.getAttribute(Se):null)}function Ho(ne){return l.createElementNS("http://www.w3.org/2000/svg",ne)}function Mo(ne){return l.createElement(ne)}function Ya(ne){var De=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,nt=void 0===De?"svg"===ne.tag?Ho:Mo:De;if("string"==typeof ne)return l.createTextNode(ne);var we=nt(ne.tag);return Object.keys(ne.attributes||[]).forEach(function(ii){we.setAttribute(ii,ne.attributes[ii])}),(ne.children||[]).forEach(function(ii){we.appendChild(Ya(ii,{ceFn:nt}))}),we}var qn={replace:function(te){var De=te[0];if(De.parentNode)if(te[1].forEach(function(we){De.parentNode.insertBefore(Ya(we),De)}),null===De.getAttribute(Se)&&$.keepOriginalSource){var nt=l.createComment(function Ar(ne){var te=" ".concat(ne.outerHTML," ");return"".concat(te,"Font Awesome fontawesome.com ")}(De));De.parentNode.replaceChild(nt,De)}else De.remove()},nest:function(te){var De=te[0],nt=te[1];if(~ft(De).indexOf($.replacementClass))return qn.replace(te);var we=new RegExp("".concat($.cssPrefix,"-.*"));if(delete nt[0].attributes.id,nt[0].attributes.class){var Rt=nt[0].attributes.class.split(" ").reduce(function(qt,_i){return _i===$.replacementClass||_i.match(we)?qt.toSvg.push(_i):qt.toNode.push(_i),qt},{toNode:[],toSvg:[]});nt[0].attributes.class=Rt.toSvg.join(" "),0===Rt.toNode.length?De.removeAttribute("class"):De.setAttribute("class",Rt.toNode.join(" "))}var ii=nt.map(function(qt){return Wt(qt)}).join("\n");De.setAttribute(Se,""),De.innerHTML=ii}};function kn(ne){ne()}function fr(ne,te){var De="function"==typeof te?te:Fo;if(0===ne.length)De();else{var nt=kn;$.mutateApproach===he&&(nt=u.requestAnimationFrame||kn),nt(function(){var we=function ur(){return!0===$.autoReplaceSvg?qn.replace:qn[$.autoReplaceSvg]||qn.replace}(),Rt=Er.begin("mutate");ne.map(we),Rt(),De()})}}var Lr=!1;function Ca(){Lr=!0}function zo(){Lr=!1}var Ft=null;function hi(ne){if(_&&$.observeMutations){var te=ne.treeCallback,De=void 0===te?Fo:te,nt=ne.nodeCallback,we=void 0===nt?Fo:nt,Rt=ne.pseudoElementsCallback,ii=void 0===Rt?Fo:Rt,qt=ne.observeMutationsRoot,_i=void 0===qt?l:qt;Ft=new _(function(yi){if(!Lr){var Oi=ln();ot(yi).forEach(function(qi){if("childList"===qi.type&&qi.addedNodes.length>0&&!so(qi.addedNodes[0])&&($.searchPseudoElements&&ii(qi.target),De(qi.target)),"attributes"===qi.type&&qi.target.parentNode&&$.searchPseudoElements&&ii(qi.target.parentNode),"attributes"===qi.type&&so(qi.target)&&~J.indexOf(qi.attributeName))if("class"===qi.attributeName&&function $r(ne){var te=ne.getAttribute?ne.getAttribute(oe):null,De=ne.getAttribute?ne.getAttribute(ze):null;return te&&De}(qi.target)){var tn=Ln(ft(qi.target)),da=tn.iconName;qi.target.setAttribute(oe,tn.prefix||Oi),da&&qi.target.setAttribute(ze,da)}else(function eo(ne){return ne&&ne.classList&&ne.classList.contains&&ne.classList.contains($.replacementClass)})(qi.target)&&we(qi.target)})}}),C&&Ft.observe(_i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ca(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},De=function Pi(ne){var te=ne.getAttribute("data-prefix"),De=ne.getAttribute("data-icon"),nt=void 0!==ne.innerText?ne.innerText.trim():"",we=Ln(ft(ne));return we.prefix||(we.prefix=ln()),te&&De&&(we.prefix=te,we.iconName=De),we.iconName&&we.prefix||(we.prefix&&nt.length>0&&(we.iconName=function jt(ne,te){return(Zi[ne]||{})[te]}(we.prefix,ne.innerText)||mi(we.prefix,nn(ne.innerText))),!we.iconName&&$.autoFetchSvg&&ne.firstChild&&ne.firstChild.nodeType===Node.TEXT_NODE&&(we.iconName=ne.firstChild.data)),we}(ne),nt=De.iconName,we=De.prefix,Rt=De.rest,ii=function an(ne){var te=ot(ne.attributes).reduce(function(we,Rt){return"class"!==we.name&&"style"!==we.name&&(we[Rt.name]=Rt.value),we},{}),De=ne.getAttribute("title"),nt=ne.getAttribute("data-fa-title-id");return $.autoA11y&&(De?te["aria-labelledby"]="".concat($.replacementClass,"-title-").concat(nt||pt()):(te["aria-hidden"]="true",te.focusable="false")),te}(ne),qt=Tr("parseNodeAttributes",{},ne),_i=te.styleParser?function ai(ne){var te=ne.getAttribute("style"),De=[];return te&&(De=te.split(";").reduce(function(nt,we){var Rt=we.split(":"),ii=Rt[0],qt=Rt.slice(1);return ii&&qt.length>0&&(nt[ii]=qt.join(":").trim()),nt},{})),De}(ne):[];return g({iconName:nt,title:ne.getAttribute("title"),titleId:ne.getAttribute("data-fa-title-id"),prefix:we,transform:ei,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Rt,styles:_i,attributes:ii}},qt)}var Fi=Wi.styles;function gn(ne){var te="nest"===$.autoReplaceSvg?ca(ne,{styleParser:!1}):ca(ne);return~te.extra.classes.indexOf(Ze)?La("generateLayersText",ne,te):La("generateSvgReplacementMutation",ne,te)}var qa=new Set;function lt(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!C)return Promise.resolve();var De=l.documentElement.classList,nt=function(qi){return De.add("".concat(Oe,"-").concat(qi))},we=function(qi){return De.remove("".concat(Oe,"-").concat(qi))},Rt=$.autoFetchSvg?qa:Re.map(function(Oi){return"fa-".concat(Oi)}).concat(Object.keys(Fi));Rt.includes("fa")||Rt.push("fa");var ii=[".".concat(Ze,":not([").concat(Se,"])")].concat(Rt.map(function(Oi){return".".concat(Oi,":not([").concat(Se,"])")})).join(", ");if(0===ii.length)return Promise.resolve();var qt=[];try{qt=ot(ne.querySelectorAll(ii))}catch{}if(!(qt.length>0))return Promise.resolve();nt("pending"),we("complete");var _i=Er.begin("onTree"),yi=qt.reduce(function(Oi,qi){try{var tn=gn(qi);tn&&Oi.push(tn)}catch(dn){ge||"MissingIcon"===dn.name&&console.error(dn)}return Oi},[]);return new Promise(function(Oi,qi){Promise.all(yi).then(function(tn){fr(tn,function(){nt("active"),nt("complete"),we("pending"),"function"==typeof te&&te(),_i(),Oi()})}).catch(function(tn){_i(),qi(tn)})})}function it(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;gn(ne).then(function(De){De&&fr([De],te)})}Re.map(function(ne){qa.add("fa-".concat(ne))}),Object.keys(rt[Ue]).map(qa.add.bind(qa)),Object.keys(rt[Je]).map(qa.add.bind(qa)),qa=k(qa);var kt=function(te){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nt=De.transform,we=void 0===nt?ei:nt,Rt=De.symbol,ii=void 0!==Rt&&Rt,qt=De.mask,_i=void 0===qt?null:qt,yi=De.maskId,Oi=void 0===yi?null:yi,qi=De.title,tn=void 0===qi?null:qi,dn=De.titleId,da=void 0===dn?null:dn,pa=De.classes,Fa=void 0===pa?[]:pa,ha=De.attributes,ua=void 0===ha?{}:ha,Qn=De.styles,ka=void 0===Qn?{}:Qn;if(te){var Sa=te.prefix,kr=te.iconName,Ha=te.icon;return ao(g({type:"icon"},te),function(){return jn("beforeDOMElementCreation",{iconDefinition:te,params:De}),$.autoA11y&&(tn?ua["aria-labelledby"]="".concat($.replacementClass,"-title-").concat(da||pt()):(ua["aria-hidden"]="true",ua.focusable="false")),dr({icons:{main:Da(Ha),mask:_i?Da(_i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Sa,iconName:kr,transform:g(g({},ei),we),symbol:ii,title:tn,maskId:Oi,titleId:da,extra:{attributes:ua,styles:ka,classes:Fa}})})}},Mi={mixout:function(){return{icon:(ne=kt,function(te){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nt=(te||{}).icon?te:Po(te||{}),we=De.mask;return we&&(we=(we||{}).icon?we:Po(we||{})),ne(nt,g(g({},De),{},{mask:we}))})};var ne},hooks:function(){return{mutationObserverCallbacks:function(De){return De.treeCallback=lt,De.nodeCallback=it,De}}},provides:function(te){te.i2svg=function(De){var nt=De.node,Rt=De.callback;return lt(void 0===nt?l:nt,void 0===Rt?function(){}:Rt)},te.generateSvgReplacementMutation=function(De,nt){var we=nt.iconName,Rt=nt.title,ii=nt.titleId,qt=nt.prefix,_i=nt.transform,yi=nt.symbol,Oi=nt.mask,qi=nt.maskId,tn=nt.extra;return new Promise(function(dn,da){Promise.all([Qa(we,qt),Oi.iconName?Qa(Oi.iconName,Oi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(pa){var Fa=L(pa,2);dn([De,dr({icons:{main:Fa[0],mask:Fa[1]},prefix:qt,iconName:we,transform:_i,symbol:yi,maskId:qi,title:Rt,titleId:ii,extra:tn,watchable:!0})])}).catch(da)})},te.generateAbstractIcon=function(De){var yi,nt=De.children,we=De.attributes,Rt=De.main,ii=De.transform,_i=tt(De.styles);return _i.length>0&&(we.style=_i),_t(ii)&&(yi=La("generateAbstractTransformGrouping",{main:Rt,transform:ii,containerWidth:Rt.width,iconWidth:Rt.width})),nt.push(yi||Rt.icon),{children:nt,attributes:we}}}},sn={mixout:function(){return{layer:function(De){var nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},we=nt.classes,Rt=void 0===we?[]:we;return ao({type:"layer"},function(){jn("beforeDOMElementCreation",{assembler:De,params:nt});var ii=[];return De(function(qt){Array.isArray(qt)?qt.map(function(_i){ii=ii.concat(_i.abstract)}):ii=ii.concat(qt.abstract)}),[{tag:"span",attributes:{class:["".concat($.cssPrefix,"-layers")].concat(k(Rt)).join(" ")},children:ii}]})}}}},va={mixout:function(){return{counter:function(De){var nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},we=nt.title,Rt=void 0===we?null:we,ii=nt.classes,qt=void 0===ii?[]:ii,_i=nt.attributes,yi=void 0===_i?{}:_i,Oi=nt.styles,qi=void 0===Oi?{}:Oi;return ao({type:"counter",content:De},function(){return jn("beforeDOMElementCreation",{content:De,params:nt}),function oo(ne){var te=ne.content,De=ne.title,nt=ne.extra,we=g(g(g({},nt.attributes),De?{title:De}:{}),{},{class:nt.classes.join(" ")}),Rt=tt(nt.styles);Rt.length>0&&(we.style=Rt);var ii=[];return ii.push({tag:"span",attributes:we,children:[te]}),De&&ii.push({tag:"span",attributes:{class:"sr-only"},children:[De]}),ii}({content:De.toString(),title:Rt,extra:{attributes:yi,styles:qi,classes:["".concat($.cssPrefix,"-layers-counter")].concat(k(qt))}})})}}}},Ti={mixout:function(){return{text:function(De){var nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},we=nt.transform,Rt=void 0===we?ei:we,ii=nt.title,qt=void 0===ii?null:ii,_i=nt.classes,yi=void 0===_i?[]:_i,Oi=nt.attributes,qi=void 0===Oi?{}:Oi,tn=nt.styles,dn=void 0===tn?{}:tn;return ao({type:"text",content:De},function(){return jn("beforeDOMElementCreation",{content:De,params:nt}),ro({content:De,transform:g(g({},ei),Rt),title:qt,extra:{attributes:qi,styles:dn,classes:["".concat($.cssPrefix,"-layers-text")].concat(k(yi))}})})}}},provides:function(te){te.generateLayersText=function(De,nt){var we=nt.title,Rt=nt.transform,ii=nt.extra,qt=null,_i=null;if(n){var yi=parseInt(getComputedStyle(De).fontSize,10),Oi=De.getBoundingClientRect();qt=Oi.width/yi,_i=Oi.height/yi}return $.autoA11y&&!we&&(ii.attributes["aria-hidden"]="true"),Promise.resolve([De,ro({content:De.innerHTML,width:qt,height:_i,transform:Rt,title:we,extra:ii,watchable:!0})])}}},Dn=new RegExp('"',"ug"),co=[1105920,1112319];function Ka(ne,te){var De="".concat(Fe).concat(te.replace(":","-"));return new Promise(function(nt,we){if(null!==ne.getAttribute(De))return nt();var ii=ot(ne.children).filter(function(Ha){return Ha.getAttribute(fe)===te})[0],qt=u.getComputedStyle(ne,te),_i=qt.getPropertyValue("font-family").match(xt),yi=qt.getPropertyValue("font-weight"),Oi=qt.getPropertyValue("content");if(ii&&!_i)return ne.removeChild(ii),nt();if(_i&&"none"!==Oi&&""!==Oi){var qi=qt.getPropertyValue("content"),tn=~["Sharp"].indexOf(_i[2])?Je:Ue,dn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(_i[2])?Qe[tn][_i[2].toLowerCase()]:Me[tn][yi],da=function Ks(ne){var te=ne.replace(Dn,""),De=function Qi(ne,te){var we,De=ne.length,nt=ne.charCodeAt(te);return nt>=55296&&nt<=56319&&De>te+1&&(we=ne.charCodeAt(te+1))>=56320&&we<=57343?1024*(nt-55296)+we-56320+65536:nt}(te,0),nt=De>=co[0]&&De<=co[1],we=2===te.length&&te[0]===te[1];return{value:nn(we?te[0]:te),isSecondary:nt||we}}(qi),pa=da.value,Fa=da.isSecondary,ha=_i[0].startsWith("FontAwesome"),ua=mi(dn,pa),Qn=ua;if(ha){var ka=function Vi(ne){var te=An[ne],De=mi("fas",ne);return te||(De?{prefix:"fas",iconName:De}:null)||{prefix:null,iconName:null}}(pa);ka.iconName&&ka.prefix&&(ua=ka.iconName,dn=ka.prefix)}if(!ua||Fa||ii&&ii.getAttribute(oe)===dn&&ii.getAttribute(ze)===Qn)nt();else{ne.setAttribute(De,Qn),ii&&ne.removeChild(ii);var Sa=function aa(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ei,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),kr=Sa.extra;kr.attributes[fe]=te,Qa(ua,dn).then(function(Ha){var uo=dr(g(g({},Sa),{},{icons:{main:Ha,mask:Yn()},prefix:dn,iconName:Qn,extra:kr,watchable:!0})),Ur=l.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===te?ne.insertBefore(Ur,ne.firstChild):ne.appendChild(Ur),Ur.outerHTML=uo.map(function(fl){return Wt(fl)}).join("\n"),ne.removeAttribute(De),nt()}).catch(we)}}else nt()})}function ds(ne){return Promise.all([Ka(ne,"::before"),Ka(ne,"::after")])}function Zo(ne){return!(ne.parentNode===document.head||~Ae.indexOf(ne.tagName.toUpperCase())||ne.getAttribute(fe)||ne.parentNode&&"svg"===ne.parentNode.tagName)}function Dr(ne){if(C)return new Promise(function(te,De){var nt=ot(ne.querySelectorAll("*")).filter(Zo).map(ds),we=Er.begin("searchPseudoElements");Ca(),Promise.all(nt).then(function(){we(),zo(),te()}).catch(function(){we(),zo(),De()})})}var Ds=!1,js=function(te){return te.toLowerCase().split(" ").reduce(function(nt,we){var Rt=we.toLowerCase().split("-"),ii=Rt[0],qt=Rt.slice(1).join("-");if(ii&&"h"===qt)return nt.flipX=!0,nt;if(ii&&"v"===qt)return nt.flipY=!0,nt;if(qt=parseFloat(qt),isNaN(qt))return nt;switch(ii){case"grow":nt.size=nt.size+qt;break;case"shrink":nt.size=nt.size-qt;break;case"left":nt.x=nt.x-qt;break;case"right":nt.x=nt.x+qt;break;case"up":nt.y=nt.y-qt;break;case"down":nt.y=nt.y+qt;break;case"rotate":nt.rotate=nt.rotate+qt}return nt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Jn={x:0,y:0,width:"100%",height:"100%"};function Di(ne){return ne.attributes&&(ne.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(ne.attributes.fill="black"),ne}!function Fr(ne,te){var De=te.mixoutsTo;Co=ne,Un={},Object.keys(ia).forEach(function(nt){-1===wo.indexOf(nt)&&delete ia[nt]}),Co.forEach(function(nt){var we=nt.mixout?nt.mixout():{};if(Object.keys(we).forEach(function(ii){"function"==typeof we[ii]&&(De[ii]=we[ii]),"object"===T(we[ii])&&Object.keys(we[ii]).forEach(function(qt){De[ii]||(De[ii]={}),De[ii][qt]=we[ii][qt]})}),nt.hooks){var Rt=nt.hooks();Object.keys(Rt).forEach(function(ii){Un[ii]||(Un[ii]=[]),Un[ii].push(Rt[ii])})}nt.provides&&nt.provides(ia)})}([Hi,Mi,sn,va,Ti,{hooks:function(){return{mutationObserverCallbacks:function(De){return De.pseudoElementsCallback=Dr,De}}},provides:function(te){te.pseudoElements2svg=function(De){var nt=De.node;$.searchPseudoElements&&Dr(void 0===nt?l:nt)}}},{mixout:function(){return{dom:{unwatch:function(){Ca(),Ds=!0}}}},hooks:function(){return{bootstrap:function(){hi(Tr("mutationObserverCallbacks",{}))},noAuto:function(){!function wt(){Ft&&Ft.disconnect()}()},watch:function(De){var nt=De.observeMutationsRoot;Ds?zo():hi(Tr("mutationObserverCallbacks",{observeMutationsRoot:nt}))}}}},{mixout:function(){return{parse:{transform:function(De){return js(De)}}}},hooks:function(){return{parseNodeAttributes:function(De,nt){var we=nt.getAttribute("data-fa-transform");return we&&(De.transform=js(we)),De}}},provides:function(te){te.generateAbstractTransformGrouping=function(De){var nt=De.main,we=De.transform,ii=De.iconWidth,qt={transform:"translate(".concat(De.containerWidth/2," 256)")},_i="translate(".concat(32*we.x,", ").concat(32*we.y,") "),yi="scale(".concat(we.size/16*(we.flipX?-1:1),", ").concat(we.size/16*(we.flipY?-1:1),") "),Oi="rotate(".concat(we.rotate," 0 0)"),dn={outer:qt,inner:{transform:"".concat(_i," ").concat(yi," ").concat(Oi)},path:{transform:"translate(".concat(ii/2*-1," -256)")}};return{tag:"g",attributes:g({},dn.outer),children:[{tag:"g",attributes:g({},dn.inner),children:[{tag:nt.icon.tag,children:nt.icon.children,attributes:g(g({},nt.icon.attributes),dn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(De,nt){var we=nt.getAttribute("data-fa-mask"),Rt=we?Ln(we.split(" ").map(function(ii){return ii.trim()})):Yn();return Rt.prefix||(Rt.prefix=ln()),De.mask=Rt,De.maskId=nt.getAttribute("data-fa-mask-id"),De}}},provides:function(te){te.generateAbstractMask=function(De){var ne,nt=De.children,we=De.attributes,Rt=De.main,ii=De.mask,qt=De.maskId,Oi=Rt.icon,tn=ii.icon,dn=function vt(ne){var te=ne.transform,nt=ne.iconWidth,we={transform:"translate(".concat(ne.containerWidth/2," 256)")},Rt="translate(".concat(32*te.x,", ").concat(32*te.y,") "),ii="scale(".concat(te.size/16*(te.flipX?-1:1),", ").concat(te.size/16*(te.flipY?-1:1),") "),qt="rotate(".concat(te.rotate," 0 0)");return{outer:we,inner:{transform:"".concat(Rt," ").concat(ii," ").concat(qt)},path:{transform:"translate(".concat(nt/2*-1," -256)")}}}({transform:De.transform,containerWidth:ii.width,iconWidth:Rt.width}),da={tag:"rect",attributes:g(g({},Jn),{},{fill:"white"})},pa=Oi.children?{children:Oi.children.map(Di)}:{},Fa={tag:"g",attributes:g({},dn.inner),children:[Di(g({tag:Oi.tag,attributes:g(g({},Oi.attributes),dn.path)},pa))]},ha={tag:"g",attributes:g({},dn.outer),children:[Fa]},ua="mask-".concat(qt||pt()),Qn="clip-".concat(qt||pt()),ka={tag:"mask",attributes:g(g({},Jn),{},{id:ua,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[da,ha]},Sa={tag:"defs",children:[{tag:"clipPath",attributes:{id:Qn},children:(ne=tn,"g"===ne.tag?ne.children:[ne])},ka]};return nt.push(Sa,{tag:"rect",attributes:g({fill:"currentColor","clip-path":"url(#".concat(Qn,")"),mask:"url(#".concat(ua,")")},Jn)}),{children:nt,attributes:we}}}},{provides:function(te){var De=!1;u.matchMedia&&(De=u.matchMedia("(prefers-reduced-motion: reduce)").matches),te.missingIconAbstract=function(){var nt=[],we={fill:"currentColor"},Rt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};nt.push({tag:"path",attributes:g(g({},we),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ii=g(g({},Rt),{},{attributeName:"opacity"}),qt={tag:"circle",attributes:g(g({},we),{},{cx:"256",cy:"364",r:"28"}),children:[]};return De||qt.children.push({tag:"animate",attributes:g(g({},Rt),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:g(g({},ii),{},{values:"1;0;1;1;0;1;"})}),nt.push(qt),nt.push({tag:"path",attributes:g(g({},we),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:De?[]:[{tag:"animate",attributes:g(g({},ii),{},{values:"1;0;0;0;0;1;"})}]}),De||nt.push({tag:"path",attributes:g(g({},we),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:g(g({},ii),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:nt}}}},{hooks:function(){return{parseNodeAttributes:function(De,nt){var we=nt.getAttribute("data-fa-symbol");return De.symbol=null!==we&&(""===we||we),De}}}}],{mixoutsTo:Ma});var ho=Ma.parse,Bo=Ma.icon,qs=m(1481);const Ia=["*"],Ki=ne=>{const te={[`fa-${ne.animation}`]:null!=ne.animation&&!ne.animation.startsWith("spin"),"fa-spin":"spin"===ne.animation||"spin-reverse"===ne.animation,"fa-spin-pulse":"spin-pulse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-spin-reverse":"spin-reverse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-pulse":"spin-pulse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-fw":ne.fixedWidth,"fa-border":ne.border,"fa-inverse":ne.inverse,"fa-layers-counter":ne.counter,"fa-flip-horizontal":"horizontal"===ne.flip||"both"===ne.flip,"fa-flip-vertical":"vertical"===ne.flip||"both"===ne.flip,[`fa-${ne.size}`]:null!==ne.size,[`fa-rotate-${ne.rotate}`]:null!==ne.rotate,[`fa-pull-${ne.pull}`]:null!==ne.pull,[`fa-stack-${ne.stackItemSize}`]:null!=ne.stackItemSize};return Object.keys(te).map(De=>te[De]?De:null).filter(De=>De)};let la=(()=>{class ne{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return ne.\u0275fac=function(De){return new(De||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),fs=(()=>{class ne{constructor(){this.definitions={}}addIcons(...De){for(const nt of De){nt.prefix in this.definitions||(this.definitions[nt.prefix]={}),this.definitions[nt.prefix][nt.iconName]=nt;for(const we of nt.icon[2])"string"==typeof we&&(this.definitions[nt.prefix][we]=nt)}}addIconPacks(...De){for(const nt of De){const we=Object.keys(nt).map(Rt=>nt[Rt]);this.addIcons(...we)}}getIconDefinition(De,nt){return De in this.definitions&&nt in this.definitions[De]?this.definitions[De][nt]:null}}return ne.\u0275fac=function(De){return new(De||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Uc=(()=>{class ne{constructor(){this.stackItemSize="1x"}ngOnChanges(De){if("size"in De)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return ne.\u0275fac=function(De){return new(De||ne)},ne.\u0275dir=t.lG2({type:ne,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),ne})(),gc=(()=>{class ne{constructor(De,nt){this.renderer=De,this.elementRef=nt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(De){"size"in De&&(null!=De.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${De.size.currentValue}`),null!=De.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${De.size.previousValue}`))}}return ne.\u0275fac=function(De){return new(De||ne)(t.Y36(t.Qsj),t.Y36(t.SBq))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Ia,decls:1,vars:0,template:function(De,nt){1&De&&(t.F$t(),t.Hsn(0))},encapsulation:2}),ne})(),On=(()=>{class ne{constructor(De,nt,we,Rt,ii){this.sanitizer=De,this.config=nt,this.iconLibrary=we,this.stackItem=Rt,this.classes=[],null!=ii&&null==Rt&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}set spin(De){this.animation=De?"spin":void 0}set pulse(De){this.animation=De?"spin-pulse":void 0}ngOnChanges(De){if(null!=this.icon||null!=this.config.fallbackIcon){if(De){const we=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=we){const Rt=this.buildParams();this.renderIcon(we,Rt)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(De){const nt=((ne,te)=>(ne=>void 0!==ne.prefix&&void 0!==ne.iconName)(ne)?ne:"string"==typeof ne?{prefix:te,iconName:ne}:{prefix:ne[0],iconName:ne[1]})(De,this.config.defaultPrefix);return"icon"in nt?nt:this.iconLibrary.getIconDefinition(nt.prefix,nt.iconName)??((ne=>{throw new Error(`Could not find icon with iconName=${ne.iconName} and prefix=${ne.prefix} in the icon library.`)})(nt),null)}buildParams(){const De={flip:this.flip,animation:this.animation,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},nt="string"==typeof this.transform?ho.transform(this.transform):this.transform;return{title:this.title,transform:nt,classes:[...Ki(De),...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(De,nt){const we=Bo(De,nt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(we.html.join("\n"))}}return ne.\u0275fac=function(De){return new(De||ne)(t.Y36(qs.H7),t.Y36(la),t.Y36(fs),t.Y36(Uc,8),t.Y36(gc,8))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(De,nt){2&De&&(t.Ikx("innerHTML",nt.renderedIconHTML,t.oJD),t.uIk("title",nt.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[t.TTD],decls:0,vars:0,template:function(De,nt){},encapsulation:2}),ne})(),Be=(()=>{class ne{}return ne.\u0275fac=function(De){return new(De||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})()},2687:(We,q,m)=>{"use strict";m.d(q,{Acd:()=>Eh,Aq:()=>Js,B$L:()=>Jn,BDt:()=>c,CgH:()=>Ap,CvI:()=>b4,DL8:()=>K7,FJU:()=>h_,FVb:()=>Wc,FlN:()=>jm,FpQ:()=>yf,HLz:()=>S_,KOR:()=>nh,Krp:()=>o2,Mdf:()=>t4,N2j:()=>oi,NBC:()=>$_,NMJ:()=>N7,OS1:()=>x3,Psp:()=>cr,Pyt:()=>d_,SJh:()=>Wo,Sbq:()=>at,SoD:()=>Da,Ssp:()=>rv,SuH:()=>q4,TmZ:()=>K_,USL:()=>h7,Vei:()=>P1,Vfw:()=>m6,X5K:()=>ch,XsY:()=>qi,ZhI:()=>h1,aj4:()=>io,am0:()=>na,b7W:()=>h8,byT:()=>tn,co4:()=>F6,d63:()=>Xd,dLy:()=>P_,dT$:()=>f3,eHv:()=>nv,gNZ:()=>Ei,hkK:()=>li,hnx:()=>gv,iOm:()=>gn,kXW:()=>tg,kZ_:()=>j_,koM:()=>S1,mh3:()=>rm,nNP:()=>n5,pZi:()=>An,q7m:()=>P8,qO$:()=>w7,r8p:()=>l5,sqG:()=>zm,vqe:()=>R7,wn1:()=>D_,wyP:()=>A1,xf3:()=>ic,yOe:()=>Hd});var at={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},li={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},An={prefix:"fas",iconName:"person-arrow-up-from-line",icon:[640,512,[],"e539","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352V352h16v96H184zm-64 0H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H152h80H608c17.7 0 32-14.3 32-32s-14.3-32-32-32H264V256.9l28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6H177.1c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9V448zM598.6 121.4l-80-80c-12.5-12.5-32.8-12.5-45.3 0l-80 80c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L464 141.3 464 384c0 17.7 14.3 32 32 32s32-14.3 32-32V141.3l25.4 25.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},oi={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},Da={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M469.3 19.3l23.4 23.4c25 25 25 65.5 0 90.5l-56.4 56.4L322.3 75.7l56.4-56.4c25-25 65.5-25 90.5 0zM44.9 353.2L299.7 98.3 413.7 212.3 158.8 467.1c-6.7 6.7-15.1 11.6-24.2 14.2l-104 29.7c-8.4 2.4-17.4 .1-23.6-6.1s-8.5-15.2-6.1-23.6l29.7-104c2.6-9.2 7.5-17.5 14.2-24.2zM249.4 103.4L103.4 249.4 16 161.9c-18.7-18.7-18.7-49.1 0-67.9L94.1 16c18.7-18.7 49.1-18.7 67.9 0l19.8 19.8c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1l45.1 45.1zM408.6 262.6l45.1 45.1c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1L496 350.1c18.7 18.7 18.7 49.1 0 67.9L417.9 496c-18.7 18.7-49.1 18.7-67.9 0l-87.4-87.4L408.6 262.6z"]},gn={prefix:"fas",iconName:"people-group",icon:[640,512,[],"e533","M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3V245.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 90.5V416c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V389.2C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112h32c24 0 46.2 7.5 64.4 20.3zM448 416V394.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176h32c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2V416c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7v84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3V261.7c-10 11.3-16 26.1-16 42.3zm144-42.3v84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2V448c0 17.7-14.3 32-32 32H288c-17.7 0-32-14.3-32-32V405.2c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112h32c61.9 0 112 50.1 112 112z"]},Wo={prefix:"fas",iconName:"arrow-right-from-bracket",icon:[512,512,["sign-out"],"f08b","M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 192 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128zM160 96c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 32C43 32 0 75 0 128L0 384c0 53 43 96 96 96l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l64 0z"]},Jn={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64c-44.2 0-80 35.8-80 80v48H384c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80V144C80 64.5 144.5 0 224 0c57.5 0 107 33.7 130.1 82.3c7.6 16 .8 35.1-15.2 42.6s-35.1 .8-42.6-15.2C283.4 82.6 255.9 64 224 64zm32 320c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-17.7 0-32 14.3-32 32s14.3 32 32 32h64z"]},qi={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H208c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},tn={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},Wc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},Js={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},Eh={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"]},io={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M0 112.5V422.3c0 18 10.1 35 27 41.3c87 32.5 174 10.3 261-11.9c79.8-20.3 159.6-40.7 239.3-18.9c23 6.3 48.7-9.5 48.7-33.4V89.7c0-18-10.1-35-27-41.3C462 15.9 375 38.1 288 60.3C208.2 80.6 128.4 100.9 48.7 79.1C25.6 72.8 0 88.6 0 112.5zM288 352c-44.2 0-80-43-80-96s35.8-96 80-96s80 43 80 96s-35.8 96-80 96zM64 352c35.3 0 64 28.7 64 64H64V352zm64-208c0 35.3-28.7 64-64 64V144h64zM512 304v64H448c0-35.3 28.7-64 64-64zM448 96h64v64c-35.3 0-64-28.7-64-64z"]},h1={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},ic={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},S1={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},A1={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208c-8.8 0-16 7.2-16 16V96H128V80c0-44.2 35.8-80 80-80H432c44.2 0 80 35.8 80 80V304c0 44.2-35.8 80-80 80H416V320h16c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192zm64 32c0 17.7 14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H96c-17.7 0-32 14.3-32 32z"]},Hd={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8V128h-.7l-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48V352h28.2l91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM16 128c-8.8 0-16 7.2-16 16V352c0 17.7 14.3 32 32 32H64c17.7 0 32-14.3 32-32V128H16zM48 320a16 16 0 1 1 0 32 16 16 0 1 1 0-32zM544 128V352c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V144c0-8.8-7.2-16-16-16H544zm32 208a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"]},P1={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},Xd={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M297.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L338.7 160H128c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C0 153.3 57.3 96 128 96H338.7L297.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416H96c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H242.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},o2={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},cr={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},f3={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},x3={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},nh={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320H48c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48s-21.5 48-48 48H48c-26.5 0-48-21.5-48-48z"]},q4={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},Ap={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},ch={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},rm={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3v87.8c18.8-10.9 40.7-17.1 64-17.1h96c35.3 0 64-28.7 64-64v-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3V160c0 70.7-57.3 128-128 128H176c-35.3 0-64 28.7-64 64v6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V352 153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},yf={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155c-3.8 4.4-9.4 6.1-14.5 5H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c53 0 96 43 96 96s-43 96-96 96H139.6c8.7-9.9 19.3-22.6 30-36.8c6.3-8.4 12.8-17.6 19-27.2H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-53 0-96-43-96-96s43-96 96-96h39.8c-21-31.5-39.8-67.7-39.8-96c0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8C59.8 473 0 402.5 0 352c0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9c-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},t4={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},Ei={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5a48.1 48.1 0 1 0 -96.1 0 48.1 48.1 0 1 0 96.1 0z"]},na={prefix:"fas",iconName:"person-circle-xmark",icon:[576,512,[],"e543","M112 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm40 304V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V256.9L59.4 304.5c-9.1 15.1-28.8 20-43.9 10.9s-20-28.8-10.9-43.9l58.3-97c17.4-28.9 48.6-46.6 82.3-46.6h29.7c33.7 0 64.9 17.7 82.3 46.6l44.9 74.7c-16.1 17.6-28.6 38.5-36.6 61.5c-1.9-1.8-3.5-3.9-4.9-6.3L232 256.9V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V352H152zM432 224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zm59.3 107.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L432 345.4l-36.7-36.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L409.4 368l-36.7 36.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L432 390.6l36.7 36.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L454.6 368l36.7-36.7z"]},m6={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},zm={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},jm={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32V224v64V448c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V384H64c-17.7 0-32-14.3-32-32V288c-17.7 0-32-14.3-32-32s14.3-32 32-32V160c0-17.7 14.3-32 32-32H96V64zm448 0v64h32c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32s-14.3 32-32 32v64c0 17.7-14.3 32-32 32H544v64c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},b4={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM176 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0zm76-48c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},F6=b4,h8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},tg={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"]},P8={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},c={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},d_={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM384 384a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 192A64 64 0 1 1 64 64a64 64 0 1 1 0 128z"]},h_={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},S_={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},n5={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},D_={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},P_={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.3-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8V488c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488V24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96zM80 352c0 8.8 7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96z"]},K_={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},j_={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},l5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},$_={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},h7={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128A64 64 0 1 0 0 128a64 64 0 1 0 128 0zM384 384a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},w7={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"]},R7={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z"]},N7={prefix:"fas",iconName:"person-arrow-down-to-line",icon:[640,512,[],"e538","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352V352h16v96H184zm-64 0H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H152h80H608c17.7 0 32-14.3 32-32s-14.3-32-32-32H264V256.9l28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6H177.1c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9V448zM464 64V306.7l-25.4-25.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l80-80c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L528 306.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32z"]},K7={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288H584.4L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320H199.3L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},nv={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},rv={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},gv={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM352 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},493:(We,q,m)=>{"use strict";m.d(q,{eX:()=>F,sQ:()=>$e,GW:()=>i,l4:()=>G});var t=m(6451),e=m(9751),g=m(7579),T=m(8502),s=m(515),x=m(9646),h=m(2843),N=m(576);class M{constructor(Ht,Ct,Nt){this.kind=Ht,this.value=Ct,this.error=Nt,this.hasValue="N"===Ht}observe(Ht){return w(this,Ht)}do(Ht,Ct,Nt){const{kind:Bt,value:Ne,error:$}=this;return"N"===Bt?Ht?.(Ne):"E"===Bt?Ct?.($):Nt?.()}accept(Ht,Ct,Nt){var Bt;return(0,N.m)(null===(Bt=Ht)||void 0===Bt?void 0:Bt.next)?this.observe(Ht):this.do(Ht,Ct,Nt)}toObservable(){const{kind:Ht,value:Ct,error:Nt}=this,Bt="N"===Ht?(0,x.of)(Ct):"E"===Ht?(0,h._)(()=>Nt):"C"===Ht?s.E:0;if(!Bt)throw new TypeError(`Unexpected notification kind ${Ht}`);return Bt}static createNext(Ht){return new M("N",Ht)}static createError(Ht){return new M("E",void 0,Ht)}static createComplete(){return M.completeNotification}}function w(je,Ht){var Ct,Nt,Bt;const{kind:Ne,value:$,error:ue}=je;if("string"!=typeof Ne)throw new TypeError('Invalid notification, missing "kind"');"N"===Ne?null===(Ct=Ht.next)||void 0===Ct||Ct.call(Ht,$):"E"===Ne?null===(Nt=Ht.error)||void 0===Nt||Nt.call(Ht,ue):null===(Bt=Ht.complete)||void 0===Bt||Bt.call(Ht)}M.completeNotification=new M("C");var L=m(4482),k=m(5403),B=m(4004),W=m(262),Y=m(9300),Q=m(8421);function X(je,Ht,Ct,Nt){return(0,L.e)((Bt,Ne)=>{let $;Ht&&"function"!=typeof Ht?({duration:Ct,element:$,connector:Nt}=Ht):$=Ht;const ue=new Map,Ie=ot=>{ue.forEach(ot),ot(Ne)},Xe=ot=>Ie(ft=>ft.error(ot));let ei=0,zt=!1;const ni=new k.Q(Ne,ot=>{try{const ft=je(ot);let St=ue.get(ft);if(!St){ue.set(ft,St=Nt?Nt():new g.x);const gt=function pt(ot,ft){const St=new e.y(gt=>{ei++;const tt=ft.subscribe(gt);return()=>{tt.unsubscribe(),0==--ei&&zt&&ni.unsubscribe()}});return St.key=ot,St}(ft,St);if(Ne.next(gt),Ct){const tt=(0,k.x)(St,()=>{St.complete(),tt?.unsubscribe()},void 0,void 0,()=>ue.delete(ft));ni.add((0,Q.Xf)(Ct(gt)).subscribe(tt))}}St.next($?$(ot):ot)}catch(ft){Xe(ft)}},()=>Ie(ot=>ot.complete()),Xe,()=>ue.clear(),()=>(zt=!0,0===ei));Bt.subscribe(ni)})}var ee=m(5577);function me(je,Ht){return Ht?Ct=>Ct.pipe(me((Nt,Bt)=>(0,Q.Xf)(je(Nt,Bt)).pipe((0,B.U)((Ne,$)=>Ht(Nt,Ne,Bt,$))))):(0,L.e)((Ct,Nt)=>{let Bt=0,Ne=null,$=!1;Ct.subscribe((0,k.x)(Nt,ue=>{Ne||(Ne=(0,k.x)(Nt,void 0,()=>{Ne=null,$&&Nt.complete()}),(0,Q.Xf)(je(ue,Bt++)).subscribe(Ne))},()=>{$=!0,!Ne&&Nt.complete()}))})}var ie=m(5698),se=m(4650),ce=m(9653);const Te={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},S="__@ngrx/effects_create__";function i(je,Ht={}){const Ct=Ht.functional?je:je(),Nt={...Te,...Ht};return Object.defineProperty(Ct,S,{value:Nt}),Ct}function _(je){return Object.getPrototypeOf(je)}function R(je){return"function"==typeof je}function C(je){return je.filter(R)}function n(je,Ht,Ct){const Nt=_(je).constructor.name,Bt=function l(je){return function a(je){return Object.getOwnPropertyNames(je).filter(Nt=>!(!je[Nt]||!je[Nt].hasOwnProperty(S))&&je[Nt][S].hasOwnProperty("dispatch")).map(Nt=>({propertyName:Nt,...je[Nt][S]}))}(je)}(je).map(({propertyName:Ne,dispatch:$,useEffectsErrorHandler:ue})=>{const Ie="function"==typeof je[Ne]?je[Ne]():je[Ne],Xe=ue?Ct(Ie,Ht):Ie;return!1===$?Xe.pipe((0,T.l)()):Xe.pipe(function V(){return(0,L.e)((je,Ht)=>{je.subscribe((0,k.x)(Ht,Ct=>{Ht.next(M.createNext(Ct))},()=>{Ht.next(M.createComplete()),Ht.complete()},Ct=>{Ht.next(M.createError(Ct)),Ht.complete()}))})}()).pipe((0,B.U)(zt=>({effect:je[Ne],notification:zt,propertyName:Ne,sourceName:Nt,sourceInstance:je})))});return(0,t.T)(...Bt)}const v=10;function K(je,Ht,Ct=v){return je.pipe((0,W.K)(Nt=>(Ht&&Ht.handleError(Nt),Ct<=1?je:K(je,Ht,Ct-1))))}let F=(()=>{class je extends e.y{constructor(Ct){super(),Ct&&(this.source=Ct)}lift(Ct){const Nt=new je;return Nt.source=this,Nt.operator=Ct,Nt}}return je.\u0275fac=function(Ct){return new(Ct||je)(se.LFG(ce.Y$))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})();function G(...je){return(0,Y.h)(Ht=>je.some(Ct=>"string"==typeof Ct?Ct===Ht.type:Ct.type===Ht.type))}const ye=new se.OlP("@ngrx/effects Internal Root Guard"),Ee=new se.OlP("@ngrx/effects User Provided Effects"),pe=new se.OlP("@ngrx/effects Internal Root Effects"),qe=new se.OlP("@ngrx/effects Internal Root Effects Instances"),Ce=new se.OlP("@ngrx/effects Internal Feature Effects"),Se=new se.OlP("@ngrx/effects Internal Feature Effects Instance Groups"),fe=new se.OlP("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>K}),Fe="@ngrx/effects/init";(0,ce.PH)(Fe);const ge="ngrxOnIdentifyEffects",le="ngrxOnInitEffects";function rt(je){return Qe(je,le)}function Qe(je,Ht){return je&&Ht in je&&"function"==typeof je[Ht]}let ct=(()=>{class je extends g.x{constructor(Ct,Nt){super(),this.errorHandler=Ct,this.effectsErrorHandler=Nt}addEffects(Ct){this.next(Ct)}toActions(){return this.pipe(X(Ct=>function O(je){return"Object"!==je.constructor.name&&"Function"!==je.constructor.name}(Ct)?_(Ct):Ct),(0,ee.z)(Ct=>Ct.pipe(X(Gt))),(0,ee.z)(Ct=>{const Nt=Ct.pipe(me(Ne=>function ut(je,Ht){return Ct=>{const Nt=n(Ct,je,Ht);return function Re(je){return Qe(je,"ngrxOnRunEffects")}(Ct)?Ct.ngrxOnRunEffects(Nt):Nt}}(this.errorHandler,this.effectsErrorHandler)(Ne)),(0,B.U)(Ne=>(function ze(je,Ht){if("N"===je.notification.kind){const Ct=je.notification.value;!function Oe(je){return"function"!=typeof je&&je&&je.type&&"string"==typeof je.type}(Ct)&&Ht.handleError(new Error(`Effect ${function he({propertyName:je,sourceInstance:Ht,sourceName:Ct}){const Nt="function"==typeof Ht[je];return`"${Ct}.${String(je)}${Nt?"()":""}"`}(je)} dispatched an invalid action: ${function Ae(je){try{return JSON.stringify(je)}catch{return je}}(Ct)}`))}}(Ne,this.errorHandler),Ne.notification)),(0,Y.h)(Ne=>"N"===Ne.kind&&null!=Ne.value),function re(){return(0,L.e)((je,Ht)=>{je.subscribe((0,k.x)(Ht,Ct=>w(Ct,Ht)))})}()),Bt=Ct.pipe((0,ie.q)(1),(0,Y.h)(rt),(0,B.U)(Ne=>Ne.ngrxOnInitEffects()));return(0,t.T)(Nt,Bt)}))}}return je.\u0275fac=function(Ct){return new(Ct||je)(se.LFG(se.qLn),se.LFG(fe))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})();function Gt(je){return function Ue(je){return Qe(je,ge)}(je)?je.ngrxOnIdentifyEffects():""}let Ze=(()=>{class je{constructor(Ct,Nt){this.effectSources=Ct,this.store=Nt,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return je.\u0275fac=function(Ct){return new(Ct||je)(se.LFG(ct),se.LFG(ce.yh))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),xt=(()=>{class je{constructor(Ct,Nt,Bt,Ne,$,ue,Ie){this.sources=Ct,Nt.start();for(const Xe of Ne)Ct.addEffects(Xe);Bt.dispatch({type:Fe})}addEffects(Ct){this.sources.addEffects(Ct)}}return je.\u0275fac=function(Ct){return new(Ct||je)(se.LFG(ct),se.LFG(Ze),se.LFG(ce.yh),se.LFG(qe),se.LFG(ce.cr,8),se.LFG(ce.CK,8),se.LFG(ye,8))},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})(),Me=(()=>{class je{constructor(Ct,Nt,Bt,Ne){const $=Nt.flat();for(const ue of $)Ct.addEffects(ue)}}return je.\u0275fac=function(Ct){return new(Ct||je)(se.LFG(xt),se.LFG(Se),se.LFG(ce.cr,8),se.LFG(ce.CK,8))},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})(),$e=(()=>{class je{static forFeature(...Ct){const Nt=Ct.flat(),Bt=C(Nt);return{ngModule:Me,providers:[Bt,{provide:Ce,multi:!0,useValue:Nt},{provide:Ee,multi:!0,useValue:[]},{provide:Se,multi:!0,useFactory:Pe,deps:[Ce,Ee]}]}}static forRoot(...Ct){const Nt=Ct.flat(),Bt=C(Nt);return{ngModule:xt,providers:[Bt,{provide:pe,useValue:[Nt]},{provide:ye,useFactory:J},{provide:Ee,multi:!0,useValue:[]},{provide:qe,useFactory:Pe,deps:[pe,Ee]}]}}}return je.\u0275fac=function(Ct){return new(Ct||je)},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})();function Pe(je,Ht){const Ct=[];for(const Nt of je)Ct.push(...Nt);for(const Nt of Ht)Ct.push(...Nt);return Ct.map(Nt=>R(Nt)?(0,se.f3M)(Nt):Nt)}function J(){const je=(0,se.f3M)(Ze,{optional:!0,skipSelf:!0}),Ht=(0,se.f3M)(pe,{self:!0});if((1!==Ht.length||0!==Ht[0].length)&&je)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},825:(__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__(4650),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9653),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9751),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);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,typeof q.type>"u")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,t=!0){this.start=q,this.end=m,this.active=t,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}}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(We){const q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof We?We():We,g=Object.assign({},q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||q.features},m);if(g.maxAge&&g.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${g.maxAge}`);return g}function difference(We,q){return We.filter(m=>q.indexOf(m)<0)}function unliftState(We){const{computedStates:q,currentStateIndex:m}=We;if(m>=q.length){const{state:e}=q[q.length-1];return e}const{state:t}=q[m];return t}function unliftAction(We){return We.actionsById[We.nextActionId-1]}function liftAction(We){return new PerformAction(We,+Date.now())}function sanitizeActions(We,q){return Object.keys(q).reduce((m,t)=>{const e=Number(t);return m[e]=sanitizeAction(We,q[e],e),m},{})}function sanitizeAction(We,q,m){return{...q,action:We(q.action,m)}}function sanitizeStates(We,q){return q.map((m,t)=>({state:sanitizeState(We,m.state,t),error:m.error}))}function sanitizeState(We,q,m){return We(q,m)}function shouldFilterActions(We){return We.predicate||We.actionsSafelist||We.actionsBlocklist}function filterLiftedState(We,q,m,t){const e=[],g={},T=[];return We.stagedActionIds.forEach((s,x)=>{const h=We.actionsById[s];h&&(x&&isActionFiltered(We.computedStates[x],h,q,m,t)||(g[s]=h,e.push(s),T.push(We.computedStates[x])))}),{...We,stagedActionIds:e,actionsById:g,computedStates:T}}function isActionFiltered(We,q,m,t,e){const g=m&&!m(We,q.action),T=t&&!q.action.type.match(t.map(x=>escapeRegExp(x)).join("|")),s=e&&q.action.type.match(e.map(x=>escapeRegExp(x)).join("|"));return g||T||s}function escapeRegExp(We){return We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let DevtoolsDispatcher=(()=>{class We extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return We.\u0275fac=function(){let q;return function(t){return(q||(q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(We)))(t||We)}}(),We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:We,factory:We.\u0275fac}),We})();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(We,q,m){this.config=q,this.dispatcher=m,this.devtoolsExtension=We,this.createActionStreams()}notify(We,q){if(this.devtoolsExtension)if(We.type===PERFORM_ACTION){if(q.isLocked||q.isPaused)return;const m=unliftState(q);if(shouldFilterActions(this.config)&&isActionFiltered(m,We,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,q.currentStateIndex):m,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,We,q.nextActionId):We;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const m={...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(We=>{const q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=q,q.init(),q.subscribe(m=>We.next(m)),q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const We=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),q=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),m=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),t=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(s=>s.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(x=>x.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)(()=>s),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s))),g=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),T=t.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)(()=>g)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>T))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(We){const q={name:We.name,features:We.features,serialize:We.serialize,autoPause:We.autoPause??!1,trace:We.trace??!1,traceLimit:We.traceLimit??75};return!1!==We.maxAge&&(q.maxAge=We.maxAge),q}sendToReduxDevtools(We){try{We()}catch(q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",q)}}}return DevtoolsExtension.\u0275fac=function We(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})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(We,q,m,t,e){if(t)return{state:m,error:"Interrupted by an error up the chain"};let T,g=m;try{g=We(m,q)}catch(s){T=s.toString(),e.handleError(s)}return{state:g,error:T}}function recomputeStates(We,q,m,t,e,g,T,s,x){if(q>=We.length&&We.length===g.length)return We;const h=We.slice(0,q),N=g.length-(x?1:0);for(let d=q;d<N;d++){const M=g[d],w=e[M].action,L=h[d-1],k=L?L.state:t,V=L?L.error:void 0,W=T.indexOf(M)>-1?L:computeNextEntry(m,w,k,V,s);h.push(W)}return x&&h.push(We[We.length-1]),h}function liftInitialState(We,q){return{monitorState:q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:We,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(We,q,m,t,e={}){return g=>(T,s)=>{let{monitorState:x,actionsById:h,nextActionId:N,stagedActionIds:d,skippedActionIds:M,committedState:w,currentStateIndex:L,computedStates:k,isLocked:V,isPaused:B}=T||q;function W(X){let ee=X,me=d.slice(1,ee+1);for(let re=0;re<me.length;re++){if(k[re+1].error){ee=re,me=d.slice(1,ee+1);break}delete h[me[re]]}M=M.filter(re=>-1===me.indexOf(re)),d=[0,...d.slice(ee+1)],w=k[ee].state,k=k.slice(ee),L=L>ee?L-ee:0}function Y(){h={0:liftAction(INIT_ACTION)},N=1,d=[0],M=[],w=k[L].state,L=0,k=[]}T||(h=Object.create(h));let Q=0;switch(s.type){case LOCK_CHANGES:V=s.status,Q=1/0;break;case PAUSE_RECORDING:B=s.status,B?(d=[...d,N],h[N]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),N++,Q=d.length-1,k=k.concat(k[k.length-1]),L===d.length-2&&L++,Q=1/0):Y();break;case RESET:h={0:liftAction(INIT_ACTION)},N=1,d=[0],M=[],w=We,L=0,k=[];break;case COMMIT:Y();break;case ROLLBACK:h={0:liftAction(INIT_ACTION)},N=1,d=[0],M=[],L=0,k=[];break;case TOGGLE_ACTION:{const{id:X}=s;M=-1===M.indexOf(X)?[X,...M]:M.filter(me=>me!==X),Q=d.indexOf(X);break}case SET_ACTIONS_ACTIVE:{const{start:X,end:ee,active:me}=s,re=[];for(let ie=X;ie<ee;ie++)re.push(ie);M=me?difference(M,re):[...M,...re],Q=d.indexOf(X);break}case JUMP_TO_STATE:L=s.index,Q=1/0;break;case JUMP_TO_ACTION:{const X=d.indexOf(s.actionId);-1!==X&&(L=X),Q=1/0;break}case SWEEP:d=difference(d,M),M=[],L=Math.min(L,d.length-1);break;case PERFORM_ACTION:{if(V)return T||q;if(B||T&&isActionFiltered(T.computedStates[L],s,e.predicate,e.actionsSafelist,e.actionsBlocklist)){const ee=k[k.length-1];k=[...k.slice(0,-1),computeNextEntry(g,s.action,ee.state,ee.error,m)],Q=1/0;break}e.maxAge&&d.length===e.maxAge&&W(1),L===d.length-1&&L++;const X=N++;h[X]=s,d=[...d,X],Q=d.length-1;break}case IMPORT_STATE:({monitorState:x,actionsById:h,nextActionId:N,stagedActionIds:d,skippedActionIds:M,committedState:w,currentStateIndex:L,computedStates:k,isLocked:V,isPaused:B}=s.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:Q=0,e.maxAge&&d.length>e.maxAge&&(k=recomputeStates(k,Q,g,w,h,d,M,m,B),W(d.length-e.maxAge),Q=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(k.filter(ee=>ee.error).length>0)Q=0,e.maxAge&&d.length>e.maxAge&&(k=recomputeStates(k,Q,g,w,h,d,M,m,B),W(d.length-e.maxAge),Q=1/0);else{if(!B&&!V){L===d.length-1&&L++;const ee=N++;h[ee]=new PerformAction(s,+Date.now()),d=[...d,ee],Q=d.length-1,k=recomputeStates(k,Q,g,w,h,d,M,m,B)}k=k.map(ee=>({...ee,state:g(ee.state,RECOMPUTE_ACTION)})),L=d.length-1,e.maxAge&&d.length>e.maxAge&&W(d.length-e.maxAge),Q=1/0}break;default:Q=1/0}return k=recomputeStates(k,Q,g,w,h,d,M,m,B),x=t(x,s),{monitorState:x,actionsById:h,nextActionId:N,stagedActionIds:d,skippedActionIds:M,committedState:w,currentStateIndex:L,computedStates:k,isLocked:V,isPaused:B}}}let StoreDevtools=(()=>{class We{constructor(m,t,e,g,T,s,x,h){const N=liftInitialState(x,h.monitor),d=liftReducerWith(x,N,s,h.monitor,h),M=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),g.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,g.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),w=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(d)),L=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),k=M.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(w),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:Y},[Q,X])=>{let ee=X(Y,Q);return Q.type!==PERFORM_ACTION&&shouldFilterActions(h)&&(ee=filterLiftedState(ee,h.predicate,h.actionsSafelist,h.actionsBlocklist)),g.notify(Q,ee),{state:ee,action:Q}},{state:N,action:null})).subscribe(({state:Y,action:Q})=>{L.next(Y),Q.type===PERFORM_ACTION&&T.next(Q.action)}),V=g.start$.subscribe(()=>{this.refresh()}),B=L.asObservable(),W=B.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=V,this.stateSubscription=k,this.dispatcher=m,this.liftedState=B,this.state=W}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 We.\u0275fac=function(m){return new(m||We)(_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))},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:We,factory:We.\u0275fac}),We})();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(We,q){return Boolean(We)||q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const We="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[We]<"u"?window[We]:null}function provideStoreDevtools(We={}){return(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.MR2)([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:We},{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}])}function createStateObservable(We){return We.state}let StoreDevtoolsModule=(()=>{class We{static instrument(m={}){return{ngModule:We,providers:[provideStoreDevtools(m)]}}}return We.\u0275fac=function(m){return new(m||We)},We.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:We}),We.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),We})()},9653:(We,q,m)=>{"use strict";m.d(q,{UO:()=>se,qg:()=>ie,Y6:()=>i,mK:()=>Ue,n$:()=>ge,Y$:()=>rt,FR:()=>ct,yh:()=>xt,CK:()=>oa,Aw:()=>Aa,cr:()=>An,wb:()=>Je,PH:()=>V,ZF:()=>tt,Lq:()=>nr,P1:()=>ft,on:()=>ta,Ky:()=>B});var t=m(4650),e=m(1135),g=m(9751),T=m(7579),s=m(233),x=m(5363),h=m(1365),N=m(5026),d=m(4004),w=m(1884);const L={};function V($t,mi){if(L[$t]=(L[$t]||0)+1,"function"==typeof mi)return Y($t,(...oi)=>({...mi(...oi),type:$t}));switch(mi?mi._as:"empty"){case"empty":return Y($t,()=>({type:$t}));case"props":return Y($t,oi=>({...oi,type:$t}));default:throw new Error("Unexpected config.")}}function B(){return{_as:"props",_p:void 0}}function Y($t,mi){return Object.defineProperty(mi,"type",{value:$t,writable:!1})}const ie="@ngrx/store/init";let se=(()=>{class $t extends e.X{constructor(){super({type:ie})}next(jt){if("function"==typeof jt)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(typeof jt>"u")throw new TypeError("Actions must be objects");if(typeof jt.type>"u")throw new TypeError("Actions must have a type property");super.next(jt)}complete(){}ngOnDestroy(){super.complete()}}return $t.\u0275fac=function(jt){return new(jt||$t)},$t.\u0275prov=t.Yz7({token:$t,factory:$t.\u0275fac}),$t})();const ce=[se],Te=new t.OlP("@ngrx/store Internal Root Guard"),S=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),a=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),l=new t.OlP("@ngrx/store Initial Reducers"),_=new t.OlP("@ngrx/store Internal Initial Reducers"),O=new t.OlP("@ngrx/store Store Features"),R=new t.OlP("@ngrx/store Internal Store Reducers"),C=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),v=new t.OlP("@ngrx/store Internal Store Features"),K=new t.OlP("@ngrx/store Internal Feature Reducers Token"),F=new t.OlP("@ngrx/store Feature Reducers"),G=new t.OlP("@ngrx/store User Provided Meta Reducers"),ye=new t.OlP("@ngrx/store Meta Reducers"),Ee=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),pe=new t.OlP("@ngrx/store User Runtime Checks Config"),qe=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),Ce=new t.OlP("@ngrx/store Internal Runtime Checks"),Se=new t.OlP("@ngrx/store Check if Action types are unique");function oe($t,mi={}){const jt=Object.keys($t),oi={};for(let Vi=0;Vi<jt.length;Vi++){const ln=jt[Vi];"function"==typeof $t[ln]&&(oi[ln]=$t[ln])}const wi=Object.keys(oi);return function(ln,Yn){ln=void 0===ln?mi:ln;let Bn=!1;const _a={};for(let Ln=0;Ln<wi.length;Ln++){const Gn=wi[Ln],Un=ln[Gn],ia=(0,oi[Gn])(Un,Yn);_a[Gn]=ia,Bn=Bn||ia!==Un}return Bn?_a:ln}}function Oe(...$t){return function(mi){if(0===$t.length)return mi;const jt=$t[$t.length-1];return $t.slice(0,-1).reduceRight((wi,Vi)=>Vi(wi),jt(mi))}}function he($t,mi){return Array.isArray(mi)&&mi.length>0&&($t=Oe.apply(null,[...mi,$t])),(jt,oi)=>{const wi=$t(jt);return(Vi,ln)=>wi(Vi=void 0===Vi?oi:Vi,ln)}}new t.OlP("@ngrx/store Root Store Provider"),new t.OlP("@ngrx/store Feature State Provider");class ge extends g.y{}class Ue extends se{}const Je="@ngrx/store/update-reducers";let Re=(()=>{class $t extends e.X{constructor(jt,oi,wi,Vi){super(Vi(wi,oi)),this.dispatcher=jt,this.initialState=oi,this.reducers=wi,this.reducerFactory=Vi}get currentReducers(){return this.reducers}addFeature(jt){this.addFeatures([jt])}addFeatures(jt){const oi=jt.reduce((wi,{reducers:Vi,reducerFactory:ln,metaReducers:Yn,initialState:Bn,key:_a})=>{const Ln="function"==typeof Vi?function Ae($t){const mi=Array.isArray($t)&&$t.length>0?Oe(...$t):jt=>jt;return(jt,oi)=>(jt=mi(jt),(wi,Vi)=>jt(wi=void 0===wi?oi:wi,Vi))}(Yn)(Vi,Bn):he(ln,Yn)(Vi,Bn);return wi[_a]=Ln,wi},{});this.addReducers(oi)}removeFeature(jt){this.removeFeatures([jt])}removeFeatures(jt){this.removeReducers(jt.map(oi=>oi.key))}addReducer(jt,oi){this.addReducers({[jt]:oi})}addReducers(jt){this.reducers={...this.reducers,...jt},this.updateReducers(Object.keys(jt))}removeReducer(jt){this.removeReducers([jt])}removeReducers(jt){jt.forEach(oi=>{this.reducers=function ze($t,mi){return Object.keys($t).filter(jt=>jt!==mi).reduce((jt,oi)=>Object.assign(jt,{[oi]:$t[oi]}),{})}(this.reducers,oi)}),this.updateReducers(jt)}updateReducers(jt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Je,features:jt})}ngOnDestroy(){this.complete()}}return $t.\u0275fac=function(jt){return new(jt||$t)(t.LFG(Ue),t.LFG(i),t.LFG(l),t.LFG(a))},$t.\u0275prov=t.Yz7({token:$t,factory:$t.\u0275fac}),$t})();const le=[Re,{provide:ge,useExisting:Re},{provide:Ue,useExisting:se}];let rt=(()=>{class $t extends T.x{ngOnDestroy(){this.complete()}}return $t.\u0275fac=function(){let mi;return function(oi){return(mi||(mi=t.n5z($t)))(oi||$t)}}(),$t.\u0275prov=t.Yz7({token:$t,factory:$t.\u0275fac}),$t})();const Qe=[rt];class ct extends g.y{}let Gt=(()=>{class $t extends e.X{constructor(jt,oi,wi,Vi){super(Vi);const _a=jt.pipe((0,x.Q)(s.N)).pipe((0,h.M)(oi)).pipe((0,N.R)(ut,{state:Vi}));this.stateSubscription=_a.subscribe(({state:Ln,action:Gn})=>{this.next(Ln),wi.next(Gn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return $t.INIT=ie,$t.\u0275fac=function(jt){return new(jt||$t)(t.LFG(se),t.LFG(ge),t.LFG(rt),t.LFG(i))},$t.\u0275prov=t.Yz7({token:$t,factory:$t.\u0275fac}),$t})();function ut($t={state:void 0},[mi,jt]){const{state:oi}=$t;return{state:jt(oi,mi),action:mi}}const Ze=[Gt,{provide:ct,useExisting:Gt}];let xt=(()=>{class $t extends g.y{constructor(jt,oi,wi){super(),this.actionsObserver=oi,this.reducerManager=wi,this.source=jt}select(jt,...oi){return $e.call(null,jt,...oi)(this)}lift(jt){const oi=new $t(this,this.actionsObserver,this.reducerManager);return oi.operator=jt,oi}dispatch(jt){this.actionsObserver.next(jt)}next(jt){this.actionsObserver.next(jt)}error(jt){this.actionsObserver.error(jt)}complete(){this.actionsObserver.complete()}addReducer(jt,oi){this.reducerManager.addReducer(jt,oi)}removeReducer(jt){this.reducerManager.removeReducer(jt)}}return $t.\u0275fac=function(jt){return new(jt||$t)(t.LFG(ct),t.LFG(se),t.LFG(Re))},$t.\u0275prov=t.Yz7({token:$t,factory:$t.\u0275fac}),$t})();const Me=[xt];function $e($t,mi,...jt){return function(wi){let Vi;if("string"==typeof $t){const ln=[mi,...jt].filter(Boolean);Vi=wi.pipe(function M(...$t){const mi=$t.length;if(0===mi)throw new Error("list of properties cannot be empty.");return(0,d.U)(jt=>{let oi=jt;for(let wi=0;wi<mi;wi++){const Vi=oi?.[$t[wi]];if(!(typeof Vi<"u"))return;oi=Vi}return oi})}($t,...ln))}else{if("function"!=typeof $t)throw new TypeError(`Unexpected type '${typeof $t}' in select operator, expected 'string' or 'function'`);Vi=wi.pipe((0,d.U)(ln=>$t(ln,mi)))}return Vi.pipe((0,w.x)())}}const Pe="https://ngrx.io/guide/store/configuration/runtime-checks";function J($t){return void 0===$t}function mt($t){return null===$t}function Et($t){return Array.isArray($t)}function Ct($t){return"object"==typeof $t&&null!==$t}function Ne($t){return"function"==typeof $t}let Ie=!1;function zt($t,mi){return $t===mi}function ot($t,mi=zt,jt=zt){let Vi,oi=null,wi=null;return{memoized:function _a(){if(void 0!==Vi)return Vi.result;if(!oi)return wi=$t.apply(null,arguments),oi=arguments,wi;if(!function ni($t,mi,jt){for(let oi=0;oi<$t.length;oi++)if(!jt($t[oi],mi[oi]))return!0;return!1}(arguments,oi,mi))return wi;const Ln=$t.apply(null,arguments);return oi=arguments,jt(wi,Ln)?wi:(wi=Ln,Ln)},reset:function ln(){oi=null,wi=null},setResult:function Yn(Ln){Vi={result:Ln}},clearResult:function Bn(){Vi=void 0}}}function ft(...$t){return function gt($t,mi={stateFn:St}){return function(...jt){let oi=jt;if(Array.isArray(oi[0])){const[Ln,...Gn]=oi;oi=[...Ln,...Gn]}else 1===oi.length&&function _t($t){return!!$t&&"object"==typeof $t&&Object.values($t).every(mi=>"function"==typeof mi)}(oi[0])&&(oi=function vt($t){const mi=Object.values($t),jt=Object.keys($t);return[...mi,(...wi)=>jt.reduce((Vi,ln,Yn)=>({...Vi,[ln]:wi[Yn]}),{})]}(oi[0]));const wi=oi.slice(0,oi.length-1),Vi=oi[oi.length-1],ln=wi.filter(Ln=>Ln.release&&"function"==typeof Ln.release),Yn=$t(function(...Ln){return Vi.apply(null,Ln)}),Bn=ot(function(Ln,Gn){return mi.stateFn.apply(null,[Ln,wi,Gn,Yn])});return Object.assign(Bn.memoized,{release:function _a(){Bn.reset(),Yn.reset(),ln.forEach(Ln=>Ln.release())},projector:Yn.memoized,setResult:Bn.setResult,clearResult:Bn.clearResult})}}(ot)(...$t)}function St($t,mi,jt,oi){if(void 0===jt){const Vi=mi.map(ln=>ln($t));return oi.memoized.apply(null,Vi)}const wi=mi.map(Vi=>Vi($t,jt));return oi.memoized.apply(null,[...wi,jt])}function tt($t){return ft(mi=>{const jt=mi[$t];return!function ei(){return Ie}()&&(0,t.X6Q)()&&!($t in mi)&&console.warn(`@ngrx/store: The feature name "${$t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${$t}', ...) or StoreModule.forFeature('${$t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),jt},mi=>mi)}function Qt($t){return $t instanceof t.OlP?(0,t.f3M)($t):$t}function Bi($t,mi){return mi.map((jt,oi)=>{if($t[oi]instanceof t.OlP){const wi=(0,t.f3M)($t[oi]);return{key:jt.key,reducerFactory:wi.reducerFactory?wi.reducerFactory:oe,metaReducers:wi.metaReducers?wi.metaReducers:[],initialState:wi.initialState}}return jt})}function Hi($t){return $t.map(mi=>mi instanceof t.OlP?(0,t.f3M)(mi):mi)}function Si($t){return"function"==typeof $t?$t():$t}function Wi($t,mi){return $t.concat(mi)}function et(){if((0,t.f3M)(xt,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Le($t){Object.freeze($t);const mi=Ne($t);return Object.getOwnPropertyNames($t).forEach(jt=>{if(!jt.startsWith("\u0275")&&function ue($t,mi){return Object.prototype.hasOwnProperty.call($t,mi)}($t,jt)&&(!mi||"caller"!==jt&&"callee"!==jt&&"arguments"!==jt)){const oi=$t[jt];(Ct(oi)||Ne(oi))&&!Object.isFrozen(oi)&&Le(oi)}}),$t}function Wt($t,mi=[]){return(J($t)||mt($t))&&0===mi.length?{path:["root"],value:$t}:Object.keys($t).reduce((oi,wi)=>{if(oi)return oi;const Vi=$t[wi];return function $($t){return Ne($t)&&$t.hasOwnProperty("\u0275cmp")}(Vi)?oi:!(J(Vi)||mt(Vi)||function Ht($t){return"number"==typeof $t}(Vi)||function je($t){return"boolean"==typeof $t}(Vi)||function at($t){return"string"==typeof $t}(Vi)||Et(Vi))&&(function Bt($t){if(!function Nt($t){return Ct($t)&&!Et($t)}($t))return!1;const mi=Object.getPrototypeOf($t);return mi===Object.prototype||null===mi}(Vi)?Wt(Vi,[...mi,wi]):{path:[...mi,wi],value:Vi})},!1)}function si($t,mi){if(!1===$t)return;const jt=$t.path.join("."),oi=new Error(`Detected unserializable ${mi} at "${jt}". ${Pe}#strict${mi}serializability`);throw oi.value=$t.value,oi.unserializablePath=jt,oi}function Ri($t){return(0,t.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...$t}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function $i({strictActionSerializability:$t,strictStateSerializability:mi}){return jt=>$t||mi?function Mt($t,mi){return function(jt,oi){mi.action(oi)&&si(Wt(oi),"action");const wi=$t(jt,oi);return mi.state()&&si(Wt(wi),"state"),wi}}(jt,{action:oi=>$t&&!Qi(oi),state:()=>mi}):jt}function nn({strictActionImmutability:$t,strictStateImmutability:mi}){return jt=>$t||mi?function It($t,mi){return function(jt,oi){const wi=mi.action(oi)?Le(oi):oi,Vi=$t(jt,wi);return mi.state()?Le(Vi):Vi}}(jt,{action:oi=>$t&&!Qi(oi),state:()=>mi}):jt}function Qi($t){return $t.type.startsWith("@ngrx")}function Yt({strictActionWithinNgZone:$t}){return mi=>$t?function Ai($t,mi){return function(jt,oi){if(mi.action(oi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${oi.type}' running outside NgZone. ${Pe}#strictactionwithinngzone`);return $t(jt,oi)}}(mi,{action:jt=>$t&&!Qi(jt)}):mi}function Xt($t){return[{provide:qe,useValue:$t},{provide:pe,useFactory:dt,deps:[qe]},{provide:Ce,deps:[pe],useFactory:Ri},{provide:ye,multi:!0,deps:[Ce],useFactory:nn},{provide:ye,multi:!0,deps:[Ce],useFactory:$i},{provide:ye,multi:!0,deps:[Ce],useFactory:Yt}]}function be(){return[{provide:Se,multi:!0,deps:[Ce],useFactory:Dt}]}function dt($t){return $t}function Dt($t){if(!$t.strictActionTypeUniqueness)return;const mi=Object.entries(L).filter(([,jt])=>jt>1).map(([jt])=>jt);if(mi.length)throw new Error(`Action types are registered more than once, ${mi.map(jt=>`"${jt}"`).join(", ")}. ${Pe}#strictactiontypeuniqueness`)}function Ot($t={},mi={}){return[{provide:Te,useFactory:et},{provide:S,useValue:mi.initialState},{provide:i,useFactory:Si,deps:[S]},{provide:_,useValue:$t},{provide:R,useExisting:$t instanceof t.OlP?$t:_},{provide:l,deps:[_,[new t.tBr(R)]],useFactory:Qt},{provide:G,useValue:mi.metaReducers?mi.metaReducers:[]},{provide:Ee,deps:[ye,G],useFactory:Wi},{provide:u,useValue:mi.reducerFactory?mi.reducerFactory:oe},{provide:a,deps:[u,Ee],useFactory:he},ce,le,Qe,Ze,Me,Xt(mi.runtimeChecks),be()]}function Wn($t,mi,jt={}){return[{provide:n,multi:!0,useValue:$t instanceof Object?{}:jt},{provide:O,multi:!0,useValue:{key:$t instanceof Object?$t.name:$t,reducerFactory:jt instanceof t.OlP||!jt.reducerFactory?oe:jt.reducerFactory,metaReducers:jt instanceof t.OlP||!jt.metaReducers?[]:jt.metaReducers,initialState:jt instanceof t.OlP||!jt.initialState?void 0:jt.initialState}},{provide:v,deps:[n,O],useFactory:Bi},{provide:C,multi:!0,useValue:$t instanceof Object?$t.reducer:mi},{provide:K,multi:!0,useExisting:mi instanceof t.OlP?mi:C},{provide:F,multi:!0,deps:[C,[new t.tBr(K)]],useFactory:Hi},be()]}let An=(()=>{class $t{constructor(jt,oi,wi,Vi,ln,Yn){}}return $t.\u0275fac=function(jt){return new(jt||$t)(t.LFG(se),t.LFG(ge),t.LFG(rt),t.LFG(xt),t.LFG(Te,8),t.LFG(Se,8))},$t.\u0275mod=t.oAB({type:$t}),$t.\u0275inj=t.cJS({}),$t})(),oa=(()=>{class $t{constructor(jt,oi,wi,Vi,ln){this.features=jt,this.featureReducers=oi,this.reducerManager=wi;const Yn=jt.map((Bn,_a)=>{const Gn=oi.shift()[_a];return{...Bn,reducers:Gn,initialState:Si(Bn.initialState)}});wi.addFeatures(Yn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return $t.\u0275fac=function(jt){return new(jt||$t)(t.LFG(v),t.LFG(F),t.LFG(Re),t.LFG(An),t.LFG(Se,8))},$t.\u0275mod=t.oAB({type:$t}),$t.\u0275inj=t.cJS({}),$t})(),Aa=(()=>{class $t{static forRoot(jt,oi){return{ngModule:An,providers:[...Ot(jt,oi)]}}static forFeature(jt,oi,wi={}){return{ngModule:oa,providers:[...Wn(jt,oi,wi)]}}}return $t.\u0275fac=function(jt){return new(jt||$t)},$t.\u0275mod=t.oAB({type:$t}),$t.\u0275inj=t.cJS({}),$t})();function ta(...$t){return{reducer:$t.pop(),types:$t.map(oi=>oi.type)}}function nr($t,...mi){const jt=new Map;for(const oi of mi)for(const wi of oi.types){const Vi=jt.get(wi);jt.set(wi,Vi?(Yn,Bn)=>oi.reducer(Vi(Yn,Bn),Bn):oi.reducer)}return function(oi=$t,wi){const Vi=jt.get(wi.type);return Vi?Vi(oi,wi):oi}}},3803:(We,q,m)=>{"use strict";m.d(q,{H5:()=>gm,K$:()=>X3,a4:()=>Im});var t=m(4650),e=m(6895),g=m(7582),T=m(4080),s=m(4968),x=m(8372),h=m(7340);function N(){}function d(f){return null==f?N:function(){return this.querySelector(f)}}function L(){return[]}function k(f){return null==f?L:function(){return this.querySelectorAll(f)}}function W(f){return function(){return this.matches(f)}}function Y(f){return function(D){return D.matches(f)}}var Q=Array.prototype.find;function ee(){return this.firstElementChild}var re=Array.prototype.filter;function ie(){return Array.from(this.children)}function S(f){return new Array(f.length)}function a(f,D){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=D}function l(f,D,r,y,U,j){for(var st,ke=0,Kt=D.length,Zt=j.length;ke<Zt;++ke)(st=D[ke])?(st.__data__=j[ke],y[ke]=st):r[ke]=new a(f,j[ke]);for(;ke<Kt;++ke)(st=D[ke])&&(U[ke]=st)}function _(f,D,r,y,U,j,ke){var st,Kt,Ei,Zt=new Map,ci=D.length,fi=j.length,vi=new Array(ci);for(st=0;st<ci;++st)(Kt=D[st])&&(vi[st]=Ei=ke.call(Kt,Kt.__data__,st,D)+"",Zt.has(Ei)?U[st]=Kt:Zt.set(Ei,Kt));for(st=0;st<fi;++st)Ei=ke.call(f,j[st],st,j)+"",(Kt=Zt.get(Ei))?(y[st]=Kt,Kt.__data__=j[st],Zt.delete(Ei)):r[st]=new a(f,j[st]);for(st=0;st<ci;++st)(Kt=D[st])&&Zt.get(vi[st])===Kt&&(U[st]=Kt)}function O(f){return f.__data__}function C(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function ye(f,D){return f<D?-1:f>D?1:f>=D?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,D){return this._parent.insertBefore(f,D)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Fe="http://www.w3.org/1999/xhtml";const oe={svg:"http://www.w3.org/2000/svg",xhtml:Fe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ze(f){var D=f+="",r=D.indexOf(":");return r>=0&&"xmlns"!==(D=f.slice(0,r))&&(f=f.slice(r+1)),oe.hasOwnProperty(D)?{space:oe[D],local:f}:f}function Oe(f){return function(){this.removeAttribute(f)}}function he(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Ae(f,D){return function(){this.setAttribute(f,D)}}function ge(f,D){return function(){this.setAttributeNS(f.space,f.local,D)}}function Ue(f,D){return function(){var r=D.apply(this,arguments);null==r?this.removeAttribute(f):this.setAttribute(f,r)}}function Je(f,D){return function(){var r=D.apply(this,arguments);null==r?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,r)}}function le(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function rt(f){return function(){this.style.removeProperty(f)}}function Qe(f,D,r){return function(){this.style.setProperty(f,D,r)}}function ct(f,D,r){return function(){var y=D.apply(this,arguments);null==y?this.style.removeProperty(f):this.style.setProperty(f,y,r)}}function ut(f,D){return f.style.getPropertyValue(D)||le(f).getComputedStyle(f,null).getPropertyValue(D)}function Ze(f){return function(){delete this[f]}}function xt(f,D){return function(){this[f]=D}}function Me(f,D){return function(){var r=D.apply(this,arguments);null==r?delete this[f]:this[f]=r}}function Pe(f){return f.trim().split(/^|\s+/)}function J(f){return f.classList||new mt(f)}function mt(f){this._node=f,this._names=Pe(f.getAttribute("class")||"")}function Et(f,D){for(var r=J(f),y=-1,U=D.length;++y<U;)r.add(D[y])}function at(f,D){for(var r=J(f),y=-1,U=D.length;++y<U;)r.remove(D[y])}function je(f){return function(){Et(this,f)}}function Ht(f){return function(){at(this,f)}}function Ct(f,D){return function(){(D.apply(this,arguments)?Et:at)(this,f)}}function Bt(){this.textContent=""}function Ne(f){return function(){this.textContent=f}}function $(f){return function(){var D=f.apply(this,arguments);this.textContent=D??""}}function Ie(){this.innerHTML=""}function Xe(f){return function(){this.innerHTML=f}}function ei(f){return function(){var D=f.apply(this,arguments);this.innerHTML=D??""}}function ni(){this.nextSibling&&this.parentNode.appendChild(this)}function ot(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function St(f){return function(){var D=this.ownerDocument,r=this.namespaceURI;return r===Fe&&D.documentElement.namespaceURI===Fe?D.createElement(f):D.createElementNS(r,f)}}function gt(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function tt(f){var D=ze(f);return(D.local?gt:St)(D)}function vt(){return null}function Tt(){var f=this.parentNode;f&&f.removeChild(this)}function Qt(){var f=this.cloneNode(!1),D=this.parentNode;return D?D.insertBefore(f,this.nextSibling):f}function Bi(){var f=this.cloneNode(!0),D=this.parentNode;return D?D.insertBefore(f,this.nextSibling):f}function It(f){return function(){var D=this.__on;if(D){for(var j,r=0,y=-1,U=D.length;r<U;++r)j=D[r],f.type&&j.type!==f.type||j.name!==f.name?D[++y]=j:this.removeEventListener(j.type,j.listener,j.options);++y?D.length=y:delete this.__on}}}function Le(f,D,r){return function(){var U,y=this.__on,j=function Wi(f){return function(D){f.call(this,D,this.__data__)}}(D);if(y)for(var ke=0,st=y.length;ke<st;++ke)if((U=y[ke]).type===f.type&&U.name===f.name)return this.removeEventListener(U.type,U.listener,U.options),this.addEventListener(U.type,U.listener=j,U.options=r),void(U.value=D);this.addEventListener(f.type,j,r),U={type:f.type,name:f.name,value:D,listener:j,options:r},y?y.push(U):this.__on=[U]}}function Wt(f,D,r){var y=le(f),U=y.CustomEvent;"function"==typeof U?U=new U(D,r):(U=y.document.createEvent("Event"),r?(U.initEvent(D,r.bubbles,r.cancelable),U.detail=r.detail):U.initEvent(D,!1,!1)),f.dispatchEvent(U)}function si(f,D){return function(){return Wt(this,f,D)}}function Ai(f,D){return function(){return Wt(this,f,D.apply(this,arguments))}}mt.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var D=this._names.indexOf(f);D>=0&&(this._names.splice(D,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var nn=[null];function Qi(f,D){this._groups=f,this._parents=D}function Yt(){return new Qi([[document.documentElement]],nn)}Qi.prototype=Yt.prototype={constructor:Qi,select:function M(f){"function"!=typeof f&&(f=d(f));for(var D=this._groups,r=D.length,y=new Array(r),U=0;U<r;++U)for(var Kt,Zt,j=D[U],ke=j.length,st=y[U]=new Array(ke),ci=0;ci<ke;++ci)(Kt=j[ci])&&(Zt=f.call(Kt,Kt.__data__,ci,j))&&("__data__"in Kt&&(Zt.__data__=Kt.__data__),st[ci]=Zt);return new Qi(y,this._parents)},selectAll:function B(f){f="function"==typeof f?function V(f){return function(){return function w(f){return null==f?[]:Array.isArray(f)?f:Array.from(f)}(f.apply(this,arguments))}}(f):k(f);for(var D=this._groups,r=D.length,y=[],U=[],j=0;j<r;++j)for(var Kt,ke=D[j],st=ke.length,Zt=0;Zt<st;++Zt)(Kt=ke[Zt])&&(y.push(f.call(Kt,Kt.__data__,Zt,ke)),U.push(Kt));return new Qi(y,U)},selectChild:function me(f){return this.select(null==f?ee:function X(f){return function(){return Q.call(this.children,f)}}("function"==typeof f?f:Y(f)))},selectChildren:function ce(f){return this.selectAll(null==f?ie:function se(f){return function(){return re.call(this.children,f)}}("function"==typeof f?f:Y(f)))},filter:function Te(f){"function"!=typeof f&&(f=W(f));for(var D=this._groups,r=D.length,y=new Array(r),U=0;U<r;++U)for(var Kt,j=D[U],ke=j.length,st=y[U]=[],Zt=0;Zt<ke;++Zt)(Kt=j[Zt])&&f.call(Kt,Kt.__data__,Zt,j)&&st.push(Kt);return new Qi(y,this._parents)},data:function R(f,D){if(!arguments.length)return Array.from(this,O);var r=D?_:l,y=this._parents,U=this._groups;"function"!=typeof f&&(f=function u(f){return function(){return f}}(f));for(var j=U.length,ke=new Array(j),st=new Array(j),Kt=new Array(j),Zt=0;Zt<j;++Zt){var ci=y[Zt],fi=U[Zt],vi=fi.length,Ei=C(f.call(ci,ci&&ci.__data__,Zt,y)),Xi=Ei.length,bn=st[Zt]=new Array(Xi),Li=ke[Zt]=new Array(Xi);r(ci,fi,bn,Li,Kt[Zt]=new Array(vi),Ei,D);for(var Vn,Hn,Tn=0,hn=0;Tn<Xi;++Tn)if(Vn=bn[Tn]){for(Tn>=hn&&(hn=Tn+1);!(Hn=Li[hn])&&++hn<Xi;);Vn._next=Hn||null}}return(ke=new Qi(ke,y))._enter=st,ke._exit=Kt,ke},enter:function i(){return new Qi(this._enter||this._groups.map(S),this._parents)},exit:function n(){return new Qi(this._exit||this._groups.map(S),this._parents)},join:function v(f,D,r){var y=this.enter(),U=this,j=this.exit();return"function"==typeof f?(y=f(y))&&(y=y.selection()):y=y.append(f+""),null!=D&&(U=D(U))&&(U=U.selection()),null==r?j.remove():r(j),y&&U?y.merge(U).order():U},merge:function K(f){for(var D=f.selection?f.selection():f,r=this._groups,y=D._groups,U=r.length,ke=Math.min(U,y.length),st=new Array(U),Kt=0;Kt<ke;++Kt)for(var Ei,Zt=r[Kt],ci=y[Kt],fi=Zt.length,vi=st[Kt]=new Array(fi),Xi=0;Xi<fi;++Xi)(Ei=Zt[Xi]||ci[Xi])&&(vi[Xi]=Ei);for(;Kt<U;++Kt)st[Kt]=r[Kt];return new Qi(st,this._parents)},selection:function Xt(){return this},order:function F(){for(var f=this._groups,D=-1,r=f.length;++D<r;)for(var ke,y=f[D],U=y.length-1,j=y[U];--U>=0;)(ke=y[U])&&(j&&4^ke.compareDocumentPosition(j)&&j.parentNode.insertBefore(ke,j),j=ke);return this},sort:function G(f){function D(fi,vi){return fi&&vi?f(fi.__data__,vi.__data__):!fi-!vi}f||(f=ye);for(var r=this._groups,y=r.length,U=new Array(y),j=0;j<y;++j){for(var Zt,ke=r[j],st=ke.length,Kt=U[j]=new Array(st),ci=0;ci<st;++ci)(Zt=ke[ci])&&(Kt[ci]=Zt);Kt.sort(D)}return new Qi(U,this._parents).order()},call:function Ee(){var f=arguments[0];return arguments[0]=this,f.apply(null,arguments),this},nodes:function pe(){return Array.from(this)},node:function qe(){for(var f=this._groups,D=0,r=f.length;D<r;++D)for(var y=f[D],U=0,j=y.length;U<j;++U){var ke=y[U];if(ke)return ke}return null},size:function Ce(){let f=0;for(const D of this)++f;return f},empty:function Se(){return!this.node()},each:function fe(f){for(var D=this._groups,r=0,y=D.length;r<y;++r)for(var st,U=D[r],j=0,ke=U.length;j<ke;++j)(st=U[j])&&f.call(st,st.__data__,j,U);return this},attr:function Re(f,D){var r=ze(f);if(arguments.length<2){var y=this.node();return r.local?y.getAttributeNS(r.space,r.local):y.getAttribute(r)}return this.each((null==D?r.local?he:Oe:"function"==typeof D?r.local?Je:Ue:r.local?ge:Ae)(r,D))},style:function Gt(f,D,r){return arguments.length>1?this.each((null==D?rt:"function"==typeof D?ct:Qe)(f,D,r??"")):ut(this.node(),f)},property:function $e(f,D){return arguments.length>1?this.each((null==D?Ze:"function"==typeof D?Me:xt)(f,D)):this.node()[f]},classed:function Nt(f,D){var r=Pe(f+"");if(arguments.length<2){for(var y=J(this.node()),U=-1,j=r.length;++U<j;)if(!y.contains(r[U]))return!1;return!0}return this.each(("function"==typeof D?Ct:D?je:Ht)(r,D))},text:function ue(f){return arguments.length?this.each(null==f?Bt:("function"==typeof f?$:Ne)(f)):this.node().textContent},html:function zt(f){return arguments.length?this.each(null==f?Ie:("function"==typeof f?ei:Xe)(f)):this.node().innerHTML},raise:function pt(){return this.each(ni)},lower:function ft(){return this.each(ot)},append:function _t(f){var D="function"==typeof f?f:tt(f);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},insert:function Ve(f,D){var r="function"==typeof f?f:tt(f),y=null==D?vt:"function"==typeof D?D:d(D);return this.select(function(){return this.insertBefore(r.apply(this,arguments),y.apply(this,arguments)||null)})},remove:function Lt(){return this.each(Tt)},clone:function Hi(f){return this.select(f?Bi:Qt)},datum:function Si(f){return arguments.length?this.property("__data__",f):this.node().__data__},on:function Mt(f,D,r){var U,ke,y=function et(f){return f.trim().split(/^|\s+/).map(function(D){var r="",y=D.indexOf(".");return y>=0&&(r=D.slice(y+1),D=D.slice(0,y)),{type:D,name:r}})}(f+""),j=y.length;if(!(arguments.length<2)){for(st=D?Le:It,U=0;U<j;++U)this.each(st(y[U],D,r));return this}var st=this.node().__on;if(st)for(var ci,Kt=0,Zt=st.length;Kt<Zt;++Kt)for(U=0,ci=st[Kt];U<j;++U)if((ke=y[U]).type===ci.type&&ke.name===ci.name)return ci.value},dispatch:function Ri(f,D){return this.each(("function"==typeof D?Ai:si)(f,D))},[Symbol.iterator]:function*$i(){for(var f=this._groups,D=0,r=f.length;D<r;++D)for(var ke,y=f[D],U=0,j=y.length;U<j;++U)(ke=y[U])&&(yield ke)}};const be=Yt;var Dt={value:()=>{}};function Ut(){for(var y,f=0,D=arguments.length,r={};f<D;++f){if(!(y=arguments[f]+"")||y in r||/[\s.]/.test(y))throw new Error("illegal type: "+y);r[y]=[]}return new Ot(r)}function Ot(f){this._=f}function li(f,D){for(var U,r=0,y=f.length;r<y;++r)if((U=f[r]).name===D)return U.value}function pi(f,D,r){for(var y=0,U=f.length;y<U;++y)if(f[y].name===D){f[y]=Dt,f=f.slice(0,y).concat(f.slice(y+1));break}return null!=r&&f.push({name:D,value:r}),f}Ot.prototype=Ut.prototype={constructor:Ot,on:function(f,D){var U,r=this._,y=function bi(f,D){return f.trim().split(/^|\s+/).map(function(r){var y="",U=r.indexOf(".");if(U>=0&&(y=r.slice(U+1),r=r.slice(0,U)),r&&!D.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:y}})}(f+"",r),j=-1,ke=y.length;if(!(arguments.length<2)){if(null!=D&&"function"!=typeof D)throw new Error("invalid callback: "+D);for(;++j<ke;)if(U=(f=y[j]).type)r[U]=pi(r[U],f.name,D);else if(null==D)for(U in r)r[U]=pi(r[U],f.name,null);return this}for(;++j<ke;)if((U=(f=y[j]).type)&&(U=li(r[U],f.name)))return U},copy:function(){var f={},D=this._;for(var r in D)f[r]=D[r].slice();return new Ot(f)},call:function(f,D){if((U=arguments.length-2)>0)for(var U,j,r=new Array(U),y=0;y<U;++y)r[y]=arguments[y+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(y=0,U=(j=this._[f]).length;y<U;++y)j[y].value.apply(D,r)},apply:function(f,D,r){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var y=this._[f],U=0,j=y.length;U<j;++U)y[U].value.apply(D,r)}};const gi=Ut;function nr(f,D,r){f.prototype=D.prototype=r,r.constructor=f}function $t(f,D){var r=Object.create(f.prototype);for(var y in D)r[y]=D[y];return r}function mi(){}var oi=1/.7,wi="\\s*([+-]?\\d+)\\s*",Vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yn=/^#([0-9a-f]{3,8})$/,Bn=new RegExp(`^rgb\\(${wi},${wi},${wi}\\)$`),_a=new RegExp(`^rgb\\(${ln},${ln},${ln}\\)$`),Ln=new RegExp(`^rgba\\(${wi},${wi},${wi},${Vi}\\)$`),Gn=new RegExp(`^rgba\\(${ln},${ln},${ln},${Vi}\\)$`),Co=new RegExp(`^hsl\\(${Vi},${ln},${ln}\\)$`),Un=new RegExp(`^hsla\\(${Vi},${ln},${ln},${Vi}\\)$`),ia={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wo(){return this.rgb().formatHex()}function jn(){return this.rgb().formatRgb()}function La(f){var D,r;return f=(f+"").trim().toLowerCase(),(D=Yn.exec(f))?(r=D[1].length,D=parseInt(D[1],16),6===r?Po(D):3===r?new Ra(D>>8&15|D>>4&240,D>>4&15|240&D,(15&D)<<4|15&D,1):8===r?Hr(D>>24&255,D>>16&255,D>>8&255,(255&D)/255):4===r?Hr(D>>12&15|D>>8&240,D>>8&15|D>>4&240,D>>4&15|240&D,((15&D)<<4|15&D)/255):null):(D=Bn.exec(f))?new Ra(D[1],D[2],D[3],1):(D=_a.exec(f))?new Ra(255*D[1]/100,255*D[2]/100,255*D[3]/100,1):(D=Ln.exec(f))?Hr(D[1],D[2],D[3],D[4]):(D=Gn.exec(f))?Hr(255*D[1]/100,255*D[2]/100,255*D[3]/100,D[4]):(D=Co.exec(f))?ro(D[1],D[2]/100,D[3]/100,1):(D=Un.exec(f))?ro(D[1],D[2]/100,D[3]/100,D[4]):ia.hasOwnProperty(f)?Po(ia[f]):"transparent"===f?new Ra(NaN,NaN,NaN,0):null}function Po(f){return new Ra(f>>16&255,f>>8&255,255&f,1)}function Hr(f,D,r,y){return y<=0&&(f=D=r=NaN),new Ra(f,D,r,y)}function qr(f,D,r,y){return 1===arguments.length?function zr(f){return f instanceof mi||(f=La(f)),f?new Ra((f=f.rgb()).r,f.g,f.b,f.opacity):new Ra}(f):new Ra(f,D,r,y??1)}function Ra(f,D,r,y){this.r=+f,this.g=+D,this.b=+r,this.opacity=+y}function Ma(){return`#${dr(this.r)}${dr(this.g)}${dr(this.b)}`}function ao(){const f=Jr(this.opacity);return`${1===f?"rgb(":"rgba("}${_r(this.r)}, ${_r(this.g)}, ${_r(this.b)}${1===f?")":`, ${f})`}`}function Jr(f){return isNaN(f)?1:Math.max(0,Math.min(1,f))}function _r(f){return Math.max(0,Math.min(255,Math.round(f)||0))}function dr(f){return((f=_r(f))<16?"0":"")+f.toString(16)}function ro(f,D,r,y){return y<=0?f=D=r=NaN:r<=0||r>=1?f=D=NaN:D<=0&&(f=NaN),new Da(f,D,r,y)}function oo(f){if(f instanceof Da)return new Da(f.h,f.s,f.l,f.opacity);if(f instanceof mi||(f=La(f)),!f)return new Da;if(f instanceof Da)return f;var D=(f=f.rgb()).r/255,r=f.g/255,y=f.b/255,U=Math.min(D,r,y),j=Math.max(D,r,y),ke=NaN,st=j-U,Kt=(j+U)/2;return st?(ke=D===j?(r-y)/st+6*(r<y):r===j?(y-D)/st+2:(D-r)/st+4,st/=Kt<.5?j+U:2-j-U,ke*=60):st=Kt>0&&Kt<1?0:ke,new Da(ke,st,Kt,f.opacity)}function Da(f,D,r,y){this.h=+f,this.s=+D,this.l=+r,this.opacity=+y}function Xr(f){return(f=(f||0)%360)<0?f+360:f}function Vr(f){return Math.max(0,Math.min(1,f||0))}function Qa(f,D,r){return 255*(f<60?D+(r-D)*f/60:f<180?r:f<240?D+(r-D)*(240-f)/60:D)}function Br(f,D,r,y,U){var j=f*f,ke=j*f;return((1-3*f+3*j-ke)*D+(4-6*j+3*ke)*r+(1+3*f+3*j-3*ke)*y+ke*U)/6}nr(mi,La,{copy(f){return Object.assign(new this.constructor,this,f)},displayable(){return this.rgb().displayable()},hex:wo,formatHex:wo,formatHex8:function Fr(){return this.rgb().formatHex8()},formatHsl:function Tr(){return oo(this).formatHsl()},formatRgb:jn,toString:jn}),nr(Ra,qr,$t(mi,{brighter(f){return f=null==f?oi:Math.pow(oi,f),new Ra(this.r*f,this.g*f,this.b*f,this.opacity)},darker(f){return f=null==f?.7:Math.pow(.7,f),new Ra(this.r*f,this.g*f,this.b*f,this.opacity)},rgb(){return this},clamp(){return new Ra(_r(this.r),_r(this.g),_r(this.b),Jr(this.opacity))},displayable(){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:Ma,formatHex:Ma,formatHex8:function Ro(){return`#${dr(this.r)}${dr(this.g)}${dr(this.b)}${dr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ao,toString:ao})),nr(Da,function No(f,D,r,y){return 1===arguments.length?oo(f):new Da(f,D,r,y??1)},$t(mi,{brighter(f){return f=null==f?oi:Math.pow(oi,f),new Da(this.h,this.s,this.l*f,this.opacity)},darker(f){return f=null==f?.7:Math.pow(.7,f),new Da(this.h,this.s,this.l*f,this.opacity)},rgb(){var f=this.h%360+360*(this.h<0),D=isNaN(f)||isNaN(this.s)?0:this.s,r=this.l,y=r+(r<.5?r:1-r)*D,U=2*r-y;return new Ra(Qa(f>=240?f-240:f+120,U,y),Qa(f,U,y),Qa(f<120?f+240:f-120,U,y),this.opacity)},clamp(){return new Da(Xr(this.h),Vr(this.s),Vr(this.l),Jr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const f=Jr(this.opacity);return`${1===f?"hsl(":"hsla("}${Xr(this.h)}, ${100*Vr(this.s)}%, ${100*Vr(this.l)}%${1===f?")":`, ${f})`}`}}));const hr=f=>()=>f;function $r(f,D){var r=D-f;return r?function vr(f,D){return function(r){return f+r*D}}(f,r):hr(isNaN(f)?D:f)}const eo=function f(D){var r=function so(f){return 1==(f=+f)?$r:function(D,r){return r-D?function Er(f,D,r){return f=Math.pow(f,r),D=Math.pow(D,r)-f,r=1/r,function(y){return Math.pow(f+y*D,r)}}(D,r,f):hr(isNaN(D)?r:D)}}(D);function y(U,j){var ke=r((U=qr(U)).r,(j=qr(j)).r),st=r(U.g,j.g),Kt=r(U.b,j.b),Zt=$r(U.opacity,j.opacity);return function(ci){return U.r=ke(ci),U.g=st(ci),U.b=Kt(ci),U.opacity=Zt(ci),U+""}}return y.gamma=f,y}(1);function ur(f){return function(D){var ke,st,r=D.length,y=new Array(r),U=new Array(r),j=new Array(r);for(ke=0;ke<r;++ke)st=qr(D[ke]),y[ke]=st.r||0,U[ke]=st.g||0,j[ke]=st.b||0;return y=f(y),U=f(U),j=f(j),st.opacity=1,function(Kt){return st.r=y(Kt),st.g=U(Kt),st.b=j(Kt),st+""}}}function Ar(f,D){var ke,r=D?D.length:0,y=f?Math.min(r,f.length):0,U=new Array(y),j=new Array(r);for(ke=0;ke<y;++ke)U[ke]=Pi(f[ke],D[ke]);for(;ke<r;++ke)j[ke]=D[ke];return function(st){for(ke=0;ke<y;++ke)j[ke]=U[ke](st);return j}}function qn(f,D){var r=new Date;return f=+f,D=+D,function(y){return r.setTime(f*(1-y)+D*y),r}}function kn(f,D){return f=+f,D=+D,function(r){return f*(1-r)+D*r}}function fr(f,D){var U,r={},y={};for(U in(null===f||"object"!=typeof f)&&(f={}),(null===D||"object"!=typeof D)&&(D={}),D)U in f?r[U]=Pi(f[U],D[U]):y[U]=D[U];return function(j){for(U in r)y[U]=r[U](j);return y}}ur(function sa(f){var D=f.length-1;return function(r){var y=r<=0?r=0:r>=1?(r=1,D-1):Math.floor(r*D),U=f[y],j=f[y+1];return Br((r-y/D)*D,y>0?f[y-1]:2*U-j,U,j,y<D-1?f[y+2]:2*j-U)}}),ur(function Wa(f){var D=f.length;return function(r){var y=Math.floor(((r%=1)<0?++r:r)*D);return Br((r-y/D)*D,f[(y+D-1)%D],f[y%D],f[(y+1)%D],f[(y+2)%D])}});var Lr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ca=new RegExp(Lr.source,"g");function hi(f,D){var y,U,j,r=Lr.lastIndex=Ca.lastIndex=0,ke=-1,st=[],Kt=[];for(f+="",D+="";(y=Lr.exec(f))&&(U=Ca.exec(D));)(j=U.index)>r&&(j=D.slice(r,j),st[ke]?st[ke]+=j:st[++ke]=j),(y=y[0])===(U=U[0])?st[ke]?st[ke]+=U:st[++ke]=U:(st[++ke]=null,Kt.push({i:ke,x:kn(y,U)})),r=Ca.lastIndex;return r<D.length&&(j=D.slice(r),st[ke]?st[ke]+=j:st[++ke]=j),st.length<2?Kt[0]?function Ft(f){return function(D){return f(D)+""}}(Kt[0].x):function zo(f){return function(){return f}}(D):(D=Kt.length,function(Zt){for(var fi,ci=0;ci<D;++ci)st[(fi=Kt[ci]).i]=fi.x(Zt);return st.join("")})}function wt(f,D){D||(D=[]);var U,r=f?Math.min(D.length,f.length):0,y=D.slice();return function(j){for(U=0;U<r;++U)y[U]=f[U]*(1-j)+D[U]*j;return y}}function Pi(f,D){var y,r=typeof D;return null==D||"boolean"===r?hr(D):("number"===r?kn:"string"===r?(y=La(D))?(D=y,eo):hi:D instanceof La?eo:D instanceof Date?qn:function ai(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(D)?wt:Array.isArray(D)?Ar:"function"!=typeof D.valueOf&&"function"!=typeof D.toString||isNaN(D)?fr:kn)(f,D)}var lt,it,ca=0,Fi=0,gn=0,qa=1e3,Ye=0,kt=0,Mi=0,sn="object"==typeof performance&&performance.now?performance:Date,va="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function Ti(){return kt||(va(Dn),kt=sn.now()+Mi)}function Dn(){kt=0}function co(){this._call=this._time=this._next=null}function Ks(f,D,r){var y=new co;return y.restart(f,D,r),y}function ds(){kt=(Ye=sn.now())+Mi,ca=Fi=0;try{!function Ka(){Ti(),++ca;for(var D,f=lt;f;)(D=kt-f._time)>=0&&f._call.call(void 0,D),f=f._next;--ca}()}finally{ca=0,function Dr(){for(var f,r,D=lt,y=1/0;D;)D._call?(y>D._time&&(y=D._time),f=D,D=D._next):(r=D._next,D._next=null,D=f?f._next=r:lt=r);it=f,Wo(y)}(),kt=0}}function Zo(){var f=sn.now(),D=f-Ye;D>qa&&(Mi-=D,Ye=f)}function Wo(f){ca||(Fi&&(Fi=clearTimeout(Fi)),f-kt>24?(f<1/0&&(Fi=setTimeout(ds,f-sn.now()-Mi)),gn&&(gn=clearInterval(gn))):(gn||(Ye=sn.now(),gn=setInterval(Zo,qa)),ca=1,va(ds)))}function Ds(f,D,r){var y=new co;return y.restart(U=>{y.stop(),f(U+D)},D=null==D?0:+D,r),y}co.prototype=Ks.prototype={constructor:co,restart:function(f,D,r){if("function"!=typeof f)throw new TypeError("callback is not a function");r=(null==r?Ti():+r)+(null==D?0:+D),!this._next&&it!==this&&(it?it._next=this:lt=this,it=this),this._call=f,this._time=r,Wo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wo())}};var Bc=gi("start","end","cancel","interrupt"),js=[],$o=0,Jn=1,Di=2,Na=3,lo=4,Ii=5,Vo=6;function So(f,D,r,y,U,j){var ke=f.__transition;if(ke){if(r in ke)return}else f.__transition={};!function Yo(f,D,r){var U,y=f.__transition;function ke(Zt){var ci,fi,vi,Ei;if(r.state!==Jn)return Kt();for(ci in y)if((Ei=y[ci]).name===r.name){if(Ei.state===Na)return Ds(ke);Ei.state===lo?(Ei.state=Vo,Ei.timer.stop(),Ei.on.call("interrupt",f,f.__data__,Ei.index,Ei.group),delete y[ci]):+ci<D&&(Ei.state=Vo,Ei.timer.stop(),Ei.on.call("cancel",f,f.__data__,Ei.index,Ei.group),delete y[ci])}if(Ds(function(){r.state===Na&&(r.state=lo,r.timer.restart(st,r.delay,r.time),st(Zt))}),r.state=Di,r.on.call("start",f,f.__data__,r.index,r.group),r.state===Di){for(r.state=Na,U=new Array(vi=r.tween.length),ci=0,fi=-1;ci<vi;++ci)(Ei=r.tween[ci].value.call(f,f.__data__,r.index,r.group))&&(U[++fi]=Ei);U.length=fi+1}}function st(Zt){for(var ci=Zt<r.duration?r.ease.call(null,Zt/r.duration):(r.timer.restart(Kt),r.state=Ii,1),fi=-1,vi=U.length;++fi<vi;)U[fi].call(f,ci);r.state===Ii&&(r.on.call("end",f,f.__data__,r.index,r.group),Kt())}function Kt(){for(var Zt in r.state=Vo,r.timer.stop(),delete y[D],y)return;delete f.__transition}y[D]=r,r.timer=Ks(function j(Zt){r.state=Jn,r.timer.restart(ke,r.delay,r.time),r.delay<=Zt&&ke(Zt-r.delay)},0,r.time)}(f,r,{name:D,index:y,group:U,on:Bc,tween:js,time:j.time,delay:j.delay,duration:j.duration,ease:j.ease,timer:null,state:$o})}function mc(f,D){var r=mr(f,D);if(r.state>$o)throw new Error("too late; already scheduled");return r}function Ir(f,D){var r=mr(f,D);if(r.state>Na)throw new Error("too late; already running");return r}function mr(f,D){var r=f.__transition;if(!r||!(r=r[D]))throw new Error("transition not found");return r}var ks,Qs=180/Math.PI,Bo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Is(f,D,r,y,U,j){var ke,st,Kt;return(ke=Math.sqrt(f*f+D*D))&&(f/=ke,D/=ke),(Kt=f*r+D*y)&&(r-=f*Kt,y-=D*Kt),(st=Math.sqrt(r*r+y*y))&&(r/=st,y/=st,Kt/=st),f*y<D*r&&(f=-f,D=-D,Kt=-Kt,ke=-ke),{translateX:U,translateY:j,rotate:Math.atan2(D,f)*Qs,skewX:Math.atan(Kt)*Qs,scaleX:ke,scaleY:st}}function Ia(f,D,r,y){function U(Zt){return Zt.length?Zt.pop()+" ":""}return function(Zt,ci){var fi=[],vi=[];return Zt=f(Zt),ci=f(ci),function j(Zt,ci,fi,vi,Ei,Xi){if(Zt!==fi||ci!==vi){var bn=Ei.push("translate(",null,D,null,r);Xi.push({i:bn-4,x:kn(Zt,fi)},{i:bn-2,x:kn(ci,vi)})}else(fi||vi)&&Ei.push("translate("+fi+D+vi+r)}(Zt.translateX,Zt.translateY,ci.translateX,ci.translateY,fi,vi),function ke(Zt,ci,fi,vi){Zt!==ci?(Zt-ci>180?ci+=360:ci-Zt>180&&(Zt+=360),vi.push({i:fi.push(U(fi)+"rotate(",null,y)-2,x:kn(Zt,ci)})):ci&&fi.push(U(fi)+"rotate("+ci+y)}(Zt.rotate,ci.rotate,fi,vi),function st(Zt,ci,fi,vi){Zt!==ci?vi.push({i:fi.push(U(fi)+"skewX(",null,y)-2,x:kn(Zt,ci)}):ci&&fi.push(U(fi)+"skewX("+ci+y)}(Zt.skewX,ci.skewX,fi,vi),function Kt(Zt,ci,fi,vi,Ei,Xi){if(Zt!==fi||ci!==vi){var bn=Ei.push(U(Ei)+"scale(",null,",",null,")");Xi.push({i:bn-4,x:kn(Zt,fi)},{i:bn-2,x:kn(ci,vi)})}else(1!==fi||1!==vi)&&Ei.push(U(Ei)+"scale("+fi+","+vi+")")}(Zt.scaleX,Zt.scaleY,ci.scaleX,ci.scaleY,fi,vi),Zt=ci=null,function(Ei){for(var Li,Xi=-1,bn=vi.length;++Xi<bn;)fi[(Li=vi[Xi]).i]=Li.x(Ei);return fi.join("")}}}var es=Ia(function pc(f){const D=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return D.isIdentity?Bo:Is(D.a,D.b,D.c,D.d,D.e,D.f)},"px, ","px)","deg)"),us=Ia(function qs(f){return null!=f&&(ks||(ks=document.createElementNS("http://www.w3.org/2000/svg","g")),ks.setAttribute("transform",f),f=ks.transform.baseVal.consolidate())?Is((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):Bo},", ",")",")");function Ki(f,D){var r,y;return function(){var U=Ir(this,f),j=U.tween;if(j!==r)for(var ke=0,st=(y=r=j).length;ke<st;++ke)if(y[ke].name===D){(y=y.slice()).splice(ke,1);break}U.tween=y}}function Ja(f,D,r){var y,U;if("function"!=typeof r)throw new Error;return function(){var j=Ir(this,f),ke=j.tween;if(ke!==y){U=(y=ke).slice();for(var st={name:D,value:r},Kt=0,Zt=U.length;Kt<Zt;++Kt)if(U[Kt].name===D){U[Kt]=st;break}Kt===Zt&&U.push(st)}j.tween=U}}function la(f,D,r){var y=f._id;return f.each(function(){var U=Ir(this,y);(U.value||(U.value={}))[D]=r.apply(this,arguments)}),function(U){return mr(U,y).value[D]}}function fs(f,D){var r;return("number"==typeof D?kn:D instanceof La?eo:(r=La(D))?(D=r,eo):hi)(f,D)}function Uc(f){return function(){this.removeAttribute(f)}}function gc(f){return function(){this.removeAttributeNS(f.space,f.local)}}function On(f,D,r){var y,j,U=r+"";return function(){var ke=this.getAttribute(f);return ke===U?null:ke===y?j:j=D(y=ke,r)}}function Ui(f,D,r){var y,j,U=r+"";return function(){var ke=this.getAttributeNS(f.space,f.local);return ke===U?null:ke===y?j:j=D(y=ke,r)}}function ba(f,D,r){var y,U,j;return function(){var ke,Kt,st=r(this);return null==st?void this.removeAttribute(f):(ke=this.getAttribute(f))===(Kt=st+"")?null:ke===y&&Kt===U?j:(U=Kt,j=D(y=ke,st))}}function ma(f,D,r){var y,U,j;return function(){var ke,Kt,st=r(this);return null==st?void this.removeAttributeNS(f.space,f.local):(ke=this.getAttributeNS(f.space,f.local))===(Kt=st+"")?null:ke===y&&Kt===U?j:(U=Kt,j=D(y=ke,st))}}function ne(f,D){var r,y;function U(){var j=D.apply(this,arguments);return j!==y&&(r=(y=j)&&function Be(f,D){return function(r){this.setAttributeNS(f.space,f.local,D.call(this,r))}}(f,j)),r}return U._value=D,U}function te(f,D){var r,y;function U(){var j=D.apply(this,arguments);return j!==y&&(r=(y=j)&&function Rn(f,D){return function(r){this.setAttribute(f,D.call(this,r))}}(f,j)),r}return U._value=D,U}function nt(f,D){return function(){mc(this,f).delay=+D.apply(this,arguments)}}function we(f,D){return D=+D,function(){mc(this,f).delay=D}}function ii(f,D){return function(){Ir(this,f).duration=+D.apply(this,arguments)}}function qt(f,D){return D=+D,function(){Ir(this,f).duration=D}}var kr=be.prototype.constructor;function Ur(f){return function(){this.style.removeProperty(f)}}var ar=0;function jo(f,D,r,y){this._groups=f,this._parents=D,this._name=r,this._id=y}function $l(){return++ar}var ja=be.prototype;jo.prototype=function Ps(f){return be().transition(f)}.prototype={constructor:jo,select:function ka(f){var D=this._name,r=this._id;"function"!=typeof f&&(f=d(f));for(var y=this._groups,U=y.length,j=new Array(U),ke=0;ke<U;++ke)for(var ci,fi,st=y[ke],Kt=st.length,Zt=j[ke]=new Array(Kt),vi=0;vi<Kt;++vi)(ci=st[vi])&&(fi=f.call(ci,ci.__data__,vi,st))&&("__data__"in ci&&(fi.__data__=ci.__data__),Zt[vi]=fi,So(Zt[vi],D,r,vi,Zt,mr(ci,r)));return new jo(j,this._parents,D,r)},selectAll:function Sa(f){var D=this._name,r=this._id;"function"!=typeof f&&(f=k(f));for(var y=this._groups,U=y.length,j=[],ke=[],st=0;st<U;++st)for(var ci,Kt=y[st],Zt=Kt.length,fi=0;fi<Zt;++fi)if(ci=Kt[fi]){for(var Ei,vi=f.call(ci,ci.__data__,fi,Kt),Xi=mr(ci,r),bn=0,Li=vi.length;bn<Li;++bn)(Ei=vi[bn])&&So(Ei,D,r,bn,vi,Xi);j.push(vi),ke.push(ci)}return new jo(j,ke,D,r)},selectChild:ja.selectChild,selectChildren:ja.selectChildren,filter:function dn(f){"function"!=typeof f&&(f=W(f));for(var D=this._groups,r=D.length,y=new Array(r),U=0;U<r;++U)for(var Kt,j=D[U],ke=j.length,st=y[U]=[],Zt=0;Zt<ke;++Zt)(Kt=j[Zt])&&f.call(Kt,Kt.__data__,Zt,j)&&st.push(Kt);return new jo(y,this._parents,this._name,this._id)},merge:function da(f){if(f._id!==this._id)throw new Error;for(var D=this._groups,r=f._groups,y=D.length,j=Math.min(y,r.length),ke=new Array(y),st=0;st<j;++st)for(var vi,Kt=D[st],Zt=r[st],ci=Kt.length,fi=ke[st]=new Array(ci),Ei=0;Ei<ci;++Ei)(vi=Kt[Ei]||Zt[Ei])&&(fi[Ei]=vi);for(;st<y;++st)ke[st]=D[st];return new jo(ke,this._parents,this._name,this._id)},selection:function Ha(){return new kr(this._groups,this._parents)},transition:function Wc(){for(var f=this._name,D=this._id,r=$l(),y=this._groups,U=y.length,j=0;j<U;++j)for(var Kt,ke=y[j],st=ke.length,Zt=0;Zt<st;++Zt)if(Kt=ke[Zt]){var ci=mr(Kt,D);So(Kt,f,r,Zt,ke,{time:ci.time+ci.delay+ci.duration,delay:0,duration:ci.duration,ease:ci.ease})}return new jo(y,this._parents,f,r)},call:ja.call,nodes:ja.nodes,node:ja.node,size:ja.size,empty:ja.empty,each:ja.each,on:function ha(f,D){var r=this._id;return arguments.length<2?mr(this.node(),r).on.on(f):this.each(function Fa(f,D,r){var y,U,j=function pa(f){return(f+"").trim().split(/^|\s+/).every(function(D){var r=D.indexOf(".");return r>=0&&(D=D.slice(0,r)),!D||"start"===D})}(D)?mc:Ir;return function(){var ke=j(this,f),st=ke.on;st!==y&&(U=(y=st).copy()).on(D,r),ke.on=U}}(r,f,D))},attr:function zi(f,D){var r=ze(f),y="transform"===r?us:fs;return this.attrTween(f,"function"==typeof D?(r.local?ma:ba)(r,y,la(this,"attr."+f,D)):null==D?(r.local?gc:Uc)(r):(r.local?Ui:On)(r,y,D))},attrTween:function De(f,D){var r="attr."+f;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==D)return this.tween(r,null);if("function"!=typeof D)throw new Error;var y=ze(f);return this.tween(r,(y.local?ne:te)(y,D))},style:function Gc(f,D,r){var y="transform"==(f+="")?es:fs;return null==D?this.styleTween(f,function uo(f,D){var r,y,U;return function(){var j=ut(this,f),ke=(this.style.removeProperty(f),ut(this,f));return j===ke?null:j===r&&ke===y?U:U=D(r=j,y=ke)}}(f,y)).on("end.style."+f,Ur(f)):"function"==typeof D?this.styleTween(f,function Ko(f,D,r){var y,U,j;return function(){var ke=ut(this,f),st=r(this),Kt=st+"";return null==st&&(this.style.removeProperty(f),Kt=st=ut(this,f)),ke===Kt?null:ke===y&&Kt===U?j:(U=Kt,j=D(y=ke,st))}}(f,y,la(this,"style."+f,D))).each(function ql(f,D){var r,y,U,st,j="style."+D,ke="end."+j;return function(){var Kt=Ir(this,f),Zt=Kt.on,ci=null==Kt.value[j]?st||(st=Ur(D)):void 0;(Zt!==r||U!==ci)&&(y=(r=Zt).copy()).on(ke,U=ci),Kt.on=y}}(this._id,f)):this.styleTween(f,function fl(f,D,r){var y,j,U=r+"";return function(){var ke=ut(this,f);return ke===U?null:ke===y?j:j=D(y=ke,r)}}(f,y,D),r).on("end.style."+f,null)},styleTween:function Os(f,D,r){var y="style."+(f+="");if(arguments.length<2)return(y=this.tween(y))&&y._value;if(null==D)return this.tween(y,null);if("function"!=typeof D)throw new Error;return this.tween(y,function Jl(f,D,r){var y,U;function j(){var ke=D.apply(this,arguments);return ke!==U&&(y=(U=ke)&&function Or(f,D,r){return function(y){this.style.setProperty(f,D.call(this,y),r)}}(f,ke,r)),y}return j._value=D,j}(f,D,r??""))},text:function pl(f){return this.tween("text","function"==typeof f?function ml(f){return function(){var D=f(this);this.textContent=D??""}}(la(this,"text",f)):function Zc(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function Xl(f){var D="text";if(arguments.length<1)return(D=this.tween(D))&&D._value;if(null==f)return this.tween(D,null);if("function"!=typeof f)throw new Error;return this.tween(D,function Q1(f){var D,r;function y(){var U=f.apply(this,arguments);return U!==r&&(D=(r=U)&&function j1(f){return function(D){this.textContent=f.call(this,D)}}(U)),D}return y._value=f,y}(f))},remove:function Qn(){return this.on("end.remove",function ua(f){return function(){var D=this.parentNode;for(var r in this.__transition)if(+r!==f)return;D&&D.removeChild(this)}}(this._id))},tween:function Uo(f,D){var r=this._id;if(f+="",arguments.length<2){for(var ke,y=mr(this.node(),r).tween,U=0,j=y.length;U<j;++U)if((ke=y[U]).name===f)return ke.value;return null}return this.each((null==D?Ki:Ja)(r,f,D))},delay:function Rt(f){var D=this._id;return arguments.length?this.each(("function"==typeof f?nt:we)(D,f)):mr(this.node(),D).delay},duration:function _i(f){var D=this._id;return arguments.length?this.each(("function"==typeof f?ii:qt)(D,f)):mr(this.node(),D).duration},ease:function Oi(f){var D=this._id;return arguments.length?this.each(function yi(f,D){if("function"!=typeof D)throw new Error;return function(){Ir(this,f).ease=D}}(D,f)):mr(this.node(),D).ease},easeVarying:function tn(f){if("function"!=typeof f)throw new Error;return this.each(function qi(f,D){return function(){var r=D.apply(this,arguments);if("function"!=typeof r)throw new Error;Ir(this,f).ease=r}}(this._id,f))},end:function Js(){var f,D,r=this,y=r._id,U=r.size();return new Promise(function(j,ke){var st={value:ke},Kt={value:function(){0==--U&&j()}};r.each(function(){var Zt=Ir(this,y),ci=Zt.on;ci!==f&&((D=(f=ci).copy())._.cancel.push(st),D._.interrupt.push(st),D._.end.push(Kt)),Zt.on=D}),0===U&&j()})},[Symbol.iterator]:ja[Symbol.iterator]};var C2={time:null,delay:0,duration:250,ease:function _l(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function q1(f,D){for(var r;!(r=f.__transition)||!(r=r[D]);)if(!(f=f.parentNode))throw new Error(`transition ${D} not found`);return r}be.prototype.interrupt=function hs(f){return this.each(function(){!function ho(f,D){var y,U,ke,r=f.__transition,j=!0;if(r){for(ke in D=null==D?null:D+"",r)(y=r[ke]).name===D?(U=y.state>Di&&y.state<Ii,y.state=Vo,y.timer.stop(),y.on.call(U?"interrupt":"cancel",f,f.__data__,y.index,y.group),delete r[ke]):j=!1;j&&delete f.__transition}}(this,f)})},be.prototype.transition=function _c(f){var D,r;f instanceof jo?(D=f._id,f=f._name):(D=$l(),(r=C2).time=Ti(),f=null==f?null:f+"");for(var y=this._groups,U=y.length,j=0;j<U;++j)for(var Kt,ke=y[j],st=ke.length,Zt=0;Zt<st;++Zt)(Kt=ke[Zt])&&So(Kt,f,D,Zt,ke,r||q1(Kt,D));return new jo(y,this._parents,f,D)};Math;function qo(f){return{type:f}}function ki(f,D){return null==f||null==D?NaN:f<D?-1:f>D?1:f>=D?0:NaN}function on(f,D){return null==f||null==D?NaN:D<f?-1:D>f?1:D>=f?0:NaN}function rn(f){let D,r,y;function U(st,Kt,Zt=0,ci=st.length){if(Zt<ci){if(0!==D(Kt,Kt))return ci;do{const fi=Zt+ci>>>1;r(st[fi],Kt)<0?Zt=fi+1:ci=fi}while(Zt<ci)}return Zt}return 2!==f.length?(D=ki,r=(st,Kt)=>ki(f(st),Kt),y=(st,Kt)=>f(st)-Kt):(D=f===ki||f===on?f:fa,r=f,y=f),{left:U,center:function ke(st,Kt,Zt=0,ci=st.length){const fi=U(st,Kt,Zt,ci-1);return fi>Zt&&y(st[fi-1],Kt)>-y(st[fi],Kt)?fi-1:fi},right:function j(st,Kt,Zt=0,ci=st.length){if(Zt<ci){if(0!==D(Kt,Kt))return ci;do{const fi=Zt+ci>>>1;r(st[fi],Kt)<=0?Zt=fi+1:ci=fi}while(Zt<ci)}return Zt}}}function fa(){return 0}["w","e"].map(qo),["n","s"].map(qo),["n","w","e","s","nw","ne","sw","se"].map(qo);const sr=Math.sqrt(50),ps=Math.sqrt(10),is=Math.sqrt(2);function Eo(f,D,r){const y=(D-f)/Math.max(0,r),U=Math.floor(Math.log10(y)),j=y/Math.pow(10,U),ke=j>=sr?10:j>=ps?5:j>=is?2:1;let st,Kt,Zt;return U<0?(Zt=Math.pow(10,-U)/ke,st=Math.round(f*Zt),Kt=Math.round(D*Zt),st/Zt<f&&++st,Kt/Zt>D&&--Kt,Zt=-Zt):(Zt=Math.pow(10,U)*ke,st=Math.round(f/Zt),Kt=Math.round(D/Zt),st*Zt<f&&++st,Kt*Zt>D&&--Kt),Kt<st&&.5<=r&&r<2?Eo(f,D,2*r):[st,Kt,Zt]}function bc(f,D,r){return Eo(f=+f,D=+D,r=+r)[2]}function Xs(f,D,r){r=+r;const y=(D=+D)<(f=+f),U=y?bc(D,f,r):bc(f,D,r);return(y?-1:1)*(U<0?1/-U:U)}const br=1e3,yr=60*br,xr=60*yr,Ao=24*xr,e1=7*Ao,Ns=30*Ao,ed=365*Ao,t1=new Date,yc=new Date;function Xa(f,D,r,y){function U(j){return f(j=0===arguments.length?new Date:new Date(+j)),j}return U.floor=j=>(f(j=new Date(+j)),j),U.ceil=j=>(f(j=new Date(j-1)),D(j,1),f(j),j),U.round=j=>{const ke=U(j),st=U.ceil(j);return j-ke<st-j?ke:st},U.offset=(j,ke)=>(D(j=new Date(+j),null==ke?1:Math.floor(ke)),j),U.range=(j,ke,st)=>{const Kt=[];if(j=U.ceil(j),st=null==st?1:Math.floor(st),!(j<ke&&st>0))return Kt;let Zt;do{Kt.push(Zt=new Date(+j)),D(j,st),f(j)}while(Zt<j&&j<ke);return Kt},U.filter=j=>Xa(ke=>{if(ke>=ke)for(;f(ke),!j(ke);)ke.setTime(ke-1)},(ke,st)=>{if(ke>=ke)if(st<0)for(;++st<=0;)for(;D(ke,-1),!j(ke););else for(;--st>=0;)for(;D(ke,1),!j(ke););}),r&&(U.count=(j,ke)=>(t1.setTime(+j),yc.setTime(+ke),f(t1),f(yc),Math.floor(r(t1,yc))),U.every=j=>(j=Math.floor(j),isFinite(j)&&j>0?j>1?U.filter(y?ke=>y(ke)%j==0:ke=>U.count(0,ke)%j==0):U:null)),U}const yl=Xa(()=>{},(f,D)=>{f.setTime(+f+D)},(f,D)=>D-f);yl.every=f=>(f=Math.floor(f),isFinite(f)&&f>0?f>1?Xa(D=>{D.setTime(Math.floor(D/f)*f)},(D,r)=>{D.setTime(+D+r*f)},(D,r)=>(r-D)/f):yl:null);const qc=Xa(f=>{f.setTime(f-f.getMilliseconds())},(f,D)=>{f.setTime(+f+D*br)},(f,D)=>(D-f)/br,f=>f.getUTCSeconds()),xc=Xa(f=>{f.setTime(f-f.getMilliseconds()-f.getSeconds()*br)},(f,D)=>{f.setTime(+f+D*yr)},(f,D)=>(D-f)/yr,f=>f.getMinutes()),vh=Xa(f=>{f.setUTCSeconds(0,0)},(f,D)=>{f.setTime(+f+D*yr)},(f,D)=>(D-f)/yr,f=>f.getUTCMinutes()),td=Xa(f=>{f.setTime(f-f.getMilliseconds()-f.getSeconds()*br-f.getMinutes()*yr)},(f,D)=>{f.setTime(+f+D*xr)},(f,D)=>(D-f)/xr,f=>f.getHours()),S2=Xa(f=>{f.setUTCMinutes(0,0,0)},(f,D)=>{f.setTime(+f+D*xr)},(f,D)=>(D-f)/xr,f=>f.getUTCHours()),id=Xa(f=>f.setHours(0,0,0,0),(f,D)=>f.setDate(f.getDate()+D),(f,D)=>(D-f-(D.getTimezoneOffset()-f.getTimezoneOffset())*yr)/Ao,f=>f.getDate()-1),ad=(Xa(f=>{f.setUTCHours(0,0,0,0)},(f,D)=>{f.setUTCDate(f.getUTCDate()+D)},(f,D)=>(D-f)/Ao,f=>f.getUTCDate()-1),Xa(f=>{f.setUTCHours(0,0,0,0)},(f,D)=>{f.setUTCDate(f.getUTCDate()+D)},(f,D)=>(D-f)/Ao,f=>Math.floor(f/Ao)));function $s(f){return Xa(D=>{D.setDate(D.getDate()-(D.getDay()+7-f)%7),D.setHours(0,0,0,0)},(D,r)=>{D.setDate(D.getDate()+7*r)},(D,r)=>(r-D-(r.getTimezoneOffset()-D.getTimezoneOffset())*yr)/e1)}const T2=$s(0);function Fs(f){return Xa(D=>{D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-f)%7),D.setUTCHours(0,0,0,0)},(D,r)=>{D.setUTCDate(D.getUTCDate()+7*r)},(D,r)=>(r-D)/e1)}$s(1),$s(2),$s(3),$s(4),$s(5),$s(6);const cd=Fs(0),xl=(Fs(1),Fs(2),Fs(3),Fs(4),Fs(5),Fs(6),Xa(f=>{f.setDate(1),f.setHours(0,0,0,0)},(f,D)=>{f.setMonth(f.getMonth()+D)},(f,D)=>D.getMonth()-f.getMonth()+12*(D.getFullYear()-f.getFullYear()),f=>f.getMonth())),n1=Xa(f=>{f.setUTCDate(1),f.setUTCHours(0,0,0,0)},(f,D)=>{f.setUTCMonth(f.getUTCMonth()+D)},(f,D)=>D.getUTCMonth()-f.getUTCMonth()+12*(D.getUTCFullYear()-f.getUTCFullYear()),f=>f.getUTCMonth()),Xc=Xa(f=>{f.setMonth(0,1),f.setHours(0,0,0,0)},(f,D)=>{f.setFullYear(f.getFullYear()+D)},(f,D)=>D.getFullYear()-f.getFullYear(),f=>f.getFullYear());Xc.every=f=>isFinite(f=Math.floor(f))&&f>0?Xa(D=>{D.setFullYear(Math.floor(D.getFullYear()/f)*f),D.setMonth(0,1),D.setHours(0,0,0,0)},(D,r)=>{D.setFullYear(D.getFullYear()+r*f)}):null;const ec=Xa(f=>{f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},(f,D)=>{f.setUTCFullYear(f.getUTCFullYear()+D)},(f,D)=>D.getUTCFullYear()-f.getUTCFullYear(),f=>f.getUTCFullYear());function dd(f,D,r,y,U,j){const ke=[[qc,1,br],[qc,5,5*br],[qc,15,15*br],[qc,30,30*br],[j,1,yr],[j,5,5*yr],[j,15,15*yr],[j,30,30*yr],[U,1,xr],[U,3,3*xr],[U,6,6*xr],[U,12,12*xr],[y,1,Ao],[y,2,2*Ao],[r,1,e1],[D,1,Ns],[D,3,3*Ns],[f,1,ed]];function Kt(Zt,ci,fi){const vi=Math.abs(ci-Zt)/fi,Ei=rn(([,,Li])=>Li).right(ke,vi);if(Ei===ke.length)return f.every(Xs(Zt/ed,ci/ed,fi));if(0===Ei)return yl.every(Math.max(Xs(Zt,ci,fi),1));const[Xi,bn]=ke[vi/ke[Ei-1][2]<ke[Ei][2]/vi?Ei-1:Ei];return Xi.every(bn)}return[function st(Zt,ci,fi){const vi=ci<Zt;vi&&([Zt,ci]=[ci,Zt]);const Ei=fi&&"function"==typeof fi.range?fi:Kt(Zt,ci,fi),Xi=Ei?Ei.range(Zt,+ci+1):[];return vi?Xi.reverse():Xi},Kt]}ec.every=f=>isFinite(f=Math.floor(f))&&f>0?Xa(D=>{D.setUTCFullYear(Math.floor(D.getUTCFullYear()/f)*f),D.setUTCMonth(0,1),D.setUTCHours(0,0,0,0)},(D,r)=>{D.setUTCFullYear(D.getUTCFullYear()+r*f)}):null;const[Vf,I2]=dd(ec,n1,cd,ad,S2,vh),[Dh,k2]=dd(Xc,xl,T2,id,td,xc);var a1=new Date,r1=new Date;function Hs(f,D,r,y){function U(j){return f(j=0===arguments.length?new Date:new Date(+j)),j}return U.floor=function(j){return f(j=new Date(+j)),j},U.ceil=function(j){return f(j=new Date(j-1)),D(j,1),f(j),j},U.round=function(j){var ke=U(j),st=U.ceil(j);return j-ke<st-j?ke:st},U.offset=function(j,ke){return D(j=new Date(+j),null==ke?1:Math.floor(ke)),j},U.range=function(j,ke,st){var Zt,Kt=[];if(j=U.ceil(j),st=null==st?1:Math.floor(st),!(j<ke&&st>0))return Kt;do{Kt.push(Zt=new Date(+j)),D(j,st),f(j)}while(Zt<j&&j<ke);return Kt},U.filter=function(j){return Hs(function(ke){if(ke>=ke)for(;f(ke),!j(ke);)ke.setTime(ke-1)},function(ke,st){if(ke>=ke)if(st<0)for(;++st<=0;)for(;D(ke,-1),!j(ke););else for(;--st>=0;)for(;D(ke,1),!j(ke););})},r&&(U.count=function(j,ke){return a1.setTime(+j),r1.setTime(+ke),f(a1),f(r1),Math.floor(r(a1,r1))},U.every=function(j){return j=Math.floor(j),isFinite(j)&&j>0?j>1?U.filter(y?function(ke){return y(ke)%j==0}:function(ke){return U.count(0,ke)%j==0}):U:null}),U}const Cl=6e4,wl=60*Cl*24,Cc=7*wl;function zs(f){return Hs(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-f)%7),D.setUTCHours(0,0,0,0)},function(D,r){D.setUTCDate(D.getUTCDate()+7*r)},function(D,r){return(r-D)/Cc})}var o1=zs(0),$c=zs(1),tc=(zs(2),zs(3),zs(4));const hd=(zs(5),zs(6),Hs(function(f){f.setUTCHours(0,0,0,0)},function(f,D){f.setUTCDate(f.getUTCDate()+D)},function(f,D){return(D-f)/wl},function(f){return f.getUTCDate()-1}));function wc(f){return Hs(function(D){D.setDate(D.getDate()-(D.getDay()+7-f)%7),D.setHours(0,0,0,0)},function(D,r){D.setDate(D.getDate()+7*r)},function(D,r){return(r-D-(r.getTimezoneOffset()-D.getTimezoneOffset())*Cl)/Cc})}var h1=wc(0),Ml=wc(1),ic=(wc(2),wc(3),wc(4));const Sl=(wc(5),wc(6),Hs(f=>f.setHours(0,0,0,0),(f,D)=>f.setDate(f.getDate()+D),(f,D)=>(D-f-(D.getTimezoneOffset()-f.getTimezoneOffset())*Cl)/wl,f=>f.getDate()-1));var f1=Hs(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,D){f.setFullYear(f.getFullYear()+D)},function(f,D){return D.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});f1.every=function(f){return isFinite(f=Math.floor(f))&&f>0?Hs(function(D){D.setFullYear(Math.floor(D.getFullYear()/f)*f),D.setMonth(0,1),D.setHours(0,0,0,0)},function(D,r){D.setFullYear(D.getFullYear()+r*f)}):null};const nc=f1;var Tl=Hs(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,D){f.setUTCFullYear(f.getUTCFullYear()+D)},function(f,D){return D.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});Tl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?Hs(function(D){D.setUTCFullYear(Math.floor(D.getUTCFullYear()/f)*f),D.setUTCMonth(0,1),D.setUTCHours(0,0,0,0)},function(D,r){D.setUTCFullYear(D.getUTCFullYear()+r*f)}):null};const Vs=Tl;function m1(f){if(0<=f.y&&f.y<100){var D=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return D.setFullYear(f.y),D}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function gd(f){if(0<=f.y&&f.y<100){var D=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return D.setUTCFullYear(f.y),D}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function El(f,D,r){return{y:f,m:D,d:r,H:0,M:0,S:0,L:0}}var _d={"-":"",_:" ",0:"0"},pr=/^\s*\d+/,p1=/^%/,g1=/[\\^$*+?|[\]().{}]/g;function ea(f,D,r){var y=f<0?"-":"",U=(y?-f:f)+"",j=U.length;return y+(j<r?new Array(r-j+1).join(D)+U:U)}function Fh(f){return f.replace(g1,"\\$&")}function Bs(f){return new RegExp("^(?:"+f.map(Fh).join("|")+")","i")}function tl(f){return new Map(f.map((D,r)=>[D.toLowerCase(),r]))}function _1(f,D,r){var y=pr.exec(D.slice(r,r+1));return y?(f.w=+y[0],r+y[0].length):-1}function v1(f,D,r){var y=pr.exec(D.slice(r,r+1));return y?(f.u=+y[0],r+y[0].length):-1}function Hh(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.U=+y[0],r+y[0].length):-1}function V2(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.V=+y[0],r+y[0].length):-1}function Al(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.W=+y[0],r+y[0].length):-1}function b1(f,D,r){var y=pr.exec(D.slice(r,r+4));return y?(f.y=+y[0],r+y[0].length):-1}function vd(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.y=+y[0]+(+y[0]>68?1900:2e3),r+y[0].length):-1}function bd(f,D,r){var y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(r,r+6));return y?(f.Z=y[1]?0:-(y[2]+(y[3]||"00")),r+y[0].length):-1}function yd(f,D,r){var y=pr.exec(D.slice(r,r+1));return y?(f.q=3*y[0]-3,r+y[0].length):-1}function as(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.m=y[0]-1,r+y[0].length):-1}function xd(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.d=+y[0],r+y[0].length):-1}function zh(f,D,r){var y=pr.exec(D.slice(r,r+3));return y?(f.m=0,f.d=+y[0],r+y[0].length):-1}function Cd(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.H=+y[0],r+y[0].length):-1}function Vh(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.M=+y[0],r+y[0].length):-1}function Bh(f,D,r){var y=pr.exec(D.slice(r,r+2));return y?(f.S=+y[0],r+y[0].length):-1}function Us(f,D,r){var y=pr.exec(D.slice(r,r+3));return y?(f.L=+y[0],r+y[0].length):-1}function il(f,D,r){var y=pr.exec(D.slice(r,r+6));return y?(f.L=Math.floor(y[0]/1e3),r+y[0].length):-1}function Ll(f,D,r){var y=p1.exec(D.slice(r,r+1));return y?r+y[0].length:-1}function B2(f,D,r){var y=pr.exec(D.slice(r));return y?(f.Q=+y[0],r+y[0].length):-1}function Uh(f,D,r){var y=pr.exec(D.slice(r));return y?(f.s=+y[0],r+y[0].length):-1}function U2(f,D){return ea(f.getDate(),D,2)}function Gh(f,D){return ea(f.getHours(),D,2)}function Zh(f,D){return ea(f.getHours()%12||12,D,2)}function G2(f,D){return ea(1+Sl.count(nc(f),f),D,3)}function Z2(f,D){return ea(f.getMilliseconds(),D,3)}function Wh(f,D){return Z2(f,D)+"000"}function Yh(f,D){return ea(f.getMonth()+1,D,2)}function W2(f,D){return ea(f.getMinutes(),D,2)}function y1(f,D){return ea(f.getSeconds(),D,2)}function _s(f){var D=f.getDay();return 0===D?7:D}function Dl(f,D){return ea(h1.count(nc(f)-1,f),D,2)}function wd(f){var D=f.getDay();return D>=4||0===D?ic(f):ic.ceil(f)}function Y2(f,D){return f=wd(f),ea(ic.count(nc(f),f)+(4===nc(f).getDay()),D,2)}function Md(f){return f.getDay()}function Kf(f,D){return ea(Ml.count(nc(f)-1,f),D,2)}function K2(f,D){return ea(f.getFullYear()%100,D,2)}function jf(f,D){return ea((f=wd(f)).getFullYear()%100,D,2)}function Sd(f,D){return ea(f.getFullYear()%1e4,D,4)}function x1(f,D){var r=f.getDay();return ea((f=r>=4||0===r?ic(f):ic.ceil(f)).getFullYear()%1e4,D,4)}function Qf(f){var D=f.getTimezoneOffset();return(D>0?"-":(D*=-1,"+"))+ea(D/60|0,"0",2)+ea(D%60,"0",2)}function Kh(f,D){return ea(f.getUTCDate(),D,2)}function Td(f,D){return ea(f.getUTCHours(),D,2)}function jh(f,D){return ea(f.getUTCHours()%12||12,D,2)}function Qh(f,D){return ea(1+hd.count(Vs(f),f),D,3)}function j2(f,D){return ea(f.getUTCMilliseconds(),D,3)}function qh(f,D){return j2(f,D)+"000"}function Q2(f,D){return ea(f.getUTCMonth()+1,D,2)}function C1(f,D){return ea(f.getUTCMinutes(),D,2)}function q2(f,D){return ea(f.getUTCSeconds(),D,2)}function Ed(f){var D=f.getUTCDay();return 0===D?7:D}function J2(f,D){return ea(o1.count(Vs(f)-1,f),D,2)}function $a(f){var D=f.getUTCDay();return D>=4||0===D?tc(f):tc.ceil(f)}function Ad(f,D){return f=$a(f),ea(tc.count(Vs(f),f)+(4===Vs(f).getUTCDay()),D,2)}function Jh(f){return f.getUTCDay()}function X2(f,D){return ea($c.count(Vs(f)-1,f),D,2)}function Ld(f,D){return ea(f.getUTCFullYear()%100,D,2)}function Xh(f,D){return ea((f=$a(f)).getUTCFullYear()%100,D,2)}function $h(f,D){return ea(f.getUTCFullYear()%1e4,D,4)}function $2(f,D){var r=f.getUTCDay();return ea((f=r>=4||0===r?tc(f):tc.ceil(f)).getUTCFullYear()%1e4,D,4)}function eu(){return"+0000"}function Dd(){return"%"}function tu(f){return+f}function Sc(f){return Math.floor(+f/1e3)}function kd(f){return null===f?NaN:+f}!function iu(f){(function z2(f){var D=f.dateTime,r=f.date,y=f.time,U=f.periods,j=f.days,ke=f.shortDays,st=f.months,Kt=f.shortMonths,Zt=Bs(U),ci=tl(U),fi=Bs(j),vi=tl(j),Ei=Bs(ke),Xi=tl(ke),bn=Bs(st),Li=tl(st),un=Bs(Kt),Tn=tl(Kt),hn={a:function Ua(pn){return ke[pn.getDay()]},A:function bo(pn){return j[pn.getDay()]},b:function xa(pn){return Kt[pn.getMonth()]},B:function wr(pn){return st[pn.getMonth()]},c:null,d:U2,e:U2,f:Wh,g:jf,G:x1,H:Gh,I:Zh,j:G2,L:Z2,m:Yh,M:W2,p:function Mr(pn){return U[+(pn.getHours()>=12)]},q:function Sr(pn){return 1+~~(pn.getMonth()/3)},Q:tu,s:Sc,S:y1,u:_s,U:Dl,V:Y2,w:Md,W:Kf,x:null,X:null,y:K2,Y:Sd,Z:Qf,"%":Dd},Vn={a:function Gl(pn){return ke[pn.getUTCDay()]},A:function Zl(pn){return j[pn.getUTCDay()]},b:function Wl(pn){return Kt[pn.getUTCMonth()]},B:function Ys(pn){return st[pn.getUTCMonth()]},c:null,d:Kh,e:Kh,f:qh,g:Xh,G:$2,H:Td,I:jh,j:Qh,L:j2,m:Q2,M:C1,p:function yo(pn){return U[+(pn.getUTCHours()>=12)]},q:function Yl(pn){return 1+~~(pn.getUTCMonth()/3)},Q:tu,s:Sc,S:q2,u:Ed,U:J2,V:Ad,w:Jh,W:X2,x:null,X:null,y:Ld,Y:$h,Z:eu,"%":Dd},Hn={a:function Ga(pn,Kn,na){var Ji=Ei.exec(Kn.slice(na));return Ji?(pn.w=Xi.get(Ji[0].toLowerCase()),na+Ji[0].length):-1},A:function En(pn,Kn,na){var Ji=fi.exec(Kn.slice(na));return Ji?(pn.w=vi.get(Ji[0].toLowerCase()),na+Ji[0].length):-1},b:function Nr(pn,Kn,na){var Ji=un.exec(Kn.slice(na));return Ji?(pn.m=Tn.get(Ji[0].toLowerCase()),na+Ji[0].length):-1},B:function ga(pn,Kn,na){var Ji=bn.exec(Kn.slice(na));return Ji?(pn.m=Li.get(Ji[0].toLowerCase()),na+Ji[0].length):-1},c:function Za(pn,Kn,na){return Ba(pn,D,Kn,na)},d:xd,e:xd,f:il,g:vd,G:b1,H:Cd,I:Cd,j:zh,L:Us,m:as,M:Vh,p:function vo(pn,Kn,na){var Ji=Zt.exec(Kn.slice(na));return Ji?(pn.p=ci.get(Ji[0].toLowerCase()),na+Ji[0].length):-1},q:yd,Q:B2,s:Uh,S:Bh,u:v1,U:Hh,V:V2,w:_1,W:Al,x:function cs(pn,Kn,na){return Ba(pn,r,Kn,na)},X:function tr(pn,Kn,na){return Ba(pn,y,Kn,na)},y:vd,Y:b1,Z:bd,"%":Ll};function yn(pn,Kn){return function(na){var xo,Pn,lr,Ji=[],ir=-1,Ea=0,Oo=pn.length;for(na instanceof Date||(na=new Date(+na));++ir<Oo;)37===pn.charCodeAt(ir)&&(Ji.push(pn.slice(Ea,ir)),null!=(Pn=_d[xo=pn.charAt(++ir)])?xo=pn.charAt(++ir):Pn="e"===xo?" ":"0",(lr=Kn[xo])&&(xo=lr(na,Pn)),Ji.push(xo),Ea=ir+1);return Ji.push(pn.slice(Ea,ir)),Ji.join("")}}function Va(pn,Kn){return function(na){var Ea,Oo,Ji=El(1900,void 0,1);if(Ba(Ji,pn,na+="",0)!=na.length)return null;if("Q"in Ji)return new Date(Ji.Q);if("s"in Ji)return new Date(1e3*Ji.s+("L"in Ji?Ji.L:0));if(Kn&&!("Z"in Ji)&&(Ji.Z=0),"p"in Ji&&(Ji.H=Ji.H%12+12*Ji.p),void 0===Ji.m&&(Ji.m="q"in Ji?Ji.q:0),"V"in Ji){if(Ji.V<1||Ji.V>53)return null;"w"in Ji||(Ji.w=1),"Z"in Ji?(Oo=(Ea=gd(El(Ji.y,0,1))).getUTCDay(),Ea=Oo>4||0===Oo?$c.ceil(Ea):$c(Ea),Ea=hd.offset(Ea,7*(Ji.V-1)),Ji.y=Ea.getUTCFullYear(),Ji.m=Ea.getUTCMonth(),Ji.d=Ea.getUTCDate()+(Ji.w+6)%7):(Oo=(Ea=m1(El(Ji.y,0,1))).getDay(),Ea=Oo>4||0===Oo?Ml.ceil(Ea):Ml(Ea),Ea=Sl.offset(Ea,7*(Ji.V-1)),Ji.y=Ea.getFullYear(),Ji.m=Ea.getMonth(),Ji.d=Ea.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),Oo="Z"in Ji?gd(El(Ji.y,0,1)).getUTCDay():m1(El(Ji.y,0,1)).getDay(),Ji.m=0,Ji.d="W"in Ji?(Ji.w+6)%7+7*Ji.W-(Oo+5)%7:Ji.w+7*Ji.U-(Oo+6)%7);return"Z"in Ji?(Ji.H+=Ji.Z/100|0,Ji.M+=Ji.Z%100,gd(Ji)):m1(Ji)}}function Ba(pn,Kn,na,Ji){for(var xo,Pn,ir=0,Ea=Kn.length,Oo=na.length;ir<Ea;){if(Ji>=Oo)return-1;if(37===(xo=Kn.charCodeAt(ir++))){if(xo=Kn.charAt(ir++),!(Pn=Hn[xo in _d?Kn.charAt(ir++):xo])||(Ji=Pn(pn,na,Ji))<0)return-1}else if(xo!=na.charCodeAt(Ji++))return-1}return Ji}return hn.x=yn(r,hn),hn.X=yn(y,hn),hn.c=yn(D,hn),Vn.x=yn(r,Vn),Vn.X=yn(y,Vn),Vn.c=yn(D,Vn),{format:function(pn){var Kn=yn(pn+="",hn);return Kn.toString=function(){return pn},Kn},parse:function(pn){var Kn=Va(pn+="",!1);return Kn.toString=function(){return pn},Kn},utcFormat:function(pn){var Kn=yn(pn+="",Vn);return Kn.toString=function(){return pn},Kn},utcParse:function(pn){var Kn=Va(pn+="",!0);return Kn.toString=function(){return pn},Kn}}})(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 Od=rn(ki).right,n0=(rn(kd),Od);function T1(f,D){return f=+f,D=+D,function(r){return Math.round(f*(1-r)+D*r)}}function r0(f){return+f}var ac=[0,1];function Tc(f){return f}function Il(f,D){return(D-=f=+f)?function(r){return(r-f)/D}:function a0(f){return function(){return f}}(isNaN(D)?NaN:.5)}function au(f,D,r){var y=f[0],U=f[1],j=D[0],ke=D[1];return U<y?(y=Il(U,y),j=r(ke,j)):(y=Il(y,U),j=r(j,ke)),function(st){return j(y(st))}}function A1(f,D,r){var y=Math.min(f.length,D.length)-1,U=new Array(y),j=new Array(y),ke=-1;for(f[y]<f[0]&&(f=f.slice().reverse(),D=D.slice().reverse());++ke<y;)U[ke]=Il(f[ke],f[ke+1]),j[ke]=r(D[ke],D[ke+1]);return function(st){var Kt=n0(f,st,1,y)-1;return j[Kt](U[Kt](st))}}function Pd(){return function Ec(){var y,U,j,st,Kt,Zt,f=ac,D=ac,r=Pi,ke=Tc;function ci(){var vi=Math.min(f.length,D.length);return ke!==Tc&&(ke=function E1(f,D){var r;return f>D&&(r=f,f=D,D=r),function(y){return Math.max(f,Math.min(D,y))}}(f[0],f[vi-1])),st=vi>2?A1:au,Kt=Zt=null,fi}function fi(vi){return null==vi||isNaN(vi=+vi)?j:(Kt||(Kt=st(f.map(y),D,r)))(y(ke(vi)))}return fi.invert=function(vi){return ke(U((Zt||(Zt=st(D,f.map(y),kn)))(vi)))},fi.domain=function(vi){return arguments.length?(f=Array.from(vi,r0),ci()):f.slice()},fi.range=function(vi){return arguments.length?(D=Array.from(vi),ci()):D.slice()},fi.rangeRound=function(vi){return D=Array.from(vi),r=T1,ci()},fi.clamp=function(vi){return arguments.length?(ke=!!vi||Tc,ci()):ke!==Tc},fi.interpolate=function(vi){return arguments.length?(r=vi,ci()):r},fi.unknown=function(vi){return arguments.length?(j=vi,fi):j},function(vi,Ei){return y=vi,U=Ei,ci()}}()(Tc,Tc)}function Ac(f,D){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(D).domain(f)}return this}var rc,su=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rl(f){if(!(D=su.exec(f)))throw new Error("invalid format: "+f);var D;return new Rd({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}function Rd(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 kl(f,D){if((r=(f=D?f.toExponential(D-1):f.toExponential()).indexOf("e"))<0)return null;var r,y=f.slice(0,r);return[y.length>1?y[0]+y.slice(2):y,+f.slice(r+1)]}function Lc(f){return(f=kl(Math.abs(f)))?f[1]:NaN}function l0(f,D){var r=kl(f,D);if(!r)return f+"";var y=r[0],U=r[1];return U<0?"0."+new Array(-U).join("0")+y:y.length>U+1?y.slice(0,U+1)+"."+y.slice(U+1):y+new Array(U-y.length+2).join("0")}rl.prototype=Rd.prototype,Rd.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 Fd={"%":(f,D)=>(100*f).toFixed(D),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function c0(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,D)=>f.toExponential(D),f:(f,D)=>f.toFixed(D),g:(f,D)=>f.toPrecision(D),o:f=>Math.round(f).toString(8),p:(f,D)=>l0(100*f,D),r:l0,s:function Pl(f,D){var r=kl(f,D);if(!r)return f+"";var y=r[0],U=r[1],j=U-(rc=3*Math.max(-8,Math.min(8,Math.floor(U/3))))+1,ke=y.length;return j===ke?y:j>ke?y+new Array(j-ke+1).join("0"):j>0?y.slice(0,j)+"."+y.slice(j):"0."+new Array(1-j).join("0")+kl(f,Math.max(0,D+j-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function Hd(f){return f}var L1,Rl,D1,d0=Array.prototype.map,zd=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function uu(f){var D=f.domain;return f.ticks=function(r){var y=D();return function za(f,D,r){if(!((r=+r)>0))return[];if((f=+f)==(D=+D))return[f];const y=D<f,[U,j,ke]=y?Eo(D,f,r):Eo(f,D,r);if(!(j>=U))return[];const st=j-U+1,Kt=new Array(st);if(y)if(ke<0)for(let Zt=0;Zt<st;++Zt)Kt[Zt]=(j-Zt)/-ke;else for(let Zt=0;Zt<st;++Zt)Kt[Zt]=(j-Zt)*ke;else if(ke<0)for(let Zt=0;Zt<st;++Zt)Kt[Zt]=(U+Zt)/-ke;else for(let Zt=0;Zt<st;++Zt)Kt[Zt]=(U+Zt)*ke;return Kt}(y[0],y[y.length-1],r??10)},f.tickFormat=function(r,y){var U=D();return function hu(f,D,r,y){var j,U=Xs(f,D,r);switch((y=rl(y??",f")).type){case"s":var ke=Math.max(Math.abs(f),Math.abs(D));return null==y.precision&&!isNaN(j=function Nd(f,D){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Lc(D)/3)))-Lc(Math.abs(f)))}(U,ke))&&(y.precision=j),D1(y,ke);case"":case"e":case"g":case"p":case"r":null==y.precision&&!isNaN(j=function Vd(f,D){return f=Math.abs(f),D=Math.abs(D)-f,Math.max(0,Lc(D)-Lc(f))+1}(U,Math.max(Math.abs(f),Math.abs(D))))&&(y.precision=j-("e"===y.type));break;case"f":case"%":null==y.precision&&!isNaN(j=function ol(f){return Math.max(0,-Lc(Math.abs(f)))}(U))&&(y.precision=j-2*("%"===y.type))}return Rl(y)}(U[0],U[U.length-1],r??10,y)},f.nice=function(r){null==r&&(r=10);var Kt,Zt,y=D(),U=0,j=y.length-1,ke=y[U],st=y[j],ci=10;for(st<ke&&(Zt=ke,ke=st,st=Zt,Zt=U,U=j,j=Zt);ci-- >0;){if((Zt=bc(ke,st,r))===Kt)return y[U]=ke,y[j]=st,D(y);if(Zt>0)ke=Math.floor(ke/Zt)*Zt,st=Math.ceil(st/Zt)*Zt;else{if(!(Zt<0))break;ke=Math.ceil(ke*Zt)/Zt,st=Math.floor(st*Zt)/Zt}Kt=Zt}return f},f}function oc(){var f=Pd();return f.copy=function(){return function nl(f,D){return D.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}(f,oc())},Ac.apply(f,arguments),uu(f)}function u0(f,D,r){f=+f,D=+D,r=(U=arguments.length)<2?(D=f,f=0,1):U<3?1:+r;for(var y=-1,U=0|Math.max(0,Math.ceil((D-f)/r)),j=new Array(U);++y<U;)j[y]=f+y*r;return j}!function du(f){L1=function h0(f){var D=void 0===f.grouping||void 0===f.thousands?Hd:function cu(f,D){return function(r,y){for(var U=r.length,j=[],ke=0,st=f[0],Kt=0;U>0&&st>0&&(Kt+st+1>y&&(st=Math.max(1,y-Kt)),j.push(r.substring(U-=st,U+st)),!((Kt+=st+1)>y));)st=f[ke=(ke+1)%f.length];return j.reverse().join(D)}}(d0.call(f.grouping,Number),f.thousands+""),r=void 0===f.currency?"":f.currency[0]+"",y=void 0===f.currency?"":f.currency[1]+"",U=void 0===f.decimal?".":f.decimal+"",j=void 0===f.numerals?Hd:function Ol(f){return function(D){return D.replace(/[0-9]/g,function(r){return f[+r]})}}(d0.call(f.numerals,String)),ke=void 0===f.percent?"%":f.percent+"",st=void 0===f.minus?"\u2212":f.minus+"",Kt=void 0===f.nan?"NaN":f.nan+"";function Zt(fi){var vi=(fi=rl(fi)).fill,Ei=fi.align,Xi=fi.sign,bn=fi.symbol,Li=fi.zero,un=fi.width,Tn=fi.comma,hn=fi.precision,Vn=fi.trim,Hn=fi.type;"n"===Hn?(Tn=!0,Hn="g"):Fd[Hn]||(void 0===hn&&(hn=12),Vn=!0,Hn="g"),(Li||"0"===vi&&"="===Ei)&&(Li=!0,vi="0",Ei="=");var yn="$"===bn?r:"#"===bn&&/[boxX]/.test(Hn)?"0"+Hn.toLowerCase():"",Va="$"===bn?y:/[%p]/.test(Hn)?ke:"",Ba=Fd[Hn],vo=/[defgprs%]/.test(Hn);function Ga(En){var Za,cs,tr,Nr=yn,ga=Va;if("c"===Hn)ga=Ba(En)+ga,En="";else{var Ua=(En=+En)<0||1/En<0;if(En=isNaN(En)?Kt:Ba(Math.abs(En),hn),Vn&&(En=function lu(f){e:for(var U,D=f.length,r=1,y=-1;r<D;++r)switch(f[r]){case".":y=U=r;break;case"0":0===y&&(y=r),U=r;break;default:if(!+f[r])break e;y>0&&(y=0)}return y>0?f.slice(0,y)+f.slice(U+1):f}(En)),Ua&&0==+En&&"+"!==Xi&&(Ua=!1),Nr=(Ua?"("===Xi?Xi:st:"-"===Xi||"("===Xi?"":Xi)+Nr,ga=("s"===Hn?zd[8+rc/3]:"")+ga+(Ua&&"("===Xi?")":""),vo)for(Za=-1,cs=En.length;++Za<cs;)if(48>(tr=En.charCodeAt(Za))||tr>57){ga=(46===tr?U+En.slice(Za+1):En.slice(Za))+ga,En=En.slice(0,Za);break}}Tn&&!Li&&(En=D(En,1/0));var bo=Nr.length+En.length+ga.length,xa=bo<un?new Array(un-bo+1).join(vi):"";switch(Tn&&Li&&(En=D(xa+En,xa.length?un-ga.length:1/0),xa=""),Ei){case"<":En=Nr+En+ga+xa;break;case"=":En=Nr+xa+En+ga;break;case"^":En=xa.slice(0,bo=xa.length>>1)+Nr+En+ga+xa.slice(bo);break;default:En=xa+Nr+En+ga}return j(En)}return hn=void 0===hn?6:/[gprs]/.test(Hn)?Math.max(1,Math.min(21,hn)):Math.max(0,Math.min(20,hn)),Ga.toString=function(){return fi+""},Ga}return{format:Zt,formatPrefix:function ci(fi,vi){var Ei=Zt(((fi=rl(fi)).type="f",fi)),Xi=3*Math.max(-8,Math.min(8,Math.floor(Lc(vi)/3))),bn=Math.pow(10,-Xi),Li=zd[8+Xi/3];return function(un){return Ei(bn*un)+Li}}}}(f),Rl=L1.format,D1=L1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class Bd extends Map{constructor(D,r=f0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),null!=D)for(const[y,U]of D)this.set(y,U)}get(D){return super.get(Nl(this,D))}has(D){return super.has(Nl(this,D))}set(D,r){return super.set(Dc(this,D),r)}delete(D){return super.delete(bs(this,D))}}class Jf extends Set{constructor(D,r=f0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),null!=D)for(const y of D)this.add(y)}has(D){return super.has(Nl(this,D))}add(D){return super.add(Dc(this,D))}delete(D){return super.delete(bs(this,D))}}function Nl({_intern:f,_key:D},r){const y=D(r);return f.has(y)?f.get(y):r}function Dc({_intern:f,_key:D},r){const y=D(r);return f.has(y)?f.get(y):(f.set(y,r),r)}function bs({_intern:f,_key:D},r){const y=D(r);return f.has(y)&&(r=f.get(y),f.delete(y)),r}function f0(f){return null!==f&&"object"==typeof f?f.valueOf():f}const Ud=Symbol("implicit");function m0(){var f=new Bd,D=[],r=[],y=Ud;function U(j){let ke=f.get(j);if(void 0===ke){if(y!==Ud)return y;f.set(j,ke=D.push(j)-1)}return r[ke%r.length]}return U.domain=function(j){if(!arguments.length)return D.slice();D=[],f=new Bd;for(const ke of j)f.has(ke)||f.set(ke,D.push(ke)-1);return U},U.range=function(j){return arguments.length?(r=Array.from(j),U):r.slice()},U.unknown=function(j){return arguments.length?(y=j,U):y},U.copy=function(){return m0(D,r).unknown(y)},Ac.apply(U,arguments),U}function sl(){var j,ke,f=m0().unknown(void 0),D=f.domain,r=f.range,y=0,U=1,st=!1,Kt=0,Zt=0,ci=.5;function fi(){var vi=D().length,Ei=U<y,Xi=Ei?U:y,bn=Ei?y:U;j=(bn-Xi)/Math.max(1,vi-Kt+2*Zt),st&&(j=Math.floor(j)),Xi+=(bn-Xi-j*(vi-Kt))*ci,ke=j*(1-Kt),st&&(Xi=Math.round(Xi),ke=Math.round(ke));var Li=u0(vi).map(function(un){return Xi+j*un});return r(Ei?Li.reverse():Li)}return delete f.unknown,f.domain=function(vi){return arguments.length?(D(vi),fi()):D()},f.range=function(vi){return arguments.length?([y,U]=vi,y=+y,U=+U,fi()):[y,U]},f.rangeRound=function(vi){return[y,U]=vi,y=+y,U=+U,st=!0,fi()},f.bandwidth=function(){return ke},f.step=function(){return j},f.round=function(vi){return arguments.length?(st=!!vi,fi()):st},f.padding=function(vi){return arguments.length?(Kt=Math.min(1,Zt=+vi),fi()):Kt},f.paddingInner=function(vi){return arguments.length?(Kt=Math.min(1,vi),fi()):Kt},f.paddingOuter=function(vi){return arguments.length?(Zt=+vi,fi()):Zt},f.align=function(vi){return arguments.length?(ci=Math.max(0,Math.min(1,vi)),fi()):ci},f.copy=function(){return sl(D(),[y,U]).round(st).paddingInner(Kt).paddingOuter(Zt).align(ci)},Ac.apply(fi(),arguments)}function p0(f,D,r=kd){if((y=f.length)&&!isNaN(D=+D)){if(D<=0||y<2)return+r(f[0],0,f);if(D>=1)return+r(f[y-1],y-1,f);var y,U=(y-1)*D,j=Math.floor(U),ke=+r(f[j],j,f);return ke+(+r(f[j+1],j+1,f)-ke)*(U-j)}}function Zd(){var y,f=[],D=[],r=[];function U(){var ke=0,st=Math.max(1,D.length);for(r=new Array(st-1);++ke<st;)r[ke-1]=p0(f,ke/st);return j}function j(ke){return null==ke||isNaN(ke=+ke)?y:D[n0(r,ke)]}return j.invertExtent=function(ke){var st=D.indexOf(ke);return st<0?[NaN,NaN]:[st>0?r[st-1]:f[0],st<r.length?r[st]:f[f.length-1]]},j.domain=function(ke){if(!arguments.length)return f.slice();f=[];for(let st of ke)null!=st&&!isNaN(st=+st)&&f.push(st);return f.sort(ki),U()},j.range=function(ke){return arguments.length?(D=Array.from(ke),U()):D.slice()},j.unknown=function(ke){return arguments.length?(y=ke,j):y},j.quantiles=function(){return r.slice()},j.copy=function(){return Zd().domain(f).range(D).unknown(y)},Ac.apply(j,arguments)}var gu=m(5126);const _u=["caretElm"];function rs(f,D){}const g0=function(f){return{model:f}};function _0(f,D){if(1&f&&(t.TgZ(0,"span"),t.YNc(1,rs,0,0,"ng-template",5),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",r.template)("ngTemplateOutletContext",t.VKq(2,g0,r.context))}}function vu(f,D){if(1&f&&t._UZ(0,"span",6),2&f){const r=t.oxw();t.Q6J("innerHTML",r.title,t.oJD)}}function bu(f,D){if(1&f&&(t.TgZ(0,"header",4)(1,"span",5),t._uU(2),t.qZA()()),2&f){const r=t.oxw();t.xp6(2),t.Oqu(r.title)}}function v0(f,D){if(1&f){const r=t.EpF();t.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),t.NdJ("select",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.labelClick.emit(U))})("activate",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.activate(U))})("deactivate",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.deactivate(U))}),t.qZA()()}if(2&f){const r=D.$implicit,y=t.oxw();t.xp6(1),t.Q6J("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",y.isActive(r))}}function yu(f,D){if(1&f&&(t.O4$(),t.kcU(),t._UZ(0,"ngx-charts-scale-legend",4)),2&f){const r=t.oxw();t.Q6J("horizontal",r.legendOptions&&r.legendOptions.position===r.LegendPosition.Below)("valueRange",r.legendOptions.domain)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)}}function b0(f,D){if(1&f){const r=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"ngx-charts-legend",5),t.NdJ("labelClick",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.legendLabelClick.emit(U))})("labelActivate",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.legendLabelActivate.emit(U))})("labelDeactivate",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.legendLabelDeactivate.emit(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("horizontal",r.legendOptions&&r.legendOptions.position===r.LegendPosition.Below)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}const y0=["*"],xu=["ngx-charts-axis-label",""],I1=["ticksel"],zn=["ngx-charts-x-axis-ticks",""];function x0(f,D){1&f&&(t.O4$(),t.GkF(0))}function C0(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"tspan",10),t._uU(1),t.qZA()),2&f){const r=D.$implicit;t.uIk("y",12*D.index),t.xp6(1),t.hij(" ",r," ")}}function w0(f,D){if(1&f&&(t.O4$(),t.ynx(0),t.YNc(1,C0,2,2,"tspan",9),t.BQk()),2&f){const r=D.ngIf;t.xp6(1),t.Q6J("ngForOf",r)}}function M0(f,D){if(1&f&&(t.O4$(),t.YNc(0,w0,2,1,"ng-container",4)),2&f){const r=t.oxw(2).$implicit,y=t.oxw();t.Q6J("ngIf",y.tickChunks(r))}}function S0(f,D){if(1&f&&(t.O4$(),t._uU(0)),2&f){const r=t.oxw().ngIf,y=t.oxw(2);t.hij(" ",y.tickTrim(r)," ")}}function T0(f,D){if(1&f&&(t.O4$(),t.ynx(0),t.TgZ(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",5),t.YNc(4,x0,1,0,"ng-container",6),t.qZA(),t.YNc(5,M0,1,1,"ng-template",null,7,t.W1O),t.YNc(7,S0,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&f){const r=D.ngIf,y=t.MAs(6),U=t.MAs(8),j=t.oxw(2);t.xp6(2),t.Oqu(r),t.xp6(1),t.uIk("text-anchor",j.textAnchor)("transform",j.textTransform),t.xp6(1),t.Q6J("ngIf",j.isWrapTicksSupported)("ngIfThen",y)("ngIfElse",U)}}function Cu(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g",3),t.YNc(1,T0,9,6,"ng-container",4),t.qZA()),2&f){const r=D.$implicit,y=t.oxw();t.uIk("transform",y.tickTransform(r)),t.xp6(1),t.Q6J("ngIf",y.tickFormat(r))}}function E0(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",11),t.qZA()),2&f){const r=t.oxw(2);t.uIk("transform",r.gridLineTransform()),t.xp6(1),t.uIk("y1",-r.gridLineHeight)}}function A0(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,E0,2,2,"g",4),t.qZA()),2&f){const r=D.$implicit,y=t.oxw();t.uIk("transform",y.tickTransform(r)),t.xp6(1),t.Q6J("ngIf",y.showGridLines)}}const wu=["ngx-charts-x-axis",""];function Xf(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.emitTicksHeight(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("trimTicks",r.trimTicks)("rotateTicks",r.rotateTicks)("maxTickLength",r.maxTickLength)("tickFormatting",r.tickFormatting)("tickArguments",r.tickArguments)("tickStroke",r.tickStroke)("scale",r.xScale)("orient",r.xOrient)("showGridLines",r.showGridLines)("gridLineHeight",r.dims.height)("width",r.dims.width)("tickValues",r.ticks)("wrapTicks",r.wrapTicks)}}function Wd(f,D){if(1&f&&(t.O4$(),t._UZ(0,"g",3)),2&f){const r=t.oxw();t.Q6J("label",r.labelText)("offset",r.labelOffset)("orient",r.orientation.Bottom)("height",r.dims.height)("width",r.dims.width)}}const Yd=["ngx-charts-y-axis-ticks",""];function sc(f,D){1&f&&(t.O4$(),t.GkF(0))}function Mu(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"tspan",12),t._uU(1),t.qZA()),2&f){const r=D.$implicit,y=D.index,U=t.oxw(6);t.uIk("y",y*(8+U.tickSpacing)),t.xp6(1),t.hij(" ",r," ")}}function Kd(f,D){if(1&f&&(t.O4$(),t.ynx(0),t.YNc(1,Mu,2,2,"tspan",11),t.BQk()),2&f){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r)}}function k1(f,D){if(1&f&&(t.O4$(),t.ynx(0),t.YNc(1,Kd,2,1,"ng-container",10),t.BQk()),2&f){const r=D.ngIf;t.oxw(2);const y=t.MAs(8);t.xp6(1),t.Q6J("ngIf",r.length>1)("ngIfElse",y)}}function Su(f,D){if(1&f&&(t.O4$(),t.YNc(0,k1,2,2,"ng-container",5)),2&f){const r=t.oxw(2).$implicit,y=t.oxw();t.Q6J("ngIf",y.tickChunks(r))}}function Tu(f,D){if(1&f&&(t.O4$(),t._uU(0)),2&f){const r=t.oxw().ngIf,y=t.oxw(2);t.hij(" ",y.tickTrim(r)," ")}}function $f(f,D){if(1&f&&(t.O4$(),t.ynx(0),t.TgZ(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",6),t.YNc(4,sc,1,0,"ng-container",7),t.qZA(),t.YNc(5,Su,1,1,"ng-template",null,8,t.W1O),t.YNc(7,Tu,1,1,"ng-template",null,9,t.W1O),t.BQk()),2&f){const r=D.ngIf,y=t.MAs(6),U=t.MAs(8),j=t.oxw(2);t.xp6(2),t.Oqu(r),t.xp6(1),t.Udp("font-size","12px"),t.uIk("dy",j.dy)("x",j.x1)("y",j.y1)("text-anchor",j.textAnchor),t.xp6(1),t.Q6J("ngIf",j.wrapTicks)("ngIfThen",y)("ngIfElse",U)}}function Eu(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g",4),t.YNc(1,$f,9,10,"ng-container",5),t.qZA()),2&f){const r=D.$implicit,y=t.oxw();t.uIk("transform",y.transform(r)),t.xp6(1),t.Q6J("ngIf",y.tickFormat(r))}}function Au(f,D){if(1&f&&(t.O4$(),t._UZ(0,"path",13)),2&f){const r=t.oxw();t.uIk("d",r.referenceAreaPath)("transform",r.gridLineTransform())}}function jd(f,D){if(1&f&&(t.O4$(),t._UZ(0,"line",15)),2&f){const r=t.oxw(3);t.uIk("x2",r.gridLineWidth)}}function e3(f,D){if(1&f&&(t.O4$(),t._UZ(0,"line",15)),2&f){const r=t.oxw(3);t.uIk("x2",-r.gridLineWidth)}}function Lu(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,jd,1,1,"line",14),t.YNc(2,e3,1,1,"line",14),t.qZA()),2&f){const r=t.oxw(2);t.uIk("transform",r.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Left),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Right)}}function cl(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Lu,3,3,"g",5),t.qZA()),2&f){const r=D.$implicit,y=t.oxw();t.uIk("transform",y.transform(r)),t.xp6(1),t.Q6J("ngIf",y.showGridLines)}}function Du(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g")(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",17),t._uU(4),t.qZA()()),2&f){const r=t.oxw(2).$implicit,y=t.oxw();t.xp6(2),t.Oqu(y.tickTrim(y.tickFormat(r.value))),t.xp6(1),t.uIk("dy",y.dy)("y",-6)("x",y.gridLineWidth)("text-anchor",y.textAnchor),t.xp6(1),t.hij(" ",r.name," ")}}function L0(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",16),t.YNc(2,Du,5,6,"g",5),t.qZA()),2&f){const r=t.oxw().$implicit,y=t.oxw();t.uIk("transform",y.transform(r.value)),t.xp6(1),t.uIk("x2",y.gridLineWidth)("transform",y.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",y.showRefLabels)}}function Ic(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,L0,3,4,"g",5),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngIf",r.showRefLines)}}const Iu=["ngx-charts-y-axis",""];function D0(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.emitTicksWidth(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("trimTicks",r.trimTicks)("maxTickLength",r.maxTickLength)("tickFormatting",r.tickFormatting)("tickArguments",r.tickArguments)("tickValues",r.ticks)("tickStroke",r.tickStroke)("scale",r.yScale)("orient",r.yOrient)("showGridLines",r.showGridLines)("gridLineWidth",r.dims.width)("referenceLines",r.referenceLines)("showRefLines",r.showRefLines)("showRefLabels",r.showRefLabels)("height",r.dims.height)("wrapTicks",r.wrapTicks)}}function ku(f,D){if(1&f&&(t.O4$(),t._UZ(0,"g",3)),2&f){const r=t.oxw();t.Q6J("label",r.labelText)("offset",r.labelOffset)("orient",r.yOrient)("height",r.dims.height)("width",r.dims.width)}}const Ou=["ngx-charts-svg-linear-gradient",""];function Pu(f,D){if(1&f&&(t.O4$(),t._UZ(0,"stop")),2&f){const r=D.$implicit;t.Udp("stop-color",r.color)("stop-opacity",r.opacity),t.uIk("offset",r.offset+"%")}}const O1=["ngx-charts-grid-panel",""],t3=["ngx-charts-grid-panel-series",""];function P1(f,D){if(1&f&&(t.O4$(),t._UZ(0,"g",1)),2&f){const r=D.$implicit;t.ekj("grid-panel",!0)("odd","odd"===r.class)("even","even"===r.class),t.Q6J("height",r.height)("width",r.width)("x",r.x)("y",r.y)}}const H1=["tooltipTemplate"],dl=function(f,D){return[f,D]},n2=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",Gu=["ngx-charts-bar",""];function Zu(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"defs"),t._UZ(1,"g",2),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("orientation",r.orientation)("name",r.gradientId)("stops",r.gradientStops)}}const Wu=["ngx-charts-bar-label",""],Fl=["ngx-charts-series-vertical",""];function Oc(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(U){t.CHM(r);const j=t.oxw(2);return t.KtG(j.onClick(U))})("activate",function(U){t.CHM(r);const j=t.oxw(2);return t.KtG(j.activate.emit(U))})("deactivate",function(U){t.CHM(r);const j=t.oxw(2);return t.KtG(j.deactivate.emit(U))}),t.qZA()}if(2&f){const r=D.$implicit,y=t.oxw(2);t.Q6J("@animationState","active")("@.disabled",!y.animations)("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",y.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",y.gradient)("ariaLabel",r.ariaLabel)("isActive",y.isActive(r.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function Ju(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Oc,1,22,"g",1),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function A(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(U){t.CHM(r);const j=t.oxw(2);return t.KtG(j.onClick(U))})("activate",function(U){t.CHM(r);const j=t.oxw(2);return t.KtG(j.activate.emit(U))})("deactivate",function(U){t.CHM(r);const j=t.oxw(2);return t.KtG(j.deactivate.emit(U))}),t.qZA()}if(2&f){const r=D.$implicit,y=t.oxw(2);t.Q6J("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",y.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",y.gradient)("ariaLabel",r.ariaLabel)("isActive",y.isActive(r.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function P(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,A,1,20,"g",1),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function b(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",4),t.NdJ("dimensionsChanged",function(U){const ke=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.dataLabelHeightChanged.emit({size:U,index:ke}))}),t.qZA()}if(2&f){const r=D.$implicit,y=t.oxw(2);t.Q6J("barX",r.x)("barY",r.y)("barWidth",r.width)("barHeight",r.height)("value",r.total)("valueFormatting",y.dataLabelFormatting)("orientation",y.barOrientation.Vertical)}}function I(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,b,1,7,"g",3),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.barsForDataLabels)("ngForTrackBy",r.trackDataLabelBy)}}function H(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",5),t.NdJ("dimensionsChanged",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.updateXAxisHeight(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("xScale",r.xScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)("wrapTicks",r.wrapTicks)}}function ve(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.updateYAxisWidth(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("yScale",r.yScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)("wrapTicks",r.wrapTicks)}}function yt(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.updateXAxisHeight(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("xScale",r.groupScale)("dims",r.dims)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)("wrapTicks",r.wrapTicks)}}function Jt(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",7),t.NdJ("dimensionsChanged",function(U){t.CHM(r);const j=t.oxw();return t.KtG(j.updateYAxisWidth(U))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("yScale",r.valueScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)("wrapTicks",r.wrapTicks)}}function ri(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(U){const ke=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(U,ke))})("activate",function(U){const ke=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(U,ke))})("deactivate",function(U){const ke=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(U,ke))})("dataLabelHeightChanged",function(U){const ke=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(U,ke))}),t.qZA()}if(2&f){const r=D.$implicit,y=t.oxw(2);t.Q6J("@animationState","active")("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",r.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",r.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),t.uIk("transform",y.groupTransform(r))}}function Ci(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,ri,1,17,"g",8),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function ji(f,D){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(U){const ke=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(U,ke))})("activate",function(U){const ke=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(U,ke))})("deactivate",function(U){const ke=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(U,ke))})("dataLabelHeightChanged",function(U){const ke=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(U,ke))}),t.qZA()}if(2&f){const r=D.$implicit,y=t.oxw(2);t.Q6J("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",r.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",r.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),t.uIk("transform",y.groupTransform(r))}}function Yi(f,D){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,ji,1,16,"g",8),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function em(f,D,r){r=r||{};let y,U,j,ke=null,st=0;function Kt(){st=!1===r.leading?0:+new Date,ke=null,j=f.apply(y,U)}return function(){const Zt=+new Date;!st&&!1===r.leading&&(st=Zt);const ci=D-(Zt-st);return y=this,U=arguments,ci<=0?(clearTimeout(ke),ke=null,st=Zt,j=f.apply(y,U)):!ke&&!1!==r.trailing&&(ke=setTimeout(Kt,ci)),j}}function P3(f,D){return function(y,U,j){return{configurable:!0,enumerable:j.enumerable,get:function(){return Object.defineProperty(this,U,{configurable:!0,enumerable:j.enumerable,value:em(j.value,f,D)}),this[U]}}}}var Xn=(()=>{return(f=Xn||(Xn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Xn;var f})();const Nc=7;function lf(f,D,r){return r===Xn.Top?f.top-Nc:r===Xn.Bottom?f.top+f.height-D.height+Nc:r===Xn.Center?f.top+f.height/2-D.height/2:void 0}function df(f,D,r){return r===Xn.Left?f.left-Nc:r===Xn.Right?f.left+f.width-D.width+Nc:r===Xn.Center?f.left+f.width/2-D.width/2:void 0}class Kr{static calculateVerticalAlignment(D,r,y){let U=lf(D,r,y);return U+r.height>window.innerHeight&&(U=window.innerHeight-r.height),U}static calculateVerticalCaret(D,r,y,U){let j;U===Xn.Top&&(j=D.height/2-y.height/2+Nc),U===Xn.Bottom&&(j=r.height-D.height/2-y.height/2-Nc),U===Xn.Center&&(j=r.height/2-y.height/2);const ke=lf(D,r,U);return ke+r.height>window.innerHeight&&(j+=ke+r.height-window.innerHeight),j}static calculateHorizontalAlignment(D,r,y){let U=df(D,r,y);return U+r.width>window.innerWidth&&(U=window.innerWidth-r.width),U}static calculateHorizontalCaret(D,r,y,U){let j;U===Xn.Left&&(j=D.width/2-y.width/2+Nc),U===Xn.Right&&(j=r.width-D.width/2-y.width/2-Nc),U===Xn.Center&&(j=r.width/2-y.width/2);const ke=df(D,r,U);return ke+r.width>window.innerWidth&&(j+=ke+r.width-window.innerWidth),j}static shouldFlip(D,r,y,U){let j=!1;return y===Xn.Right&&D.left+D.width+r.width+U>window.innerWidth&&(j=!0),y===Xn.Left&&D.left-r.width-U<0&&(j=!0),y===Xn.Top&&D.top-r.height-U<0&&(j=!0),y===Xn.Bottom&&D.top+D.height+r.height+U>window.innerHeight&&(j=!0),j}static positionCaret(D,r,y,U,j){let ke=0,st=0;return D===Xn.Right?(st=-7,ke=Kr.calculateVerticalCaret(y,r,U,j)):D===Xn.Left?(st=r.width,ke=Kr.calculateVerticalCaret(y,r,U,j)):D===Xn.Top?(ke=r.height,st=Kr.calculateHorizontalCaret(y,r,U,j)):D===Xn.Bottom&&(ke=-7,st=Kr.calculateHorizontalCaret(y,r,U,j)),{top:ke,left:st}}static positionContent(D,r,y,U,j){let ke=0,st=0;return D===Xn.Right?(st=y.left+y.width+U,ke=Kr.calculateVerticalAlignment(y,r,j)):D===Xn.Left?(st=y.left-r.width-U,ke=Kr.calculateVerticalAlignment(y,r,j)):D===Xn.Top?(ke=y.top-r.height-U,st=Kr.calculateHorizontalAlignment(y,r,j)):D===Xn.Bottom&&(ke=y.top+y.height+U,st=Kr.calculateHorizontalAlignment(y,r,j)),{top:ke,left:st}}static determinePlacement(D,r,y,U){if(Kr.shouldFlip(y,r,D,U)){if(D===Xn.Right)return Xn.Left;if(D===Xn.Left)return Xn.Right;if(D===Xn.Top)return Xn.Bottom;if(D===Xn.Bottom)return Xn.Top}return D}}let tm=(()=>{class f{constructor(r,y,U){this.element=r,this.renderer=y,this.platformId=U}get cssClasses(){let r="ngx-charts-tooltip-content";return r+=` position-${this.placement}`,r+=` type-${this.type}`,r+=` ${this.cssClass}`,r}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const r=this.element.nativeElement,y=this.host.nativeElement.getBoundingClientRect();if(!y.height&&!y.width)return;const U=r.getBoundingClientRect();this.checkFlip(y,U),this.positionContent(r,y,U),this.showCaret&&this.positionCaret(y,U),setTimeout(()=>this.renderer.addClass(r,"animate"),1)}positionContent(r,y,U){const{top:j,left:ke}=Kr.positionContent(this.placement,U,y,this.spacing,this.alignment);this.renderer.setStyle(r,"top",`${j}px`),this.renderer.setStyle(r,"left",`${ke}px`)}positionCaret(r,y){const U=this.caretElm.nativeElement,j=U.getBoundingClientRect(),{top:ke,left:st}=Kr.positionCaret(this.placement,y,r,j,this.alignment);this.renderer.setStyle(U,"top",`${ke}px`),this.renderer.setStyle(U,"left",`${st}px`)}checkFlip(r,y){this.placement=Kr.determinePlacement(this.placement,y,r,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(r,y){if(1&r&&t.Gf(_u,5),2&r){let U;t.iGM(U=t.CRH())&&(y.caretElm=U.first)}},hostVars:2,hostBindings:function(r,y){1&r&&t.NdJ("resize",function(){return y.onWindowResize()},!1,t.Jf7),2&r&&t.Tol(y.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(r,y){1&r&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,_0,2,4,"span",3),t.YNc(5,vu,1,1,"span",4),t.qZA()()),2&r&&(t.xp6(1),t.Gre("tooltip-caret position-",y.placement,""),t.Q6J("hidden",!y.showCaret),t.xp6(3),t.Q6J("ngIf",!y.title),t.xp6(1),t.Q6J("ngIf",y.title))},dependencies:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,g.gn)([P3(100)],f.prototype,"onWindowResize",null),f})();class im{constructor(D){this.injectionService=D,this.defaults={},this.components=new Map}getByType(D=this.type){return this.components.get(D)}create(D){return this.createByType(this.type,D)}createByType(D,r){r=this.assignDefaults(r);const y=this.injectComponent(D,r);return this.register(D,y),y}destroy(D){const r=this.components.get(D.componentType);if(r&&r.length){const y=r.indexOf(D);y>-1&&(r[y].destroy(),r.splice(y,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(D){const r=this.components.get(D);if(r&&r.length){let y=r.length-1;for(;y>=0;)this.destroy(r[y--])}}injectComponent(D,r){return this.injectionService.appendComponent(D,r)}assignDefaults(D){const r={...this.defaults.inputs},y={...this.defaults.outputs};return!D.inputs&&!D.outputs&&(D={inputs:D}),r&&(D.inputs={...r,...D.inputs}),y&&(D.outputs={...y,...D.outputs}),D}register(D,r){this.components.has(D)||this.components.set(D,[]),this.components.get(D).push(r)}}let R3=(()=>{class f{constructor(r,y,U){this.applicationRef=r,this.componentFactoryResolver=y,this.injector=U}static setGlobalRootViewContainer(r){f.globalRootViewContainer=r}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(r){this._container=r}getComponentRootNode(r){return function hf(f){return f.element}(r)?r.element.nativeElement:r.hostView&&r.hostView.rootNodes.length>0?r.hostView.rootNodes[0]:r.location.nativeElement}getRootViewContainerNode(r){return this.getComponentRootNode(r)}projectComponentBindings(r,y){if(y){if(void 0!==y.inputs){const U=Object.getOwnPropertyNames(y.inputs);for(const j of U)r.instance[j]=y.inputs[j]}if(void 0!==y.outputs){const U=Object.getOwnPropertyNames(y.outputs);for(const j of U)r.instance[j]=y.outputs[j]}}return r}appendComponent(r,y={},U){U||(U=this.getRootViewContainer());const j=this.getComponentRootNode(U),ke=new T.u0(j,this.componentFactoryResolver,this.applicationRef,this.injector),st=new T.C5(r),Kt=ke.attach(st);return this.projectComponentBindings(Kt,y),Kt}}return f.globalRootViewContainer=null,f.\u0275fac=function(r){return new(r||f)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac}),f})(),rh=(()=>{class f extends im{constructor(r){super(r),this.type=tm}}return f.\u0275fac=function(r){return new(r||f)(t.LFG(R3))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac}),f})();var Fc=(()=>{return(f=Fc||(Fc={})).Right="right",f.Below="below",Fc;var f})(),Ss=(()=>{return(f=Ss||(Ss={})).ScaleLegend="scaleLegend",f.Legend="legend",Ss;var f})(),xn=(()=>{return(f=xn||(xn={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",xn;var f})();let Zs=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(r){const y=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${y})`}gradientString(r,y){y.push(1);const U=[];return r.reverse().forEach((j,ke)=>{U.push(`${j} ${Math.round(100*y[ke])}%`)}),U.join(", ")}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(r,y){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&r&&(t.Udp("height",y.horizontal?void 0:y.height,"px")("width",y.width,"px"),t.ekj("horizontal-legend",y.horizontal),t.xp6(3),t.Oqu(y.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",y.gradient),t.xp6(3),t.Oqu(y.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})();function m2(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}let Ws=(()=>{class f{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(r,y){1&r&&t.NdJ("mouseenter",function(){return y.onMouseEnter()})("mouseleave",function(){return y.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(r,y){1&r&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return y.select.emit(y.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return y.toggle.emit(y.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&r&&(t.ekj("active",y.isActive),t.Q6J("title",y.formattedLabel),t.xp6(1),t.Udp("background-color",y.color),t.xp6(2),t.hij(" ",y.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),Ts=(()=>{class f{constructor(r){this.cd=r,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(r){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const r=[];for(const y of this.data){const U=m2(y);-1===r.findIndex(ke=>ke.label===U)&&r.push({label:y,formattedLabel:U,color:this.colors.getColor(y)})}return r}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(U=>r.label===U.name)}activate(r){this.labelActivate.emit(r)}deactivate(r){this.labelDeactivate.emit(r)}trackBy(r,y){return y.label}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.sBO))},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(r,y){1&r&&(t.TgZ(0,"div"),t.YNc(1,bu,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,v0,2,4,"li",3),t.qZA()()()),2&r&&(t.Udp("width",y.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==y.title?null:y.title.length)>0),t.xp6(2),t.Udp("max-height",y.height-45,"px"),t.ekj("horizontal-legend",y.horizontal),t.xp6(1),t.Q6J("ngForOf",y.legendEntries)("ngForTrackBy",y.trackBy))},dependencies:[Ws,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),ss=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Fc,this.LegendType=Ss}ngOnChanges(r){this.update()}update(){let r=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Fc.Right)&&(r=this.legendType===Ss.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-r)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Fc.Right?this.chartWidth:Math.floor(this.view[0]*r/12)}getLegendType(){return this.legendOptions.scaleType===xn.Linear?Ss.ScaleLegend:Ss.Legend}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([rh]),t.TTD],ngContentSelectors:y0,decls:5,vars:8,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(r,y){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,yu,1,5,"ngx-charts-scale-legend",2),t.YNc(4,b0,1,7,"ngx-charts-legend",3),t.qZA()),2&r&&(t.Udp("width",y.view[0],"px")("height",y.view[1],"px"),t.xp6(1),t.uIk("width",y.chartWidth)("height",y.view[1]),t.xp6(2),t.Q6J("ngIf",y.showLegend&&y.legendType===y.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",y.showLegend&&y.legendType===y.LegendType.Legend))},dependencies:[Zs,Ts,e.O5],encapsulation:2,changeDetection:0}),f})(),N3=(()=>{class f{constructor(r,y){this.element=r,this.zone=y,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const r=()=>{if(!this.element)return;const{offsetHeight:y,offsetWidth:U}=this.element.nativeElement;y&&U?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r())})}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq),t.Y36(t.R0b))},f.\u0275dir=t.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function uf(f){return"[object Date]"===toString.call(f)}let ff=(()=>{class f{constructor(r,y,U,j){this.chartElement=r,this.zone=y,this.cd=U,this.platformId=j,this.scheme="cool",this.schemeType=xn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new N3(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(r){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 r=this.getContainerDims();r&&(this.width=r.width,this.height=r.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 r,y;const U=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==U.parentNode){const j=U.parentNode.getBoundingClientRect();r=j.width,y=j.height}return r&&y?{width:r,height:y}:null}formatDates(){for(let r=0;r<this.results.length;r++){const y=this.results[r];if(y.label=y.name,uf(y.label)&&(y.label=y.label.toLocaleDateString()),y.series)for(let U=0;U<y.series.length;U++){const j=y.series[U];j.label=j.name,uf(j.label)&&(j.label=j.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,e.NF)(this.platformId))return;const y=(0,s.R)(window,"resize").pipe((0,x.b)(200)).subscribe(U=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=y}cloneData(r){const y=[];for(const U of r){const j={name:U.name};if(void 0!==U.value&&(j.value=U.value),void 0!==U.series){j.series=[];for(const ke of U.series){const st=Object.assign({},ke);j.series.push(st)}}void 0!==U.extra&&(j.extra=JSON.parse(JSON.stringify(U.extra))),y.push(j)}return y}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(r,y){1&r&&t._UZ(0,"div")},encapsulation:2}),f})();var jr=(()=>{return(f=jr||(jr={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",jr;var f})();let mf=(()=>{class f{constructor(r){this.textHeight=25,this.margin=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case jr.Top:case jr.Bottom:this.y=this.offset,this.x=this.width/2;break;case jr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case jr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:xu,decls:2,vars:6,template:function(r,y){1&r&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&r&&(t.uIk("stroke-width",y.strokeWidth)("x",y.x)("y",y.y)("text-anchor",y.textAnchor)("transform",y.transform),t.xp6(1),t.hij(" ",y.label," "))},encapsulation:2,changeDetection:0}),f})();function p2(f,D=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=D?f:`${f.slice(0,D)}...`}function Z1(f,D){if(f.length>D){const r=[],y=Math.floor(f.length/D);for(let U=0;U<f.length;U++)U%y==0&&r.push(f[U]);f=r}return f}function pf(f,D,r){const y=(f||"").toString();let U=[];if(/\s/.test(y))U=y.split(/\s+/).reduce((j,ke)=>{const st=(j.pop()||"")+" ";return st.length+ke.length>D?[...j,st.trim(),ke.trim()]:[...j,st+ke]},[]);else{let j=0;for(;j<y.length;)U.push(y.substring(j,j+D)),j+=D}return U.length>r&&(U=U.splice(0,r),U[U.length-1]+="..."),U}var Es=(()=>{return(f=Es||(Es={})).Start="start",f.Middle="middle",f.End="end",Es;var f})();let F3=(()=>{class f{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Es.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16}get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);r!==this.height&&(this.height=r,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(U){return"Date"===U.constructor.name?U.toLocaleDateString():U.toLocaleString()};const y=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(U){return this.scale(U)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",y&&0!==y?(this.textTransform=`rotate(${y})`,this.textAnchor=Es.End,this.verticalSpacing=10):this.textAnchor=Es.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(r){let y=0;this.maxTicksLength=0;for(let fi=0;fi<r.length;fi++){const vi=this.tickFormat(r[fi]).toString();let Ei=vi.length;this.trimTicks&&(Ei=this.tickTrim(vi).length),Ei>this.maxTicksLength&&(this.maxTicksLength=Ei)}const ke=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=ke;const Kt=Math.floor(this.width/r.length);for(;st>Kt&&y>-90;)y-=30,st=Math.cos(y*(Math.PI/180))*ke;let Zt=14;if(this.isWrapTicksSupported){const fi=this.ticks.reduce((Ei,Xi)=>Xi.length>Ei.length?Xi:Ei,"");Zt=14*(this.tickChunks(fi).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(fi)}const ci=0!==y?Math.max(Math.abs(Math.sin(y*Math.PI/180))*this.maxTickLength*7,10):Zt;return this.approxHeight=Math.min(ci,200),y}getTicks(){let r;const y=this.getMaxTicks(20),U=this.getMaxTicks(100);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[U]):(r=this.scale.domain(),r=Z1(r,y)),r}getMaxTicks(r){return Math.floor(this.width/r)}tickTransform(r){return"translate("+this.adjustedScale(r)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(r){return this.trimTicks?p2(r,this.maxTickLength):r}getMaxPossibleLengthForTick(r){if(this.scale.bandwidth){const U=Math.floor(this.scale.bandwidth()/7),j=r.slice(0,U);return Math.max(j.length,this.maxTickLength)}return this.maxTickLength}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){let U=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(U<=1)return[this.tickTrim(r)];let j=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,e.NF)(this.platformId)||(j=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),U=Math.min(U,5),pf(r,j,U<1?1:U)}return[this.tickTrim(r)]}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(r,y){if(1&r&&t.Gf(I1,5),2&r){let U;t.iGM(U=t.CRH())&&(y.ticksElement=U.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:zn,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(r,y){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,Cu,2,2,"g",1),t.qZA(),t.YNc(3,A0,2,2,"g",2)),2&r&&(t.xp6(2),t.Q6J("ngForOf",y.ticks),t.xp6(1),t.Q6J("ngForOf",y.ticks))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),f})(),H3=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=jr.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=jr}ngOnChanges(r){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:r}){const y=r+25+5;y!==this.labelOffset&&(this.labelOffset=y,setTimeout(()=>{this.dimensionsChanged.emit({height:r})},0))}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(r,y){if(1&r&&t.Gf(F3,5),2&r){let U;t.iGM(U=t.CRH())&&(y.ticksComponent=U.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:wu,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(r,y){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Xf,1,13,"g",0),t.YNc(2,Wd,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",y.xAxisClassName)("transform",y.transform),t.xp6(1),t.Q6J("ngIf",y.xScale),t.xp6(1),t.Q6J("ngIf",y.showLabel))},dependencies:[F3,mf,e.O5],encapsulation:2,changeDetection:0}),f})();function Hc(f,D,r,y,U,[j,ke,st,Kt]){let Zt="";return Zt=`M${[f+U,D]}`,Zt+="h"+((r=0===(r=Math.floor(r))?1:r)-2*U),Zt+=ke?`a${[U,U]} 0 0 1 ${[U,U]}`:`h${U}v${U}`,Zt+="v"+((y=0===(y=Math.floor(y))?1:y)-2*U),Zt+=Kt?`a${[U,U]} 0 0 1 ${[-U,U]}`:`v${U}h${-U}`,Zt+="h"+(2*U-r),Zt+=st?`a${[U,U]} 0 0 1 ${[-U,-U]}`:`h${-U}v${-U}`,Zt+="v"+(2*U-y),Zt+=j?`a${[U,U]} 0 0 1 ${[U,-U]}`:`v${-U}h${U}`,Zt+="z",Zt}let gf=(()=>{class f{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Es.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=jr}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);r!==this.width&&(this.width=r,this.dimensionsChanged.emit({width:r}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale,y=this.orient===jr.Top||this.orient===jr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(U){return"Date"===U.constructor.name?U.toLocaleDateString():U.toLocaleString()},this.adjustedScale=r.bandwidth?U=>{const j=r(U)+.5*r.bandwidth();if(this.wrapTicks&&U.toString().length>this.maxTickLength){const ke=this.tickChunks(U).length;if(1===ke)return j;const Zt=.5*r.bandwidth()-8*ke*.5;return r(U)+Zt}return j}:r,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case jr.Top:case jr.Bottom:this.transform=function(U){return"translate("+this.adjustedScale(U)+",0)"},this.textAnchor=Es.Middle,this.y2=this.innerTickSize*y,this.y1=this.tickSpacing*y,this.dy=y<0?"0em":".71em";break;case jr.Left:this.transform=function(U){return"translate(0,"+this.adjustedScale(U)+")"},this.textAnchor=Es.End,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,this.dy=".32em";break;case jr.Right:this.transform=function(U){return"translate(0,"+this.adjustedScale(U)+")"},this.textAnchor=Es.Start,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(r=>r.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(r=>r.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Hc(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let r;const y=this.getMaxTicks(20),U=this.getMaxTicks(50);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[U]):(r=this.scale.domain(),r=Z1(r,y)),r}getMaxTicks(r){return Math.floor(this.height/r)}tickTransform(r){return`translate(${this.adjustedScale(r)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(r){return this.trimTicks?p2(r,this.maxTickLength):r}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(U=>this.tickTrim(this.tickFormat(U)).length))}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){const y=this.maxTickLength,U=Math.floor(this.scale.bandwidth()/15);return U<=1?[this.tickTrim(r)]:pf(r,y,Math.min(U,5))}return[this.tickFormat(r)]}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(r,y){if(1&r&&t.Gf(I1,5),2&r){let U;t.iGM(U=t.CRH())&&(y.ticksElement=U.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Yd,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["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(r,y){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,Eu,2,2,"g",1),t.qZA(),t.YNc(3,Au,1,2,"path",2),t.YNc(4,cl,2,2,"g",3),t.YNc(5,Ic,2,1,"g",3)),2&r&&(t.xp6(2),t.Q6J("ngForOf",y.ticks),t.xp6(1),t.Q6J("ngIf",y.referenceLineLength>1&&y.refMax&&y.refMin&&y.showRefLines),t.xp6(1),t.Q6J("ngForOf",y.ticks),t.xp6(1),t.Q6J("ngForOf",y.referenceLines))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),f})(),W1=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=jr.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(r){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===jr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:r}){r!==this.labelOffset&&this.yOrient===jr.Right?(this.labelOffset=r+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0)):r!==this.labelOffset&&(this.labelOffset=r,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0))}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(r,y){if(1&r&&t.Gf(gf,5),2&r){let U;t.iGM(U=t.CRH())&&(y.ticksComponent=U.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Iu,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","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(r,y){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,D0,1,15,"g",0),t.YNc(2,ku,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",y.yAxisClassName)("transform",y.transform),t.xp6(1),t.Q6J("ngIf",y.yScale),t.xp6(1),t.Q6J("ngIf",y.showLabel))},dependencies:[gf,mf,e.O5],encapsulation:2,changeDetection:0}),f})(),z3=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[e.ez]]}),f})();var hl=(()=>{return(f=hl||(hl={})).popover="popover",f.tooltip="tooltip",hl;var f})(),hc=(()=>{return(f=hc||(hc={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",hc;var f})();let g2=(()=>{class f{constructor(r,y,U){this.tooltipService=r,this.viewContainerRef=y,this.renderer=U,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Xn.Top,this.tooltipAlignment=Xn.Center,this.tooltipType=hl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=hc.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===hc.all||this.tooltipShowEvent===hc.focus}get listensForHover(){return this.tooltipShowEvent===hc.all||this.tooltipShowEvent===hc.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(r){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(r))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(r){if(this.component||this.tooltipDisabled)return;const y=r?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const U=this.createBoundOptions();this.component=this.tooltipService.create(U),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},y)}addHideListeners(r){this.mouseEnterContentEvent=this.renderer.listen(r,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(r,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",y=>{r.contains(y.target)||this.hideTooltip()}))}hideTooltip(r=!1){if(!this.component)return;const y=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),r?y():this.timeout=setTimeout(y,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(rh),t.Y36(t.s_b),t.Y36(t.Qsj))},f.\u0275dir=t.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(r,y){1&r&&t.NdJ("focusin",function(){return y.onFocus()})("blur",function(){return y.onBlur()})("mouseenter",function(){return y.onMouseEnter()})("mouseleave",function(j){return y.onMouseLeave(j.target)})("click",function(){return y.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),f})(),Y1=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({providers:[R3,rh],imports:[[e.ez]]}),f})();const sh={};function ul(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,sh[f]?ul():(sh[f]=!0,f)}var er=(()=>{return(f=er||(er={})).Vertical="vertical",f.Horizontal="horizontal",er;var f})();let _2=(()=>{class f{constructor(){this.orientation=er.Vertical}ngOnChanges(r){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===er.Horizontal?this.x2="100%":this.orientation===er.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:Ou,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(r,y){1&r&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,Pu,1,5,"stop",1),t.qZA()),2&r&&(t.Q6J("id",y.name),t.uIk("x1",y.x1)("y1",y.y1)("x2",y.x2)("y2",y.y2),t.xp6(1),t.Q6J("ngForOf",y.stops))},dependencies:[e.sg],encapsulation:2,changeDetection:0}),f})(),lh=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:O1,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(r,y){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("height",y.height)("width",y.width)("x",y.x)("y",y.y)},encapsulation:2,changeDetection:0}),f})();var Bl=(()=>{return(f=Bl||(Bl={})).Odd="odd",f.Even="even",Bl;var f})();let _f,B3=(()=>{class f{ngOnChanges(r){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(r=>{let y,U,j,ke,st,Kt=Bl.Odd;if(this.orient===er.Vertical){const Zt=this.xScale(r.name);Number.parseInt((Zt/this.xScale.step()).toString(),10)%2==1&&(Kt=Bl.Even),y=this.xScale.bandwidth()*this.xScale.paddingInner(),U=this.xScale.bandwidth()+y,j=this.dims.height,ke=this.xScale(r.name)-y/2,st=0}else if(this.orient===er.Horizontal){const Zt=this.yScale(r.name);Number.parseInt((Zt/this.yScale.step()).toString(),10)%2==1&&(Kt=Bl.Even),y=this.yScale.bandwidth()*this.yScale.paddingInner(),U=this.dims.width,j=this.yScale.bandwidth()+y,ke=0,st=this.yScale(r.name)-y/2}return{name:r.name,class:Kt,height:j,width:U,x:ke,y:st}})}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:t3,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(r,y){1&r&&t.YNc(0,P1,1,10,"g",0),2&r&&t.Q6J("ngForOf",y.gridPanels)},dependencies:[lh,e.sg],encapsulation:2,changeDetection:0}),f})();typeof window<"u"?_f=window:typeof global<"u"&&(_f=global);let As=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[e.ez,z3,Y1],e.ez,z3,Y1]}),f})();function K3({width:f,height:D,margins:r,showXAxis:y=!1,showYAxis:U=!1,xAxisHeight:j=0,yAxisWidth:ke=0,showXLabel:st=!1,showYLabel:Kt=!1,showLegend:Zt=!1,legendType:ci=xn.Ordinal,legendPosition:fi=Fc.Right,columns:vi=12}){let Ei=r[3],Xi=f,bn=D-r[0]-r[2];return Zt&&fi===Fc.Right&&(vi-=ci===xn.Ordinal?2:1),Xi=Xi*vi/12,Xi=Xi-r[1]-r[3],y&&(bn-=5,bn-=j,st&&(bn-=30)),U&&(Xi-=5,Xi-=ke,Ei+=ke,Ei+=10,Kt&&(Xi-=30,Ei+=30)),Xi=Math.max(0,Xi),bn=Math.max(0,bn),{width:Math.floor(Xi),height:Math.floor(bn),xOffset:Math.floor(Ei)}}const j3=[{name:"vivid",selectable:!0,group:xn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:xn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:xn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:xn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:xn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:xn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:xn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:xn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:xn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:xn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:xn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:xn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:xn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:xn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:xn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class bf{constructor(D,r,y,U){"string"==typeof D&&(D=j3.find(j=>j.name===D)),this.colorDomain=D.domain,this.scaleType=r,this.domain=y,this.customColors=U,this.scale=this.generateColorScheme(D,r,this.domain)}generateColorScheme(D,r,y){let U;switch("string"==typeof D&&(D=j3.find(j=>j.name===D)),r){case xn.Quantile:U=Zd().range(D.domain).domain(y);break;case xn.Ordinal:U=m0().range(D.domain).domain(y);break;case xn.Linear:{const j=[...D.domain];1===j.length&&(j.push(j[0]),this.colorDomain=j);const ke=u0(0,1,1/j.length);U=oc().range(j).domain(ke)}}return U}getColor(D){if(null==D)throw new Error("Value can not be null");if(this.scaleType===xn.Linear){const r=oc().domain(this.domain).range([0,1]);return this.scale(r(D))}{if("function"==typeof this.customColors)return this.customColors(D);const r=D.toString();let y;return this.customColors&&this.customColors.length>0&&(y=this.customColors.find(U=>U.name.toLowerCase()===r.toLowerCase())),y?y.value:this.scale(D)}}getLinearGradientStops(D,r){void 0===r&&(r=this.domain[0]);const y=oc().domain(this.domain).range([0,1]),U=sl().domain(this.colorDomain).range([0,1]),j=this.getColor(D),ke=y(r),st=this.getColor(r),Kt=y(D);let Zt=1,ci=ke;const fi=[];for(fi.push({color:st,offset:ke,originalOffset:ke,opacity:1});ci<Kt&&Zt<this.colorDomain.length;){const vi=this.colorDomain[Zt],Ei=U(vi);if(Ei<=ke)Zt++;else{if(Ei.toFixed(4)>=(Kt-U.bandwidth()).toFixed(4))break;fi.push({color:vi,offset:Ei,opacity:1}),ci=Ei,Zt++}}if(fi[fi.length-1].offset<100&&fi.push({color:j,offset:Kt,opacity:1}),Kt===ke)fi[0].offset=0,fi[1].offset=100;else if(100!==fi[fi.length-1].offset)for(const vi of fi)vi.offset=(vi.offset-ke)/(Kt-ke)*100;return fi}}let Ul=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),q3=(()=>{class f{constructor(r){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=r.nativeElement}ngOnChanges(r){r.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+ul().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 r=function dt(f){return"string"==typeof f?new Qi([[document.querySelector(f)]],[document.documentElement]):new Qi([[f]],nn)}(this.element).select(".bar"),y=this.getPath();this.animations?r.transition().duration(500).attr("d",y):r.attr("d",y)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let y,r=this.getRadius();return this.roundEdges?this.orientation===er.Vertical?(r=Math.min(this.height,r),y=Hc(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===er.Horizontal&&(r=Math.min(this.width,r),y=Hc(this.x,this.y,1,this.height,0,this.edges)):this.orientation===er.Vertical?y=Hc(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===er.Horizontal&&(y=Hc(this.x,this.y,1,this.height,0,this.edges)),y}getPath(){let y,r=this.getRadius();return this.roundEdges?this.orientation===er.Vertical?(r=Math.min(this.height,r),y=Hc(this.x,this.y,this.width,this.height,r,this.edges)):this.orientation===er.Horizontal&&(r=Math.min(this.width,r),y=Hc(this.x,this.y,this.width,this.height,r,this.edges)):y=Hc(this.x,this.y,this.width,this.height,r,this.edges),y}getRadius(){let r=0;return this.roundEdges&&this.height>5&&this.width>5&&(r=Math.floor(Math.min(5,this.height/2,this.width/2))),r}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let r=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===er.Vertical?r=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===er.Horizontal&&(r=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),r}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===er.Vertical&&0===this.height||this.orientation===er.Horizontal&&0===this.width)}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(r,y){1&r&&t.NdJ("mouseenter",function(){return y.onMouseEnter()})("mouseleave",function(){return y.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:Gu,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(r,y){1&r&&(t.YNc(0,Zu,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return y.select.emit(y.data)}),t.qZA()),2&r&&(t.Q6J("ngIf",y.hasGradient),t.xp6(1),t.ekj("active",y.isActive)("hidden",y.hideBar),t.uIk("d",y.path)("aria-label",y.ariaLabel)("fill",y.hasGradient?y.gradientFill:y.fill))},dependencies:[_2,e.O5],encapsulation:2,changeDetection:0}),f})();var uc=(()=>{return(f=uc||(uc={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",uc;var f})(),Xo=(()=>{return(f=Xo||(Xo={})).positive="positive",f.negative="negative",Xo;var f})();let Pp=(()=>{class f{constructor(r){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=r.nativeElement}ngOnChanges(r){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):m2(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(r){return new(r||f)(t.Y36(t.SBq))},f.\u0275cmp=t.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:[t.TTD],attrs:Wu,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(r,y){1&r&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&r&&(t.uIk("text-anchor",y.textAnchor)("transform",y.transform)("x",y.x)("y",y.y),t.xp6(1),t.hij(" ",y.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Mn=(()=>{class f{constructor(r){this.platformId=r,this.type=uc.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=er,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(r){this.update()}update(){let r;this.updateTooltipSettings(),this.series.length&&(r=this.xScale.bandwidth()),r=Math.round(r);const y=Math.max(this.yScale.domain()[0],0),U={[Xo.positive]:0,[Xo.negative]:0};let ke,j=Xo.positive;this.type===uc.Normalized&&(ke=this.series.map(st=>st.value).reduce((st,Kt)=>st+Kt,0)),this.bars=this.series.map((st,Kt)=>{let Zt=st.value;const ci=this.getLabel(st),fi=m2(ci);j=Zt>0?Xo.positive:Xo.negative;const Ei={value:Zt,label:ci,roundEdges:this.roundEdges,data:st,width:r,formattedLabel:fi,height:0,x:0,y:0};if(this.type===uc.Standard)Ei.height=Math.abs(this.yScale(Zt)-this.yScale(y)),Ei.x=this.xScale(ci),Ei.y=this.yScale(Zt<0?0:Zt);else if(this.type===uc.Stacked){const bn=U[j],Li=bn+Zt;U[j]+=Zt,Ei.height=this.yScale(bn)-this.yScale(Li),Ei.x=0,Ei.y=this.yScale(Li),Ei.offset0=bn,Ei.offset1=Li}else if(this.type===uc.Normalized){let bn=U[j],Li=bn+Zt;U[j]+=Zt,ke>0?(bn=100*bn/ke,Li=100*Li/ke):(bn=0,Li=0),Ei.height=this.yScale(bn)-this.yScale(Li),Ei.x=0,Ei.y=this.yScale(Li),Ei.offset0=bn,Ei.offset1=Li,Zt=(Li-bn).toFixed(2)+"%"}this.colors.scaleType===xn.Ordinal?Ei.color=this.colors.getColor(ci):this.type===uc.Standard?(Ei.color=this.colors.getColor(Zt),Ei.gradientStops=this.colors.getLinearGradientStops(Zt)):(Ei.color=this.colors.getColor(Ei.offset1),Ei.gradientStops=this.colors.getLinearGradientStops(Ei.offset1,Ei.offset0));let Xi=fi;return Ei.ariaLabel=fi+" "+Zt.toLocaleString(),null!=this.seriesName&&(Xi=`${this.seriesName} \u2022 ${fi}`,Ei.data.series=this.seriesName,Ei.ariaLabel=this.seriesName+" "+Ei.ariaLabel),Ei.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function oh(f){return f.toLocaleString().replace(/[&'`"<>]/g,D=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[D]))}(Xi)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(Zt):Zt.toLocaleString()}</span>\n `,Ei}),this.updateDataLabels()}updateDataLabels(){if(this.type===uc.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const y=this.series.map(j=>j.value).reduce((j,ke)=>ke>0?j+ke:j,0),U=this.series.map(j=>j.value).reduce((j,ke)=>ke<0?j+ke:j,0);r.total=y+U,r.x=0,r.y=0,r.height=this.yScale(r.total>0?y:U),r.width=this.xScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const y={};return y.series=this.seriesName??r.label,y.total=r.value,y.x=this.xScale(r.label),y.y=this.yScale(0),y.height=this.yScale(y.total)-this.yScale(0),y.width=this.xScale.bandwidth(),y})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Xn.Top,this.tooltipType=this.tooltipDisabled?void 0:hl.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(U=>r.name===U.name&&r.value===U.value)}onClick(r){this.select.emit(r)}getLabel(r){return r.label?r.label:r.name}trackBy(r,y){return y.label}trackDataLabelBy(r,y){return r+"#"+y.series+"#"+y.total}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:Fl,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(r,y){1&r&&(t.YNc(0,Ju,2,2,"g",0),t.YNc(1,P,2,2,"g",0),t.YNc(2,I,2,2,"g",0)),2&r&&(t.Q6J("ngIf",!y.isSSR),t.xp6(1),t.Q6J("ngIf",y.isSSR),t.xp6(1),t.Q6J("ngIf",y.showDataLabel))},dependencies:[q3,Pp,e.O5,e.sg,g2],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1}),(0,h.jt)(500,(0,h.oB)({opacity:0}))])])]},changeDetection:0}),f})(),X3=(()=>{class f extends ff{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Fc.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.wrapTicks=!1,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=K3({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 r=this.xDomain.length/(this.dims.width/this.barPadding+1);return sl().range([0,this.dims.width]).paddingInner(r).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const r=oc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?r.nice():r}getXDomain(){return this.results.map(r=>r.label)}getYDomain(){const r=this.results.map(j=>j.value);let y=this.yScaleMin?Math.min(this.yScaleMin,...r):Math.min(0,...r);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(y=Math.min(y,...this.yAxisTicks));let U=this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(U=Math.max(U,...this.yAxisTicks)),[y,U]}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===xn.Ordinal?this.xDomain:this.yDomain,this.colors=new bf(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===xn.Ordinal?(r.domain=this.xDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onDataLabelMaxHeightChanged(r){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),r.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,y=!1){r=this.results.find(j=>y?j.label===r.name:j.name===r.name),!(this.activeEntries.findIndex(j=>j.name===r.name&&j.value===r.value&&j.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,y=!1){r=this.results.find(j=>y?j.label===r.name:j.name===r.name);const U=this.activeEntries.findIndex(j=>j.name===r.name&&j.value===r.value&&j.series===r.series);this.activeEntries.splice(U,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}return f.\u0275fac=function(){let D;return function(y){return(D||(D=t.n5z(f)))(y||f)}}(),f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(r,y,U){if(1&r&&t.Suo(U,H1,5),2&r){let j;t.iGM(j=t.CRH())&&(y.tooltipTemplate=j.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"]],template:function(r,y){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(j){return y.onClick(j)})("legendLabelActivate",function(j){return y.onActivate(j,!0)})("legendLabelDeactivate",function(j){return y.onDeactivate(j,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,H,1,12,"g",2),t.YNc(3,ve,1,10,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(j){return y.onActivate(j)})("deactivate",function(j){return y.onDeactivate(j)})("select",function(j){return y.onClick(j)})("dataLabelHeightChanged",function(j){return y.onDataLabelMaxHeightChanged(j)}),t.qZA()()()),2&r&&(t.Q6J("view",t.WLB(22,dl,y.width,y.height))("showLegend",y.legend)("legendOptions",y.legendOptions)("activeEntries",y.activeEntries)("animations",y.animations),t.xp6(1),t.uIk("transform",y.transform),t.xp6(1),t.Q6J("ngIf",y.xAxis),t.xp6(1),t.Q6J("ngIf",y.yAxis),t.xp6(1),t.Q6J("xScale",y.xScale)("yScale",y.yScale)("colors",y.colors)("series",y.results)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("activeEntries",y.activeEntries)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero))},dependencies:[ss,H3,W1,Mn,e.O5],styles:[n2],encapsulation:2,changeDetection:0}),f})(),gm=(()=>{class f extends ff{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Fc.Right,this.tooltipDisabled=!1,this.scaleType=xn.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.wrapTicks=!1,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=er,this.trackBy=(r,y)=>y.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=K3({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(r,y){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),y===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return sl().rangeRound([0,this.dims.width]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),y=this.innerDomain.length/(r/this.barPadding+1);return sl().rangeRound([0,r]).paddingInner(y).domain(this.innerDomain)}getValueScale(){const r=oc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const y of this.results)r.includes(y.label)||r.push(y.label);return r}getInnerDomain(){const r=[];for(const y of this.results)for(const U of y.series)r.includes(U.label)||r.push(U.label);return r}getValueDomain(){const r=[];for(const j of this.results)for(const ke of j.series)r.includes(ke.value)||r.push(ke.value);return[Math.min(0,...r),this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r)]}groupTransform(r){return`translate(${this.groupScale(r.label)}, 0)`}onClick(r,y){y&&(r.series=y.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===xn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new bf(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===xn.Ordinal?(r.domain=this.innerDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.valueDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r,y,U=!1){const j=Object.assign({},r);y&&(j.series=y.name);const ke=this.results.map(st=>st.series).flat().filter(st=>U?st.label===j.name:st.name===j.name&&st.series===j.series);this.activeEntries=[...ke],this.activate.emit({value:j,entries:this.activeEntries})}onDeactivate(r,y,U=!1){const j=Object.assign({},r);y&&(j.series=y.name),this.activeEntries=this.activeEntries.filter(ke=>U?ke.label!==j.name:!(ke.name===j.name&&ke.series===j.series)),this.deactivate.emit({value:j,entries:this.activeEntries})}}return f.\u0275fac=function(){let D;return function(y){return(D||(D=t.n5z(f)))(y||f)}}(),f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(r,y,U){if(1&r&&t.Suo(U,H1,5),2&r){let j;t.iGM(j=t.CRH())&&(y.tooltipTemplate=j.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(r,y){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(j){return y.onActivate(j,void 0,!0)})("legendLabelDeactivate",function(j){return y.onDeactivate(j,void 0,!0)})("legendLabelClick",function(j){return y.onClick(j)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,yt,1,11,"g",3),t.YNc(4,Jt,1,10,"g",4),t.YNc(5,Ci,2,2,"g",5),t.qZA(),t.YNc(6,Yi,2,2,"g",5),t.qZA()),2&r&&(t.Q6J("view",t.WLB(15,dl,y.width,y.height))("showLegend",y.legend)("legendOptions",y.legendOptions)("activeEntries",y.activeEntries)("animations",y.animations),t.xp6(1),t.uIk("transform",y.transform),t.xp6(1),t.Q6J("xScale",y.groupScale)("yScale",y.valueScale)("data",y.results)("dims",y.dims)("orient",y.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",y.xAxis),t.xp6(1),t.Q6J("ngIf",y.yAxis),t.xp6(1),t.Q6J("ngIf",!y.isSSR),t.xp6(1),t.Q6J("ngIf",y.isSSR))},dependencies:[ss,B3,H3,W1,Mn,e.O5,e.sg],styles:[n2],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1,transform:"*"}),(0,h.jt)(500,(0,h.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})(),$3=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})();gu();let e4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),i4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),xm=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),a4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})();Math;let fh=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),s4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As,fh,a4]]}),f})(),l4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),Am=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As]]}),f})(),h4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[As,fh,$3]]}),f})(),Im=(()=>{class f{constructor(){!function Dm(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[As,Ul,$3,e4,i4,xm,a4,s4,l4,fh,Am,h4]}),f})()},658:(We,q,m)=>{"use strict";function t(L,k,V,B,W,Y,Q){try{var X=L[Y](Q),ee=X.value}catch(me){return void V(me)}X.done?k(ee):Promise.resolve(ee).then(B,W)}m.d(q,{uU:()=>M,OF:()=>w});var g=m(4650),T=m(6895),s=m(3259);function x(L,k){if(1&L&&g._UZ(0,"canvas",1),2&L){const V=g.oxw();g.Q6J("qrCode",V.value)("qrCodeErrorCorrectionLevel",V.errorCorrectionLevel)("qrCodeCenterImageSrc",V.centerImageSrc)("qrCodeCenterImageWidth",V.centerImageSize)("qrCodeCenterImageHeight",V.centerImageSize)("qrCodeMargin",V.margin)("width",V.size)("height",V.size)("darkColor",V.darkColor)("lightColor",V.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let N=(()=>{class L{constructor(V){this.viewContainerRef=V,this.errorCorrectionLevel=L.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var V=this;return function e(L){return function(){var k=this,V=arguments;return new Promise(function(B,W){var Y=L.apply(k,V);function Q(ee){t(Y,B,W,Q,X,"next",ee)}function X(ee){t(Y,B,W,Q,X,"throw",ee)}Q(void 0)})}}(function*(){if(!V.value)return;V.version&&V.version>40?(console.warn("[qrCode] max version is 40, clamping"),V.version=40):V.version&&V.version<1?(console.warn("[qrCode] min version is 1, clamping"),V.version=1):void 0!==V.version&&isNaN(V.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),V.version=void 0);const B=V.viewContainerRef.element.nativeElement;if(!B)return;const W=B.getContext("2d");W&&W.clearRect(0,0,W.canvas.width,W.canvas.height);const Y=V.errorCorrectionLevel??L.DEFAULT_ERROR_CORRECTION_LEVEL,Q=h.test(V.darkColor)?V.darkColor:void 0,X=h.test(V.lightColor)?V.lightColor:void 0;(0,g.X6Q)()&&(!Q&&V.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!X&&V.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield s.toCanvas(B,V.value,{version:V.version,errorCorrectionLevel:Y,width:V.width,margin:V.margin,color:{dark:Q,light:X}});const ee=V.centerImageSrc,me=d(V.centerImageWidth,L.DEFAULT_CENTER_IMAGE_SIZE),re=d(V.centerImageHeight,L.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&W){V.centerImage||(V.centerImage=new Image(me,re));const ie=V.centerImage;ee!==V.centerImage.src&&(ie.src=ee),me!==V.centerImage.width&&(ie.width=me),re!==V.centerImage.height&&(ie.height=re);const se=()=>{W.drawImage(ie,B.width/2-me/2,B.height/2-re/2,me,re)};ie.onload=se,ie.complete&&se()}})()}}return L.DEFAULT_ERROR_CORRECTION_LEVEL="M",L.DEFAULT_CENTER_IMAGE_SIZE=40,L.\u0275fac=function(V){return new(V||L)(g.Y36(g.s_b))},L.\u0275dir=g.lG2({type:L,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:[g.TTD]}),L})();function d(L,k){return void 0===L||""===L?k:"string"==typeof L?parseInt(L,10):L}let M=(()=>{class L{}return L.\u0275fac=function(V){return new(V||L)},L.\u0275cmp=g.Xpm({type:L,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(V,B){1&V&&g.YNc(0,x,1,10,"canvas",0),2&V&&g.Q6J("ngIf",B.value)},dependencies:[T.O5,N],encapsulation:2}),L})(),w=(()=>{class L{}return L.\u0275fac=function(V){return new(V||L)},L.\u0275mod=g.oAB({type:L}),L.\u0275inj=g.cJS({imports:[T.ez]}),L})()},6839:(We,q,m)=>{"use strict";m.d(q,{op:()=>Bt,Vv:()=>ei,$V:()=>Xe,Xd:()=>ni});var t=m(7579),e=m(4968),g=m(6451),T=m(3601),s=m(2722),x=m(1884),h=m(9718),N=m(4650),d=m(6895);function M(pt){return getComputedStyle(pt)}function w(pt,ot){for(var ft in ot){var St=ot[ft];"number"==typeof St&&(St+="px"),pt.style[ft]=St}return pt}function L(pt){var ot=document.createElement("div");return ot.className=pt,ot}var k=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function V(pt,ot){if(!k)throw new Error("No element matching method supported");return k.call(pt,ot)}function B(pt){pt.remove?pt.remove():pt.parentNode&&pt.parentNode.removeChild(pt)}function W(pt,ot){return Array.prototype.filter.call(pt.children,function(ft){return V(ft,ot)})}var Y={main:"ps",rtl:"ps__rtl",element:{thumb:function(pt){return"ps__thumb-"+pt},rail:function(pt){return"ps__rail-"+pt},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(pt){return"ps--active-"+pt},scrolling:function(pt){return"ps--scrolling-"+pt}}},Q={x:null,y:null};function X(pt,ot){var ft=pt.element.classList,St=Y.state.scrolling(ot);ft.contains(St)?clearTimeout(Q[ot]):ft.add(St)}function ee(pt,ot){Q[ot]=setTimeout(function(){return pt.isAlive&&pt.element.classList.remove(Y.state.scrolling(ot))},pt.settings.scrollingThreshold)}var re=function(ot){this.element=ot,this.handlers={}},ie={isEmpty:{configurable:!0}};re.prototype.bind=function(ot,ft){typeof this.handlers[ot]>"u"&&(this.handlers[ot]=[]),this.handlers[ot].push(ft),this.element.addEventListener(ot,ft,!1)},re.prototype.unbind=function(ot,ft){var St=this;this.handlers[ot]=this.handlers[ot].filter(function(gt){return!(!ft||gt===ft)||(St.element.removeEventListener(ot,gt,!1),!1)})},re.prototype.unbindAll=function(){for(var ot in this.handlers)this.unbind(ot)},ie.isEmpty.get=function(){var pt=this;return Object.keys(this.handlers).every(function(ot){return 0===pt.handlers[ot].length})},Object.defineProperties(re.prototype,ie);var se=function(){this.eventElements=[]};function ce(pt){if("function"==typeof window.CustomEvent)return new CustomEvent(pt);var ot=document.createEvent("CustomEvent");return ot.initCustomEvent(pt,!1,!1,void 0),ot}function Te(pt,ot,ft,St,gt){var tt;if(void 0===St&&(St=!0),void 0===gt&&(gt=!1),"top"===ot)tt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==ot)throw new Error("A proper axis should be provided");tt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function S(pt,ot,ft,St,gt){var tt=ft[0],_t=ft[1],vt=ft[2],Ve=ft[3],Tt=ft[4],Lt=ft[5];void 0===St&&(St=!0),void 0===gt&&(gt=!1);var Qt=pt.element;pt.reach[Ve]=null,Qt[vt]<1&&(pt.reach[Ve]="start"),Qt[vt]>pt[tt]-pt[_t]-1&&(pt.reach[Ve]="end"),ot&&(Qt.dispatchEvent(ce("ps-scroll-"+Ve)),ot<0?Qt.dispatchEvent(ce("ps-scroll-"+Tt)):ot>0&&Qt.dispatchEvent(ce("ps-scroll-"+Lt)),St&&function me(pt,ot){X(pt,ot),ee(pt,ot)}(pt,Ve)),pt.reach[Ve]&&(ot||gt)&&Qt.dispatchEvent(ce("ps-"+Ve+"-reach-"+pt.reach[Ve]))}(pt,ft,tt,St,gt)}function i(pt){return parseInt(pt,10)||0}se.prototype.eventElement=function(ot){var ft=this.eventElements.filter(function(St){return St.element===ot})[0];return ft||(ft=new re(ot),this.eventElements.push(ft)),ft},se.prototype.bind=function(ot,ft,St){this.eventElement(ot).bind(ft,St)},se.prototype.unbind=function(ot,ft,St){var gt=this.eventElement(ot);gt.unbind(ft,St),gt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(gt),1)},se.prototype.unbindAll=function(){this.eventElements.forEach(function(ot){return ot.unbindAll()}),this.eventElements=[]},se.prototype.once=function(ot,ft,St){var gt=this.eventElement(ot),tt=function(_t){gt.unbind(ft,tt),St(_t)};gt.bind(ft,tt)};var l={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function _(pt){var ot=pt.element,ft=Math.floor(ot.scrollTop),St=ot.getBoundingClientRect();pt.containerWidth=Math.round(St.width),pt.containerHeight=Math.round(St.height),pt.contentWidth=ot.scrollWidth,pt.contentHeight=ot.scrollHeight,ot.contains(pt.scrollbarXRail)||(W(ot,Y.element.rail("x")).forEach(function(gt){return B(gt)}),ot.appendChild(pt.scrollbarXRail)),ot.contains(pt.scrollbarYRail)||(W(ot,Y.element.rail("y")).forEach(function(gt){return B(gt)}),ot.appendChild(pt.scrollbarYRail)),!pt.settings.suppressScrollX&&pt.containerWidth+pt.settings.scrollXMarginOffset<pt.contentWidth?(pt.scrollbarXActive=!0,pt.railXWidth=pt.containerWidth-pt.railXMarginWidth,pt.railXRatio=pt.containerWidth/pt.railXWidth,pt.scrollbarXWidth=O(pt,i(pt.railXWidth*pt.containerWidth/pt.contentWidth)),pt.scrollbarXLeft=i((pt.negativeScrollAdjustment+ot.scrollLeft)*(pt.railXWidth-pt.scrollbarXWidth)/(pt.contentWidth-pt.containerWidth))):pt.scrollbarXActive=!1,!pt.settings.suppressScrollY&&pt.containerHeight+pt.settings.scrollYMarginOffset<pt.contentHeight?(pt.scrollbarYActive=!0,pt.railYHeight=pt.containerHeight-pt.railYMarginHeight,pt.railYRatio=pt.containerHeight/pt.railYHeight,pt.scrollbarYHeight=O(pt,i(pt.railYHeight*pt.containerHeight/pt.contentHeight)),pt.scrollbarYTop=i(ft*(pt.railYHeight-pt.scrollbarYHeight)/(pt.contentHeight-pt.containerHeight))):pt.scrollbarYActive=!1,pt.scrollbarXLeft>=pt.railXWidth-pt.scrollbarXWidth&&(pt.scrollbarXLeft=pt.railXWidth-pt.scrollbarXWidth),pt.scrollbarYTop>=pt.railYHeight-pt.scrollbarYHeight&&(pt.scrollbarYTop=pt.railYHeight-pt.scrollbarYHeight),function R(pt,ot){var ft={width:ot.railXWidth},St=Math.floor(pt.scrollTop);ft.left=ot.isRtl?ot.negativeScrollAdjustment+pt.scrollLeft+ot.containerWidth-ot.contentWidth:pt.scrollLeft,ot.isScrollbarXUsingBottom?ft.bottom=ot.scrollbarXBottom-St:ft.top=ot.scrollbarXTop+St,w(ot.scrollbarXRail,ft);var gt={top:St,height:ot.railYHeight};ot.isScrollbarYUsingRight?gt.right=ot.isRtl?ot.contentWidth-(ot.negativeScrollAdjustment+pt.scrollLeft)-ot.scrollbarYRight-ot.scrollbarYOuterWidth-9:ot.scrollbarYRight-pt.scrollLeft:gt.left=ot.isRtl?ot.negativeScrollAdjustment+pt.scrollLeft+2*ot.containerWidth-ot.contentWidth-ot.scrollbarYLeft-ot.scrollbarYOuterWidth:ot.scrollbarYLeft+pt.scrollLeft,w(ot.scrollbarYRail,gt),w(ot.scrollbarX,{left:ot.scrollbarXLeft,width:ot.scrollbarXWidth-ot.railBorderXWidth}),w(ot.scrollbarY,{top:ot.scrollbarYTop,height:ot.scrollbarYHeight-ot.railBorderYWidth})}(ot,pt),pt.scrollbarXActive?ot.classList.add(Y.state.active("x")):(ot.classList.remove(Y.state.active("x")),pt.scrollbarXWidth=0,pt.scrollbarXLeft=0,ot.scrollLeft=!0===pt.isRtl?pt.contentWidth:0),pt.scrollbarYActive?ot.classList.add(Y.state.active("y")):(ot.classList.remove(Y.state.active("y")),pt.scrollbarYHeight=0,pt.scrollbarYTop=0,ot.scrollTop=0)}function O(pt,ot){return pt.settings.minScrollbarLength&&(ot=Math.max(ot,pt.settings.minScrollbarLength)),pt.settings.maxScrollbarLength&&(ot=Math.min(ot,pt.settings.maxScrollbarLength)),ot}function v(pt,ot){var ft=ot[0],St=ot[1],gt=ot[2],tt=ot[3],_t=ot[4],vt=ot[5],Ve=ot[6],Tt=ot[7],Lt=ot[8],Qt=pt.element,Bi=null,Hi=null,Si=null;function Wi(Le){Le.touches&&Le.touches[0]&&(Le[gt]=Le.touches[0].pageY),Qt[Ve]=Bi+Si*(Le[gt]-Hi),X(pt,Tt),_(pt),Le.stopPropagation(),Le.type.startsWith("touch")&&Le.changedTouches.length>1&&Le.preventDefault()}function et(){ee(pt,Tt),pt[Lt].classList.remove(Y.state.clicking),pt.event.unbind(pt.ownerDocument,"mousemove",Wi)}function It(Le,Mt){Bi=Qt[Ve],Mt&&Le.touches&&(Le[gt]=Le.touches[0].pageY),Hi=Le[gt],Si=(pt[St]-pt[ft])/(pt[tt]-pt[vt]),Mt?pt.event.bind(pt.ownerDocument,"touchmove",Wi):(pt.event.bind(pt.ownerDocument,"mousemove",Wi),pt.event.once(pt.ownerDocument,"mouseup",et),Le.preventDefault()),pt[Lt].classList.add(Y.state.clicking),Le.stopPropagation()}pt.event.bind(pt[_t],"mousedown",function(Le){It(Le)}),pt.event.bind(pt[_t],"touchstart",function(Le){It(Le,!0)})}var Ee={"click-rail":function C(pt){pt.event.bind(pt.scrollbarY,"mousedown",function(ft){return ft.stopPropagation()}),pt.event.bind(pt.scrollbarYRail,"mousedown",function(ft){var St=ft.pageY-window.pageYOffset-pt.scrollbarYRail.getBoundingClientRect().top;pt.element.scrollTop+=(St>pt.scrollbarYTop?1:-1)*pt.containerHeight,_(pt),ft.stopPropagation()}),pt.event.bind(pt.scrollbarX,"mousedown",function(ft){return ft.stopPropagation()}),pt.event.bind(pt.scrollbarXRail,"mousedown",function(ft){var St=ft.pageX-window.pageXOffset-pt.scrollbarXRail.getBoundingClientRect().left;pt.element.scrollLeft+=(St>pt.scrollbarXLeft?1:-1)*pt.containerWidth,_(pt),ft.stopPropagation()})},"drag-thumb":function n(pt){v(pt,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),v(pt,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function K(pt){var ot=pt.element;pt.event.bind(pt.ownerDocument,"keydown",function(tt){if(!(tt.isDefaultPrevented&&tt.isDefaultPrevented()||tt.defaultPrevented)&&(V(ot,":hover")||V(pt.scrollbarX,":focus")||V(pt.scrollbarY,":focus"))){var _t=document.activeElement?document.activeElement:pt.ownerDocument.activeElement;if(_t){if("IFRAME"===_t.tagName)_t=_t.contentDocument.activeElement;else for(;_t.shadowRoot;)_t=_t.shadowRoot.activeElement;if(function a(pt){return V(pt,"input,[contenteditable]")||V(pt,"select,[contenteditable]")||V(pt,"textarea,[contenteditable]")||V(pt,"button,[contenteditable]")}(_t))return}var vt=0,Ve=0;switch(tt.which){case 37:vt=tt.metaKey?-pt.contentWidth:tt.altKey?-pt.containerWidth:-30;break;case 38:Ve=tt.metaKey?pt.contentHeight:tt.altKey?pt.containerHeight:30;break;case 39:vt=tt.metaKey?pt.contentWidth:tt.altKey?pt.containerWidth:30;break;case 40:Ve=tt.metaKey?-pt.contentHeight:tt.altKey?-pt.containerHeight:-30;break;case 32:Ve=tt.shiftKey?pt.containerHeight:-pt.containerHeight;break;case 33:Ve=pt.containerHeight;break;case 34:Ve=-pt.containerHeight;break;case 36:Ve=pt.contentHeight;break;case 35:Ve=-pt.contentHeight;break;default:return}pt.settings.suppressScrollX&&0!==vt||pt.settings.suppressScrollY&&0!==Ve||(ot.scrollTop-=Ve,ot.scrollLeft+=vt,_(pt),function gt(tt,_t){var vt=Math.floor(ot.scrollTop);if(0===tt){if(!pt.scrollbarYActive)return!1;if(0===vt&&_t>0||vt>=pt.contentHeight-pt.containerHeight&&_t<0)return!pt.settings.wheelPropagation}var Ve=ot.scrollLeft;if(0===_t){if(!pt.scrollbarXActive)return!1;if(0===Ve&&tt<0||Ve>=pt.contentWidth-pt.containerWidth&&tt>0)return!pt.settings.wheelPropagation}return!0}(vt,Ve)&&tt.preventDefault())}})},wheel:function F(pt){var ot=pt.element;function tt(_t){var vt=function St(_t){var vt=_t.deltaX,Ve=-1*_t.deltaY;return(typeof vt>"u"||typeof Ve>"u")&&(vt=-1*_t.wheelDeltaX/6,Ve=_t.wheelDeltaY/6),_t.deltaMode&&1===_t.deltaMode&&(vt*=10,Ve*=10),vt!=vt&&Ve!=Ve&&(vt=0,Ve=_t.wheelDelta),_t.shiftKey?[-Ve,-vt]:[vt,Ve]}(_t),Ve=vt[0],Tt=vt[1];if(!function gt(_t,vt,Ve){if(!l.isWebKit&&ot.querySelector("select:focus"))return!0;if(!ot.contains(_t))return!1;for(var Tt=_t;Tt&&Tt!==ot;){if(Tt.classList.contains(Y.element.consuming))return!0;var Lt=M(Tt);if(Ve&&Lt.overflowY.match(/(scroll|auto)/)){var Qt=Tt.scrollHeight-Tt.clientHeight;if(Qt>0&&(Tt.scrollTop>0&&Ve<0||Tt.scrollTop<Qt&&Ve>0))return!0}if(vt&&Lt.overflowX.match(/(scroll|auto)/)){var Bi=Tt.scrollWidth-Tt.clientWidth;if(Bi>0&&(Tt.scrollLeft>0&&vt<0||Tt.scrollLeft<Bi&&vt>0))return!0}Tt=Tt.parentNode}return!1}(_t.target,Ve,Tt)){var Lt=!1;pt.settings.useBothWheelAxes?pt.scrollbarYActive&&!pt.scrollbarXActive?(Tt?ot.scrollTop-=Tt*pt.settings.wheelSpeed:ot.scrollTop+=Ve*pt.settings.wheelSpeed,Lt=!0):pt.scrollbarXActive&&!pt.scrollbarYActive&&(Ve?ot.scrollLeft+=Ve*pt.settings.wheelSpeed:ot.scrollLeft-=Tt*pt.settings.wheelSpeed,Lt=!0):(ot.scrollTop-=Tt*pt.settings.wheelSpeed,ot.scrollLeft+=Ve*pt.settings.wheelSpeed),_(pt),Lt=Lt||function ft(_t,vt){var Ve=Math.floor(ot.scrollTop),Tt=0===ot.scrollTop,Lt=Ve+ot.offsetHeight===ot.scrollHeight,Qt=0===ot.scrollLeft,Bi=ot.scrollLeft+ot.offsetWidth===ot.scrollWidth;return!(Math.abs(vt)>Math.abs(_t)?Tt||Lt:Qt||Bi)||!pt.settings.wheelPropagation}(Ve,Tt),Lt&&!_t.ctrlKey&&(_t.stopPropagation(),_t.preventDefault())}}typeof window.onwheel<"u"?pt.event.bind(ot,"wheel",tt):typeof window.onmousewheel<"u"&&pt.event.bind(ot,"mousewheel",tt)},touch:function G(pt){if(l.supportsTouch||l.supportsIePointer){var ot=pt.element,gt={},tt=0,_t={},vt=null;l.supportsTouch?(pt.event.bind(ot,"touchstart",Lt),pt.event.bind(ot,"touchmove",Bi),pt.event.bind(ot,"touchend",Hi)):l.supportsIePointer&&(window.PointerEvent?(pt.event.bind(ot,"pointerdown",Lt),pt.event.bind(ot,"pointermove",Bi),pt.event.bind(ot,"pointerup",Hi)):window.MSPointerEvent&&(pt.event.bind(ot,"MSPointerDown",Lt),pt.event.bind(ot,"MSPointerMove",Bi),pt.event.bind(ot,"MSPointerUp",Hi)))}function St(Si,Wi){ot.scrollTop-=Wi,ot.scrollLeft-=Si,_(pt)}function Ve(Si){return Si.targetTouches?Si.targetTouches[0]:Si}function Tt(Si){return!(Si.pointerType&&"pen"===Si.pointerType&&0===Si.buttons||!(Si.targetTouches&&1===Si.targetTouches.length||Si.pointerType&&"mouse"!==Si.pointerType&&Si.pointerType!==Si.MSPOINTER_TYPE_MOUSE))}function Lt(Si){if(Tt(Si)){var Wi=Ve(Si);gt.pageX=Wi.pageX,gt.pageY=Wi.pageY,tt=(new Date).getTime(),null!==vt&&clearInterval(vt)}}function Bi(Si){if(Tt(Si)){var Wi=Ve(Si),et={pageX:Wi.pageX,pageY:Wi.pageY},It=et.pageX-gt.pageX,Le=et.pageY-gt.pageY;if(function Qt(Si,Wi,et){if(!ot.contains(Si))return!1;for(var It=Si;It&&It!==ot;){if(It.classList.contains(Y.element.consuming))return!0;var Le=M(It);if(et&&Le.overflowY.match(/(scroll|auto)/)){var Mt=It.scrollHeight-It.clientHeight;if(Mt>0&&(It.scrollTop>0&&et<0||It.scrollTop<Mt&&et>0))return!0}if(Wi&&Le.overflowX.match(/(scroll|auto)/)){var Wt=It.scrollWidth-It.clientWidth;if(Wt>0&&(It.scrollLeft>0&&Wi<0||It.scrollLeft<Wt&&Wi>0))return!0}It=It.parentNode}return!1}(Si.target,It,Le))return;St(It,Le),gt=et;var Mt=(new Date).getTime(),Wt=Mt-tt;Wt>0&&(_t.x=It/Wt,_t.y=Le/Wt,tt=Mt),function ft(Si,Wi){var et=Math.floor(ot.scrollTop),It=ot.scrollLeft,Le=Math.abs(Si),Mt=Math.abs(Wi);if(Mt>Le){if(Wi<0&&et===pt.contentHeight-pt.containerHeight||Wi>0&&0===et)return 0===window.scrollY&&Wi>0&&l.isChrome}else if(Le>Mt&&(Si<0&&It===pt.contentWidth-pt.containerWidth||Si>0&&0===It))return!0;return!0}(It,Le)&&Si.preventDefault()}}function Hi(){pt.settings.swipeEasing&&(clearInterval(vt),vt=setInterval(function(){pt.isInitialized?clearInterval(vt):_t.x||_t.y?Math.abs(_t.x)<.01&&Math.abs(_t.y)<.01?clearInterval(vt):pt.element?(St(30*_t.x,30*_t.y),_t.x*=.8,_t.y*=.8):clearInterval(vt):clearInterval(vt)},10))}}},pe=function(ot,ft){var St=this;if(void 0===ft&&(ft={}),"string"==typeof ot&&(ot=document.querySelector(ot)),!ot||!ot.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var gt in this.element=ot,ot.classList.add(Y.main),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},ft)this.settings[gt]=ft[gt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Lt,Tt,tt=function(){return ot.classList.add(Y.state.focus)},_t=function(){return ot.classList.remove(Y.state.focus)};this.isRtl="rtl"===M(ot).direction,!0===this.isRtl&&ot.classList.add(Y.rtl),this.isNegativeScroll=(Tt=ot.scrollLeft,ot.scrollLeft=-1,Lt=ot.scrollLeft<0,ot.scrollLeft=Tt,Lt),this.negativeScrollAdjustment=this.isNegativeScroll?ot.scrollWidth-ot.clientWidth:0,this.event=new se,this.ownerDocument=ot.ownerDocument||document,this.scrollbarXRail=L(Y.element.rail("x")),ot.appendChild(this.scrollbarXRail),this.scrollbarX=L(Y.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",tt),this.event.bind(this.scrollbarX,"blur",_t),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var vt=M(this.scrollbarXRail);this.scrollbarXBottom=parseInt(vt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(vt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(vt.borderLeftWidth)+i(vt.borderRightWidth),w(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(vt.marginLeft)+i(vt.marginRight),w(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=L(Y.element.rail("y")),ot.appendChild(this.scrollbarYRail),this.scrollbarY=L(Y.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",tt),this.event.bind(this.scrollbarY,"blur",_t),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Ve=M(this.scrollbarYRail);this.scrollbarYRight=parseInt(Ve.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Ve.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function u(pt){var ot=M(pt);return i(ot.width)+i(ot.paddingLeft)+i(ot.paddingRight)+i(ot.borderLeftWidth)+i(ot.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Ve.borderTopWidth)+i(Ve.borderBottomWidth),w(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Ve.marginTop)+i(Ve.marginBottom),w(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:ot.scrollLeft<=0?"start":ot.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:ot.scrollTop<=0?"start":ot.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Tt){return Ee[Tt](St)}),this.lastScrollTop=Math.floor(ot.scrollTop),this.lastScrollLeft=ot.scrollLeft,this.event.bind(this.element,"scroll",function(Tt){return St.onScroll(Tt)}),_(this)};pe.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,w(this.scrollbarXRail,{display:"block"}),w(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(M(this.scrollbarXRail).marginLeft)+i(M(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(M(this.scrollbarYRail).marginTop)+i(M(this.scrollbarYRail).marginBottom),w(this.scrollbarXRail,{display:"none"}),w(this.scrollbarYRail,{display:"none"}),_(this),Te(this,"top",0,!1,!0),Te(this,"left",0,!1,!0),w(this.scrollbarXRail,{display:""}),w(this.scrollbarYRail,{display:""}))},pe.prototype.onScroll=function(ot){this.isAlive&&(_(this),Te(this,"top",this.element.scrollTop-this.lastScrollTop),Te(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},pe.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),B(this.scrollbarX),B(this.scrollbarY),B(this.scrollbarXRail),B(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},pe.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(ot){return!ot.match(/^ps([-_].+|)$/)}).join(" ")};const qe=pe;var Ce=function(){if(typeof Map<"u")return Map;function pt(ot,ft){var St=-1;return ot.some(function(gt,tt){return gt[0]===ft&&(St=tt,!0)}),St}return function(){function ot(){this.__entries__=[]}return Object.defineProperty(ot.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ot.prototype.get=function(ft){var St=pt(this.__entries__,ft),gt=this.__entries__[St];return gt&&gt[1]},ot.prototype.set=function(ft,St){var gt=pt(this.__entries__,ft);~gt?this.__entries__[gt][1]=St:this.__entries__.push([ft,St])},ot.prototype.delete=function(ft){var St=this.__entries__,gt=pt(St,ft);~gt&&St.splice(gt,1)},ot.prototype.has=function(ft){return!!~pt(this.__entries__,ft)},ot.prototype.clear=function(){this.__entries__.splice(0)},ot.prototype.forEach=function(ft,St){void 0===St&&(St=null);for(var gt=0,tt=this.__entries__;gt<tt.length;gt++){var _t=tt[gt];ft.call(St,_t[1],_t[0])}},ot}()}(),Se=typeof window<"u"&&typeof document<"u"&&window.document===document,fe=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Fe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(fe):function(pt){return setTimeout(function(){return pt(Date.now())},1e3/60)},oe=2,Oe=20,he=["top","right","bottom","left","width","height","size","weight"],Ae=typeof MutationObserver<"u",ge=function(){function pt(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function ze(pt,ot){var ft=!1,St=!1,gt=0;function tt(){ft&&(ft=!1,pt()),St&&vt()}function _t(){Fe(tt)}function vt(){var Ve=Date.now();if(ft){if(Ve-gt<oe)return;St=!0}else ft=!0,St=!1,setTimeout(_t,ot);gt=Ve}return vt}(this.refresh.bind(this),Oe)}return pt.prototype.addObserver=function(ot){~this.observers_.indexOf(ot)||this.observers_.push(ot),this.connected_||this.connect_()},pt.prototype.removeObserver=function(ot){var ft=this.observers_,St=ft.indexOf(ot);~St&&ft.splice(St,1),!ft.length&&this.connected_&&this.disconnect_()},pt.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},pt.prototype.updateObservers_=function(){var ot=this.observers_.filter(function(ft){return ft.gatherActive(),ft.hasActive()});return ot.forEach(function(ft){return ft.broadcastActive()}),ot.length>0},pt.prototype.connect_=function(){!Se||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ae?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},pt.prototype.disconnect_=function(){!Se||!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)},pt.prototype.onTransitionEnd_=function(ot){var ft=ot.propertyName,St=void 0===ft?"":ft;he.some(function(tt){return!!~St.indexOf(tt)})&&this.refresh()},pt.getInstance=function(){return this.instance_||(this.instance_=new pt),this.instance_},pt.instance_=null,pt}(),Ue=function(pt,ot){for(var ft=0,St=Object.keys(ot);ft<St.length;ft++){var gt=St[ft];Object.defineProperty(pt,gt,{value:ot[gt],enumerable:!1,writable:!1,configurable:!0})}return pt},Je=function(pt){return pt&&pt.ownerDocument&&pt.ownerDocument.defaultView||fe},Re=$e(0,0,0,0);function le(pt){return parseFloat(pt)||0}function rt(pt){for(var ot=[],ft=1;ft<arguments.length;ft++)ot[ft-1]=arguments[ft];return ot.reduce(function(St,gt){return St+le(pt["border-"+gt+"-width"])},0)}var ut=typeof SVGGraphicsElement<"u"?function(pt){return pt instanceof Je(pt).SVGGraphicsElement}:function(pt){return pt instanceof Je(pt).SVGElement&&"function"==typeof pt.getBBox};function xt(pt){return Se?ut(pt)?function ct(pt){var ot=pt.getBBox();return $e(0,0,ot.width,ot.height)}(pt):function Gt(pt){var ot=pt.clientWidth,ft=pt.clientHeight;if(!ot&&!ft)return Re;var St=Je(pt).getComputedStyle(pt),gt=function Qe(pt){for(var ft={},St=0,gt=["top","right","bottom","left"];St<gt.length;St++){var tt=gt[St];ft[tt]=le(pt["padding-"+tt])}return ft}(St),tt=gt.left+gt.right,_t=gt.top+gt.bottom,vt=le(St.width),Ve=le(St.height);if("border-box"===St.boxSizing&&(Math.round(vt+tt)!==ot&&(vt-=rt(St,"left","right")+tt),Math.round(Ve+_t)!==ft&&(Ve-=rt(St,"top","bottom")+_t)),!function Ze(pt){return pt===Je(pt).document.documentElement}(pt)){var Tt=Math.round(vt+tt)-ot,Lt=Math.round(Ve+_t)-ft;1!==Math.abs(Tt)&&(vt-=Tt),1!==Math.abs(Lt)&&(Ve-=Lt)}return $e(gt.left,gt.top,vt,Ve)}(pt):Re}function $e(pt,ot,ft,St){return{x:pt,y:ot,width:ft,height:St}}var Pe=function(){function pt(ot){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$e(0,0,0,0),this.target=ot}return pt.prototype.isActive=function(){var ot=xt(this.target);return this.contentRect_=ot,ot.width!==this.broadcastWidth||ot.height!==this.broadcastHeight},pt.prototype.broadcastRect=function(){var ot=this.contentRect_;return this.broadcastWidth=ot.width,this.broadcastHeight=ot.height,ot},pt}(),J=function pt(ot,ft){var St=function Me(pt){var ot=pt.x,ft=pt.y,St=pt.width,gt=pt.height,tt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,_t=Object.create(tt.prototype);return Ue(_t,{x:ot,y:ft,width:St,height:gt,top:ft,right:ot+St,bottom:gt+ft,left:ot}),_t}(ft);Ue(this,{target:ot,contentRect:St})},mt=function(){function pt(ot,ft,St){if(this.activeObservations_=[],this.observations_=new Ce,"function"!=typeof ot)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=ot,this.controller_=ft,this.callbackCtx_=St}return pt.prototype.observe=function(ot){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(ot instanceof Je(ot).Element))throw new TypeError('parameter 1 is not of type "Element".');var ft=this.observations_;ft.has(ot)||(ft.set(ot,new Pe(ot)),this.controller_.addObserver(this),this.controller_.refresh())}},pt.prototype.unobserve=function(ot){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(ot instanceof Je(ot).Element))throw new TypeError('parameter 1 is not of type "Element".');var ft=this.observations_;ft.has(ot)&&(ft.delete(ot),ft.size||this.controller_.removeObserver(this))}},pt.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},pt.prototype.gatherActive=function(){var ot=this;this.clearActive(),this.observations_.forEach(function(ft){ft.isActive()&&ot.activeObservations_.push(ft)})},pt.prototype.broadcastActive=function(){if(this.hasActive()){var ot=this.callbackCtx_,ft=this.activeObservations_.map(function(St){return new J(St.target,St.broadcastRect())});this.callback_.call(ot,ft,ot),this.clearActive()}},pt.prototype.clearActive=function(){this.activeObservations_.splice(0)},pt.prototype.hasActive=function(){return this.activeObservations_.length>0},pt}(),Et=typeof WeakMap<"u"?new WeakMap:new Ce,at=function pt(ot){if(!(this instanceof pt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ft=ge.getInstance(),St=new mt(ot,ft,this);Et.set(this,St)};["observe","unobserve","disconnect"].forEach(function(pt){at.prototype[pt]=function(){var ot;return(ot=Et.get(this))[pt].apply(ot,arguments)}});const Ht=typeof fe.ResizeObserver<"u"?fe.ResizeObserver:at;function Ct(pt,ot){if(1&pt&&(N.TgZ(0,"div",3),N._UZ(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),N.qZA()),2&pt){const ft=N.oxw();N.ekj("ps-at-top",ft.states.top)("ps-at-left",ft.states.left)("ps-at-right",ft.states.right)("ps-at-bottom",ft.states.bottom),N.xp6(1),N.ekj("ps-indicator-show",ft.indicatorY&&ft.interaction),N.xp6(1),N.ekj("ps-indicator-show",ft.indicatorX&&ft.interaction),N.xp6(1),N.ekj("ps-indicator-show",ft.indicatorX&&ft.interaction),N.xp6(1),N.ekj("ps-indicator-show",ft.indicatorY&&ft.interaction)}}const Nt=["*"],Bt=new N.OlP("PERFECT_SCROLLBAR_CONFIG");class Ne{constructor(ot,ft,St,gt){this.x=ot,this.y=ft,this.w=St,this.h=gt}}class ${constructor(ot,ft){this.x=ot,this.y=ft}}const ue=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ie{constructor(ot={}){this.assign(ot)}assign(ot={}){for(const ft in ot)this[ft]=ot[ft]}}let Xe=(()=>{class pt{constructor(ft,St,gt,tt,_t){this.zone=ft,this.differs=St,this.elementRef=gt,this.platformId=tt,this.defaults=_t,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.x,this.disabled=!1,this.psScrollY=new N.vpe,this.psScrollX=new N.vpe,this.psScrollUp=new N.vpe,this.psScrollDown=new N.vpe,this.psScrollLeft=new N.vpe,this.psScrollRight=new N.vpe,this.psYReachEnd=new N.vpe,this.psYReachStart=new N.vpe,this.psXReachEnd=new N.vpe,this.psXReachStart=new N.vpe}ngOnInit(){if(!this.disabled&&(0,d.NF)(this.platformId)){const ft=new Ie(this.defaults);ft.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new qe(this.elementRef.nativeElement,ft)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ht(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ue.forEach(St=>{const gt=St.replace(/([A-Z])/g,tt=>`-${tt.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,gt).pipe((0,T.e)(20),(0,s.R)(this.ngDestroy)).subscribe(tt=>{this[St].emit(tt)})})})}}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,d.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(ft){ft.disabled&&!ft.disabled.isFirstChange()&&(0,d.NF)(this.platformId)&&ft.disabled.currentValue!==ft.disabled.previousValue&&(!0===ft.disabled.currentValue?this.ngOnDestroy():!1===ft.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(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{}},0))}geometry(ft="scroll"){return new Ne(this.elementRef.nativeElement[ft+"Left"],this.elementRef.nativeElement[ft+"Top"],this.elementRef.nativeElement[ft+"Width"],this.elementRef.nativeElement[ft+"Height"])}position(ft=!1){return!ft&&this.instance?new $(this.instance.reach.x||0,this.instance.reach.y||0):new $(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(ft="any"){const St=this.elementRef.nativeElement;return"any"===ft?St.classList.contains("ps--active-x")||St.classList.contains("ps--active-y"):"both"===ft?St.classList.contains("ps--active-x")&&St.classList.contains("ps--active-y"):St.classList.contains("ps--active-"+ft)}scrollTo(ft,St,gt){this.disabled||(null==St&&null==gt?this.animateScrolling("scrollTop",ft,gt):(null!=ft&&this.animateScrolling("scrollLeft",ft,gt),null!=St&&this.animateScrolling("scrollTop",St,gt)))}scrollToX(ft,St){this.animateScrolling("scrollLeft",ft,St)}scrollToY(ft,St){this.animateScrolling("scrollTop",ft,St)}scrollToTop(ft,St){this.animateScrolling("scrollTop",ft||0,St)}scrollToLeft(ft,St){this.animateScrolling("scrollLeft",ft||0,St)}scrollToRight(ft,St){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(ft||0),St)}scrollToBottom(ft,St){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(ft||0),St)}scrollToElement(ft,St,gt){if("string"==typeof ft&&(ft=this.elementRef.nativeElement.querySelector(ft)),ft){const tt=ft.getBoundingClientRect(),_t=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",tt.left-_t.left+this.elementRef.nativeElement.scrollLeft+(St||0),gt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",tt.top-_t.top+this.elementRef.nativeElement.scrollTop+(St||0),gt)}}animateScrolling(ft,St,gt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!gt||typeof window>"u")this.elementRef.nativeElement[ft]=St;else if(St!==this.elementRef.nativeElement[ft]){let tt=0,_t=0,vt=performance.now(),Ve=this.elementRef.nativeElement[ft];const Tt=(Ve-St)/2,Lt=Qt=>{_t+=Math.PI/(gt/(Qt-vt)),tt=Math.round(St+Tt+Tt*Math.cos(_t)),this.elementRef.nativeElement[ft]===Ve&&(_t>=Math.PI?this.animateScrolling(ft,St,0):(this.elementRef.nativeElement[ft]=tt,Ve=this.elementRef.nativeElement[ft],vt=Qt,this.animation=window.requestAnimationFrame(Lt)))};window.requestAnimationFrame(Lt)}}}return pt.\u0275fac=function(ft){return new(ft||pt)(N.Y36(N.R0b),N.Y36(N.aQg),N.Y36(N.SBq),N.Y36(N.Lbi),N.Y36(Bt,8))},pt.\u0275dir=N.lG2({type:pt,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:[N.TTD]}),pt})(),ei=(()=>{class pt{constructor(ft,St,gt){this.zone=ft,this.cdRef=St,this.platformId=gt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new t.x,this.stateUpdate=new t.x,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new N.vpe,this.psScrollX=new N.vpe,this.psScrollUp=new N.vpe,this.psScrollDown=new N.vpe,this.psScrollLeft=new N.vpe,this.psScrollRight=new N.vpe,this.psYReachEnd=new N.vpe,this.psYReachStart=new N.vpe,this.psXReachEnd=new N.vpe,this.psXReachStart=new N.vpe}ngOnInit(){(0,d.NF)(this.platformId)&&(this.stateUpdate.pipe((0,s.R)(this.ngDestroy),(0,x.x)((ft,St)=>ft===St&&!this.stateTimeout)).subscribe(ft=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===ft||"y"===ft?(this.interaction=!1,"x"===ft?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===ft&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===ft||"right"===ft?(this.states.left=!1,this.states.right=!1,this.states[ft]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===ft||"bottom"===ft)&&(this.states.top=!1,this.states.bottom=!1,this.states[ft]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const ft=this.directiveRef.elementRef.nativeElement;(0,e.R)(ft,"wheel").pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(St,St.deltaX,St.deltaY)}),(0,e.R)(ft,"touchmove").pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{if(!this.disabled&&this.autoPropagation){const gt=St.touches[0].clientX,tt=St.touches[0].clientY;this.checkPropagation(St,gt-this.scrollPositionX,tt-this.scrollPositionY),this.scrollPositionX=gt,this.scrollPositionY=tt}}),(0,g.T)((0,e.R)(ft,"ps-scroll-x").pipe((0,h.h)("x")),(0,e.R)(ft,"ps-scroll-y").pipe((0,h.h)("y")),(0,e.R)(ft,"ps-x-reach-end").pipe((0,h.h)("right")),(0,e.R)(ft,"ps-y-reach-end").pipe((0,h.h)("bottom")),(0,e.R)(ft,"ps-x-reach-start").pipe((0,h.h)("left")),(0,e.R)(ft,"ps-y-reach-start").pipe((0,h.h)("top"))).pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(St)})}}),window.setTimeout(()=>{ue.forEach(ft=>{this.directiveRef&&(this.directiveRef[ft]=this[ft])})},0))}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,d.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const ft=this.directiveRef.elementRef.nativeElement;this.usePropagationX=ft.classList.contains("ps--active-x"),this.usePropagationY=ft.classList.contains("ps--active-y")}}checkPropagation(ft,St,gt){this.interaction=!0;const tt=St<0?-1:1,_t=gt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==tt)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==_t))&&(ft.preventDefault(),ft.stopPropagation()),St&&(this.scrollDirectionX=tt),gt&&(this.scrollDirectionY=_t),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return pt.\u0275fac=function(ft){return new(ft||pt)(N.Y36(N.R0b),N.Y36(N.sBO),N.Y36(N.Lbi))},pt.\u0275cmp=N.Xpm({type:pt,selectors:[["perfect-scrollbar"]],viewQuery:function(ft,St){if(1&ft&&N.Gf(Xe,7),2&ft){let gt;N.iGM(gt=N.CRH())&&(St.directiveRef=gt.first)}},hostVars:4,hostBindings:function(ft,St){2&ft&&N.ekj("ps-show-limits",St.autoPropagation)("ps-show-active",St.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Nt,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(ft,St){1&ft&&(N.F$t(),N.TgZ(0,"div",0)(1,"div",1),N.Hsn(2),N.qZA(),N.YNc(3,Ct,5,16,"div",2),N.qZA()),2&ft&&(N.ekj("ps",St.usePSClass),N.Q6J("perfectScrollbar",St.config)("disabled",St.disabled),N.xp6(3),N.Q6J("ngIf",St.scrollIndicators))},dependencies:[Xe,d.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),pt})(),ni=(()=>{class pt{}return pt.\u0275fac=function(ft){return new(ft||pt)},pt.\u0275mod=N.oAB({type:pt}),pt.\u0275inj=N.cJS({imports:[[d.ez],d.ez]}),pt})()},7582:(We,q,m)=>{"use strict";function s(n,v,K,F){var Ee,G=arguments.length,ye=G<3?v:null===F?F=Object.getOwnPropertyDescriptor(v,K):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ye=Reflect.decorate(n,v,K,F);else for(var pe=n.length-1;pe>=0;pe--)(Ee=n[pe])&&(ye=(G<3?Ee(ye):G>3?Ee(v,K,ye):Ee(v,K))||ye);return G>3&&ye&&Object.defineProperty(v,K,ye),ye}function L(n,v,K,F){return new(K||(K=Promise))(function(ye,Ee){function pe(Se){try{Ce(F.next(Se))}catch(fe){Ee(fe)}}function qe(Se){try{Ce(F.throw(Se))}catch(fe){Ee(fe)}}function Ce(Se){Se.done?ye(Se.value):function G(ye){return ye instanceof K?ye:new K(function(Ee){Ee(ye)})}(Se.value).then(pe,qe)}Ce((F=F.apply(n,v||[])).next())})}function me(n){return this instanceof me?(this.v=n,this):new me(n)}function re(n,v,K){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G,F=K.apply(n,v||[]),ye=[];return G={},Ee("next"),Ee("throw"),Ee("return"),G[Symbol.asyncIterator]=function(){return this},G;function Ee(Fe){F[Fe]&&(G[Fe]=function(oe){return new Promise(function(ze,Oe){ye.push([Fe,oe,ze,Oe])>1||pe(Fe,oe)})})}function pe(Fe,oe){try{!function qe(Fe){Fe.value instanceof me?Promise.resolve(Fe.value.v).then(Ce,Se):fe(ye[0][2],Fe)}(F[Fe](oe))}catch(ze){fe(ye[0][3],ze)}}function Ce(Fe){pe("next",Fe)}function Se(Fe){pe("throw",Fe)}function fe(Fe,oe){Fe(oe),ye.shift(),ye.length&&pe(ye[0][0],ye[0][1])}}function se(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var K,v=n[Symbol.asyncIterator];return v?v.call(n):(n=function W(n){var v="function"==typeof Symbol&&Symbol.iterator,K=v&&n[v],F=0;if(K)return K.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&F>=n.length&&(n=void 0),{value:n&&n[F++],done:!n}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),K={},F("next"),F("throw"),F("return"),K[Symbol.asyncIterator]=function(){return this},K);function F(ye){K[ye]=n[ye]&&function(Ee){return new Promise(function(pe,qe){!function G(ye,Ee,pe,qe){Promise.resolve(qe).then(function(Ce){ye({value:Ce,done:pe})},Ee)}(pe,qe,(Ee=n[ye](Ee)).done,Ee.value)})}}}m.d(q,{FC:()=>re,KL:()=>se,gn:()=>s,mG:()=>L,qq:()=>me}),"function"==typeof SuppressedError&&SuppressedError},4946:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.exports={i8:"6.5.4"}},2562:We=>{"use strict";We.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"}')}},We=>{We(We.s=9381)}]);