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.3d7b99d9830668b7.js

1 line
2.8 MiB

var MS=Object.defineProperty,wS=Object.defineProperties,SS=Object.getOwnPropertyDescriptors,J_=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,TS=Object.prototype.propertyIsEnumerable,X_=(ze,K,p)=>K in ze?MS(ze,K,{enumerable:!0,configurable:!0,writable:!0,value:p}):ze[K]=p,Xa=(ze,K)=>{for(var p in K||(K={}))ES.call(K,p)&&X_(ze,p,K[p]);if(J_)for(var p of J_(K))TS.call(K,p)&&X_(ze,p,K[p]);return ze},$_=(ze,K)=>wS(ze,SS(K));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(ze,K,p)=>{"use strict";p.d(K,{$A:()=>J,$W:()=>de,BL:()=>B,CN:()=>h,CX:()=>L,EG:()=>E,EK:()=>C,El:()=>ie,HI:()=>r,HJ:()=>S,I8:()=>k,JK:()=>et,Lu:()=>U,Ly:()=>ae,Ni:()=>f,Nr:()=>Ue,OG:()=>N,QJ:()=>Se,RX:()=>D,Rd:()=>Ce,SN:()=>w,Sf:()=>H,TM:()=>c,UH:()=>we,UR:()=>I,VD:()=>Y,WM:()=>Q,WO:()=>v,Wi:()=>Ie,X3:()=>$,YP:()=>q,YX:()=>_,Z8:()=>te,ZH:()=>He,Zu:()=>be,_9:()=>Gt,_E:()=>ne,aL:()=>Ae,as:()=>y,cQ:()=>i,d7:()=>di,dh:()=>fe,e9:()=>Wt,eF:()=>R,eM:()=>ye,en:()=>ui,g3:()=>W,g6:()=>ut,i9:()=>pt,iO:()=>b,kL:()=>T,n7:()=>ue,oV:()=>u,oo:()=>s,pW:()=>n,pd:()=>d,u0:()=>Pe,uT:()=>Lt,v_:()=>xe,xH:()=>M,xS:()=>j,yl:()=>z,z:()=>ge});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),s=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),b=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),d=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),R=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),h=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),L=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_FEES_CLN),D=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),S=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),U=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),j=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),ne=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),de=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),te=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),ie=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),$=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),ge=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),r=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),c=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),y=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),_=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),B=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),H=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),ue=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),xe=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),Se=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),Q=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),Ue=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Ce=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),q=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Ae=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),ae=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),we=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),ye=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),Y=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),z=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),be=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),He=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),pt=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),et=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Lt=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),di=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),Wt=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Gt=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),ui=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(ze,K,p)=>{"use strict";p.d(K,{J:()=>$});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),s=p(2722),b=p(4004),d=p(262),R=p(2340),h=p(1786),L=p(5566),w=p(7731),D=p(7861),S=p(429),k=p(9828),E=p(1462),U=p(5e3),W=p(8138),j=p(5620),ne=p(5986),ee=p(62),de=p(5043),te=p(1402),ie=p(7998),le=p(9808);let $=(()=>{class ge{constructor(i,r,u,c,v,T,I,y,n){this.actions=i,this.httpClient=r,this.store=u,this.sessionService=c,this.commonService=v,this.logger=T,this.router=I,this.wsService=y,this.location=n,this.CHILD_API_URL=R.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,M.z)(_=>(this.flgInitialized=!1,this.store.dispatch((0,D.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,D.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,b.U)(B=>(this.logger.info(B),B.chains&&B.chains.length&&B.chains[0]&&"object"==typeof B.chains[0]&&B.chains[0].hasOwnProperty("chain")&&(null==B?void 0:B.chains[0].chain)&&(null==B?void 0:B.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,D.ts)()),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(B,_.payload.loadPage),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:B||{}}))),(0,d.K)(B=>{const N=this.commonService.extractErrorCode(B),H="ETIMEDOUT"===N?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(B);return this.router.navigate(["/error"],{state:{errorCode:N,errorMessage:H}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:N,error:H}),(0,f.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API))),(0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/feeRates/"+_.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:B||{}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchFeeRates"+_.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.BALANCE_API))),(0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressCode).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:B&&B.address?B.address:{}})),(0,d.K)(B=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressId,B),(0,f.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,b.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",_),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API,{id:_.payload.id}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:B||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:B.find(N=>0===_.payload.id.indexOf(N.id?N.id:""))}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id+"?force="+_.payload.force).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,D.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:_.payload.id}})),(0,d.K)(B=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id,B),(0,f.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listChannels"))),(0,b.U)(_=>{this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}}));const B={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return _.forEach(N=>{"CHANNELD_NORMAL"===N.state?N.connected?B.activeChannels.push(N):B.inactiveChannels.push(N):B.pendingChannels.push(N)}),{type:w.AB.SET_CHANNELS_CLN,payload:B}}),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,M.z)(_=>{this.store.dispatch((0,D.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const B={id:_.payload.peerId,satoshis:_.payload.satoshis,feeRate:_.payload.feeRate,announce:_.payload.announce};return _.payload.minconf&&(B.minconf=_.payload.minconf),_.payload.utxos&&(B.utxos=_.payload.utxos),_.payload.requestAmount&&(B.request_amt=_.payload.requestAmount),_.payload.compactLease&&(B.compact_lease=_.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,B).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(N=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",N),(0,f.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/setChannelFee",{id:_.payload.channelId,base:_.payload.baseFeeMsat,ppm:_.payload.feeRate}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,D.jW)("all"===_.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(B=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,B),(0,f.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/"+_.payload.channelId+(_.payload.force?"?force="+_.payload.force:"")).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.g3)()),this.store.dispatch((0,D.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:_.payload})),(0,d.K)(N=>(this.handleErrorWithAlert("CloseChannel",_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API))),(0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API+"/fetchOfferInvoice",_.payload).pipe((0,b.U)(B=>{this.logger.info(B),setTimeout(()=>{this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,S.VD)({payload:B||{}}))},500)}),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",B),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,b.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.Ni)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,_.payload).pipe((0,b.U)(B=>{this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let N="Payment Sent Successfully!";B.saveToDBError&&(N="Payment Sent Successfully but Offer Saving to Database Failed."),B.saveToDBResponse&&"NA"!==B.saveToDBResponse&&(this.store.dispatch((0,S.e9)({payload:B.saveToDBResponse})),N="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.cQ)()),this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,D.jW)({payload:N})),this.store.dispatch((0,S.TM)({payload:B.paymentResponse}))},1e3)}),(0,d.K)(B=>(this.logger.error("Error: "+JSON.stringify(B)),_.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",B):this.handleErrorWithAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,B),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:B})),(0,d.K)(B=>(this.store.dispatch((0,S.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount,B),(0,f.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,b.U)(_=>_.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload,B),(0,f.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:B})),(0,d.K)(B=>(_.payload.showError?this.handleErrorWithAlert("Lookup",_.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID,B):this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.v_)({payload:[]})),(0,f.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?label="+_.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_INVOICE})),B.invoices&&B.invoices.length&&B.invoices.length>0&&this.store.dispatch((0,S.aL)({payload:B.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:B.invoices&&B.invoices.length&&B.invoices.length>0?B.invoices[0]:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",B),this.store.dispatch((0,D.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,b.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,M.z)(_=>{const B=_.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,S.Ni)({payload:{action:"FetchForwardingHistory"+B,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,S.Ni)({payload:{action:"FetchForwardingHistory"+B,status:w.Bn.COMPLETED}})),_.payload.status===w.OO.FAILED?this.store.dispatch((0,S.QJ)({payload:{status:w.OO.FAILED,totalForwards:N.length,listForwards:N}})):_.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,S.QJ)({payload:{status:w.OO.LOCAL_FAILED,totalForwards:N.length,listForwards:N}})):_.payload.status===w.OO.SETTLED&&this.store.dispatch((0,S.QJ)({payload:{status:w.OO.SETTLED,totalForwards:N.length,listForwards:N}})),{type:w.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("FetchForwardingHistory"+B,w.m6.NO_SPINNER,"Get "+_.payload.status+" Forwarding History Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status,N),(0,f.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.INVOICES_API+(_.payload?"?maxexpiry="+_.payload:"")).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,D.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(N=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+R.NZ.INVOICES_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,{label:_.payload.label,amount:_.payload.amount,description:_.payload.description,expiry:_.payload.expiry,private:_.payload.private}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.ADD_INVOICE})),B.msatoshi=_.payload.amount,B.label=_.payload.label,B.expires_at=Math.round((new Date).getTime()/1e3+_.payload.expiry),B.description=_.payload.description,B.status="unpaid",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{invoice:B,newlyAdded:!0,component:L.y}}}))},200),{type:w.AB.ADD_INVOICE_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API,{amount:_.payload.amount,description:_.payload.description,vendor:_.payload.vendor}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{offer:B,newlyAdded:!0,component:E.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?num_max_invoices="+(_.payload.num_max_invoices?_.payload.num_max_invoices:1e6)+"&index_offset="+(_.payload.index_offset?_.payload.index_offset:0)+"&reversed="+(!_.payload.reversed||_.payload.reversed)).pipe((0,b.U)(J=>(this.logger.info(J),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:J})),(0,d.K)(J=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",J),(0,f.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:B.offers?B.offers:[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,S.Ni)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/"+_.payload.offer_id).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,D.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:B}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmarks").pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:B||[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,S.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,D.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:_.payload.bolt12}})),(0,d.K)(B=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12,B),(0,f.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,S.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,_.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:B})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/utxos"))),(0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.AB.SET_UTXOS_CLN,payload:_.outputs||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAGE_SETTINGS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",_),(0,f.of)({type:w.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_PAGE_SETTINGS_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.Ni)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,_.payload).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.Ni)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,D.jW)({payload:"Page Layout Updated Successfully!"})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:B||[]})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",B),(0,f.of)({type:w.pg.VOID})))))))),this.store.select(k.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(_=>{_.FetchInfo.status!==w.Bn.COMPLETED&&_.FetchInfo.status!==w.Bn.ERROR||_.FetchFees.status!==w.Bn.COMPLETED&&_.FetchFees.status!==w.Bn.ERROR||_.FetchChannels.status!==w.Bn.COMPLETED&&_.FetchChannels.status!==w.Bn.ERROR||_.FetchBalance.status!==w.Bn.COMPLETED&&_.FetchBalance.status!==w.Bn.ERROR||_.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&_.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,D.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(_=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(_)),_)switch(_.event){case w.nM.INVOICE:this.logger.info(_),_&&_.data&&_.data.label&&this.store.dispatch((0,S.aL)({payload:_.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(_);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(_))}})}initializeRemainingData(i,r){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,D.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,D._V)({payload:u}));let c=this.location.path();c.includes("/lnd/")?c=null==c?void 0:c.replace("/lnd/","/cln/"):c.includes("/ecl/")&&(c=null==c?void 0:c.replace("/ecl/","/cln/")),(c.includes("/login")||c.includes("/error")||""===c||"HOME"===r||c.includes("?access-key="))&&(c="/cln/home"),this.router.navigate([c]),this.store.dispatch((0,S.iO)()),this.store.dispatch((0,S.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.g3)()),this.store.dispatch((0,S.HJ)({payload:"perkw"})),this.store.dispatch((0,S.HJ)({payload:"perkb"})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.Ly)()),this.store.dispatch((0,S.cQ)())}handleErrorWithoutAlert(i,r,u,c){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(c)),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const v=this.commonService.extractErrorMessage(c,u);this.store.dispatch((0,S.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:c.status.toString(),message:v}}))}}handleErrorWithAlert(i,r,u,c,v){if(this.logger.error(v),401===v.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const T=this.commonService.extractErrorMessage(v);this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:v.status,message:T,URL:c},component:h.H}}})),this.store.dispatch((0,S.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:v.status.toString(),message:T,URL:c}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return ge.\u0275fac=function(i){return new(i||ge)(U.LFG(t.eX),U.LFG(W.eN),U.LFG(j.yh),U.LFG(ne.m),U.LFG(ee.v),U.LFG(de.mQ),U.LFG(te.F0),U.LFG(ie.d),U.LFG(le.Ye))},ge.\u0275prov=U.Yz7({token:ge,factory:ge.\u0275fac}),ge})()},9828:(ze,K,p)=>{"use strict";p.d(K,{AS:()=>M,Ao:()=>ie,Bo:()=>j,EQ:()=>ge,Hz:()=>le,JG:()=>L,OL:()=>de,PP:()=>R,Rn:()=>U,T4:()=>k,Wi:()=>h,Wj:()=>W,Y_:()=>$,ZW:()=>E,ey:()=>s,gc:()=>S,hx:()=>D,jK:()=>te,lK:()=>ee,lw:()=>f,xQ:()=>ne,yA:()=>d,zm:()=>w});var t=p(5620);const e=(0,t.ZF)("cln"),f=(0,t.P1)(e,i=>i.nodeSettings),M=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,i=>i.information),d=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),R=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,i=>({fees:i.fees,apiCallStatus:i.apisCallStatus.FetchFees})),w=(0,t.P1)(e,i=>({feeRatesPerKB:i.feeRatesPerKB,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkb})),D=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),S=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),E=(0,t.P1)(e,i=>({activeChannels:i.activeChannels,pendingChannels:i.pendingChannels,inactiveChannels:i.inactiveChannels,apiCallStatus:i.apisCallStatus.FetchChannels})),U=(0,t.P1)(e,i=>({balance:i.balance,apiCallStatus:i.apisCallStatus.FetchBalance})),W=(0,t.P1)(e,i=>({localRemoteBalance:i.localRemoteBalance,apiCallStatus:i.apisCallStatus.FetchLocalRemoteBalance})),j=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),ne=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ee=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),de=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),te=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),ie=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),le=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,apisCallStatus:[i.apisCallStatus.FetchInfo,i.apisCallStatus.FetchForwardingHistoryS]})),$=(0,t.P1)(e,i=>({offers:i.offers,apiCallStatus:i.apisCallStatus.FetchOffers})),ge=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(ze,K,p)=>{"use strict";p.d(K,{y:()=>ut});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),s=p(7731),b=p(9828),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),U=p(9224),W=p(9546),j=p(7238),ne=p(7423),ee=p(4834),de=p(773),te=p(3390),ie=p(6895);function le(Ie,De){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const ae=d.oxw();d.Q6J("value",(null==ae.invoice?null:ae.invoice.bolt11)||(null==ae.invoice?null:ae.invoice.bolt12))("size",ae.qrWidth)("errorCorrectionLevel","L")}}function $(Ie,De){1&Ie&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const ge=function(Ie){return{"mr-0":Ie}};function C(Ie,De){if(1&Ie&&d._UZ(0,"span",35),2&Ie){const ae=d.oxw();d.Q6J("ngClass",d.VKq(1,ge,ae.screenSize===ae.screenSizeEnum.XS))}}function i(Ie,De){if(1&Ie&&d._UZ(0,"span",36),2&Ie){const ae=d.oxw();d.Q6J("ngClass",d.VKq(1,ge,ae.screenSize===ae.screenSizeEnum.XS))}}function r(Ie,De){if(1&Ie&&d._UZ(0,"span",37),2&Ie){const ae=d.oxw();d.Q6J("ngClass",d.VKq(1,ge,ae.screenSize===ae.screenSizeEnum.XS))}}function u(Ie,De){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const ae=d.oxw();d.Q6J("value",(null==ae.invoice?null:ae.invoice.bolt11)||(null==ae.invoice?null:ae.invoice.bolt12))("size",ae.qrWidth)("errorCorrectionLevel","L")}}function c(Ie,De){1&Ie&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function v(Ie,De){1&Ie&&d._UZ(0,"mat-divider",39),2&Ie&&d.Q6J("inset",!0)}function T(Ie,De){if(1&Ie&&(d.TgZ(0,"div",19)(1,"div",40),d._UZ(2,"fa-icon",41),d.TgZ(3,"span"),d._uU(4),d.qZA()()()),2&Ie){const ae=d.oxw();d.xp6(2),d.Q6J("icon",ae.faExclamationTriangle),d.xp6(2),d.Oqu(null==ae.invoice?null:ae.invoice.warning_capacity)}}function I(Ie,De){1&Ie&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function y(Ie,De){1&Ie&&d._UZ(0,"span",47)}const n=function(){return[]};function _(Ie,De){if(1&Ie&&(d.TgZ(0,"div",43)(1,"div",44)(2,"span",45),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,y,1,0,"span",46),d.qZA()()),2&Ie){const ae=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==ae.invoice?null:ae.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function B(Ie,De){if(1&Ie&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ie){const ae=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==ae.invoice?null:ae.invoice.msatoshi_received)/1e3)," Sats")}}function N(Ie,De){if(1&Ie&&(d.ynx(0),d.YNc(1,_,6,5,"div",42),d.YNc(2,B,3,3,"div",23),d.BQk()),2&Ie){const ae=d.oxw();d.xp6(1),d.Q6J("ngIf",ae.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ae.flgInvoicePaid)}}function H(Ie,De){1&Ie&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function J(Ie,De){1&Ie&&d._UZ(0,"mat-spinner",49),2&Ie&&d.Q6J("diameter",20)}function ue(Ie,De){if(1&Ie&&(d.ynx(0),d.YNc(1,H,2,0,"span",23),d.YNc(2,J,1,1,"mat-spinner",48),d.BQk()),2&Ie){const ae=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ae.invoice?null:ae.invoice.status)||!ae.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ae.invoice?null:ae.invoice.status)&&ae.flgVersionCompatible)}}function xe(Ie,De){if(1&Ie&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",25),d.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),d._uU(5,"Payment Hash"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",25),d.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),d._uU(12,"Label"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()()(),d._UZ(15,"mat-divider",25),d.qZA()),2&Ie){const ae=d.oxw();d.xp6(7),d.Oqu(null==ae.invoice?null:ae.invoice.payment_hash),d.xp6(7),d.Oqu(null==ae.invoice?null:ae.invoice.label)}}function Pe(Ie,De){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Se(Ie,De){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Q(Ie,De){if(1&Ie){const ae=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(ye){return d.CHM(ae),d.oxw().onCopyPayment(ye)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Ie){const ae=d.oxw();d.Q6J("payload",(null==ae.invoice?null:ae.invoice.bolt11)||(null==ae.invoice?null:ae.invoice.bolt12))}}function Ue(Ie,De){if(1&Ie){const ae=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(ae),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Ce=function(Ie){return{"display-none":Ie}},q=function(Ie){return{"xs-scroll-y":Ie}},Ae=function(Ie,De){return{"mt-2":Ie,"mt-1":De}};let ut=(()=>{class Ie{constructor(ae,we,ye,Y,z,be){this.dialogRef=ae,this.data=we,this.logger=ye,this.commonService=Y,this.snackBar=z,this.store=be,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 f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(b.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(ae=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ae.api_version,"0.6.0")}),this.store.select(b.gc).pipe((0,M.R)(this.unSubs[1])).subscribe(ae=>{const we=this.invoice.status,ye=ae.listInvoices.invoices||[],Y=(null==ye?void 0:ye.find(z=>z.payment_hash===this.invoice.payment_hash))||null;Y&&(this.invoice=Y),we!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ae)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ae){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ae)}ngOnDestroy(){this.unSubs.forEach(ae=>{ae.next(null),ae.complete()})}}return Ie.\u0275fac=function(ae){return new(ae||Ie)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},Ie.\u0275cmp=d.Xpm({type:Ie,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ae,we){if(1&ae&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,le,1,3,"qr-code",2),d.YNc(3,$,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.YNc(10,C,1,3,"span",9),d.YNc(11,i,1,3,"span",10),d.YNc(12,r,1,3,"span",11),d.qZA()(),d.TgZ(13,"button",12),d.NdJ("click",function(){return we.onClose()}),d._uU(14,"X"),d.qZA()(),d.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),d.YNc(18,u,1,3,"qr-code",2),d.YNc(19,c,2,0,"span",16),d.qZA(),d.YNc(20,v,1,1,"mat-divider",17),d.YNc(21,T,5,2,"div",18),d.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),d._uU(25),d.qZA(),d.TgZ(26,"span",22),d._uU(27),d.ALo(28,"number"),d.YNc(29,I,2,0,"ng-container",23),d.qZA()(),d.TgZ(30,"div",20)(31,"h4",21),d._uU(32,"Amount Received"),d.qZA(),d.TgZ(33,"span",24),d.YNc(34,N,3,2,"ng-container",23),d.YNc(35,ue,3,2,"ng-container",23),d.qZA()()(),d._UZ(36,"mat-divider",25),d.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),d._uU(40,"Date Expiry"),d.qZA(),d.TgZ(41,"span",22),d._uU(42),d.ALo(43,"date"),d.qZA()(),d.TgZ(44,"div",20)(45,"h4",21),d._uU(46,"Date Settled"),d.qZA(),d.TgZ(47,"span",22),d._uU(48),d.ALo(49,"date"),d.qZA()()(),d._UZ(50,"mat-divider",25),d.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),d._uU(54,"Description"),d.qZA(),d.TgZ(55,"span",22),d._uU(56),d.qZA()()(),d._UZ(57,"mat-divider",25),d.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),d._uU(61),d.qZA(),d.TgZ(62,"span",24),d._uU(63),d.qZA()()(),d.YNc(64,xe,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return we.onShowAdvanced()}),d.YNc(67,Pe,2,0,"p",29),d.YNc(68,Se,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,Q,2,1,"button",31),d.YNc(71,Ue,2,0,"button",32),d.qZA()()()()()),2&ae){const ye=d.MAs(69);d.xp6(1),d.Q6J("fxLayoutAlign",null!=we.invoice&&we.invoice.bolt11&&""!==(null==we.invoice?null:we.invoice.bolt11)||null!=we.invoice&&we.invoice.bolt12&&""!==(null==we.invoice?null:we.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(40,Ce,we.screenSize===we.screenSizeEnum.XS||we.screenSize===we.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==we.invoice?null:we.invoice.bolt11)&&""!==(null==we.invoice?null:we.invoice.bolt11)||(null==we.invoice?null:we.invoice.bolt12)&&""!==(null==we.invoice?null:we.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=we.invoice&&we.invoice.bolt11||null!=we.invoice&&we.invoice.bolt12)),d.xp6(4),d.Q6J("icon",we.faReceipt),d.xp6(2),d.hij(" ",we.screenSize===we.screenSizeEnum.XS?we.newlyAdded?"Created":"Invoice":we.newlyAdded?"Invoice Created":"Invoice Information"," "),d.xp6(1),d.Q6J("ngIf","paid"===(null==we.invoice?null:we.invoice.status)),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==we.invoice?null:we.invoice.status)),d.xp6(1),d.Q6J("ngIf","expired"===(null==we.invoice?null:we.invoice.status)),d.xp6(3),d.Q6J("ngClass",d.VKq(42,q,we.screenSize===we.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=we.invoice&&we.invoice.bolt11&&""!==(null==we.invoice?null:we.invoice.bolt11)||null!=we.invoice&&we.invoice.bolt12&&""!==(null==we.invoice?null:we.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(44,Ce,we.screenSize!==we.screenSizeEnum.XS&&we.screenSize!==we.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==we.invoice?null:we.invoice.bolt11)&&""!==(null==we.invoice?null:we.invoice.bolt11)||(null==we.invoice?null:we.invoice.bolt12)&&""!==(null==we.invoice?null:we.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=we.invoice&&we.invoice.bolt11||null!=we.invoice&&we.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",we.screenSize===we.screenSizeEnum.XS||we.screenSize===we.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngIf",null==we.invoice?null:we.invoice.warning_capacity),d.xp6(4),d.Oqu(we.screenSize===we.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij(" ",d.lcZ(28,32,(null==we.invoice?null:we.invoice.msatoshi)/1e3||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=we.invoice&&we.invoice.msatoshi)||"0"===(null==we.invoice?null:we.invoice.msatoshi)),d.xp6(5),d.Q6J("ngIf","paid"===(null==we.invoice?null:we.invoice.status)),d.xp6(1),d.Q6J("ngIf","paid"!==(null==we.invoice?null:we.invoice.status)),d.xp6(7),d.Oqu(d.xi3(43,34,1e3*(null==we.invoice?null:we.invoice.expires_at),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(49,37,1e3*(null==we.invoice?null:we.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),d.xp6(8),d.Oqu((null==we.invoice?null:we.invoice.description)||"-"),d.xp6(5),d.hij("",null!=we.invoice&&we.invoice.bolt12?"Bolt12":null!=we.invoice&&we.invoice.bolt11&&!we.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),d.xp6(2),d.Oqu((null==we.invoice?null:we.invoice.bolt11)||(null==we.invoice?null:we.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",we.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(46,Ae,!we.showAdvanced,we.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!we.showAdvanced)("ngIfElse",ye),d.xp6(3),d.Q6J("ngIf",(null==we.invoice?null:we.invoice.bolt11)&&""!==(null==we.invoice?null:we.invoice.bolt11)||(null==we.invoice?null:we.invoice.bolt12)&&""!==(null==we.invoice?null:we.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=we.invoice&&we.invoice.bolt11||null!=we.invoice&&we.invoice.bolt12))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,U.dk,W.BN,j.gM,ne.lW,U.dn,ee.d,S.sg,de.Ou,te.h,ie.y],pipes:[S.JJ,S.uU],styles:[""]}),Ie})()},1462:(ze,K,p)=>{"use strict";p.d(K,{k:()=>H});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),s=p(7731),b=p(9828),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(8104),S=p(7093),k=p(9808),E=p(3322),U=p(159),W=p(9224),j=p(9546),ne=p(7423),ee=p(4834),de=p(3390),te=p(6895);function ie(J,ue){if(1&J&&d._UZ(0,"qr-code",28),2&J){const xe=d.oxw();d.Q6J("value",null==xe.offer?null:xe.offer.bolt12)("size",xe.qrWidth)("errorCorrectionLevel","L")}}function le(J,ue){1&J&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function $(J,ue){if(1&J&&d._UZ(0,"qr-code",28),2&J){const xe=d.oxw();d.Q6J("value",null==xe.offer?null:xe.offer.bolt12)("size",xe.qrWidth)("errorCorrectionLevel","L")}}function ge(J,ue){1&J&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(J,ue){1&J&&d._UZ(0,"mat-divider",31),2&J&&d.Q6J("inset",!0)}function i(J,ue){1&J&&d._UZ(0,"mat-divider",19)}function r(J,ue){if(1&J&&(d.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),d._uU(3,"Used"),d.qZA(),d.TgZ(4,"span",18),d._uU(5),d.qZA()(),d.TgZ(6,"div",16)(7,"h4",17),d._uU(8,"Single Use"),d.qZA(),d.TgZ(9,"span",18),d._uU(10),d.qZA()()()),2&J){const xe=d.oxw(2);d.xp6(5),d.hij(" ",null!=xe.offer&&xe.offer.used?null!=xe.offer&&xe.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=xe.offer&&xe.offer.single_use?null!=xe.offer&&xe.offer.single_use?"Yes":"No":"N/K"," ")}}function u(J,ue){1&J&&d._UZ(0,"mat-divider",19)}function c(J,ue){if(1&J&&(d.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),d._uU(3,"Vendor"),d.qZA(),d.TgZ(4,"span",34),d._uU(5),d.qZA()()()),2&J){const xe=d.oxw(2);d.xp6(5),d.Oqu((null==xe.offerDecoded?null:xe.offerDecoded.vendor)||(null==xe.offerDecoded?null:xe.offerDecoded.issuer))}}function v(J,ue){if(1&J&&(d.TgZ(0,"div"),d.YNc(1,i,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,u,1,0,"mat-divider",32),d.YNc(4,c,6,1,"div",33),d._UZ(5,"mat-divider",19),d.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),d._uU(9,"Offer ID"),d.qZA(),d.TgZ(10,"span",18),d._uU(11),d.qZA()()(),d._UZ(12,"mat-divider",19),d.qZA()),2&J){const xe=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==xe.offer?null:xe.offer.used)||(null==xe.offer?null:xe.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==xe.offer?null:xe.offer.used)||(null==xe.offer?null:xe.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==xe.offerDecoded?null:xe.offerDecoded.vendor)||(null==xe.offerDecoded?null:xe.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==xe.offerDecoded?null:xe.offerDecoded.vendor)||(null==xe.offerDecoded?null:xe.offerDecoded.issuer)),d.xp6(7),d.Oqu(xe.offerDecoded.offer_id)}}function T(J,ue){1&J&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function I(J,ue){1&J&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function y(J,ue){if(1&J){const xe=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(Se){return d.CHM(xe),d.oxw().onCopyOffer(Se)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&J){const xe=d.oxw();d.Q6J("payload",null==xe.offer?null:xe.offer.bolt12)}}function n(J,ue){if(1&J){const xe=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(xe),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const _=function(J){return{"display-none":J}},B=function(J){return{"xs-scroll-y":J}},N=function(J,ue){return{"mt-2":J,"mt-1":ue}};let H=(()=>{class J{constructor(xe,Pe,Se,Q,Ue,Ce,q){this.dialogRef=xe,this.data=Pe,this.logger=Se,this.commonService=Q,this.snackBar=Ue,this.store=Ce,this.dataService=q,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.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(b.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(xe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(xe.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,M.R)(this.unSubs[1])).subscribe(xe=>{var Pe;this.offerDecoded=xe,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+(null===(Pe=this.offerDecoded.amount_msat)||void 0===Pe?void 0:Pe.slice(0,-4)):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(xe){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+xe)}ngOnDestroy(){this.unSubs.forEach(xe=>{xe.next(null),xe.complete()})}}return J.\u0275fac=function(xe){return new(xe||J)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh),d.Y36(D.D))},J.\u0275cmp=d.Xpm({type:J,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(xe,Pe){if(1&xe&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ie,1,3,"qr-code",2),d.YNc(3,le,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Pe.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,$,1,3,"qr-code",2),d.YNc(16,ge,2,0,"span",13),d.qZA(),d.YNc(17,C,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested (Sats)"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.qZA()(),d.TgZ(25,"div",16)(26,"h4",17),d._uU(27,"Active"),d.qZA(),d.TgZ(28,"span",18),d._uU(29),d.qZA()()(),d._UZ(30,"mat-divider",19),d.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),d._uU(34,"Description"),d.qZA(),d.TgZ(35,"span",18),d._uU(36),d.qZA()()(),d._UZ(37,"mat-divider",19),d.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),d._uU(41,"Offer Request"),d.qZA(),d.TgZ(42,"span",18),d._uU(43),d.qZA()()(),d.YNc(44,v,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return Pe.onShowAdvanced()}),d.YNc(47,T,2,0,"p",24),d.YNc(48,I,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,y,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&xe){const Se=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Pe.offer&&Pe.offer.bolt12&&""!==(null==Pe.offer?null:Pe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,_,Pe.screenSize===Pe.screenSizeEnum.XS||Pe.screenSize===Pe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(4),d.Q6J("icon",Pe.faReceipt),d.xp6(2),d.Oqu(Pe.screenSize===Pe.screenSizeEnum.XS?Pe.newlyAdded?"Created":"Offer":Pe.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,B,Pe.screenSize===Pe.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Pe.offer&&Pe.offer.bolt12&&""!==(null==Pe.offer?null:Pe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,_,Pe.screenSize!==Pe.screenSizeEnum.XS&&Pe.screenSize!==Pe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",Pe.screenSize===Pe.screenSizeEnum.XS||Pe.screenSize===Pe.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=Pe.offerDecoded&&Pe.offerDecoded.amount_msat&&0!==(null==Pe.offerDecoded?null:Pe.offerDecoded.amount)?d.lcZ(24,22,(null==Pe.offerDecoded?null:Pe.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=Pe.offer&&Pe.offer.active?null!=Pe.offer&&Pe.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==Pe.offerDecoded?null:Pe.offerDecoded.description," "),d.xp6(7),d.Oqu(null==Pe.offer?null:Pe.offer.bolt12),d.xp6(1),d.Q6J("ngIf",Pe.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,N,!Pe.showAdvanced,Pe.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Pe.showAdvanced)("ngIfElse",Se),d.xp6(3),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12))}},directives:[S.xw,S.Wh,S.yH,k.mk,E.oO,k.O5,U.uU,W.dk,j.BN,ne.lW,W.dn,ee.d,de.h,te.y],pipes:[k.JJ],styles:[""]}),J})()},2994:(ze,K,p)=>{"use strict";p.d(K,{$W:()=>j,BL:()=>r,Bw:()=>E,CX:()=>d,DJ:()=>q,EK:()=>le,El:()=>ee,Fd:()=>M,GD:()=>ie,HG:()=>W,HI:()=>v,Iy:()=>N,Lf:()=>B,Nr:()=>ue,OG:()=>u,On:()=>U,QZ:()=>f,RX:()=>h,SN:()=>R,Sf:()=>Q,TM:()=>n,TW:()=>D,UR:()=>L,WM:()=>J,WO:()=>T,YP:()=>Pe,YX:()=>C,Z$:()=>xe,Z8:()=>ne,Zr:()=>s,_E:()=>$,aL:()=>Se,cQ:()=>c,eN:()=>w,i:()=>S,iL:()=>k,iz:()=>b,kL:()=>I,mC:()=>_,n7:()=>Ue,oV:()=>y,pW:()=>i,ti:()=>Ae});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),s=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),b=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),R=(0,t.PH)(e.lr.FETCH_FEES_ECL),h=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),L=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),D=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),S=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),E=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),U=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),W=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.FETCH_PEERS_ECL),ne=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),ie=((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)())),le=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),$=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),C=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),i=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),r=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),u=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),c=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),v=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),y=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),B=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),J=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),ue=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),xe=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),Pe=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Se=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),Q=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Ue=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),q=((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:(ze,K,p)=>{"use strict";p.d(K,{o:()=>le});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),s=p(2722),b=p(4004),d=p(262),R=p(2340),h=p(1786),L=p(7731),w=p(7861),D=p(7766),S=p(2994),k=p(2501),E=p(5e3),U=p(8138),W=p(5620),j=p(5986),ne=p(62),ee=p(5043),de=p(1402),te=p(7998),ie=p(9808);let le=(()=>{class ${constructor(C,i,r,u,c,v,T,I,y){this.actions=C,this.httpClient=i,this.store=r,this.sessionService=u,this.commonService=c,this.logger=v,this.router=T,this.wsService=I,this.location=y,this.CHILD_API_URL=R.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)(L.lr.FETCH_INFO_ECL),(0,M.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(L.pg.SET_SELECTED_NODE))),(0,b.U)(_=>(this.logger.info(_),this.initializeRemainingData(_,n.payload.loadPage),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:_||{}})),(0,d.K)(_=>{const B=this.commonService.extractErrorCode(_),N=503===B?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(_);return this.router.navigate(["/error"],{state:{errorCode:B,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:B,error:N}),(0,f.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_FEES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_CHANNELS_ECL),(0,M.z)(n=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,b.U)(_=>(this.logger.info(_),this.rawChannelsList=_,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,S.cQ)()),{type:L.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,f.of)({type:L.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PEERS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,M.z)(()=>(this.store.dispatch((0,w.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n),(0,f.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,b.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),_=_||[],this.store.dispatch((0,w.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:_})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:_.find(B=>B.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.DETACH_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,w.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(_=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId,_),(0,f.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}}));const _={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(_.fundingFeerateSatByte=n.payload.feeRate),n.payload.channelType&&""!==n.payload.channelType&&(_.channelType=n.payload.channelType),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,_).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,w.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(B=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",B),(0,f.of)({type:L.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let _="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return _=n.payload.nodeIds?_+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?_+"&nodeId="+n.payload.nodeId:n.payload.channelIds?_+"&channelIds="+n.payload.channelIds:_+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+_,{}).pipe((0,b.U)(B=>(this.logger.info(B),this.store.dispatch((0,w.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(B=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,B),(0,f.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,b.U)(_=>(this.logger.info(_),setTimeout(()=>{this.store.dispatch((0,w.uO)({payload:n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,w.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,M.z)(n=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,b.U)(_=>(this.logger.info(_),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:_})),(0,d.K)(_=>(this.store.dispatch((0,S.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,_),(0,f.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,b.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SEND_PAYMENT_ECL),(0,M.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,n.payload).pipe((0,b.U)(_=>(this.logger.info(_),this.latestPaymentRes=_,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,d.K)(_=>(this.logger.error("Error: "+JSON.stringify(_)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",_):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,f.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n.payload).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,S.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.CREATE_INVOICE_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,n.payload).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.CREATE_INVOICE})),_.timestamp=Math.round((new Date).getTime()/1e3),_.expiresAt=Math.round(_.timestamp+n.payload.expireIn),_.description=n.payload.description,_.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:_,newlyAdded:!0,component:D.R}}}))},200),{type:L.lr.ADD_INVOICE_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_INVOICES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,b.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.PEER_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload,_),(0,f.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+n.payload).pipe((0,b.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.aL)({payload:_})),{type:L.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",_),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:L.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_LOOKUP_ECL),(0,b.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,S.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,w.jW)({payload:n}))},this.store.select(k.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==L.Bn.COMPLETED&&n.FetchInfo.status!==L.Bn.ERROR||n.FetchFees.status!==L.Bn.COMPLETED&&n.FetchFees.status!==L.Bn.ERROR||n.FetchOnchainBalance.status!==L.Bn.COMPLETED&&n.FetchOnchainBalance.status!==L.Bn.ERROR||n.FetchChannels.status!==L.Bn.COMPLETED&&n.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(n=>{var _;this.logger.info("Received new message from the service: "+JSON.stringify(n));let B="";if(n)switch(n.type){case L.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,B="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(B));break;case L.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,B="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(B));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,S.aL)({payload:n}));break;case L.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,S.ti)({payload:n}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=null===(_=this.rawChannelsList)||void 0===_?void 0:_.map(N=>(N.channelId===n.channelId&&N.nodeId===n.remoteNodeId&&(N.state=n.currentState),N)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,S.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let C=0,i=0,r=0,u={localBalance:0,remoteBalance:0},c=[];const v=[],T=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((y,n)=>{var _,B,N,H,J;y&&("NORMAL"===y.state?(C=(y.toLocal||0)+(y.toRemote||0),i+=y.toLocal||0,r+=y.toRemote||0,y.balancedness=0===C?1:+(1-Math.abs(((y.toLocal||0)-(y.toRemote||0))/C)).toFixed(3),c.push(y),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+(y.toLocal||0)):(null===(_=y.state)||void 0===_?void 0:_.includes("WAIT"))||(null===(B=y.state)||void 0===B?void 0:B.includes("CLOSING"))||(null===(N=y.state)||void 0===N?void 0:N.includes("SYNCING"))?(y.state=null===(H=y.state)||void 0===H?void 0:H.replace(/_/g," "),v.push(y),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+(y.toLocal||0)):(y.state=null===(J=y.state)||void 0===J?void 0:J.replace(/_/g," "),T.push(y),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+(y.toLocal||0)))}),u={localBalance:i,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(v)),this.logger.info("Inactive Channels: "+JSON.stringify(T)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:v,inactive:T,balances:u,status:I})),this.store.dispatch((0,S.eN)({payload:c})),this.store.dispatch((0,S.TW)({payload:v})),this.store.dispatch((0,S.i)({payload:T})),this.store.dispatch((0,S.On)({payload:u})),this.store.dispatch((0,S.HG)({payload:I}))}initializeRemainingData(C,i){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:C.nodeId,alias:C.alias,testnet:"testnet"===C.network,chains:C.publicAddresses,uris:C.uris,version:C.version,numberOfPendingChannels:0};this.store.dispatch((0,w.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:r}));let u=this.location.path();u.includes("/lnd/")?u=null==u?void 0:u.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=null==u?void 0:u.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,S.WM)()),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,S.$W)())}handleErrorWithoutAlert(C,i,r,u){this.logger.error("ERROR IN: "+C+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:i})),this.store.dispatch((0,S.QZ)({payload:{action:C,status:L.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,r)}})))}handleErrorWithAlert(C,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:i}));const v=this.commonService.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:v,URL:u},component:h.H}}})),this.store.dispatch((0,S.QZ)({payload:{action:C,status:L.Bn.ERROR,statusCode:c.status.toString(),message:v,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(C=>{C.next(null),C.complete()})}}return $.\u0275fac=function(C){return new(C||$)(E.LFG(t.eX),E.LFG(U.eN),E.LFG(W.yh),E.LFG(j.m),E.LFG(ne.v),E.LFG(ee.mQ),E.LFG(de.F0),E.LFG(te.d),E.LFG(ie.Ye))},$.\u0275prov=E.Yz7({token:$,factory:$.\u0275fac}),$})()},2501:(ze,K,p)=>{"use strict";p.d(K,{Bo:()=>S,Ef:()=>D,JG:()=>h,PP:()=>R,T$:()=>s,Xz:()=>L,dx:()=>w,kY:()=>k,pg:()=>f,yA:()=>d,yD:()=>M});var t=p(5620);const e=(0,t.ZF)("ecl"),f=(0,t.P1)(e,E=>E.nodeSettings),M=(0,t.P1)(e,E=>E.information),s=(0,t.P1)(e,E=>({information:E.information,apiCallStatus:E.apisCallStatus.FetchInfo})),d=((0,t.P1)(e,E=>E.apisCallStatus.FetchInfo),(0,t.P1)(e,E=>E.apisCallStatus)),R=(0,t.P1)(e,E=>({payments:E.payments,apiCallStatus:E.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,E=>({fees:E.fees,apiCallStatus:E.apisCallStatus.FetchFees})),L=(0,t.P1)(e,E=>({activeChannels:E.activeChannels,pendingChannels:E.pendingChannels,inactiveChannels:E.inactiveChannels,lightningBalance:E.lightningBalance,channelsStatus:E.channelsStatus,apiCallStatus:E.apisCallStatus.FetchChannels})),w=(0,t.P1)(e,E=>({transactions:E.transactions,apiCallStatus:E.apisCallStatus.FetchTransactions})),D=(0,t.P1)(e,E=>({invoices:E.invoices,apiCallStatus:E.apisCallStatus.FetchInvoices})),S=(0,t.P1)(e,E=>({peers:E.peers,apiCallStatus:E.apisCallStatus.FetchPeers})),k=(0,t.P1)(e,E=>({onchainBalance:E.onchainBalance,apiCallStatus:E.apisCallStatus.FetchOnchainBalance}))},7766:(ze,K,p)=>{"use strict";p.d(K,{R:()=>Se});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),s=p(7731),b=p(2501),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),U=p(9224),W=p(9546),j=p(7423),ne=p(4834),ee=p(773),de=p(3390),te=p(6895);function ie(Q,Ue){if(1&Q&&d._UZ(0,"qr-code",29),2&Q){const Ce=d.oxw();d.Q6J("value",null==Ce.invoice?null:Ce.invoice.serialized)("size",Ce.qrWidth)("errorCorrectionLevel","L")}}function le(Q,Ue){1&Q&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function $(Q,Ue){if(1&Q&&d._UZ(0,"qr-code",29),2&Q){const Ce=d.oxw();d.Q6J("value",null==Ce.invoice?null:Ce.invoice.serialized)("size",Ce.qrWidth)("errorCorrectionLevel","L")}}function ge(Q,Ue){1&Q&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(Q,Ue){1&Q&&d._UZ(0,"mat-divider",32),2&Q&&d.Q6J("inset",!0)}function i(Q,Ue){1&Q&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(Q,Ue){1&Q&&d._UZ(0,"span",38)}const u=function(){return[]};function c(Q,Ue){if(1&Q&&(d.TgZ(0,"div",34)(1,"div",35)(2,"span",36),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,r,1,0,"span",37),d.qZA()()),2&Q){const Ce=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Ce.invoice?null:Ce.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,u).constructor(35))}}function v(Q,Ue){if(1&Q&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Q){const Ce=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Ce.invoice?null:Ce.invoice.amountSettled)," Sats")}}function T(Q,Ue){if(1&Q&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,v,3,3,"div",19),d.BQk()),2&Q){const Ce=d.oxw();d.xp6(1),d.Q6J("ngIf",Ce.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Ce.flgInvoicePaid)}}function I(Q,Ue){1&Q&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function y(Q,Ue){1&Q&&d._UZ(0,"mat-spinner",40),2&Q&&d.Q6J("diameter",20)}function n(Q,Ue){if(1&Q&&(d.ynx(0),d.YNc(1,I,2,0,"span",19),d.YNc(2,y,1,1,"mat-spinner",39),d.BQk()),2&Q){const Ce=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==Ce.invoice?null:Ce.invoice.status)||!Ce.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Ce.invoice?null:Ce.invoice.status)&&Ce.flgVersionCompatible)}}function _(Q,Ue){if(1&Q&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",20),d.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),d._uU(5,"Date Expiry"),d.qZA(),d.TgZ(6,"span",18),d._uU(7),d.ALo(8,"date"),d.qZA()(),d.TgZ(9,"div",42)(10,"h4",17),d._uU(11,"Date Settled"),d.qZA(),d.TgZ(12,"span",21),d._uU(13),d.ALo(14,"date"),d.qZA()()(),d._UZ(15,"mat-divider",20),d.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),d._uU(19,"Payment Hash"),d.qZA(),d.TgZ(20,"span",21),d._uU(21),d.qZA()()(),d._UZ(22,"mat-divider",20),d.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),d._uU(26,"Node Id"),d.qZA(),d.TgZ(27,"span",21),d._uU(28),d.qZA()()(),d._UZ(29,"mat-divider",20),d.qZA()),2&Q){const Ce=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==Ce.invoice?null:Ce.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==Ce.invoice?null:Ce.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==Ce.invoice?null:Ce.invoice.paymentHash),d.xp6(7),d.Oqu(null==Ce.invoice?null:Ce.invoice.nodeId)}}function B(Q,Ue){1&Q&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function N(Q,Ue){1&Q&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function H(Q,Ue){if(1&Q){const Ce=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Ae){return d.CHM(Ce),d.oxw().onCopyPayment(Ae)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Q){const Ce=d.oxw();d.Q6J("payload",null==Ce.invoice?null:Ce.invoice.serialized)}}function J(Q,Ue){if(1&Q){const Ce=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(Ce),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const ue=function(Q){return{"display-none":Q}},xe=function(Q){return{"xs-scroll-y":Q}},Pe=function(Q,Ue){return{"mt-2":Q,"mt-1":Ue}};let Se=(()=>{class Q{constructor(Ce,q,Ae,ut,Ie,De){this.dialogRef=Ce,this.data=q,this.logger=Ae,this.commonService=ut,this.snackBar=Ie,this.store=De,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(b.yD).pipe((0,M.R)(this.unSubs[0])).subscribe(Ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ce.version,"0.5.0")}),this.store.select(b.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(Ce=>{const q=this.invoice.status,Ae=Ce.invoices&&Ce.invoices.length>0?Ce.invoices:[],ut=(null==Ae?void 0:Ae.find(Ie=>Ie.paymentHash===this.invoice.paymentHash))||null;ut&&(this.invoice=ut),q!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ce)}ngOnDestroy(){this.unSubs.forEach(Ce=>{Ce.next(null),Ce.complete()})}}return Q.\u0275fac=function(Ce){return new(Ce||Q)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},Q.\u0275cmp=d.Xpm({type:Q,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ce,q){if(1&Ce&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ie,1,3,"qr-code",2),d.YNc(3,le,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return q.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,$,1,3,"qr-code",2),d.YNc(16,ge,2,0,"span",13),d.qZA(),d.YNc(17,C,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.YNc(25,i,2,0,"ng-container",19),d.qZA()(),d.TgZ(26,"div",16)(27,"h4",17),d._uU(28,"Amount Settled"),d.qZA(),d.TgZ(29,"span",18),d.YNc(30,T,3,2,"ng-container",19),d.YNc(31,n,3,2,"ng-container",19),d.qZA()()(),d._UZ(32,"mat-divider",20),d.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),d._uU(36,"Date Created"),d.qZA(),d.TgZ(37,"span",21),d._uU(38),d.ALo(39,"date"),d.qZA()(),d.TgZ(40,"div",16)(41,"h4",17),d._uU(42,"Status"),d.qZA(),d.TgZ(43,"span",21),d._uU(44),d.ALo(45,"titlecase"),d.qZA()()(),d._UZ(46,"mat-divider",20),d.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),d._uU(50,"Description"),d.qZA(),d.TgZ(51,"span",18),d._uU(52),d.qZA()()(),d._UZ(53,"mat-divider",20),d.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),d._uU(57,"Invoice"),d.qZA(),d.TgZ(58,"span",21),d._uU(59),d.qZA()()(),d.YNc(60,_,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return q.onShowAdvanced()}),d.YNc(63,B,2,0,"p",25),d.YNc(64,N,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,H,2,1,"button",27),d.YNc(67,J,2,0,"button",28),d.qZA()()()()()),2&Ce){const Ae=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=q.invoice&&q.invoice.serialized&&""!==(null==q.invoice?null:q.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,ue,q.screenSize===q.screenSizeEnum.XS||q.screenSize===q.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==q.invoice?null:q.invoice.serialized)&&""!==(null==q.invoice?null:q.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=q.invoice&&q.invoice.serialized)||""===(null==q.invoice?null:q.invoice.serialized)),d.xp6(4),d.Q6J("icon",q.faReceipt),d.xp6(2),d.Oqu(q.screenSize===q.screenSizeEnum.XS?q.newlyAdded?"Created":"Invoice":q.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,xe,q.screenSize===q.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=q.invoice&&q.invoice.serialized&&""!==(null==q.invoice?null:q.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,ue,q.screenSize!==q.screenSizeEnum.XS&&q.screenSize!==q.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==q.invoice?null:q.invoice.serialized)&&""!==(null==q.invoice?null:q.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=q.invoice&&q.invoice.serialized)||""===(null==q.invoice?null:q.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",q.screenSize===q.screenSizeEnum.XS||q.screenSize===q.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==q.invoice?null:q.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=q.invoice&&q.invoice.amount)||"0"===(null==q.invoice?null:q.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==q.invoice?null:q.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=q.invoice&&q.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==q.invoice?null:q.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==q.invoice?null:q.invoice.status)),d.xp6(8),d.Oqu((null==q.invoice?null:q.invoice.description)||"-"),d.xp6(7),d.Oqu((null==q.invoice?null:q.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",q.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,Pe,!q.showAdvanced,q.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!q.showAdvanced)("ngIfElse",Ae),d.xp6(3),d.Q6J("ngIf",(null==q.invoice?null:q.invoice.serialized)&&""!==(null==q.invoice?null:q.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=q.invoice&&q.invoice.serialized)||""===(null==q.invoice?null:q.invoice.serialized))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,U.dk,W.BN,j.lW,U.dn,ne.d,S.sg,ee.Ou,de.h,te.y],pipes:[S.JJ,S.uU,S.rS],styles:[""]}),Q})()},6523:(ze,K,p)=>{"use strict";p.d(K,{$A:()=>di,$W:()=>R,BL:()=>c,B_:()=>B,Bl:()=>ne,CX:()=>d,Cp:()=>I,EK:()=>S,El:()=>L,Fr:()=>ei,HI:()=>Ae,JT:()=>s,Jl:()=>ee,Jo:()=>xt,Lf:()=>Q,Ll:()=>M,Ly:()=>Ue,Nr:()=>ue,OG:()=>v,PC:()=>f,QJ:()=>Nt,RX:()=>j,Rd:()=>k,Rv:()=>de,SN:()=>W,Sf:()=>Lt,TW:()=>ge,UH:()=>Ce,UR:()=>ie,Vv:()=>T,WM:()=>J,WO:()=>gt,Wi:()=>Y,YP:()=>U,YX:()=>u,Z7:()=>$,Z8:()=>h,Zh:()=>C,_E:()=>we,_L:()=>i,aL:()=>xe,as:()=>le,cQ:()=>q,dV:()=>De,fu:()=>be,kL:()=>tt,ks:()=>te,mC:()=>Se,n7:()=>Wt,oV:()=>ut,pW:()=>r,qY:()=>Pe,sQ:()=>b,tb:()=>_,u0:()=>Ot,vV:()=>N,xG:()=>et,y2:()=>He,yZ:()=>Gt,z:()=>D});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),s=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),b=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),R=(0,t.PH)(e.uR.FETCH_PEERS_LND),h=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),L=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),D=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),S=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),k=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),U=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),W=(0,t.PH)(e.uR.FETCH_FEES_LND),j=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),ne=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),de=(0,t.PH)(e.uR.FETCH_NETWORK_LND),te=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),ie=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),le=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),$=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),ge=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),r=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),c=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),v=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),_=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),B=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),N=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),J=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),ue=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),xe=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),Pe=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Se=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),Q=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Ue=(0,t.PH)(e.uR.FETCH_UTXOS_LND),Ce=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),q=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),Ae=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),ut=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),De=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),we=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),Y=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),be=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),He=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),et=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),Lt=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),di=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),Wt=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Gt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),Ot=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),Nt=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),gt=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),tt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),xt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ei=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(ze,K,p)=>{"use strict";p.d(K,{l:()=>ge});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),s=p(2722),b=p(4004),d=p(262),R=p(1365),h=p(2340),L=p(8627),w=p(1786),D=p(7731),S=p(7861),k=p(6523),E=p(6529),U=p(5e3),W=p(8138),j=p(5620),ne=p(5043),ee=p(62),de=p(5986),te=p(8966),ie=p(1402),le=p(7998),$=p(9808);let ge=(()=>{class C{constructor(r,u,c,v,T,I,y,n,_,B){this.actions=r,this.httpClient=u,this.store=c,this.logger=v,this.commonService=T,this.sessionService=I,this.dialog=y,this.router=n,this.wsService=_,this.location=B,this.CHILD_API_URL=h.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INFO_LND),(0,M.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.ac)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(D.pg.SET_SELECTED_NODE))),(0,b.U)(H=>(this.logger.info(H),H.chains&&H.chains.length&&H.chains[0]&&("string"==typeof H.chains[0]&&H.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof H.chains[0]&&H.chains[0].hasOwnProperty("chain")&&H.chains[0].chain&&H.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:D.pg.LOGOUT}):H.identity_pubkey?(H.lnImplementation="LND",this.initializeRemainingData(H,N.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),{type:D.uR.SET_INFO_LND,payload:H||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:D.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(H=>{if("string"==typeof H.error.error&&H.error.error.includes("Not Found")||"string"==typeof H.error.error&&H.error.error.includes("wallet locked")||502===H.status&&!H.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",H);else if("string"==typeof H.error.error&&H.error.error.includes("starting up")&&500===H.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const J=this.commonService.extractErrorCode(H),ue=503===J?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(H);this.router.navigate(["/error"],{state:{errorCode:J,errorMessage:ue}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:J,error:ue})}return(0,f.of)({type:D.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PEERS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PEERS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:H||[]})),{type:D.uR.NEWLY_ADDED_PEER_LND,payload:{peer:H[0]}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.DETACH_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Peer Disconnected Successfully."})),{type:D.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,d.K)(H=>(this.handleErrorWithAlert("DetachPeer",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey,H),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_INVOICE_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(H.memo=N.payload.memo,H.value=N.payload.invoiceValue,H.expiry=N.payload.expiry,H.cltv_expiry="144",H.private=N.payload.private,H.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:H,newlyAdded:!0,component:L.v}}}))},200),{type:D.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:D.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:H.payment_request}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,{node_pubkey:N.payload.selectedPeerPubkey,local_funding_amount:N.payload.fundingAmount,private:N.payload.private,trans_type:N.payload.transType,trans_type_value:N.payload.transTypeValue,spend_unconfirmed:N.payload.spendUnconfirmed}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:D.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UPDATE_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,max_htlc_msat:N.payload.maxHtlcMsat,min_htlc_msat:N.payload.minHtlcMsat,chanPoint:N.payload.chanPoint}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:D.uR.FETCH_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithAlert("UpdateChannels",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",H),(0,f.of)({type:D.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CLOSE_CHANNEL_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL}));let H=this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(H=H+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(H=H+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(H).pipe((0,b.U)(J=>(this.logger.info(J),this.store.dispatch((0,S.uO)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:J.message}})),{type:D.pg.VOID})),(0,d.K)(J=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,J),(0,f.of)({type:D.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.BACKUP_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,S.jW)({payload:N.payload.showMessage+" "+H.message})),{type:D.uR.BACKUP_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.VERIFY_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,S.jW)({payload:H.message})),{type:D.uR.VERIFY_CHANNEL_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("VerifyChannel",D.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,S.jW)({payload:H.message})),this.store.dispatch((0,k.B_)({payload:H.list})),{type:D.uR.RESTORE_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("RestoreChannels",D.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_FEES_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:D.uR.SET_FEES_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,b.U)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.COMPLETED}})),this.logger.info(N),{type:D.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",D.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_NETWORK_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/info"))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.COMPLETED}})),{type:D.uR.SET_NETWORK_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",D.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API).pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PENDING_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/pending").pipe((0,b.U)(N=>{this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.COMPLETED}}));const H={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return N&&(H.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(H.closing.num_channels=N.pending_closing_channels.length,H.total_channels=H.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(J=>{H.closing.limbo_balance=+H.closing.limbo_balance+(J.channel.local_balance?+J.channel.local_balance:0)})),N.pending_force_closing_channels&&(H.force_closing.num_channels=N.pending_force_closing_channels.length,H.total_channels=H.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(J=>{H.force_closing.limbo_balance=+H.force_closing.limbo_balance+(J.channel.local_balance?+J.channel.local_balance:0)})),N.pending_open_channels&&(H.open.num_channels=N.pending_open_channels.length,H.total_channels=H.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(J=>{H.open.limbo_balance=+H.open.limbo_balance+(J.channel.local_balance?+J.channel.local_balance:0)})),N.waiting_close_channels&&(H.waiting_close.num_channels=N.waiting_close_channels.length,H.total_channels=H.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(J=>{H.waiting_close.limbo_balance=+H.waiting_close.limbo_balance+(J.channel.local_balance?+J.channel.local_balance:0)}))),{type:D.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:H}:{pendingChannels:{},pendingChannelsSummary:H}}}),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",D.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CLOSED_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/closed").pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",D.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INVOICES_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(N.payload.num_max_invoices?N.payload.num_max_invoices:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,b.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(xe.total_invoices=+(xe.last_index_offset||0)),{type:D.uR.SET_INVOICES_LND,payload:xe})),(0,d.K)(xe=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",xe),(0,f.of)({type:D.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_TRANSACTIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",D.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(E.Q5)),(0,M.z)(([N,H])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/getUTXOs?max_confs="+(H&&H.block_height?H.block_height:1e9)))),(0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.COMPLETED}})),{type:D.uR.SET_UTXOS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",D.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PAYMENTS_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"?max_payments="+(N.payload.max_payments?N.payload.max_payments:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,b.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PAYMENTS_LND,payload:xe})),(0,d.K)(xe=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",xe),(0,f.of)({type:D.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SEND_PAYMENT_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.INITIATED}}));const H={};return H.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(H.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(H.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(H.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(H.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==D.Vc[0].id&&(H.feeLimit={},H.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",H).pipe((0,b.U)(J=>{if(this.logger.info(J),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),J.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:D.IV,reversed:!0}})),{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:J}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",J.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",J.payment_error),{type:D.pg.VOID});if(this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:D.IV,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:D.IV,reversed:!0}}));else{let ue="Payment Sent Successfully.";J.payment_route&&J.payment_route.total_fees_msat&&(ue="Payment sent successfully with the total fee "+J.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,S.jW)({payload:ue}))}return{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:J}}),(0,d.K)(J=>(this.logger.error("Error: "+JSON.stringify(J)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",J),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:D.IV,reversed:!0}})),(0,f.of)({type:D.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(J)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",J):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",J),(0,f.of)({type:D.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_GRAPH_NODE_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.COMPLETED}})),{type:D.uR.SET_GRAPH_NODE_LND,payload:H&&H.node?{node:H.node}:{node:null}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("FetchGraphNode",D.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_GRAPH_NODE_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_NEW_ADDRESS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.uR.SET_NEW_ADDRESS_LND,payload:H&&H.address?H.address:{}})),(0,d.K)(H=>(this.handleErrorWithAlert("GetNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,H),(0,f.of)({type:D.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_NEW_ADDRESS_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_CHANNEL_TRANSACTION_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API,{amount:N.payload.amount,address:N.payload.address,sendAll:N.payload.sendAll,fees:N.payload.fees,blocks:N.payload.blocks}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:D.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SetChannelTransaction",D.m6.SEND_FUNDS,"Sending Fund Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_FORWARDING_HISTORY_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.SWITCH_API,{num_max_events:N.payload.num_max_events,index_offset:N.payload.index_offset,end_time:N.payload.end_time,start_time:N.payload.start_time}).pipe((0,b.U)(J=>(this.logger.info(J),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.COMPLETED}})),{type:D.uR.SET_FORWARDING_HISTORY_LND,payload:J})),(0,d.K)(J=>(this.handleErrorWithAlert("FetchForwardingHistory",D.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+h.NZ.SWITCH_API,J),(0,f.of)({type:D.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_QUERY_ROUTES_LND),(0,M.z)(N=>{let H=this.CHILD_API_URL+h.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(H=H+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(H).pipe((0,b.U)(J=>(this.logger.info(J),{type:D.uR.SET_QUERY_ROUTES_LND,payload:J})),(0,d.K)(J=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API,J),(0,f.of)({type:D.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_QUERY_ROUTES_LND),(0,b.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,b.U)(H=>(this.logger.info("Generated GenSeed!"),this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GEN_SEED})),{type:D.uR.GEN_SEED_RESPONSE_LND,payload:H.cipher_seed_mnemonic})),(0,d.K)(H=>(this.handleErrorWithAlert("GenSeed",D.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload,H),(0,f.of)({type:D.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,M.z)(()=>this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,b.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:D.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",D.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,f.of)({type:D.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_RESPONSE_LND),(0,b.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_RESPONSE_LND),(0,b.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:N.payload.pwd,cipher_seed_mnemonic:N.payload.cipher?N.payload.cipher:"",aezeed_passphrase:N.payload.passphrase?N.payload.passphrase:""}).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.INITIALIZE_WALLET})),{type:D.uR.INIT_WALLET_RESPONSE_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("InitWallet",D.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/initwallet",H),(0,f.of)({type:D.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UNLOCK_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,b.U)(H=>(this.logger.info(H),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,S.uO)({payload:D.m6.UNLOCK_WALLET})),this.store.dispatch((0,S.ac)({payload:D.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,S.uO)({payload:D.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:D.pg.VOID})),(0,d.K)(H=>(this.handleErrorWithAlert("UnlockWallet",D.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/unlockwallet",H),(0,f.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PEER_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload,H),(0,f.of)({type:D.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CHANNEL_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID,H),(0,f.of)({type:D.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INVOICE_LOOKUP_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}}));let H=this.CHILD_API_URL+h.NZ.INVOICES_API+"/lookup";return H=N.payload.paymentAddress&&""!==N.payload.paymentAddress?H+"?payment_addr="+N.payload.paymentAddress:H+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(H).pipe((0,b.U)(J=>(this.logger.info(J),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:J})),{type:D.uR.SET_LOOKUP_LND,payload:J})),(0,d.K)(J=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",J),N.payload.openSnackBar&&this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:J}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PAYMENT_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,b.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:H})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",H),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:H}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_LOOKUP_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LIST_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.COMPLETED}})),{type:D.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,d.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",D.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API,N),(0,f.of)({type:D.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,b.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/alltransactions").pipe((0,b.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",D.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.store.select(E.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.FetchBalanceBlockchain.status!==D.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==D.Bn.ERROR||N.FetchAllChannels.status!==D.Bn.COMPLETED&&N.FetchAllChannels.status!==D.Bn.ERROR||N.FetchPendingChannels.status!==D.Bn.COMPLETED&&N.FetchPendingChannels.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===D.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,k.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(r,u){this.sessionService.setItem("lndUnlocked","true");const c={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,S.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._V)({payload:c}));let v=this.location.path();v.includes("/cln/")?v=null==v?void 0:v.replace("/cln/","/lnd/"):v.includes("/ecl/")&&(v=null==v?void 0:v.replace("/ecl/","/lnd/")),(v.includes("/unlock")||v.includes("/login")||v.includes("/error")||""===v||"HOME"===u||v.includes("?access-key="))&&(v="/lnd/home"),this.router.navigate([v]),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,u,c,v){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(v)),401===v.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:u})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:v.status.toString(),message:this.commonService.extractErrorMessage(v,c)}})))}handleErrorWithAlert(r,u,c,v,T){if(this.logger.error(T),401===T.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:u}));const I=this.commonService.extractErrorMessage(T);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:T.status,message:I,URL:v},component:w.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:T.status.toString(),message:I,URL:v}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return C.\u0275fac=function(r){return new(r||C)(U.LFG(t.eX),U.LFG(W.eN),U.LFG(j.yh),U.LFG(ne.mQ),U.LFG(ee.v),U.LFG(de.m),U.LFG(te.uw),U.LFG(ie.F0),U.LFG(le.d),U.LFG($.Ye))},C.\u0275prov=U.Yz7({token:C,factory:C.\u0275fac}),C})()},6529:(ze,K,p)=>{"use strict";p.d(K,{$k:()=>f,Bo:()=>d,Ef:()=>D,JG:()=>h,N7:()=>ee,P2:()=>U,PP:()=>R,Q5:()=>M,T4:()=>ne,Wi:()=>L,ZW:()=>S,_f:()=>te,bx:()=>ie,dx:()=>w,l5:()=>de,ni:()=>E,qU:()=>W,yA:()=>b});var t=p(5620);const e=(0,t.ZF)("lnd"),f=(0,t.P1)(e,le=>le.nodeSettings),M=(0,t.P1)(e,le=>le.information),b=((0,t.P1)(e,le=>({information:le.information,apiCallStatus:le.apisCallStatus.FetchInfo})),(0,t.P1)(e,le=>le.apisCallStatus)),d=(0,t.P1)(e,le=>({forwardingHistory:le.forwardingHistory,apiCallStatus:le.apisCallStatus.FetchForwardingHistory})),R=(0,t.P1)(e,le=>({listPayments:le.listPayments,apiCallStatus:le.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,le=>({fees:le.fees,apiCallStatus:le.apisCallStatus.FetchFees})),L=(0,t.P1)(e,le=>({peers:le.peers,apiCallStatus:le.apisCallStatus.FetchPeers})),w=(0,t.P1)(e,le=>({transactions:le.transactions,apiCallStatus:le.apisCallStatus.FetchTransactions})),D=(0,t.P1)(e,le=>({listInvoices:le.listInvoices,apiCallStatus:le.apisCallStatus.FetchInvoices})),S=(0,t.P1)(e,le=>({channels:le.channels,channelsSummary:le.channelsSummary,lightningBalance:le.lightningBalance,apiCallStatus:le.apisCallStatus.FetchAllChannels})),E=((0,t.P1)(e,le=>({channelsSummary:le.channelsSummary,pendingChannels:le.pendingChannels,closedChannels:le.closedChannels,apiCallStatus:le.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,le=>({pendingChannels:le.pendingChannels,pendingChannelsSummary:le.pendingChannelsSummary,apiCallStatus:le.apisCallStatus.FetchPendingChannels}))),U=(0,t.P1)(e,le=>({closedChannels:le.closedChannels,apiCallStatus:le.apisCallStatus.FetchClosedChannels})),W=(0,t.P1)(e,le=>({blockchainBalance:le.blockchainBalance,apiCallStatus:le.apisCallStatus.FetchBalanceBlockchain})),ne=((0,t.P1)(e,le=>({lightningBalance:le.lightningBalance,apiCallStatus:le.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,le=>({utxos:le.utxos,apiCallStatus:le.apisCallStatus.FetchUTXOs}))),ee=(0,t.P1)(e,le=>({networkInfo:le.networkInfo,apiCallStatus:le.apisCallStatus.FetchNetwork})),de=(0,t.P1)(e,le=>({allLightningTransactions:le.allLightningTransactions,apiCallStatus:le.apisCallStatus.FetchLightningTransactions})),te=(0,t.P1)(e,le=>({channels:le.channels,pendingChannels:le.pendingChannels,closedChannels:le.closedChannels})),ie=(0,t.P1)(e,le=>({information:le.information,nodeSettings:le.nodeSettings,apiCallStatus:le.apisCallStatus.FetchInfo}))},8627:(ze,K,p)=>{"use strict";p.d(K,{v:()=>be});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),s=p(7731),b=p(6529),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),U=p(9224),W=p(9546),j=p(7423),ne=p(4834),ee=p(773),de=p(5245),te=p(3390),ie=p(6895),le=p(1125),$=p(7238);const ge=["scrollContainer"];function C(fe,He){if(1&fe&&d._UZ(0,"qr-code",33),2&fe){const pt=d.oxw();d.Q6J("value",null==pt.invoice?null:pt.invoice.payment_request)("size",pt.qrWidth)("errorCorrectionLevel","L")}}function i(fe,He){1&fe&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}function r(fe,He){if(1&fe&&d._UZ(0,"qr-code",33),2&fe){const pt=d.oxw();d.Q6J("value",null==pt.invoice?null:pt.invoice.payment_request)("size",pt.qrWidth)("errorCorrectionLevel","L")}}function u(fe,He){1&fe&&(d.TgZ(0,"span",35),d._uU(1,"QR Code Not Applicable"),d.qZA())}function c(fe,He){1&fe&&d._UZ(0,"mat-divider",22),2&fe&&d.Q6J("inset",!0)}function v(fe,He){1&fe&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function T(fe,He){1&fe&&d._UZ(0,"span",41)}const I=function(){return[]};function y(fe,He){if(1&fe&&(d.TgZ(0,"div",37)(1,"div",38)(2,"span",39),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,T,1,0,"span",40),d.qZA()()),2&fe){const pt=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==pt.invoice?null:pt.invoice.amt_paid_sat)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,I).constructor(35))}}function n(fe,He){if(1&fe&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&fe){const pt=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==pt.invoice?null:pt.invoice.amt_paid_sat)," Sats")}}function _(fe,He){if(1&fe&&(d.ynx(0),d.YNc(1,y,6,5,"div",36),d.YNc(2,n,3,3,"div",21),d.BQk()),2&fe){const pt=d.oxw();d.xp6(1),d.Q6J("ngIf",pt.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!pt.flgInvoicePaid)}}function B(fe,He){1&fe&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function N(fe,He){1&fe&&d._UZ(0,"mat-spinner",43),2&fe&&d.Q6J("diameter",20)}function H(fe,He){if(1&fe&&(d.ynx(0),d.YNc(1,B,2,0,"span",21),d.YNc(2,N,1,1,"mat-spinner",42),d.BQk()),2&fe){const pt=d.oxw();d.xp6(1),d.Q6J("ngIf","OPEN"!==(null==pt.invoice?null:pt.invoice.state)||!pt.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","OPEN"===(null==pt.invoice?null:pt.invoice.state)&&pt.flgVersionCompatible)}}function J(fe,He){1&fe&&d.GkF(0)}function ue(fe,He){if(1&fe&&(d.TgZ(0,"div"),d.YNc(1,J,1,0,"ng-container",44),d.qZA()),2&fe){d.oxw();const pt=d.MAs(79);d.xp6(1),d.Q6J("ngTemplateOutlet",pt)}}function xe(fe,He){if(1&fe){const pt=d.EpF();d.TgZ(0,"div",45)(1,"button",46),d.NdJ("click",function(){return d.CHM(pt),d.oxw().onScrollDown()}),d.TgZ(2,"mat-icon",47),d._uU(3,"arrow_downward"),d.qZA()()()}}function Pe(fe,He){1&fe&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Se(fe,He){1&fe&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Q(fe,He){if(1&fe){const pt=d.EpF();d.TgZ(0,"button",48),d.NdJ("copied",function(Lt){return d.CHM(pt),d.oxw().onCopyPayment(Lt)}),d._uU(1),d.qZA()}if(2&fe){const pt=d.oxw();d.Q6J("payload",null==pt.invoice?null:pt.invoice.payment_request),d.xp6(1),d.Oqu(pt.screenSize===pt.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function Ue(fe,He){if(1&fe){const pt=d.EpF();d.TgZ(0,"button",49),d.NdJ("click",function(){return d.CHM(pt),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Ce=function(fe){return{"mr-0":fe}};function q(fe,He){if(1&fe&&d._UZ(0,"span",66),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Ce,pt.screenSize===pt.screenSizeEnum.XS))}}function Ae(fe,He){if(1&fe&&d._UZ(0,"span",67),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Ce,pt.screenSize===pt.screenSizeEnum.XS))}}function ut(fe,He){if(1&fe&&d._UZ(0,"span",68),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Ce,pt.screenSize===pt.screenSizeEnum.XS))}}function Ie(fe,He){if(1&fe&&(d.TgZ(0,"div",55)(1,"div",60)(2,"span",61),d.YNc(3,q,1,3,"span",62),d.YNc(4,Ae,1,3,"span",63),d.YNc(5,ut,1,3,"span",64),d._uU(6),d.qZA(),d.TgZ(7,"span",65),d._uU(8),d.ALo(9,"number"),d.qZA()(),d._UZ(10,"mat-divider",22),d.qZA()),2&fe){const pt=He.$implicit,et=d.oxw(3);d.xp6(3),d.Q6J("ngIf","SETTLED"===pt.state),d.xp6(1),d.Q6J("ngIf","ACCEPTED"===pt.state),d.xp6(1),d.Q6J("ngIf","CANCELED"===pt.state),d.xp6(1),d.hij(" ",pt.chan_id," "),d.xp6(2),d.Oqu(d.xi3(9,6,+pt.amt_msat/1e3||0,et.getDecimalFormat(pt))),d.xp6(2),d.Q6J("inset",!0)}}function De(fe,He){if(1&fe){const pt=d.EpF();d.TgZ(0,"div",17)(1,"mat-expansion-panel",53),d.NdJ("opened",function(){return d.CHM(pt),d.oxw(2).flgOpened=!0})("closed",function(){return d.CHM(pt),d.oxw(2).onExpansionClosed()}),d.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",54),d._uU(5,"HTLCs"),d.qZA()()(),d.TgZ(6,"div",55)(7,"div",56)(8,"span",57),d._uU(9,"Channel ID"),d.qZA(),d.TgZ(10,"span",58),d._uU(11,"Amount (Sats)"),d.qZA()(),d._UZ(12,"mat-divider",22),d.YNc(13,Ie,11,9,"div",59),d.qZA()()()}if(2&fe){const pt=d.oxw(2);d.xp6(12),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngForOf",null==pt.invoice?null:pt.invoice.htlcs)}}function ae(fe,He){1&fe&&d._UZ(0,"mat-divider",22),2&fe&&d.Q6J("inset",!0)}function we(fe,He){if(1&fe&&(d._UZ(0,"mat-divider",22),d.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),d._uU(4,"Preimage"),d.qZA(),d.TgZ(5,"span",24),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",22),d.TgZ(8,"div",17)(9,"div",50)(10,"h4",19),d._uU(11,"State"),d.qZA(),d.TgZ(12,"span",24),d._uU(13),d.qZA()(),d.TgZ(14,"div",51)(15,"h4",19),d._uU(16,"Expiry"),d.qZA(),d.TgZ(17,"span",24),d._uU(18),d.qZA()(),d.TgZ(19,"div",51)(20,"h4",19),d._uU(21,"Private Routing Hints"),d.qZA(),d.TgZ(22,"span",24),d._uU(23),d.qZA()()(),d._UZ(24,"mat-divider",22),d.YNc(25,De,14,2,"div",52),d.YNc(26,ae,1,1,"mat-divider",14)),2&fe){const pt=d.oxw();d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==pt.invoice?null:pt.invoice.r_preimage)||"-"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==pt.invoice?null:pt.invoice.state),d.xp6(5),d.Oqu(null==pt.invoice?null:pt.invoice.expiry),d.xp6(5),d.Oqu(null!=pt.invoice&&pt.invoice.private?"Yes":"No"),d.xp6(1),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngIf",(null==pt.invoice?null:pt.invoice.htlcs)&&(null==pt.invoice?null:pt.invoice.htlcs.length)>0),d.xp6(1),d.Q6J("ngIf",(null==pt.invoice?null:pt.invoice.htlcs)&&(null==pt.invoice?null:pt.invoice.htlcs.length)>0)}}const ye=function(fe){return{"display-none":fe}},Y=function(fe){return{"xs-scroll-y":fe}},z=function(fe){return{"h-50":fe}};let be=(()=>{class fe{constructor(pt,et,Lt,di,Wt,Gt){this.dialogRef=pt,this.data=et,this.logger=Lt,this.commonService=di,this.snackBar=Wt,this.store=Gt,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 f.x,new f.x,new f.x,new f.x,new f.x]}set container(pt){pt&&(this.scrollContainer=pt)}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(b.Q5).pipe((0,M.R)(this.unSubs[0])).subscribe(et=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(et.version,"0.11.0")});const pt=JSON.parse(JSON.stringify(this.invoice));this.store.select(b.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(et=>{var Lt,di,Wt;const Gt=null===(Lt=this.invoice)||void 0===Lt?void 0:Lt.state,Ot=(et.listInvoices.invoices||[]).find(Nt=>Nt.r_hash===pt.r_hash)||null;Ot&&(this.invoice=Ot),Gt!==(null===(di=this.invoice)||void 0===di?void 0:di.state)&&"SETTLED"===(null===(Wt=this.invoice)||void 0===Wt?void 0:Wt.state)&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(et)})}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(pt){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+pt)}getDecimalFormat(pt){return pt.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(pt=>{pt.next(null),pt.complete()})}}return fe.\u0275fac=function(pt){return new(pt||fe)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},fe.\u0275cmp=d.Xpm({type:fe,selectors:[["rtl-invoice-information"]],viewQuery:function(pt,et){if(1&pt&&d.Gf(ge,5),2&pt){let Lt;d.iGM(Lt=d.CRH())&&(et.container=Lt.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","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"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(pt,et){if(1&pt&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,C,1,3,"qr-code",2),d.YNc(3,i,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return et.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,r,1,3,"qr-code",2),d.YNc(16,u,2,0,"span",13),d.qZA(),d.YNc(17,c,1,1,"mat-divider",14),d.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),d._uU(23),d.qZA(),d.TgZ(24,"span",20),d._uU(25),d.ALo(26,"number"),d.YNc(27,v,2,0,"ng-container",21),d.qZA()(),d.TgZ(28,"div",18)(29,"h4",19),d._uU(30,"Amount Settled"),d.qZA(),d.TgZ(31,"span",20),d.YNc(32,_,3,2,"ng-container",21),d.YNc(33,H,3,2,"ng-container",21),d.qZA()()(),d._UZ(34,"mat-divider",22),d.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),d._uU(38,"Date Created"),d.qZA(),d.TgZ(39,"span",20),d._uU(40),d.ALo(41,"date"),d.qZA()(),d.TgZ(42,"div",18)(43,"h4",19),d._uU(44,"Date Settled"),d.qZA(),d.TgZ(45,"span",20),d._uU(46),d.ALo(47,"date"),d.qZA()()(),d._UZ(48,"mat-divider",22),d.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),d._uU(52,"Memo"),d.qZA(),d.TgZ(53,"span",20),d._uU(54),d.qZA()()(),d._UZ(55,"mat-divider",22),d.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),d._uU(59,"Payment Request"),d.qZA(),d.TgZ(60,"span",24),d._uU(61),d.qZA()()(),d._UZ(62,"mat-divider",22),d.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),d._uU(66,"Payment Hash"),d.qZA(),d.TgZ(67,"span",24),d._uU(68),d.qZA()()(),d.YNc(69,ue,2,1,"div",21),d.qZA()()(),d.YNc(70,xe,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return et.onShowAdvanced()}),d.YNc(73,Pe,2,0,"p",28),d.YNc(74,Se,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,Q,2,2,"button",30),d.YNc(77,Ue,2,0,"button",31),d.qZA()()(),d.YNc(78,we,27,9,"ng-template",null,32,d.W1O)),2&pt){const Lt=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=et.invoice&&et.invoice.payment_request&&""!==(null==et.invoice?null:et.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,ye,et.screenSize===et.screenSizeEnum.XS||et.screenSize===et.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==et.invoice?null:et.invoice.payment_request)&&""!==(null==et.invoice?null:et.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=et.invoice&&et.invoice.payment_request)||""===(null==et.invoice?null:et.invoice.payment_request)),d.xp6(4),d.Q6J("icon",et.faReceipt),d.xp6(2),d.Oqu(et.screenSize===et.screenSizeEnum.XS?et.newlyAdded?"Created":"Invoice":et.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,Y,et.screenSize===et.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=et.invoice&&et.invoice.payment_request&&""!==(null==et.invoice?null:et.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,ye,et.screenSize!==et.screenSizeEnum.XS&&et.screenSize!==et.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==et.invoice?null:et.invoice.payment_request)&&""!==(null==et.invoice?null:et.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=et.invoice&&et.invoice.payment_request)||""===(null==et.invoice?null:et.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",et.screenSize===et.screenSizeEnum.XS||et.screenSize===et.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,z,(null==et.invoice?null:et.invoice.htlcs)&&(null==et.invoice?null:et.invoice.htlcs.length)>0&&et.showAdvanced)),d.xp6(5),d.Oqu(et.screenSize===et.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==et.invoice?null:et.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=et.invoice&&et.invoice.value)||"0"===(null==et.invoice?null:et.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==et.invoice?null:et.invoice.amt_paid_sat)&&"OPEN"!==(null==et.invoice?null:et.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=et.invoice&&et.invoice.amt_paid_sat)||"0"===(null==et.invoice?null:et.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==et.invoice?null:et.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==et.invoice?null:et.invoice.settle_date)?d.xi3(47,38,1e3*+(null==et.invoice?null:et.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==et.invoice?null:et.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==et.invoice?null:et.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==et.invoice?null:et.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",et.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==et.invoice?null:et.invoice.htlcs)&&(null==et.invoice?null:et.invoice.htlcs.length)>0&&et.showAdvanced&&et.flgOpened),d.xp6(3),d.Q6J("ngIf",!et.showAdvanced)("ngIfElse",Lt),d.xp6(3),d.Q6J("ngIf",(null==et.invoice?null:et.invoice.payment_request)&&""!==(null==et.invoice?null:et.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=et.invoice&&et.invoice.payment_request)||""===(null==et.invoice?null:et.invoice.payment_request))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,U.dk,W.BN,j.lW,U.dn,ne.d,S.sg,ee.Ou,S.tP,de.Hw,te.h,ie.y,le.ib,le.yz,le.yK,$.gM],pipes:[S.JJ,S.uU],styles:[""]}),fe})()},7772:(ze,K,p)=>{"use strict";p.d(K,{J:()=>f,_:()=>e});var t=p(1777);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],f=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(ze,K,p)=>{"use strict";p.d(K,{g:()=>e});var t=p(1777);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(ze,K,p)=>{"use strict";p.d(K,{l:()=>e});var t=p(1777);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(ze,K,p)=>{"use strict";p.d(K,{H:()=>w});var t=p(8966),e=p(5e3),f=p(5043),M=p(7093),s=p(9224),b=p(7423),d=p(9808),R=p(4834),h=p(3390);function L(D,S){if(1&D&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&D){const k=e.oxw();e.xp6(1),e.Oqu(k.data.titleMessage)}}let w=(()=>{class D{constructor(k,E,U){this.dialogRef=k,this.data=E,this.logger=U,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 D.\u0275fac=function(k){return new(k||D)(e.Y36(t.so),e.Y36(t.WI),e.Y36(f.mQ))},D.\u0275cmp=e.Xpm({type:D,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(k,E){1&k&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return E.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,L,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&k&&(e.xp6(5),e.Oqu(E.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",E.data.titleMessage),e.xp6(4),e.Oqu(E.data.message.code),e.xp6(5),e.Oqu(E.errorMessage),e.xp6(5),e.Oqu(E.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},directives:[M.xw,M.yH,s.dk,M.Wh,b.lW,s.dn,d.O5,R.d,h.h,t.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),D})()},2615:(ze,K,p)=>{"use strict";p.d(K,{a:()=>Ui});var t=p(3075),e=p(7579),f=p(2722),M=p(8966),s=p(2687),b=p(7772),d=p(7731),R=p(6529),h=p(5e3),L=p(5620),w=p(9107),D=p(9808),S=p(5043),k=p(1402),E=p(62),U=p(7093),W=p(9224),j=p(7423),ne=p(5615),ee=p(1125),de=p(3322),te=p(5245),ie=p(7238),le=p(4834);function $(Be,Tt){1&Be&&h.GkF(0)}function ge(Be,Tt){1&Be&&h.GkF(0)}const C=function(Be){return{"h-5":Be}};function i(Be,Tt){if(1&Be&&(h.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA()()(),h.YNc(6,ge,1,0,"ng-container",0),h.qZA()),2&Be){const _e=h.oxw(),Ke=h.MAs(4);h.Q6J("expanded",_e.panelExpanded)("ngClass",h.VKq(7,C,!_e.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",_e.termCaption," amount (",h.lcZ(5,5,_e.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",Ke)}}function r(Be,Tt){if(1&Be&&(h.TgZ(0,"div",19)(1,"h4",8),h._uU(2," Prepay Amount (Sats) "),h.TgZ(3,"mat-icon",20),h._uU(4,"info_outline"),h.qZA()(),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"number"),h.qZA()()),2&Be){const _e=h.oxw(2);h.xp6(6),h.Oqu(h.lcZ(7,1,null==_e.quote?null:_e.quote.prepay_amt_sat))}}function u(Be,Tt){1&Be&&h._UZ(0,"mat-divider",13)}function c(Be,Tt){if(1&Be&&(h.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),h._uU(3," Swap Server Node Pubkey "),h.TgZ(4,"mat-icon",22),h._uU(5,"info_outline"),h.qZA()(),h.TgZ(6,"span",10),h._uU(7),h.qZA()()()),2&Be){const _e=h.oxw(2);h.xp6(7),h.Oqu(null==_e.quote?null:_e.quote.swap_payment_dest)}}function v(Be,Tt){if(1&Be&&(h.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),h._uU(4," Swap Fee (Sats) "),h.TgZ(5,"mat-icon",9),h._uU(6,"info_outline"),h.qZA()(),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"number"),h.qZA()(),h.TgZ(10,"div",7)(11,"h4",8),h._uU(12),h.TgZ(13,"mat-icon",11),h._uU(14,"info_outline"),h.qZA()(),h.TgZ(15,"span",10),h._uU(16),h.ALo(17,"number"),h.qZA()(),h.YNc(18,r,8,3,"div",12),h.qZA(),h._UZ(19,"mat-divider",13),h.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),h._uU(23," Max Off-chain Swap Routing Fee (Sats) "),h.TgZ(24,"mat-icon",15),h._uU(25,"info_outline"),h.qZA()(),h.TgZ(26,"span",10),h._uU(27),h.ALo(28,"number"),h.qZA()(),h.TgZ(29,"div",14)(30,"h4",8),h._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),h.TgZ(32,"mat-icon",16),h._uU(33,"info_outline"),h.qZA()(),h.TgZ(34,"span",10),h._uU(35,"36"),h.qZA()()(),h.YNc(36,u,1,0,"mat-divider",17),h.YNc(37,c,8,1,"div",18),h.qZA()),2&Be){const _e=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"30":"50"),h.xp6(6),h.Oqu(h.lcZ(9,9,null==_e.quote?null:_e.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"35":"50"),h.xp6(2),h.hij(" ",null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=_e.quote&&_e.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),h.xp6(4),h.Oqu(h.lcZ(17,11,null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?_e.quote.htlc_sweep_fee_sat:null!=_e.quote&&_e.quote.htlc_publish_fee_sat?_e.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==_e.quote?null:_e.quote.prepay_amt_sat),h.xp6(9),h.Oqu(h.lcZ(28,13,(null==_e.quote?null:_e.quote.amount)*((null!=_e.quote&&_e.quote.off_chain_swap_routing_fee_percentage?null==_e.quote?null:_e.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(9),h.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest))}}let T=(()=>{class Be{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(_e,Ke){if(1&_e&&(h.YNc(0,$,1,0,"ng-container",0),h.YNc(1,i,7,9,"ng-template",null,1,h.W1O),h.YNc(3,v,38,15,"ng-template",null,2,h.W1O)),2&_e){const yt=h.MAs(2),re=h.MAs(4);h.Q6J("ngTemplateOutlet",Ke.showPanel?yt:re)}},directives:[D.tP,ee.ib,U.yH,D.mk,de.oO,ee.yz,ee.yK,U.Wh,U.xw,te.Hw,ie.gM,D.O5,le.d],pipes:[D.JJ],styles:[""]}),Be})();var I=p(7322),y=p(7531),n=p(3390),_=p(2368),B=p(9814),N=p(5899);function H(Be,Tt){1&Be&&h.GkF(0)}function J(Be,Tt){if(1&Be&&(h.TgZ(0,"div",3)(1,"span",4),h._uU(2),h.qZA()()),2&Be){const _e=h.oxw();h.xp6(2),h.Oqu(null!=_e.loopStatus&&_e.loopStatus.error?null==_e.loopStatus?null:_e.loopStatus.error:"Unknown Error.")}}function ue(Be,Tt){if(1&Be&&(h.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA()()()()),2&Be){const _e=h.oxw();h.xp6(6),h.Oqu(null==_e.loopStatus?null:_e.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==_e.loopStatus?null:_e.loopStatus.htlc_address)}}let xe=(()=>{class Be{constructor(){}}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(_e,Ke){if(1&_e&&(h.YNc(0,H,1,0,"ng-container",0),h.YNc(1,J,3,1,"ng-template",null,1,h.W1O),h.YNc(3,ue,14,2,"ng-template",null,2,h.W1O)),2&_e){const yt=h.MAs(2),re=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=Ke.loopStatus&&Ke.loopStatus.error?yt:re)}},directives:[D.tP,U.xw,U.yH,U.Wh,le.d],styles:[""]}),Be})();var Pe=p(113);function Se(Be,Tt){1&Be&&h.GkF(0)}const Q=function(Be,Tt){return{"small-svg":Be,"large-svg":Tt}};function Ue(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ce(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),h._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),h.qZA(),h._UZ(43,"path",71),h.qZA()(),h._UZ(44,"circle",72),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function q(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",73)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",74),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",75)(11,"g",76),h._UZ(12,"circle",77)(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),h.TgZ(29,"g",94)(30,"g",95),h._UZ(31,"g",96),h.qZA(),h._UZ(32,"g",97),h.qZA(),h._UZ(33,"path",98),h.qZA(),h.TgZ(34,"g",99)(35,"g",41)(36,"g",42),h._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),h.qZA(),h.TgZ(52,"g",56),h._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),h.qZA(),h._UZ(67,"path",111),h.qZA()()()()()(),h.kcU(),h.TgZ(68,"div",30)(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA()(),h.TgZ(71,"div",31)(72,"mat-card-subtitle",32),h._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ae(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",112)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),h._UZ(9,"circle",12)(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),h.qZA()(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),h.TgZ(42,"g",94)(43,"g",95),h._UZ(44,"g",96),h.qZA(),h._UZ(45,"g",97),h.qZA(),h._UZ(46,"path",123),h.qZA()()()()(),h.kcU(),h.TgZ(47,"div",30)(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA()(),h.TgZ(50,"div",31)(51,"mat-card-subtitle",32),h._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function ut(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",124)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),h._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),h.qZA(),h.TgZ(28,"g",142)(29,"g",143)(30,"g",144),h._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),h.qZA(),h.TgZ(45,"g",159),h._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),h.qZA(),h._UZ(59,"path",173),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,Q,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Ie=(()=>{class Be{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Be.\u0275fac=function(_e){return new(_e||Be)(h.Y36(E.v))},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(_e,Ke){if(1&_e&&(h.YNc(0,Se,1,0,"ng-container",0),h.YNc(1,Ue,32,5,"ng-template",null,1,h.W1O),h.YNc(3,Ce,51,5,"ng-template",null,2,h.W1O),h.YNc(5,q,74,5,"ng-template",null,3,h.W1O),h.YNc(7,Ae,53,5,"ng-template",null,4,h.W1O),h.YNc(9,ut,66,5,"ng-template",null,5,h.W1O)),2&_e){const yt=h.MAs(2),re=h.MAs(4),qe=h.MAs(6),bt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Ke.stepNumber?yt:2===Ke.stepNumber?re:3===Ke.stepNumber?qe:4===Ke.stepNumber?bt:Vt)}},directives:[D.tP,U.xw,U.yH,U.Wh,D.mk,de.oO,W.n5,W.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Pe.l]}}),Be})();function De(Be,Tt){1&Be&&h.GkF(0)}const ae=function(Be,Tt){return{"small-svg":Be,"large-svg":Tt}};function we(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA()(),h.TgZ(29,"div",31)(30,"mat-card-subtitle",32),h._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ae,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function ye(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),h._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56)(29,"g",57)(30,"g",58),h._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),h.qZA(),h.TgZ(45,"g",73),h._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),h.qZA(),h._UZ(59,"path",87),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA()(),h.TgZ(63,"div",31)(64,"mat-card-subtitle",32),h._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ae,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Y(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",88)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",89),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),h._UZ(14,"circle",95)(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),h.TgZ(31,"g",112)(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA()()(),h.TgZ(35,"g",116)(36,"g",40),h._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),h.qZA(),h.TgZ(53,"g",56)(54,"g",57)(55,"g",58),h._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),h.qZA(),h.TgZ(70,"g",73),h._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),h.qZA(),h._UZ(84,"path",139),h.qZA()()()(),h._UZ(85,"path",140)(86,"path",141),h.qZA()()()(),h.kcU(),h.TgZ(87,"div",30)(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA()(),h.TgZ(90,"div",31)(91,"mat-card-subtitle",32),h._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ae,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function z(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",142)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),h._UZ(10,"circle",12)(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),h.qZA()(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),h.TgZ(43,"g",112)(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA()()(),h._UZ(47,"path",153),h.qZA()()()(),h.kcU(),h.TgZ(48,"div",30)(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA()(),h.TgZ(51,"div",31)(52,"mat-card-subtitle",32),h._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ae,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function be(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(yt){return h.CHM(_e),h.oxw().onSwipe(yt)}),h.O4$(),h.TgZ(1,"svg",154)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),h._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),h.qZA(),h.TgZ(28,"g",172),h._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),h.qZA(),h._UZ(43,"path",187),h.qZA()(),h._UZ(44,"circle",188),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA()(),h.TgZ(48,"div",31)(49,"mat-card-subtitle",32),h._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@sliderAnimation",_e.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ae,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let fe=(()=>{class Be{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Be.\u0275fac=function(_e){return new(_e||Be)(h.Y36(E.v))},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(_e,Ke){if(1&_e&&(h.YNc(0,De,1,0,"ng-container",0),h.YNc(1,we,32,5,"ng-template",null,1,h.W1O),h.YNc(3,ye,66,5,"ng-template",null,2,h.W1O),h.YNc(5,Y,93,5,"ng-template",null,3,h.W1O),h.YNc(7,z,54,5,"ng-template",null,4,h.W1O),h.YNc(9,be,51,5,"ng-template",null,5,h.W1O)),2&_e){const yt=h.MAs(2),re=h.MAs(4),qe=h.MAs(6),bt=h.MAs(8),Vt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Ke.stepNumber?yt:2===Ke.stepNumber?re:3===Ke.stepNumber?qe:4===Ke.stepNumber?bt:Vt)}},directives:[D.tP,U.xw,U.yH,U.Wh,D.mk,de.oO,W.n5,W.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Pe.l]}}),Be})();const He=["stepper"];function pt(Be,Tt){if(1&Be&&(h.TgZ(0,"div",48)(1,"p",49)(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50)(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,_e.channel.remote_alias)),h.xp6(5),h.Oqu(_e.channel.chan_id)}}function et(Be,Tt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(2);h.Oqu(_e.inputFormLabel)}}function Lt(Be,Tt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function di(Be,Tt){if(1&Be&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,_e.minQuote.amount),".")}}function Wt(Be,Tt){if(1&Be&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,_e.maxQuote.amount),".")}}function Gt(Be,Tt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function ui(Be,Tt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function Ot(Be,Tt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function Nt(Be,Tt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function gt(Be,Tt){if(1&Be&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,Ot,2,0,"mat-error",25),h.YNc(3,Nt,2,0,"mat-error",25),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.min)}}function tt(Be,Tt){1&Be&&(h.TgZ(0,"div",52)(1,"mat-slide-toggle",53),h._uU(2,"Fast"),h.qZA(),h.TgZ(3,"mat-icon",54),h._uU(4,"info_outline"),h.qZA()())}function xt(Be,Tt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(2);h.Oqu(_e.quoteFormLabel)}}function ei(Be,Tt){1&Be&&(h.TgZ(0,"p",55)(1,"mat-icon",56),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function Kt(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",57),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Re(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",58),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&Be){const _e=h.oxw(2);h.xp6(1),h.hij("Initiate ",_e.loopDirectionCaption,"")}}function Oe(Be,Tt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(3);h.Oqu(_e.addressFormLabel)}}function ce(Be,Tt){1&Be&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function ve(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"mat-step",16)(1,"form",17),h.YNc(2,Oe,1,1,"ng-template",18),h.TgZ(3,"div",59)(4,"mat-radio-group",60),h.NdJ("change",function(yt){return h.CHM(_e),h.oxw(2).onAddressTypeChange(yt)}),h.TgZ(5,"mat-radio-button",61),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",62),h._uU(8,"External Address"),h.qZA()(),h.TgZ(9,"mat-form-field",63),h._UZ(10,"input",64),h.YNc(11,ce,2,0,"mat-error",25),h.qZA()(),h.TgZ(12,"div",29)(13,"button",65),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).onLoop()}),h._uU(14),h.qZA()()()()}if(2&Be){const _e=h.oxw(2);h.Q6J("stepControl",_e.addressFormGroup)("editable",_e.flgEditable),h.xp6(1),h.Q6J("formGroup",_e.addressFormGroup),h.xp6(9),h.Q6J("required","external"===_e.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==_e.addressFormGroup.controls.address.errors?null:_e.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",_e.loopDirectionCaption,"")}}function ht(Be,Tt){if(1&Be&&h._uU(0),2&Be){const _e=h.oxw(2);h.hij("",_e.loopDirectionCaption," Status")}}function mt(Be,Tt){if(1&Be&&(h.TgZ(0,"mat-icon",66),h._uU(1),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.Oqu(_e.loopStatus&&null!=_e.loopStatus&&_e.loopStatus.id_bytes?"check":"close")}}function Ht(Be,Tt){1&Be&&h._UZ(0,"div")}function it(Be,Tt){1&Be&&h._UZ(0,"mat-progress-bar",67)}function Ne(Be,Tt){if(1&Be&&(h.TgZ(0,"h4",68),h._uU(1),h.qZA()),2&Be){const _e=h.oxw(2);h.xp6(1),h.Oqu(_e.loopStatus&&_e.loopStatus.error?_e.loopDirectionCaption+" failed.":_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel?_e.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":_e.loopDirectionCaption+" request placed successfully.")}}function nt(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",69),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function Xe(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",70),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Ee(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),h._uU(5),h.qZA()(),h.TgZ(6,"div",8)(7,"button",9),h.NdJ("click",function(){return h.CHM(_e),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(_e),h.oxw().onClose()}),h._uU(10,"X"),h.qZA()()(),h.TgZ(11,"mat-card-content",11)(12,"div",12),h.YNc(13,pt,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(yt){return h.CHM(_e),h.oxw().stepSelectionChanged(yt)}),h.TgZ(16,"mat-step",16)(17,"form",17),h.YNc(18,et,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21)(23,"mat-form-field",22),h._UZ(24,"input",23),h.TgZ(25,"mat-hint"),h._uU(26),h.ALo(27,"number"),h.ALo(28,"number"),h.qZA(),h.TgZ(29,"span",24),h._uU(30,"Sats"),h.qZA(),h.YNc(31,Lt,2,0,"mat-error",25),h.YNc(32,di,3,3,"mat-error",25),h.YNc(33,Wt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,Gt,2,0,"mat-error",25),h.YNc(37,ui,2,0,"mat-error",25),h.qZA(),h.YNc(38,gt,4,3,"mat-form-field",27),h.qZA(),h.YNc(39,tt,5,0,"div",28),h.TgZ(40,"div",29)(41,"button",30),h.NdJ("click",function(){return h.CHM(_e),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA()()()(),h.TgZ(43,"mat-step",16)(44,"form",17),h.YNc(45,xt,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,ei,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,Kt,2,0,"button",33),h.YNc(50,Re,2,1,"button",34),h.qZA()()(),h.YNc(51,ve,15,6,"mat-step",35),h.TgZ(52,"mat-step",36)(53,"form",17),h.YNc(54,ht,1,1,"ng-template",18),h.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),h._uU(60),h.YNc(61,mt,2,1,"mat-icon",40),h.qZA()()(),h.YNc(62,Ht,1,0,"div",41),h.qZA(),h.YNc(63,it,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,Ne,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,nt,2,0,"button",44),h.YNc(67,Xe,2,0,"button",45),h.qZA()()()(),h.TgZ(68,"div",46)(69,"button",47),h._uU(70,"Close"),h.qZA()()()()()()}if(2&Be){const _e=h.oxw(),Ke=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(_e.channel?"Channel "+_e.loopDirectionCaption:_e.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",_e.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",_e.inputFormGroup)("editable",_e.flgEditable),h.xp6(1),h.Q6J("formGroup",_e.inputFormGroup),h.xp6(3),h.Q6J("quote",_e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",_e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"35":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,_e.minQuote.amount),"-",h.lcZ(28,53,_e.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",_e.quoteFormGroup)("editable",_e.flgEditable),h.xp6(1),h.Q6J("formGroup",_e.quoteFormGroup),h.xp6(2),h.Q6J("quote",_e.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",_e.inputFormGroup.controls.amount.value>_e.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",_e.statusFormGroup),h.xp6(1),h.Q6J("formGroup",_e.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!_e.loopStatus),h.xp6(4),h.Oqu(_e.loopStatus?_e.loopStatus.id_bytes?_e.loopDirectionCaption+" request details":_e.loopDirectionCaption+" error details":"Waiting for "+_e.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",_e.loopStatus),h.xp6(1),h.Q6J("ngIf",!_e.loopStatus)("ngIfElse",Ke),h.xp6(1),h.Q6J("ngIf",!_e.loopStatus),h.xp6(1),h.Q6J("ngIf",_e.loopStatus),h.xp6(2),h.Q6J("ngIf",_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel),h.xp6(1),h.Q6J("ngIf",_e.loopStatus&&(_e.loopStatus.error||!_e.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Ge(Be,Tt){if(1&Be&&h._UZ(0,"rtl-loop-status",71),2&Be){const _e=h.oxw();h.Q6J("loopStatus",_e.loopStatus)}}function ot(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",88),h.NdJ("stepNumberChange",function(yt){return h.CHM(_e),h.oxw(2).stepNumber=yt}),h.qZA()}if(2&Be){const _e=h.oxw(2);h.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}function lt(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",88),h.NdJ("stepNumberChange",function(yt){return h.CHM(_e),h.oxw(2).stepNumber=yt}),h.qZA()}if(2&Be){const _e=h.oxw(2);h.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}const Ct=function(Be,Tt){return{"dot-primary":Be,"dot-primary-lighter":Tt}};function mi(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"span",89),h.NdJ("click",function(){const re=h.CHM(_e).$implicit;return h.oxw(2).onStepChanged(re)}),h._UZ(1,"p",90),h.qZA()}if(2&Be){const _e=Tt.$implicit,Ke=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,Ct,Ke.stepNumber===_e,Ke.stepNumber!==_e))}}function Jt(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function $t(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){return h.CHM(_e),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function Ki(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(_e);const yt=h.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function hi(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(_e);const yt=h.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function ai(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",95),h.NdJ("click",function(){h.CHM(_e);const yt=h.oxw(2);return yt.onStepChanged(yt.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function Ji(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"button",96),h.NdJ("click",function(){h.CHM(_e);const yt=h.oxw(2);return yt.onStepChanged(yt.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const Gi=function(){return[1,2,3,4,5]};function zi(Be,Tt){if(1&Be){const _e=h.EpF();h.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",75)(6,"button",76),h.NdJ("click",function(){h.CHM(_e);const yt=h.oxw();return yt.flgShowInfo=!1,yt.stepNumber=1}),h._uU(7,"X"),h.qZA()()(),h.TgZ(8,"mat-card-content",77),h.YNc(9,ot,1,2,"rtl-loop-out-info-graphics",78),h.YNc(10,lt,1,2,"rtl-loop-in-info-graphics",78),h.qZA(),h.TgZ(11,"div",79),h.YNc(12,mi,2,4,"span",80),h.qZA(),h.TgZ(13,"div",81),h.YNc(14,Jt,2,0,"button",82),h.YNc(15,$t,2,0,"button",83),h.YNc(16,Ki,2,0,"button",84),h.YNc(17,hi,2,0,"button",85),h.YNc(18,ai,2,0,"button",86),h.YNc(19,Ji,2,0,"button",87),h.qZA()()()}if(2&Be){const _e=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,Gi)),h.xp6(2),h.Q6J("ngIf",5===_e.stepNumber),h.xp6(1),h.Q6J("ngIf",5===_e.stepNumber),h.xp6(1),h.Q6J("ngIf",5===_e.stepNumber),h.xp6(1),h.Q6J("ngIf",_e.stepNumber<5),h.xp6(1),h.Q6J("ngIf",_e.stepNumber>1&&_e.stepNumber<5),h.xp6(1),h.Q6J("ngIf",_e.stepNumber<5)}}let Ui=(()=>{class Be{constructor(_e,Ke,yt,re,qe,bt,Vt,bi,wi){this.dialogRef=_e,this.data=Ke,this.store=yt,this.loopService=re,this.formBuilder=qe,this.decimalPipe=bt,this.logger=Vt,this.router=bi,this.commonService=wi,this.faInfoCircle=s.sqG,this.LoopTypeEnum=d.$I,this.direction=d.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=d.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||d.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===d.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||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.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,f.R)(this.unSubs[6])).subscribe(_e=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:_e.lightningBalance&&_e.lightningBalance.local?+_e.lightningBalance.local:null})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[4])).subscribe(_e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[5])).subscribe(_e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(_e){"external"===_e.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(){var _e;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===d.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===d.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,null===(_e=this.stepper.selected)||void 0===_e||_e.stepControl.setErrors(null),this.stepper.next(),this.direction===d.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,f.R)(this.unSubs[0])).subscribe({next:Ke=>{this.loopStatus=Ke,this.loopService.listSwaps(),this.flgEditable=!0},error:Ke=>{this.loopStatus={error:Ke},this.flgEditable=!0,this.logger.error(Ke)}});else{const Ke=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),yt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",re=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,Ke,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),re,yt).pipe((0,f.R)(this.unSubs[1])).subscribe({next:qe=>{this.loopStatus=qe,this.loopService.listSwaps(),this.flgEditable=!0},error:qe=>{this.loopStatus={error:qe},this.flgEditable=!0,this.logger.error(qe)}})}}onEstimateQuote(){var _e;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 Ke=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===d.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Ke).pipe((0,f.R)(this.unSubs[2])).subscribe(yt=>{this.quote=yt,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,Ke).pipe((0,f.R)(this.unSubs[3])).subscribe(yt=>{this.quote=yt,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),null===(_e=this.stepper.selected)||void 0===_e||_e.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(_e){switch(_e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===d.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===d.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===d.$I.LOOP_OUT&&1!==_e.selectedIndex&&_e.selectedIndex<_e.previouslySelectedIndex||this.direction===d.$I.LOOP_IN&&_e.selectedIndex<_e.previouslySelectedIndex)&&_e.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===d.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(_e){this.animationDirection=_e<this.stepNumber?"backward":"forward",this.stepNumber=_e}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(_e=>{_e.next(null),_e.complete()})}}return Be.\u0275fac=function(_e){return new(_e||Be)(h.Y36(M.so),h.Y36(M.WI),h.Y36(L.yh),h.Y36(w.W),h.Y36(t.qu),h.Y36(D.JJ),h.Y36(S.mQ),h.Y36(k.F0),h.Y36(E.v))},Be.\u0275cmp=h.Xpm({type:Be,selectors:[["rtl-loop-modal"]],viewQuery:function(_e,Ke){if(1&_e&&h.Gf(He,5),2&_e){let yt;h.iGM(yt=h.CRH())&&(Ke.stepper=yt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(_e,Ke){1&_e&&(h.YNc(0,Ee,71,55,"div",0),h.YNc(1,Ge,1,1,"ng-template",null,1,h.W1O),h.YNc(3,zi,20,11,"div",2)),2&_e&&(h.Q6J("ngIf",!Ke.flgShowInfo),h.xp6(3),h.Q6J("ngIf",Ke.flgShowInfo))},directives:[D.O5,U.xw,U.yH,U.Wh,W.dk,j.lW,W.dn,ne.Vq,ne.C0,t._Y,t.JL,t.sg,ne.VY,T,I.KE,y.Nt,t.wV,t.Fj,n.h,t.JJ,t.u,t.Q7,I.bx,I.R9,I.TO,_.Rr,te.Hw,ie.gM,B.VQ,B.U0,ee.ib,ee.yz,ee.yK,N.pW,M.ZT,xe,Ie,fe,D.sg,D.mk,de.oO],pipes:[D.rS,D.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[b._]}}),Be})()},9442:(ze,K,p)=>{"use strict";p.d(K,{w:()=>R});var t=p(2687),e=p(5e3),f=p(1402),M=p(7093),s=p(9546),b=p(9224),d=p(7423);let R=(()=>{class h{constructor(w){this.router=w,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return h.\u0275fac=function(w){return new(w||h)(e.Y36(f.F0))},h.\u0275cmp=e.Xpm({type:h,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(w,D){1&w&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return D.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&w&&(e.xp6(1),e.Q6J("icon",D.faTimes))},directives:[M.xw,M.Wh,s.BN,b.a8,b.dn,M.yH,d.lW],encapsulation:2}),h})()},3390:(ze,K,p)=>{"use strict";p.d(K,{h:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(s){this.el=s}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return f.\u0275fac=function(s){return new(s||f)(t.Y36(t.SBq))},f.\u0275dir=t.lG2({type:f,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),f})()},6895:(ze,K,p)=>{"use strict";p.d(K,{y:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(){this.copied=new t.vpe}onClick(s){s.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},b=>{this.copied.emit("Error could not copy text: "+JSON.stringify(b))})}}return f.\u0275fac=function(s){return new(s||f)},f.\u0275dir=t.lG2({type:f,selectors:[["","rtlClipboard",""]],hostBindings:function(s,b){1&s&&t.NdJ("click",function(R){return b.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),f})()},9843:(ze,K,p)=>{"use strict";p.d(K,{F:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(b){return this.max?t.kI.max(+this.max)(b):null}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},6534:(ze,K,p)=>{"use strict";p.d(K,{q:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(b){return this.min?t.kI.min(+this.min)(b):null}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},9445:(ze,K,p)=>{"use strict";p.d(K,{D3:()=>M,h9:()=>f});var t=p(5e3);let f=(()=>{class s{transform(d,R){var h,L;return null===(L=null===(h=null==d?void 0:d.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,D)=>w.toUpperCase()))||void 0===h?void 0:h.replace(/\s+/g,""))||void 0===L?void 0:L.replace(/-/g," ")}}return s.\u0275fac=function(d){return new(d||s)},s.\u0275pipe=t.Yjl({name:"camelcase",type:s,pure:!0}),s})(),M=(()=>{class s{transform(d,R){var h;return null===(h=null==d?void 0:d.replace(/\s+/g,""))||void 0===h?void 0:h.replace(/-/g," ").replace(new RegExp(R,"g")," ").replace(/(?:^\w|[A-Z]|\b\w)/g,(L,w)=>L.toUpperCase())}}return s.\u0275fac=function(d){return new(d||s)},s.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:s,pure:!0}),s})()},1643:(ze,K,p)=>{"use strict";p.d(K,{QM:()=>b,a1:()=>s,eQ:()=>d,fY:()=>R});var t=p(4004),e=p(5e3),f=p(1402),M=p(5986);let s=(()=>{class h{constructor(w,D){this.router=w,this.sessionService=D}canActivate(w){return!(!this.sessionService.getItem("token")||"settings"!==w.url[0].path&&"auth"!==w.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(f.F0),e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),b=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.lndUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),d=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.clUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),R=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.eclUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},62:(ze,K,p)=>{"use strict";p.d(K,{v:()=>w});var t=p(1135),e=p(9646),f=p(2843),M=p(5698),s=p(4004),b=p(262),d=p(7731),R=p(5e3),h=p(8104),L=p(5043);let w=(()=>{class D{constructor(k,E){this.dataService=k,this.logger=E,this.currencyUnits=[],this.CurrencyUnitEnum=d.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=d.Bn.UN_INITIATED,this.screenSize=d.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,E){this.containerSize={width:k,height:E},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,E,U,W="asc"){return k.sort("number"===U?"desc"===W?(j,ne)=>+j[E]>+ne[E]?-1:1:(j,ne)=>+j[E]>+ne[E]?1:-1:"desc"===W?(j,ne)=>j[E]>ne[E]?-1:1:(j,ne)=>j[E]>ne[E]?1:-1)}sortDescByKey(k,E){return k.sort((U,W)=>{const j=+U[E],ne=+W[E];return j>ne?-1:j<ne?1:0})}sortAscByKey(k,E){return k.sort((U,W)=>{const j=+U[E],ne=+W[E];return j<ne?-1:j>ne?1:0})}camelCase(k){var E,U;return null===(U=null===(E=null==k?void 0:k.replace(/(?:^\w|[A-Z]|\b\w)/g,(W,j)=>W.toUpperCase()))||void 0===E?void 0:E.replace(/\s+/g,""))||void 0===U?void 0:U.replace(/-/g," ")}titleCase(k,E,U){var W,j;return E&&U&&""!==E&&""!==U&&(k=null==k?void 0:k.replace(new RegExp(E,"g"),U)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?null===(W=k.split("\n"))||void 0===W?void 0:W.reduce((ne,ee)=>ne+ee.charAt(0).toUpperCase()+ee.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?null===(j=k.split(" "))||void 0===j?void 0:j.reduce((ne,ee)=>ne+ee.charAt(0).toUpperCase()+ee.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,E,U,W,j){const ne=(new Date).valueOf();return j&&W&&this.ratesAPIStatus!==d.Bn.INITIATED&&(E===d.NT.OTHER||U===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ne<this.conversionData.last_fetched+3e5?(0,e.of)(this.convertWithFiat(k,E,W)):(this.ratesAPIStatus=d.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,M.q)(1),(0,s.U)(ee=>(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=ne,this.convertWithFiat(k,E,W))),(0,b.K)(ee=>(this.ratesAPIStatus=d.Bn.ERROR,(0,f._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(k,E))}convertWithoutFiat(k,E){const U={};switch(U[d.NT.SATS]=0,U[d.NT.BTC]=0,E){case d.NT.SATS:U[d.NT.SATS]=k,U[d.NT.BTC]=1e-8*k;break;case d.NT.BTC:U[d.NT.SATS]=1e8*k,U[d.NT.BTC]=k}return U}convertWithFiat(k,E,U){const W={unit:U,symbol:this.conversionData.data[U].symbol};switch(W[d.NT.SATS]=0,W[d.NT.BTC]=0,W[d.NT.OTHER]=0,E){case d.NT.SATS:W[d.NT.SATS]=k,W[d.NT.BTC]=1e-8*k,W[d.NT.OTHER]=1e-8*k*this.conversionData.data[U].last;break;case d.NT.BTC:W[d.NT.SATS]=1e8*k,W[d.NT.BTC]=k,W[d.NT.OTHER]=k*this.conversionData.data[U].last;break;case d.NT.OTHER:W[d.NT.SATS]=k/this.conversionData.data[U].last*1e8,W[d.NT.BTC]=k/this.conversionData.data[U].last,W[d.NT.OTHER]=k}return W}convertTime(k,E,U){switch(E){case d.Qk.SECS:switch(U){case d.Qk.MINS:k/=60;break;case d.Qk.HOURS:k/=3600;break;case d.Qk.DAYS:k/=86400}break;case d.Qk.MINS:switch(U){case d.Qk.SECS:k*=60;break;case d.Qk.HOURS:k/=60;break;case d.Qk.DAYS:k/=1440}break;case d.Qk.HOURS:switch(U){case d.Qk.SECS:k*=3600;break;case d.Qk.MINS:k*=60;break;case d.Qk.DAYS:k/=24}break;case d.Qk.DAYS:switch(U){case d.Qk.SECS:k=3600*k*24;break;case d.Qk.MINS:k=60*k*24;break;case d.Qk.HOURS:k*=24}}return k}downloadFile(k,E,U=".json",W=".csv"){let j=new Blob;j=".json"===U?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const ne=document.createElement("a"),ee=URL.createObjectURL(j);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ne.setAttribute("target","_blank"),ne.setAttribute("href",ee),ne.setAttribute("download",E+W),ne.style.visibility="hidden",document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}convertToCSV(k){const E=[];let U="",W="",j="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((ee,de)=>{for(const te in ee)E.findIndex(ie=>ie===te)<0&&E.push(te)}),j=E.join(",")+"\r\n",k.forEach(ee=>{U="",E.forEach(de=>{var te;ee.hasOwnProperty(de)?Array.isArray(ee[de])?(W="",ee[de].forEach((ie,le)=>{var $;W+="object"==typeof ie?"("+(null===($=JSON.stringify(ie))||void 0===$?void 0:$.replace(/\,/g,";"))+")":"("+ie+")"}),U+=W+","):U+="object"==typeof ee[de]?(null===(te=JSON.stringify(ee[de]))||void 0===te?void 0:te.replace(/\,/g,";"))+",":ee[de]+",":U+=","}),j+=U.slice(0,-1)+"\r\n"}),j}isVersionCompatible(k,E){var U;if(k){const W=(null===(U=k.trim())||void 0===U?void 0:U.replace("v","").split("-")[0].split("."))||[],j=E.split(".");return+W[0]>+j[0]||+W[0]==+j[0]&&+W[1]>+j[1]||+W[0]==+j[0]&&+W[1]==+j[1]&&+W[2]>=+j[2]}return!1}extractErrorMessage(k,E="Unknown Error."){const U=this.titleCase(k.error&&k.error.text&&"string"==typeof k.error.text&&k.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:E);return this.logger.info("Error Message: "+U),U}extractErrorCode(k,E=500){const U=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:E;return this.logger.info("Error Code: "+U),U}extractErrorNumber(k,E=500){const U=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:E;return this.logger.info("Error Number: "+U),U}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return D.\u0275fac=function(k){return new(k||D)(R.LFG(h.D),R.LFG(L.mQ))},D.\u0275prov=R.Yz7({token:D,factory:D.\u0275fac}),D})()},7731:(ze,K,p)=>{"use strict";p.d(K,{$I:()=>r,$v:()=>k,AB:()=>ue,Bn:()=>n,Df:()=>Pe,Dr:()=>L,Er:()=>s,F7:()=>De,Fq:()=>i,Gi:()=>te,HW:()=>le,H_:()=>Se,IV:()=>d,IX:()=>B,JX:()=>I,LO:()=>b,NT:()=>de,OJ:()=>ne,OO:()=>Ce,Pi:()=>ae,Qk:()=>ee,Qw:()=>c,TJ:()=>R,V5:()=>Y,Vc:()=>w,Xr:()=>N,Xz:()=>M,Zs:()=>C,_t:()=>h,cu:()=>ie,g8:()=>U,gB:()=>Ue,gG:()=>ye,gg:()=>v,hZ:()=>Q,hc:()=>u,kO:()=>y,lr:()=>xe,m6:()=>_,nM:()=>E,n_:()=>j,ol:()=>W,op:()=>T,p7:()=>ge,pg:()=>H,pt:()=>e,uA:()=>f,uR:()=>J,vn:()=>D,wZ:()=>S,x$:()=>$,zZ:()=>we});var t=p(6087);function e(z){const be=new t.ye;return be.itemsPerPageLabel=z+" per page:",be}const f=["Sats","BTC"],M={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},s=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],b=["SECS","MINS","HOURS","DAYS"],d=10,R=[5,10,25,100],h=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],w=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],D=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],S={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var k=(()=>{return(z=k||(k={})).PAYMENT_RECEIVED="payment-received",z.PAYMENT_RELAYED="payment-relayed",z.PAYMENT_SENT="payment-sent",z.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",z.PAYMENT_FAILED="payment-failed",z.CHANNEL_OPENED="channel-opened",z.CHANNEL_STATE_CHANGED="channel-state-changed",z.CHANNEL_CLOSED="channel-closed",k;var z})(),E=(()=>{return(z=E||(E={})).INVOICE="invoice",z.BLOCK_HEIGHT="block-height",z.SEND_PAYMENT="send-payment",E;var z})(),U=(()=>((U||(U={})).INVOICE="invoice",U))(),W=(()=>{return(z=W||(W={})).OPERATOR="OPERATOR",z.MERCHANT="MERCHANT",z.ALL="ALL",W;var z})(),j=(()=>{return(z=j||(j={})).INFORMATION="Information",z.WARNING="Warning",z.ERROR="Error",z.SUCCESS="Success",z.CONFIRM="Confirm",j;var z})(),ne=(()=>{return(z=ne||(ne={})).JWT="JWT",z.PASSWORD="PASSWORD",ne;var z})(),ee=(()=>{return(z=ee||(ee={})).SECS="SECS",z.MINS="MINS",z.HOURS="HOURS",z.DAYS="DAYS",ee;var z})(),de=(()=>{return(z=de||(de={})).SATS="Sats",z.BTC="BTC",z.OTHER="OTHER",de;var z})(),te=(()=>{return(z=te||(te={})).ARRAY="ARRAY",z.NUMBER="NUMBER",z.STRING="STRING",z.BOOLEAN="BOOLEAN",z.PASSWORD="PASSWORD",z.DATE="DATE",z.DATE_TIME="DATE_TIME",te;var z})(),ie=(()=>{return(z=ie||(ie={})).XS="XS",z.SM="SM",z.MD="MD",z.LG="LG",z.XL="XL",ie;var z})();const le={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},$={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var ge=(()=>{return(z=ge||(ge={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",z.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",z.WIRE_INVALID_ONION_KEY="Invalid Onion Key",z.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",z.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",z.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",z.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",z.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",z.WIRE_FEE_INSUFFICIENT="Insufficient Fee",z.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",z.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",z.WIRE_CHANNEL_DISABLED="Channel Disabled",z.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",z.WIRE_INVALID_REALM="Invalid Realm",z.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",z.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",z.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",z.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",z.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",z.WIRE_MPP_TIMEOUT="MPP Timeout",z.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ge;var z})(),C=(()=>{return(z=C||(C={})).CHANNELD_NORMAL="Active",z.OPENINGD="Opening",z.CHANNELD_AWAITING_LOCKIN="Pending Open",z.CHANNELD_SHUTTING_DOWN="Shutting Down",z.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",z.CLOSINGD_COMPLETE="Closed",z.AWAITING_UNILATERAL="Awaiting Unilateral Close",z.FUNDING_SPEND_SEEN="Funding Spend Seen",z.ONCHAIN="Onchain",z.DUALOPEND_OPEN_INIT="Dual Open Initialized",z.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",C;var z})(),i=(()=>{return(z=i||(i={})).INITIATED="Initiated",z.PREIMAGE_REVEALED="Preimage Revealed",z.HTLC_PUBLISHED="HTLC Published",z.SUCCESS="Successful",z.FAILED="Failed",z.INVOICE_SETTLED="Invoice Settled",i;var z})(),r=(()=>{return(z=r||(r={})).LOOP_OUT="LOOP_OUT",z.LOOP_IN="LOOP_IN",r;var z})(),u=(()=>{return(z=u||(u={})).SWAP_OUT="SWAP_OUT",z.SWAP_IN="SWAP_IN",u;var z})(),c=(()=>{return(z=c||(c={}))["swap.created"]="Swap Created",z["swap.expired"]="Swap Expired",z["invoice.set"]="Invoice Set",z["invoice.paid"]="Invoice Paid",z["invoice.pending"]="Invoice Pending",z["invoice.settled"]="Invoice Settled",z["invoice.failedToPay"]="Invoice Failed To Pay",z["channel.created"]="Channel Created",z["transaction.failed"]="Transaction Failed",z["transaction.mempool"]="Transaction Mempool",z["transaction.claimed"]="Transaction Claimed",z["transaction.refunded"]="Transaction Refunded",z["transaction.confirmed"]="Transaction Confirmed",z["swap.refunded"]="Swap Refunded",z["swap.abandoned"]="Swap Abandoned",c;var z})();const v=[{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}],T=["MONTHLY","YEARLY"];var I=(()=>{return(z=I||(I={})).LOOP="LOOP",z.BOLTZ="BOLTZ",z.OFFERS="OFFERS",z.PEERSWAP="PEERSWAP",I;var z})();const y=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(z=n||(n={})).UN_INITIATED="UN_INITIATED",z.INITIATED="INITIATED",z.COMPLETED="COMPLETED",z.ERROR="ERROR",n;var z})();const _={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",LOG_OUT:"Logging Out..."};var B=(()=>{return(z=B||(B={})).INVOICE="INVOICE",z.OFFER="OFFER",z.KEYSEND="KEYSEND",B;var z})(),N=(()=>{return(z=N||(N={})).FEES="FEES",z.EVENTS="EVENTS",N;var z})(),H=(()=>{return(z=H||(H={})).VOID="VOID",z.SET_API_URL_ECL="SET_API_URL_ECL",z.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",z.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",z.RESET_ROOT_STORE="RESET_ROOT_STORE",z.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",z.OPEN_SNACK_BAR="OPEN_SNACKBAR",z.OPEN_SPINNER="OPEN_SPINNER",z.CLOSE_SPINNER="CLOSE_SPINNER",z.OPEN_ALERT="OPEN_ALERT",z.CLOSE_ALERT="CLOSE_ALERT",z.OPEN_CONFIRMATION="OPEN_CONFIRMATION",z.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",z.SHOW_PUBKEY="SHOW_PUBKEY",z.FETCH_CONFIG="FETCH_CONFIG",z.SHOW_CONFIG="SHOW_CONFIG",z.FETCH_STORE="FETCH_STORE",z.SET_STORE="SET_STORE",z.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",z.SET_RTL_CONFIG="SET_RTL_CONFIG",z.SAVE_SSO="SAVE_SSO",z.SAVE_SETTINGS="SAVE_SETTINGS",z.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",z.SET_SELECTED_NODE="SET_SELECTED_NODE",z.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",z.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",z.SET_NODE_DATA="SET_NODE_DATA",z.IS_AUTHORIZED="IS_AUTHORIZED",z.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",z.LOGIN="LOGIN",z.VERIFY_TWO_FA="VERIFY_TWO_FA",z.LOGOUT="LOGOUT",z.RESET_PASSWORD="RESET_PASSWORD",z.RESET_PASSWORD_RES="RESET_PASSWORD_RES",z.FETCH_FILE="FETCH_FILE",z.SHOW_FILE="SHOW_FILE",H;var z})(),J=(()=>{return(z=J||(J={})).RESET_LND_STORE="RESET_LND_STORE",z.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",z.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",z.FETCH_INFO_LND="FETCH_INFO_LND",z.SET_INFO_LND="SET_INFO_LND",z.FETCH_PEERS_LND="FETCH_PEERS_LND",z.SET_PEERS_LND="SET_PEERS_LND",z.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",z.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",z.DETACH_PEER_LND="DETACH_PEER_LND",z.REMOVE_PEER_LND="REMOVE_PEER_LND",z.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",z.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",z.ADD_INVOICE_LND="ADD_INVOICE_LND",z.FETCH_FEES_LND="FETCH_FEES_LND",z.SET_FEES_LND="SET_FEES_LND",z.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",z.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",z.FETCH_NETWORK_LND="FETCH_NETWORK_LND",z.SET_NETWORK_LND="SET_NETWORK_LND",z.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",z.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",z.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",z.SET_CHANNELS_LND="SET_CHANNELS_LND",z.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",z.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",z.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",z.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",z.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",z.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",z.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",z.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",z.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",z.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",z.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",z.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",z.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",z.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",z.FETCH_INVOICES_LND="FETCH_INVOICES_LND",z.SET_INVOICES_LND="SET_INVOICES_LND",z.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",z.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",z.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",z.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",z.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",z.FETCH_UTXOS_LND="FETCH_UTXOS_LND",z.SET_UTXOS_LND="SET_UTXOS_LND",z.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",z.SET_PAYMENTS_LND="SET_PAYMENTS_LND",z.SEND_PAYMENT_LND="SEND_PAYMENT_LND",z.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",z.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",z.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",z.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",z.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",z.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",z.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",z.GEN_SEED_LND="GEN_SEED_LND",z.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",z.INIT_WALLET_LND="INIT_WALLET_LND",z.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",z.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",z.PEER_LOOKUP_LND="PEER_LOOKUP_LND",z.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",z.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",z.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",z.SET_LOOKUP_LND="SET_LOOKUP_LND",z.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",z.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",z.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",z.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",z.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",z.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",J;var z})(),ue=(()=>{return(z=ue||(ue={})).RESET_CLN_STORE="RESET_CLN_STORE",z.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",z.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",z.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",z.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",z.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",z.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",z.SET_INFO_CLN="SET_INFO_CLN",z.FETCH_FEES_CLN="FETCH_FEES_CLN",z.SET_FEES_CLN="SET_FEES_CLN",z.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",z.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",z.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",z.SET_BALANCE_CLN="SET_BALANCE_CLN",z.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",z.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",z.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",z.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",z.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",z.SET_UTXOS_CLN="SET_UTXOS_CLN",z.FETCH_PEERS_CLN="FETCH_PEERS_CLN",z.SET_PEERS_CLN="SET_PEERS_CLN",z.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",z.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",z.ADD_PEER_CLN="ADD_PEER_CLN",z.DETACH_PEER_CLN="DETACH_PEER_CLN",z.REMOVE_PEER_CLN="REMOVE_PEER_CLN",z.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",z.SET_CHANNELS_CLN="SET_CHANNELS_CLN",z.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",z.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",z.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",z.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",z.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",z.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",z.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",z.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",z.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",z.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",z.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",z.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",z.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",z.SET_LOOKUP_CLN="SET_LOOKUP_CLN",z.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",z.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",z.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",z.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",z.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",z.SET_INVOICES_CLN="SET_INVOICES_CLN",z.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",z.ADD_INVOICE_CLN="ADD_INVOICE_CLN",z.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",z.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",z.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",z.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",z.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",z.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",z.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",z.SET_OFFERS_CLN="SET_OFFERS_CLN",z.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",z.ADD_OFFER_CLN="ADD_OFFER_CLN",z.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",z.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",z.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",z.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",z.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",z.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",z.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",ue;var z})(),xe=(()=>{return(z=xe||(xe={})).RESET_ECL_STORE="RESET_ECL_STORE",z.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",z.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",z.FETCH_INFO_ECL="FETCH_INFO_ECL",z.SET_INFO_ECL="SET_INFO_ECL",z.FETCH_FEES_ECL="FETCH_FEES_ECL",z.SET_FEES_ECL="SET_FEES_ECL",z.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",z.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",z.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",z.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",z.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",z.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",z.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",z.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",z.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",z.FETCH_PEERS_ECL="FETCH_PEERS_ECL",z.SET_PEERS_ECL="SET_PEERS_ECL",z.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",z.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",z.ADD_PEER_ECL="ADD_PEER_ECL",z.DETACH_PEER_ECL="DETACH_PEER_ECL",z.REMOVE_PEER_ECL="REMOVE_PEER_ECL",z.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",z.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",z.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",z.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",z.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",z.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",z.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",z.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",z.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",z.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",z.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",z.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",z.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",z.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",z.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",z.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",z.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",z.SET_INVOICES_ECL="SET_INVOICES_ECL",z.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",z.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",z.ADD_INVOICE_ECL="ADD_INVOICE_ECL",z.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",z.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",z.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",z.SET_LOOKUP_ECL="SET_LOOKUP_ECL",z.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",z.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",xe;var z})();const Pe=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var Se=(()=>{return(z=Se||(Se={})).gossip_queries_ex="Gossip queries including additional information",z.option_anchor_outputs="Anchor outputs",z.option_data_loss_protect="Extra channel re-establish fields",z.var_onion_optin="Variable-length routing onion payloads",z.option_static_remotekey="Static key for remote output",z.option_support_large_channel="Create large channels",z.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.payment_secret="Payment secret field",z.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",z.basic_mpp="Basic multi-part payments",z.gossip_queries="More sophisticated gossip control",z.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",z.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",Se;var z})(),Q=(()=>{return(z=Q||(Q={}))["data-loss-protect"]="Extra channel re-establish fields",z["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",z["gossip-queries"]="More sophisticated gossip control",z["tlv-onion"]="Variable-length routing onion payloads",z["ext-gossip-queries"]="Gossip queries can include additional information",z["static-remote-key"]="Static key for remote output",z["payment-addr"]="Payment secret field",z["multi-path-payments"]="Basic multi-part payments",z["wumbo-channels"]="Wumbo Channels",z.anchors="Anchor outputs",z["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",Q;var z})();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 Ce=(()=>{return(z=Ce||(Ce={})).OFFERED="offered",z.SETTLED="settled",z.FAILED="failed",z.LOCAL_FAILED="local_failed",Ce;var z})();const De=[{id:"standard",placeholder:"Standard"},{id:"static_remotekey",placeholder:"Static Remotekey"},{id:"anchor_outputs_zero_fee_htlc_tx",placeholder:"Anchor Output"}];var ae=(()=>{return(z=ae||(ae={})).ASCENDING="asc",z.DESCENDING="desc",ae;var z})();const we=["asc","desc"],ye=[{pageId:"payments",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"created_at",sortOrder:ae.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]}]},{pageId:"invoices",tables:[{tableId:"invoices",recordsPerPage:d,sortBy:"expires_at",sortOrder:ae.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]}]},{pageId:"on-chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:ae.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:ae.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]}],Y={payments:{maxColumns:5,allowedColumns:["created_at","type","payment_hash","bolt11","destination","memo","label","msatoshi_sent","msatoshi"]},invoices:{maxColumns:6,allowedColumns:["expires_at","paid_at","type","description","label","payment_hash","bolt11","msatoshi","msatoshi_received"]},utxos:{maxColumns:7,allowedColumns:["txid","address","scriptpubkey","output","value","blockheight","reserved"]},dust_utxos:{maxColumns:7,allowedColumns:["txid","address","scriptpubkey","output","value","blockheight","reserved"]}}},8104:(ze,K,p)=>{"use strict";p.d(K,{D:()=>le});var t=p(8138),e=p(1135),f=p(7579),M=p(2843),s=p(9646),b=p(590),d=p(5577),R=p(2722),h=p(4004),L=p(262),w=p(1365),D=p(2340),S=p(7731),k=p(1786),E=p(7861),U=p(6523),W=p(6529),j=p(9828),ne=p(5e3),ee=p(5620),de=p(5043),te=p(7261),ie=p(9808);let le=(()=>{class ${constructor(C,i,r,u,c){this.httpClient=C,this.store=i,this.logger=r,this.snackBar=u,this.titleCasePipe=c,this.APIUrl=D.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x],this.mapAliases=(v,T)=>(v&&v.length>0?v.forEach((I,y)=>{var n;if(T&&T.length>0)for(let _=0;_<T.length;_++){if(T[_].short_channel_id&&T[_].short_channel_id===I.in_channel&&(I.in_channel_alias=T[_].alias?T[_].alias:I.in_channel,I.out_channel_alias)||T[_].short_channel_id&&(null===(n=T[_].short_channel_id)||void 0===n?void 0:n.toString())===I.out_channel&&(I.out_channel_alias=T[_].alias?T[_].alias:I.out_channel,I.in_channel_alias))return;_===T.length-1&&(I.in_channel_alias||(I.in_channel_alias=I.in_channel?I.in_channel:"-"),I.out_channel_alias||(I.out_channel_alias=I.out_channel?I.out_channel:"-"))}else I.in_channel_alias=I.in_channel?I.in_channel:"-",I.out_channel_alias=I.out_channel?I.out_channel:"-"}):v=[],v)}setLnImplementation(C){this.lnImplementation=C.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(D.NZ.CONF_API+"/rates")}decodePayment(C,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.PAYMENTS_API+"/decode/"+C;return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/decode/"+C),this.store.dispatch((0,E.ac)({payload:S.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,R.R)(this.unSubs[0]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:S.m6.DECODE_PAYMENT})),c)),(0,L.K)(c=>(i?this.handleErrorWithoutAlert("Decode Payment",S.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",S.m6.DECODE_PAYMENT,"Decode Payment Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(C){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>{let r="",u="";return"ecl"===i?(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API+"/getsentinfos",u=S.m6.GET_SENT_PAYMENTS):"cln"===i?(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API,u=S.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API,u=S.m6.DECODE_PAYMENTS),this.store.dispatch((0,E.ac)({payload:u})),this.httpClient.post(r,{payments:C}).pipe((0,R.R)(this.unSubs[1]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:u})),c)),(0,L.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(C,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{if(i){const u=(new t.LE).set("pubkeys",C);return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/node/"+C)}))}signMessage(C){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>{let r=this.APIUrl+"/"+i+D.NZ.MESSAGE_API+"/sign";return"cln"===i&&(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,E.ac)({payload:S.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:C}).pipe((0,R.R)(this.unSubs[2]),(0,h.U)(u=>(this.store.dispatch((0,E.uO)({payload:S.m6.SIGN_MESSAGE})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("signMessageData",S.m6.SIGN_MESSAGE,"Sign Message Failed",r,u),(0,M._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(C,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.MESSAGE_API+"/verify";return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,E.ac)({payload:S.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:C,signature:i}).pipe((0,R.R)(this.unSubs[3]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:S.m6.VERIFY_MESSAGE})),c)),(0,L.K)(c=>(this.handleErrorWithAlert("verifyMessageData",S.m6.VERIFY_MESSAGE,"Verify Message Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(C,i,r,u){return this.lnImplementationUpdated.pipe((0,b.P)(c=>null!==c),(0,d.z)(c=>{const v={txid:C,outputIndex:i};return r&&(v.targetConf=r),u&&(v.satPerByte=u),this.store.dispatch((0,E.ac)({payload:S.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+D.NZ.WALLET_API+"/bumpfee",v).pipe((0,R.R)(this.unSubs[4]),(0,h.U)(T=>(this.store.dispatch((0,E.uO)({payload:S.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),T)),(0,L.K)(T=>(this.handleErrorWithoutAlert("Bump Fee",S.m6.BUMP_FEE,T),(0,M._)(()=>new Error(this.extractErrorMessage(T))))))}))}labelUTXO(C,i,r=!0){return this.lnImplementationUpdated.pipe((0,b.P)(u=>null!==u),(0,d.z)(u=>{const c={txid:C,label:i,overwrite:r};return this.store.dispatch((0,E.ac)({payload:S.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+D.NZ.WALLET_API+"/label",c).pipe((0,R.R)(this.unSubs[5]),(0,h.U)(v=>(this.store.dispatch((0,E.uO)({payload:S.m6.LABEL_UTXO})),v)),(0,L.K)(v=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LABEL_UTXO,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}))}leaseUTXO(C,i){return this.lnImplementationUpdated.pipe((0,b.P)(r=>null!==r),(0,d.z)(r=>{const u={txid:C,outputIndex:i};return this.store.dispatch((0,E.ac)({payload:S.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+D.NZ.WALLET_API+"/lease",u).pipe((0,R.R)(this.unSubs[6]),(0,h.U)(c=>{this.store.dispatch((0,E.uO)({payload:S.m6.LEASE_UTXO})),this.store.dispatch((0,U.mC)()),this.store.dispatch((0,U.Ly)());const v=new Date(1e3*c.expiration),T=Math.round(v.getTime())-60*v.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(T).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,L.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LEASE_UTXO,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(C,i,r,u){if("LND"===C){const c={end_time:r,start_time:i};return this.store.dispatch((0,E.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+D.NZ.SWITCH_API,c).pipe((0,R.R)(this.unSubs[7]),(0,w.M)(this.store.select(W._f)),(0,d.z)(([v,T])=>{if(v.forwarding_events){const I=[...T.channels,...T.closedChannels];v.forwarding_events.forEach(y=>{var n,_;if(I&&I.length>0)for(let B=0;B<I.length;B++){if((null===(n=I[B].chan_id)||void 0===n?void 0:n.toString())===y.chan_id_in&&(y.alias_in=I[B].remote_alias?I[B].remote_alias:y.chan_id_in,y.alias_out)||(null===(_=I[B].chan_id)||void 0===_?void 0:_.toString())===y.chan_id_out&&(y.alias_out=I[B].remote_alias?I[B].remote_alias:y.chan_id_out,y.alias_in))return;B===I.length-1&&(y.alias_in||(y.alias_in=y.chan_id_in),y.alias_out||(y.alias_out=y.chan_id_out))}else y.alias_in=y.chan_id_in,y.alias_out=y.chan_id_out})}else v={};return this.store.dispatch((0,E.uO)({payload:S.m6.GET_FORWARDING_HISTORY})),(0,s.of)(v)}),(0,L.K)(v=>(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+D.NZ.SWITCH_API,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}return"CLN"===C?(this.store.dispatch((0,E.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u).pipe((0,R.R)(this.unSubs[8]),(0,w.M)(this.store.select(j.ZW)),(0,d.z)(([c,v])=>{const T=this.mapAliases(c,[...v.activeChannels,...v.pendingChannels,...v.inactiveChannels]);return this.store.dispatch((0,E.uO)({payload:S.m6.GET_FORWARDING_HISTORY})),(0,s.of)(T)}),(0,L.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))):(0,s.of)({})}listNetworkNodes(C=""){return this.lnImplementationUpdated.pipe((0,b.P)(i=>null!==i),(0,d.z)(i=>(this.store.dispatch((0,E.ac)({payload:S.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+D.NZ.NETWORK_API+"/listNodes"+C).pipe((0,R.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,E.uO)({payload:S.m6.LIST_NETWORK_NODES})),(0,s.of)(r))),(0,L.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",S.m6.LIST_NETWORK_NODES,r),(0,M._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,b.P)(C=>null!==C),(0,d.z)(C=>(this.store.dispatch((0,E.ac)({payload:S.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+C+D.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[10]),(0,d.z)(i=>(this.store.dispatch((0,E.uO)({payload:S.m6.GET_LIST_CONFIGS})),(0,s.of)(i))),(0,L.K)(i=>(this.handleErrorWithoutAlert("List Configurations",S.m6.GET_LIST_CONFIGS,i),(0,M._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(C,i,r,u,c,v){return this.lnImplementationUpdated.pipe((0,b.P)(T=>null!==T),(0,d.z)(T=>{const I=C?{policy:C,policy_mod:i,lease_fee_base_msat:r,lease_fee_basis:u,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:v}:null;return this.store.dispatch((0,E.ac)({payload:S.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+T+D.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,R.R)(this.unSubs[11]),(0,h.U)(y=>(this.store.dispatch((0,E.uO)({payload:S.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,E.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+y.compact_lease+"!"})),y)),(0,L.K)(y=>(this.handleErrorWithoutAlert("Funder Policy",S.m6.GET_FUNDER_POLICY,y),(0,M._)(()=>new Error(this.extractErrorMessage(y))))))}))}extractErrorMessage(C,i="Unknown Error."){return this.titleCasePipe.transform(C.error.text&&"string"==typeof C.error.text&&C.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":C.error&&C.error.error&&C.error.error.error&&C.error.error.error.error&&C.error.error.error.error.error&&"string"==typeof C.error.error.error.error.error?C.error.error.error.error.error:C.error&&C.error.error&&C.error.error.error&&C.error.error.error.error&&"string"==typeof C.error.error.error.error?C.error.error.error.error:C.error&&C.error.error&&C.error.error.error&&"string"==typeof C.error.error.error?C.error.error.error:C.error&&C.error.error&&"string"==typeof C.error.error?C.error.error:C.error&&"string"==typeof C.error?C.error:C.error&&C.error.error&&C.error.error.error&&C.error.error.error.error&&C.error.error.error.error.message&&"string"==typeof C.error.error.error.error.message?C.error.error.error.error.message:C.error&&C.error.error&&C.error.error.error&&C.error.error.error.message&&"string"==typeof C.error.error.error.message?C.error.error.error.message:C.error&&C.error.error&&C.error.error.message&&"string"==typeof C.error.error.message?C.error.error.message:C.error&&C.error.message&&"string"==typeof C.error.message?C.error.message:C.message&&"string"==typeof C.message?C.message:i)}handleErrorWithoutAlert(C,i,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('<!DOCTYPE html><html lang="en">')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+C+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:i})),this.store.dispatch((0,E.qi)({payload:{action:C,status:S.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(C,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:i}));const v=this.extractErrorMessage(c);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:v,URL:u},component:k.H}}})),this.store.dispatch((0,E.qi)({payload:{action:C,status:S.Bn.ERROR,statusCode:c.status.toString(),message:v,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(C=>{C.next(null),C.complete()})}}return $.\u0275fac=function(C){return new(C||$)(ne.LFG(t.eN),ne.LFG(ee.yh),ne.LFG(de.mQ),ne.LFG(te.ux),ne.LFG(ie.rS))},$.\u0275prov=ne.Yz7({token:$,factory:$.\u0275fac}),$})()},5043:(ze,K,p)=>{"use strict";p.d(K,{LG:()=>d,mQ:()=>b});var t=p(2340),e=p(5e3);const{isDebugMode:f}=t.NZ,M=()=>null;let b=(()=>{class R{invokeConsoleMethod(L,w){}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})(),d=(()=>{class R{get info(){return f?console.log.bind(console):M}get warn(){return f?console.warn.bind(console):M}get error(){return f?console.error.bind(console):M}invokeConsoleMethod(L,w){(console[L]||console.log||M).apply(console,[w])}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(ze,K,p)=>{"use strict";p.d(K,{W:()=>W});var t=p(8138),e=p(1135),f=p(7579),M=p(9646),s=p(2843),b=p(2722),d=p(262),R=p(4004),h=p(2340),L=p(7731),w=p(1786),D=p(7861),S=p(5e3),k=p(5043),E=p(5620),U=p(62);let W=(()=>{class j{constructor(ee,de,te,ie){this.httpClient=ee,this.logger=de,this.store=te,this.commonService=ie,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,D.ac)({payload:L.m6.GET_LOOP_SWAPS})),this.loopUrl=h.T5+h.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,b.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,D.uO)({payload:L.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(L.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,de,te,ie,le,$,ge,C,i,r){const u={amount:ee,targetConf:te,swapRoutingFee:ie,minerFee:le,prepayRoutingFee:$,prepayAmt:ge,swapFee:C,swapPublicationDeadline:i,destAddress:r};return""!==de&&(u.chanId=de),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+de,L.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",L.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,de,te){let ie=new t.LE;return ie=ie.append("targetConf",de.toString()),ie=ie.append("swapPublicationDeadline",te.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,D.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,b.R)(this.unSubs[1]),(0,R.U)(le=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_QUOTE})),le)),(0,d.K)(le=>this.handleErrorWithoutAlert("Loop Out Quote",L.m6.GET_QUOTE,le)))}getLoopOutTermsAndQuotes(ee){let de=new t.LE;return de=de.append("targetConf",ee.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,b.R)(this.unSubs[2]),(0,R.U)(te=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_TERMS_QUOTES})),te)),(0,d.K)(te=>(0,M.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,te))))}loopIn(ee,de,te,ie,le){const $={amount:ee,swapFee:de,minerFee:te,lastHop:ie,externalHtlc:le};return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,$).pipe((0,d.K)(ge=>this.handleErrorWithoutAlert("Loop In",L.m6.NO_SPINNER,ge)))}getLoopInTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",L.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,de,te){let ie=new t.LE;return ie=ie.append("targetConf",de.toString()),ie=ie.append("swapPublicationDeadline",te.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,D.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,b.R)(this.unSubs[3]),(0,R.U)(le=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_QUOTE})),le)),(0,d.K)(le=>this.handleErrorWithoutAlert("Loop In Qoute",L.m6.GET_QUOTE,le)))}getLoopInTermsAndQuotes(ee){let de=new t.LE;return de=de.append("targetConf",ee.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,b.R)(this.unSubs[4]),(0,R.U)(te=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_TERMS_QUOTES})),te)),(0,d.K)(te=>(0,M.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,te))))}getSwap(ee){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,d.K)(de=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,L.m6.NO_SPINNER,de)))}handleErrorWithoutAlert(ee,de,te){let ie="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(te)),this.store.dispatch((0,D.uO)({payload:de})),401===te.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)())):503===te.status?(ie="Unable to Connect to Loop Server.",this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:te.status,message:"Unable to Connect to Loop Server",URL:ee},component:w.H}}}))):ie=this.commonService.extractErrorMessage(te),(0,s._)(()=>new Error(ie))}handleErrorWithAlert(ee,de,te){let ie="";if(this.logger.error(te),this.store.dispatch((0,D.uO)({payload:ee})),401===te.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)());else if(503===te.status)ie="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:te.status,message:"Unable to Connect to Loop Server",URL:de},component:w.H}}}))},100);else{ie=this.commonService.extractErrorMessage(te);const le=te.error&&te.error.error&&te.error.error.code?te.error.error.code:te.error&&te.error.code?te.error.code:te.code?te.code:te.status;setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"ERROR",message:{code:le,message:ie,URL:de},component:w.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return j.\u0275fac=function(ee){return new(ee||j)(S.LFG(t.eN),S.LFG(k.mQ),S.LFG(E.yh),S.LFG(U.v))},j.\u0275prov=S.Yz7({token:j,factory:j.\u0275fac}),j})()},5986:(ze,K,p)=>{"use strict";p.d(K,{m:()=>f});var t=p(7579),e=p(5e3);let f=(()=>{class M{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(b){return sessionStorage.getItem(b)}getAllItems(){return sessionStorage}setItem(b,d){sessionStorage.setItem(b,d),this.sessionSub.next(sessionStorage)}removeItem(b){sessionStorage.removeItem(b),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})()},7998:(ze,K,p)=>{"use strict";p.d(K,{d:()=>k});var t=p(1135),e=p(7579),f=p(2722),M=p(930),s=p(8306),b=p(727),d=p(4707);const R={url:"",deserializer:E=>JSON.parse(E.data),serializer:E=>JSON.stringify(E)};class L extends e.u{constructor(U,W){if(super(),this._socket=null,U instanceof s.y)this.destination=W,this.source=U;else{const j=this._config=Object.assign({},R);if(this._output=new e.x,"string"==typeof U)j.url=U;else for(const ne in U)U.hasOwnProperty(ne)&&(j[ne]=U[ne]);if(!j.WebSocketCtor&&WebSocket)j.WebSocketCtor=WebSocket;else if(!j.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(U){const W=new L(this._config,this.destination);return W.operator=U,W.source=this,W}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new e.x}multiplex(U,W,j){const ne=this;return new s.y(ee=>{try{ne.next(U())}catch(te){ee.error(te)}const de=ne.subscribe({next:te=>{try{j(te)&&ee.next(te)}catch(ie){ee.error(ie)}},error:te=>ee.error(te),complete:()=>ee.complete()});return()=>{try{ne.next(W())}catch(te){ee.error(te)}de.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:U,protocol:W,url:j,binaryType:ne}=this._config,ee=this._output;let de=null;try{de=W?new U(j,W):new U(j),this._socket=de,ne&&(this._socket.binaryType=ne)}catch(ie){return void ee.error(ie)}const te=new b.w0(()=>{this._socket=null,de&&1===de.readyState&&de.close()});de.onopen=ie=>{const{_socket:le}=this;if(!le)return de.close(),void this._resetState();const{openObserver:$}=this._config;$&&$.next(ie);const ge=this.destination;this.destination=M.Lv.create(C=>{if(1===de.readyState)try{const{serializer:i}=this._config;de.send(i(C))}catch(i){this.destination.error(i)}},C=>{const{closingObserver:i}=this._config;i&&i.next(void 0),C&&C.code?de.close(C.code,C.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:C}=this._config;C&&C.next(void 0),de.close(),this._resetState()}),ge&&ge instanceof d.t&&te.add(ge.subscribe(this.destination))},de.onerror=ie=>{this._resetState(),ee.error(ie)},de.onclose=ie=>{de===this._socket&&this._resetState();const{closeObserver:le}=this._config;le&&le.next(ie),ie.wasClean?ee.complete():ee.error(ie)},de.onmessage=ie=>{try{const{deserializer:le}=this._config;ee.next(le(ie))}catch(le){ee.error(le)}}}_subscribe(U){const{source:W}=this;return W?W.subscribe(U):(this._socket||this._connectSocket(),this._output.subscribe(U),U.add(()=>{const{_socket:j}=this;0===this._output.observers.length&&(j&&(1===j.readyState||0===j.readyState)&&j.close(),this._resetState())}),U)}unsubscribe(){const{_socket:U}=this;U&&(1===U.readyState||0===U.readyState)&&U.close(),this._resetState(),super.unsubscribe()}}var w=p(5e3),D=p(5043),S=p(5986);let k=(()=>{class E{constructor(W,j){this.logger=W,this.sessionService=j,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(W,j){(!this.socket||this.socket.closed)&&(this.wsUrl=W,this.nodeIndex=j,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:W,protocol:[this.sessionService.getItem("token")||"",j]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){var W;null===(W=this.socket)||void 0===W||W.pipe((0,f.R)(this.unSubs[1])).subscribe({next:j=>{if((j="string"==typeof j?JSON.parse(j):j).error)this.handleError(j.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(j)),j.source){case"LND":this.lndWSMessages.next(j);break;case"CLN":this.clWSMessages.next(j);break;case"ECL":this.eclWSMessages.next(j)}},error:j=>this.handleError(j),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(W){this.logger.error(W),this.clWSMessages.error(W),this.eclWSMessages.error(W),this.lndWSMessages.error(W),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 E.\u0275fac=function(W){return new(W||E)(w.LFG(D.mQ),w.LFG(S.m))},E.\u0275prov=w.Yz7({token:E,factory:E.\u0275fac}),E})()},8750:(ze,K,p)=>{"use strict";p.d(K,{m:()=>tr});var t=p(9808),e=p(1402),f=p(3075),M=p(8138),s=p(9546),b=p(5e3),d=p(3270),R=p(3322),h=p(7093);p(3191);let Ke=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[d.IR]]}),It})(),re=(()=>{class It{constructor(vt,qt){(0,t.PM)(qt)&&!vt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(vt,qt=[]){return{ngModule:It,providers:vt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),vt)},{provide:d.Bs,useValue:qt,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),vt)},{provide:d.Bs,useValue:qt,multi:!0}]}}}return It.\u0275fac=function(vt){return new(vt||It)(b.LFG(d.wY),b.LFG(b.Lbi))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[h.ae,R.aT,Ke],h.ae,R.aT,Ke]}),It})();var qe=p(5113),bt=p(508),Vt=p(8966),bi=p(1079),wi=p(7544),Xi=p(7423);p(449),p(5664);let jn=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[bt.BQ,bt.si],bt.BQ]}),It})();var Nn=p(9224),$n=p(7446),_n=p(6856),Si=p(1125),ji=p(3954),wn=p(5245),Kn=p(7531),nr=p(4623),lr=p(2181),qr=p(6087),zr=p(5899),ls=p(773),Jr=p(9814),zs=p(4107),Ms=p(2638),cs=p(2368);p(1159),p(6360),p(925),p(727),p(226);let _s=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({imports:[[t.ez,bt.BQ],bt.BQ]}),It})();var or=p(7261),ns=p(4847),Vs=p(5615),er=p(2075),rs=p(3251),Wr=p(4594),Or=p(7238),kr=p(149),us=p(6688),vs=p(1210),Vn=p(159),je=p(8129),Et=p(9776);let Je=(()=>{class It extends Et.Xj{_createContainer(){const vt=document.createElement("div");vt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(vt),this._containerElement=vt}}return It.\u0275fac=function(){let li;return function(qt){return(li||(li=b.n5z(It)))(qt||It)}}(),It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();var Pt=p(5043),ri=p(7731);const Mi={suppressScrollX:!1,suppressScrollY:!1};let Ii=(()=>{class It extends bt.LF{format(vt,qt){if("input"===qt){let Ei=vt.getDate().toString();return Ei=+Ei<10?"0"+Ei:Ei,Ei+"/"+ri.gg[vt.getMonth()].name.toUpperCase()+"/"+vt.getFullYear()}return ri.gg[vt.getMonth()].name.toUpperCase()+" "+vt.getFullYear()}}return It.\u0275fac=function(){let li;return function(qt){return(li||(li=b.n5z(It)))(qt||It)}}(),It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const tn={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 tr=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:[{provide:Pt.mQ,useClass:Pt.LG},{provide:je.op,useValue:Mi},{provide:or.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Vt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:bt._A,useClass:Ii},{provide:bt.sG,useValue:tn},{provide:Et.Xj,useClass:Je},t.JJ,t.rS,t.uU],imports:[[t.ez,f.u5,f.UX,s.uH,re,qe.xu,Vt.Is,Xi.ot,jn,Nn.QW,$n.p9,Si.To,ji.N6,_n.FA,bt.XK,wn.Ps,Kn.c,nr.ie,lr.Tx,zr.Cv,ls.Cq,Jr.Fk,kr.dp,us.Hi,zs.LD,Ms.SJ,cs.rP,ns.JX,er.p0,Wr.g0,Or.AV,wi.g,qr.TU,Vs.T5,_s,rs.Nh,or.ZX,bi.Bb,vs.a4,Vn.OF,e.Bz,M.JF,je.Xd],f.u5,f.UX,s.uH,re,qe.xu,Vt.Is,Xi.ot,jn,Nn.QW,$n.p9,Si.To,ji.N6,_n.FA,bt.XK,wn.Ps,Kn.c,nr.ie,lr.Tx,zr.Cv,ls.Cq,Jr.Fk,kr.dp,us.Hi,zs.LD,Ms.SJ,cs.rP,ns.JX,er.p0,Wr.g0,Or.AV,wi.g,qr.TU,Vs.T5,_s,rs.Nh,or.ZX,bi.Bb,vs.a4,Vn.OF,je.Xd]}),It})()},7861:(ze,K,p)=>{"use strict";p.d(K,{M6:()=>w,Q2:()=>E,QO:()=>c,Tm:()=>le,Uy:()=>te,XT:()=>ee,_V:()=>ge,ac:()=>R,c0:()=>r,c1:()=>D,dc:()=>y,ey:()=>ne,fk:()=>ie,jS:()=>$,jW:()=>d,kS:()=>i,lC:()=>M,qR:()=>L,qi:()=>s,tj:()=>k,ts:()=>b,tw:()=>W,uO:()=>h,vI:()=>j,x4:()=>T,yb:()=>S,zQ:()=>de});var t=p(5620),e=p(7731);(0,t.PH)(e.pg.VOID);const M=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),s=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),b=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),d=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),R=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),h=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),D=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),S=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),k=(0,t.PH)(e.pg.SHOW_PUBKEY),E=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),W=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),j=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),ne=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ee=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),de=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),te=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),ie=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),le=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),$=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),ge=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),r=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),c=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),T=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),y=((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:(ze,K,p)=>{"use strict";p.d(K,{V:()=>mn});var t=p(6642),e=p(7579),f=p(9646),M=p(8306),s=p(4128),b=p(4004),d=p(5698),R=p(1365),h=p(5577),L=p(262),w=p(2722),D=p(2340),S=p(7731),k=p(8966),E=p(5e3),U=p(7093),W=p(773);let j=(()=>{class ti{constructor(st,Rt){this.dialogRef=st,this.data=Rt}}return ti.\u0275fac=function(st){return new(st||ti)(E.Y36(k.so),E.Y36(k.WI))},ti.\u0275cmp=E.Xpm({type:ti,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E._UZ(2,"mat-spinner"),E.TgZ(3,"h1"),E._uU(4),E.qZA()()()),2&st&&(E.xp6(4),E.Oqu(Rt.data.titleMessage))},directives:[U.xw,U.Wh,W.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ti})();var ne=p(5043),ee=p(7261),de=p(62),te=p(9808),ie=p(3322),le=p(159),$=p(9224),ge=p(7423),C=p(8129),i=p(5245),r=p(3390),u=p(6895),c=p(4834);const v=["scrollContainer"];function T(ti,Pi){if(1&ti&&E._UZ(0,"qr-code",15),2&ti){const st=E.oxw();E.Q6J("value",st.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(ti,Pi){1&ti&&E.GkF(0)}const y=function(ti){return{"h-40":ti}};function n(ti,Pi){if(1&ti&&(E.ynx(0),E.TgZ(1,"mat-card-content",16,17),E.YNc(3,I,1,0,"ng-container",18),E.qZA(),E.BQk()),2&ti){const st=E.oxw(),Rt=E.MAs(20);E.xp6(1),E.Q6J("ngClass",E.VKq(2,y,st.data.scrollable)),E.xp6(2),E.Q6J("ngTemplateOutlet",Rt)}}function _(ti,Pi){1&ti&&E.GkF(0)}function B(ti,Pi){if(1&ti&&(E.ynx(0),E.TgZ(1,"mat-card-content",19),E.YNc(2,_,1,0,"ng-container",18),E.qZA(),E.BQk()),2&ti){E.oxw();const st=E.MAs(20);E.xp6(2),E.Q6J("ngTemplateOutlet",st)}}function N(ti,Pi){1&ti&&(E.TgZ(0,"mat-icon",23),E._uU(1,"arrow_downward"),E.qZA())}function H(ti,Pi){1&ti&&(E.TgZ(0,"mat-icon",23),E._uU(1,"arrow_upward"),E.qZA())}function J(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"div",20)(1,"button",21),E.NdJ("click",function(){return E.CHM(st),E.oxw().onScroll()}),E.YNc(2,N,2,0,"mat-icon",22),E.YNc(3,H,2,0,"mat-icon",22),E.qZA()()}if(2&ti){const st=E.oxw();E.xp6(2),E.Q6J("ngIf","DOWN"===st.scrollDirection),E.xp6(1),E.Q6J("ngIf","UP"===st.scrollDirection)}}function ue(ti,Pi){1&ti&&(E.TgZ(0,"button",24),E._uU(1,"OK"),E.qZA()),2&ti&&E.Q6J("mat-dialog-close",!1)}function xe(ti,Pi){1&ti&&(E.TgZ(0,"button",25),E._uU(1,"Close"),E.qZA()),2&ti&&E.Q6J("mat-dialog-close",!1)}function Pe(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"button",26),E.NdJ("copied",function(Zt){return E.CHM(st),E.oxw().onCopyField(Zt)}),E._uU(1),E.qZA()}if(2&ti){const st=E.oxw();E.Q6J("payload",st.showCopyField),E.xp6(1),E.hij("Copy ",st.showCopyName,"")}}function Se(ti,Pi){1&ti&&(E.TgZ(0,"button",25),E._uU(1,"Close"),E.qZA()),2&ti&&E.Q6J("mat-dialog-close",!1)}function Q(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"button",26),E.NdJ("copied",function(Zt){return E.CHM(st),E.oxw().onCopyField(Zt)}),E._uU(1),E.qZA()}if(2&ti){const st=E.oxw();E.Q6J("payload",st.showQRField),E.xp6(1),E.hij("Copy ",st.showQRName,"")}}function Ue(ti,Pi){if(1&ti&&E._UZ(0,"qr-code",15),2&ti){const st=E.oxw(2);E.Q6J("value",st.showQRField)("size",200)("errorCorrectionLevel","L")}}function Ce(ti,Pi){if(1&ti&&(E.TgZ(0,"p",32),E._uU(1),E.qZA()),2&ti){const st=E.oxw(2);E.xp6(1),E.Oqu(st.data.titleMessage)}}function q(ti,Pi){1&ti&&E._UZ(0,"span",46),2&ti&&E.Q6J("innerHTML",Pi.$implicit,E.oJD)}function Ae(ti,Pi){if(1&ti&&(E.ynx(0),E.YNc(1,q,1,1,"span",45),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Q6J("ngForOf",st.value)}}function ut(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.ALo(2,"date"),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,1e3*st.value,"dd/MMM/y HH:mm"))}}function Ie(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.ALo(2,"number"),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,st.value,st.digitsInfo?st.digitsInfo:"1.0-3"))}}function De(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(st.value?"True":"False")}}function ae(ti,Pi){1&ti&&(E.TgZ(0,"mat-icon",51),E._uU(1,"info"),E.qZA())}const we=function(ti){return{"failed-status":ti}};function ye(ti,Pi){if(1&ti&&(E.TgZ(0,"p",49),E._uU(1),E.YNc(2,ae,2,0,"mat-icon",50),E.qZA()),2&ti){const st=E.oxw(3).$implicit,Rt=E.oxw(4);E.Q6J("ngClass",E.VKq(3,we,st.value===Rt.LoopStateEnum.FAILED)),E.xp6(1),E.hij(" ",st.value," "),E.xp6(1),E.Q6J("ngIf",st.value===Rt.LoopStateEnum.FAILED)}}function Y(ti,Pi){if(1&ti&&E._uU(0),2&ti){const st=E.oxw(3).$implicit;E.Oqu(st.value)}}function z(ti,Pi){if(1&ti&&(E.ynx(0),E.YNc(1,ye,3,5,"p",47),E.YNc(2,Y,1,1,"ng-template",null,48,E.W1O),E.BQk()),2&ti){const st=E.MAs(3),Rt=E.oxw(2).$implicit,Zt=E.oxw(4);E.xp6(1),E.Q6J("ngIf","SWAP"===Zt.data.openedBy&&"state"===Rt.key)("ngIfElse",st)}}function be(ti,Pi){if(1&ti&&(E.TgZ(0,"span")(1,"span",42),E.YNc(2,Ae,2,1,"ng-container",43),E.YNc(3,ut,3,4,"ng-container",43),E.YNc(4,Ie,3,4,"ng-container",43),E.YNc(5,De,2,1,"ng-container",43),E.YNc(6,z,4,2,"ng-container",44),E.qZA()()),2&ti){const st=E.oxw().$implicit,Rt=E.oxw(4);E.xp6(1),E.Q6J("ngSwitch",st.type),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.ARRAY),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.DATE_TIME),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.NUMBER),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.BOOLEAN)}}function fe(ti,Pi){1&ti&&(E.TgZ(0,"span",52),E._uU(1,"\xa0"),E.qZA())}function He(ti,Pi){if(1&ti&&(E.TgZ(0,"div",37)(1,"h4",38),E._uU(2),E.qZA(),E.YNc(3,be,7,5,"span",39),E.YNc(4,fe,2,0,"ng-template",null,40,E.W1O),E._UZ(6,"mat-divider",41),E.qZA()),2&ti){const st=Pi.$implicit,Rt=E.MAs(5);E.s9C("fxFlex.gt-md",st.width),E.xp6(2),E.Oqu(st.title),E.xp6(1),E.Q6J("ngIf",st&&(!!st.value||0===st.value))("ngIfElse",Rt)}}function pt(ti,Pi){if(1&ti&&(E.TgZ(0,"div")(1,"div",35),E.YNc(2,He,7,4,"div",36),E.qZA()()),2&ti){const st=Pi.$implicit;E.xp6(2),E.Q6J("ngForOf",st)}}function et(ti,Pi){if(1&ti&&(E.TgZ(0,"div",33),E.YNc(1,pt,3,1,"div",34),E.qZA()),2&ti){const st=E.oxw(2);E.xp6(1),E.Q6J("ngForOf",st.messageObjs)}}const Lt=function(ti){return{"display-none":ti}};function di(ti,Pi){if(1&ti&&(E.TgZ(0,"div",27)(1,"div",28),E.YNc(2,Ue,1,3,"qr-code",2),E.qZA(),E.TgZ(3,"div",29),E.YNc(4,Ce,2,1,"p",30),E.YNc(5,et,2,1,"div",31),E.qZA()()),2&ti){const st=E.oxw();E.xp6(1),E.Q6J("ngClass",E.VKq(4,Lt,""===st.showQRField||st.screenSize!==st.screenSizeEnum.XS&&st.screenSize!==st.screenSizeEnum.SM)),E.xp6(1),E.Q6J("ngIf",""!==st.showQRField),E.xp6(2),E.Q6J("ngIf",st.data.titleMessage),E.xp6(1),E.Q6J("ngIf",(null==st.messageObjs?null:st.messageObjs.length)>0)}}let Wt=(()=>{class ti{constructor(st,Rt,Zt,fi,Ni,ki){this.dialogRef=st,this.data=Rt,this.logger=Zt,this.snackBar=fi,this.commonService=Ni,this.renderer=ki,this.LoopStateEnum=S.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.screenSize="",this.screenSizeEnum=S.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(st){st&&(this.scrollContainer=st,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Rt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Rt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===S.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(st){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+st)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ti.\u0275fac=function(st){return new(st||ti)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ne.mQ),E.Y36(ee.ux),E.Y36(de.v),E.Y36(E.Qsj))},ti.\u0275cmp=E.Xpm({type:ti,selectors:[["rtl-alert-message"]],viewQuery:function(st,Rt){if(1&st&&E.Gf(v,5),2&st){let Zt;E.iGM(Zt=E.CRH())&&(Rt.container=Zt.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E.YNc(2,T,1,3,"qr-code",2),E.qZA(),E.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),E._uU(7),E.qZA()(),E.TgZ(8,"button",7),E.NdJ("click",function(){return Rt.onClose()}),E._uU(9,"X"),E.qZA()(),E.YNc(10,n,4,4,"ng-container",8),E.YNc(11,B,3,1,"ng-container",8),E.YNc(12,J,4,2,"div",9),E.TgZ(13,"div",10),E.YNc(14,ue,2,1,"button",11),E.YNc(15,xe,2,1,"button",12),E.YNc(16,Pe,2,2,"button",13),E.YNc(17,Se,2,1,"button",12),E.YNc(18,Q,2,2,"button",13),E.qZA()()(),E.YNc(19,di,6,6,"ng-template",null,14,E.W1O)),2&st&&(E.xp6(1),E.Q6J("ngClass",E.VKq(12,Lt,""===Rt.showQRField||Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM)),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField),E.xp6(1),E.Q6J("fxFlex",""===Rt.showQRField||Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM?"100":"70"),E.xp6(4),E.Oqu(Rt.data.alertTitle||Rt.alertTypeEnum[Rt.data.type]),E.xp6(3),E.Q6J("ngIf",Rt.data.scrollable),E.xp6(1),E.Q6J("ngIf",!Rt.data.scrollable),E.xp6(1),E.Q6J("ngIf",Rt.data.scrollable&&Rt.shouldScroll),E.xp6(2),E.Q6J("ngIf",(!Rt.showQRField||""===Rt.showQRField)&&""===Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField))},directives:[U.xw,U.Wh,U.yH,te.mk,ie.oO,te.O5,le.uU,$.dk,ge.lW,$.dn,C.$V,te.tP,i.Hw,r.h,k.ZT,u.y,te.sg,te.RF,te.n9,te.ED,c.d],pipes:[te.uU,te.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ti})();var Gt=p(2687),ui=p(7861),Ot=p(5620),Nt=p(3075),gt=p(9546),tt=p(7322),xt=p(7531),ei=p(6534);function Kt(ti,Pi){if(1&ti&&(E.TgZ(0,"div",18),E._UZ(1,"fa-icon",19),E.TgZ(2,"span"),E._uU(3),E.qZA()()),2&ti){const st=E.oxw();E.xp6(1),E.Q6J("icon",st.faExclamationTriangle),E.xp6(2),E.Oqu(st.warningMessage)}}function Re(ti,Pi){if(1&ti&&(E.TgZ(0,"div",20),E._UZ(1,"fa-icon",19),E.TgZ(2,"span"),E._uU(3),E.qZA()()),2&ti){const st=E.oxw();E.xp6(1),E.Q6J("icon",st.faInfoCircle),E.xp6(2),E.Oqu(st.informationMessage)}}function Oe(ti,Pi){if(1&ti&&(E.TgZ(0,"p",21),E._uU(1),E.qZA()),2&ti){const st=E.oxw();E.xp6(1),E.Oqu(st.data.titleMessage)}}function ce(ti,Pi){1&ti&&E._UZ(0,"div",36),2&ti&&E.Q6J("innerHTML",Pi.$implicit,E.oJD)}function ve(ti,Pi){if(1&ti&&(E.ynx(0,34),E.YNc(1,ce,1,1,"div",35),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Q6J("ngForOf",st.value)}}function ht(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.ALo(2,"date"),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,1e3*st.value,"dd/MMM/y HH:mm"))}}function mt(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.ALo(2,"number"),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,st.value,"1.0-3"))}}function Ht(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(!0===st.value?"True":"False")}}function it(ti,Pi){if(1&ti&&(E.ynx(0),E._uU(1),E.BQk()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(st.value)}}function Ne(ti,Pi){if(1&ti&&(E.TgZ(0,"span")(1,"span",30),E.YNc(2,ve,2,1,"ng-container",31),E.YNc(3,ht,3,4,"ng-container",32),E.YNc(4,mt,3,4,"ng-container",32),E.YNc(5,Ht,2,1,"ng-container",32),E.YNc(6,it,2,1,"ng-container",33),E.qZA()()),2&ti){const st=E.oxw().$implicit,Rt=E.oxw(3);E.xp6(1),E.Q6J("ngSwitch",st.type),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.ARRAY),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.DATE_TIME),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.NUMBER),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.BOOLEAN)}}function nt(ti,Pi){1&ti&&(E.TgZ(0,"span",37),E._uU(1,"\xa0"),E.qZA())}function Xe(ti,Pi){if(1&ti&&(E.TgZ(0,"div",25)(1,"h4",26),E._uU(2),E.qZA(),E.YNc(3,Ne,7,5,"span",27),E.YNc(4,nt,2,0,"ng-template",null,28,E.W1O),E._UZ(6,"mat-divider",29),E.qZA()),2&ti){const st=Pi.$implicit,Rt=E.MAs(5);E.s9C("fxFlex.gt-md",st.width),E.xp6(2),E.Oqu(st.title),E.xp6(1),E.Q6J("ngIf",st&&(!!st.value||0===st.value))("ngIfElse",Rt)}}function Ee(ti,Pi){if(1&ti&&(E.TgZ(0,"div")(1,"div",23),E.YNc(2,Xe,7,4,"div",24),E.qZA()()),2&ti){const st=Pi.$implicit;E.xp6(2),E.Q6J("ngForOf",st)}}function Ge(ti,Pi){if(1&ti&&(E.TgZ(0,"div"),E.YNc(1,Ee,3,1,"div",22),E.qZA()),2&ti){const st=E.oxw();E.xp6(1),E.Q6J("ngForOf",st.messageObjs)}}function ot(ti,Pi){if(1&ti&&(E.TgZ(0,"p",21),E._uU(1),E.qZA()),2&ti){const st=E.oxw(2);E.xp6(1),E.Oqu(st.data.titleMessage)}}function lt(ti,Pi){if(1&ti&&(E.TgZ(0,"mat-error"),E._uU(1),E.qZA()),2&ti){const st=E.oxw(2).$implicit;E.xp6(1),E.hij("",st.placeholder," is required.")}}function Ct(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"mat-form-field",41)(1,"input",42),E.NdJ("ngModelChange",function(Zt){return E.CHM(st),E.oxw().$implicit.inputValue=Zt}),E.ALo(2,"lowercase"),E.qZA(),E.YNc(3,lt,2,1,"mat-error",11),E.TgZ(4,"mat-hint"),E._uU(5),E.qZA()()}if(2&ti){const st=E.oxw(),Rt=st.$implicit,Zt=st.index;E.Q6J("fxFlex",Rt.width),E.xp6(1),E.MGl("name","input",Zt,""),E.Q6J("autoFocus",0===Zt)("placeholder",Rt.placeholder)("min",Rt.min)("step",Rt.step)("type",E.lcZ(2,11,Rt.inputType))("ngModel",Rt.inputValue)("tabindex",Zt+1),E.xp6(2),E.Q6J("ngIf",!Rt.inputValue),E.xp6(2),E.Oqu(Rt.hintFunction?Rt.hintFunction(Rt.inputValue):Rt.hintText)}}function mi(ti,Pi){if(1&ti&&(E.ynx(0),E.YNc(1,Ct,6,13,"mat-form-field",40),E.BQk()),2&ti){const st=Pi.$implicit,Rt=E.oxw(2);E.xp6(1),E.Q6J("ngIf",!st.advancedField||Rt.showAdvanced)}}function Jt(ti,Pi){if(1&ti&&(E.TgZ(0,"div",38),E.YNc(1,ot,2,1,"p",10),E.TgZ(2,"div",39),E.YNc(3,mi,2,1,"ng-container",22),E.qZA()()),2&ti){const st=E.oxw();E.xp6(1),E.Q6J("ngIf",st.data.titleMessage),E.xp6(2),E.Q6J("ngForOf",st.getInputs)}}function $t(ti,Pi){1&ti&&(E.TgZ(0,"p"),E._uU(1,"Show Advanced"),E.qZA())}function Ki(ti,Pi){1&ti&&(E.TgZ(0,"p"),E._uU(1,"Hide Advanced"),E.qZA())}function hi(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"button",43),E.NdJ("click",function(){return E.CHM(st),E.oxw().onShowAdvanced()}),E.YNc(1,$t,2,0,"p",27),E.YNc(2,Ki,2,0,"ng-template",null,44,E.W1O),E.qZA()}if(2&ti){const st=E.MAs(3),Rt=E.oxw();E.xp6(1),E.Q6J("ngIf",!Rt.showAdvanced)("ngIfElse",st)}}function ai(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"button",45),E.NdJ("click",function(){E.CHM(st);const Zt=E.oxw();return Zt.onClose(Zt.getInputs)}),E._uU(1),E.qZA()}if(2&ti){const st=E.oxw();E.xp6(1),E.Oqu(st.yesBtnText)}}function Ji(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"button",46),E.NdJ("click",function(){return E.CHM(st),E.oxw().onClose(!0)}),E._uU(1),E.qZA()}if(2&ti){const st=E.oxw();E.xp6(1),E.Oqu(st.yesBtnText)}}let Gi=(()=>{class ti{constructor(st,Rt,Zt,fi){this.dialogRef=st,this.data=Rt,this.logger=Zt,this.store=fi,this.faInfoCircle=Gt.sqG,this.faExclamationTriangle=Gt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===S.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(st){if(st&&this.getInputs&&this.getInputs.some(Rt=>void 0===Rt.inputValue))return!0;!this.showAdvanced&&st.length&&(st=null==st?void 0:st.reduce((Rt,Zt)=>(Zt.advancedField||Rt.push(Zt),Rt),[])),this.store.dispatch((0,ui.yb)({payload:st}))}}return ti.\u0275fac=function(st){return new(st||ti)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ne.mQ),E.Y36(Ot.yh))},ti.\u0275cmp=E.Xpm({type:ti,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(st,Rt){1&st&&(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 Rt.onClose(!1)}),E._uU(7,"X"),E.qZA()(),E.TgZ(8,"mat-card-content",6)(9,"form",7),E.YNc(10,Kt,4,2,"div",8),E.YNc(11,Re,4,2,"div",9),E.YNc(12,Oe,2,1,"p",10),E.YNc(13,Ge,2,1,"div",11),E.YNc(14,Jt,4,2,"div",12),E.TgZ(15,"div",13)(16,"button",14),E.NdJ("click",function(){return Rt.onClose(!1)}),E._uU(17),E.qZA(),E.YNc(18,hi,4,2,"button",15),E.YNc(19,ai,2,1,"button",16),E.YNc(20,Ji,2,1,"button",17),E.qZA()()()()()),2&st&&(E.xp6(5),E.Oqu(Rt.data.alertTitle||Rt.alertTypeEnum[Rt.data.type]),E.xp6(5),E.Q6J("ngIf",Rt.warningMessage&&""!==Rt.warningMessage),E.xp6(1),E.Q6J("ngIf",Rt.informationMessage&&""!==Rt.informationMessage),E.xp6(1),E.Q6J("ngIf",Rt.data.titleMessage&&!Rt.flgShowInput),E.xp6(1),E.Q6J("ngIf",(null==Rt.messageObjs?null:Rt.messageObjs.length)>0),E.xp6(1),E.Q6J("ngIf",Rt.flgShowInput),E.xp6(3),E.Oqu(Rt.noBtnText),E.xp6(1),E.Q6J("ngIf",Rt.hasAdvanced),E.xp6(1),E.Q6J("ngIf",Rt.flgShowInput),E.xp6(1),E.Q6J("ngIf",!Rt.flgShowInput))},directives:[U.xw,U.yH,$.dk,U.Wh,ge.lW,$.dn,Nt._Y,Nt.JL,Nt.F,te.O5,gt.BN,te.sg,te.RF,te.n9,te.ED,c.d,tt.KE,xt.Nt,ei.q,Nt.Fj,Nt.Q7,r.h,Nt.JJ,Nt.On,tt.TO,tt.bx],pipes:[te.uU,te.JJ,te.i8],styles:[""]}),ti})();var zi=p(1786),Ui=p(4107),Be=p(508);function Tt(ti,Pi){if(1&ti&&(E.TgZ(0,"mat-option",23),E._uU(1),E.qZA()),2&ti){const st=Pi.$implicit;E.Q6J("value",st),E.xp6(1),E.hij(" ",st.infoName," ")}}function _e(ti,Pi){if(1&ti){const st=E.EpF();E.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),E.NdJ("valueChange",function(Zt){return E.CHM(st),E.oxw().selInfoType=Zt}),E.YNc(3,Tt,2,2,"mat-option",22),E.qZA()()()}if(2&ti){const st=E.oxw();E.xp6(2),E.Q6J("value",st.selInfoType),E.xp6(1),E.Q6J("ngForOf",st.infoTypes)}}const Ke=function(ti){return{"display-none":ti}};let yt=(()=>{class ti{constructor(st,Rt,Zt,fi,Ni){this.dialogRef=st,this.data=Rt,this.logger=Zt,this.snackBar=fi,this.commonService=Ni,this.faReceipt=Gt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=S.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((st,Rt)=>{this.infoTypes.push({infoID:Rt+1,infoKey:"node URI "+(Rt+1),infoName:"Node URI "+(Rt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(st){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+st)}}return ti.\u0275fac=function(st){return new(st||ti)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ne.mQ),E.Y36(ee.ux),E.Y36(de.v))},ti.\u0275cmp=E.Xpm({type:ti,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E._UZ(2,"qr-code",2),E.qZA(),E.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),E._UZ(6,"fa-icon",6),E.TgZ(7,"span",7),E._uU(8),E.qZA()(),E.TgZ(9,"button",8),E.NdJ("click",function(){return Rt.onClose()}),E._uU(10,"X"),E.qZA()(),E.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),E._UZ(14,"qr-code",2),E.qZA(),E.YNc(15,_e,4,2,"div",12),E.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),E._uU(19),E.qZA(),E.TgZ(20,"span",16),E._uU(21),E.qZA()()(),E._UZ(22,"mat-divider",17),E.TgZ(23,"div",18)(24,"button",19),E.NdJ("copied",function(fi){return Rt.onCopyPubkey(fi)}),E._uU(25),E.qZA()()()()()()),2&st&&(E.xp6(1),E.Q6J("ngClass",E.VKq(15,Ke,Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM)),E.xp6(1),E.s9C("value",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.Q6J("size",Rt.qrWidth)("errorCorrectionLevel","L"),E.xp6(4),E.Q6J("icon",Rt.faReceipt),E.xp6(2),E.Oqu(Rt.selInfoType.infoName),E.xp6(5),E.Q6J("ngClass",E.VKq(17,Ke,Rt.screenSize!==Rt.screenSizeEnum.XS&&Rt.screenSize!==Rt.screenSizeEnum.SM)),E.xp6(1),E.s9C("value",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.Q6J("size",Rt.qrWidth)("errorCorrectionLevel","L"),E.xp6(1),E.Q6J("ngIf",Rt.information.uris&&Rt.information.uris.length>0),E.xp6(4),E.Oqu(Rt.selInfoType.infoName),E.xp6(2),E.Oqu(0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.xp6(3),E.s9C("payload",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.xp6(1),E.hij("Copy ",Rt.selInfoType.infoKey,""))},directives:[U.xw,U.Wh,U.yH,te.mk,ie.oO,le.uU,$.dk,gt.BN,ge.lW,$.dn,te.O5,tt.KE,Ui.gD,te.sg,Be.ey,c.d,r.h,u.y],styles:[""]}),ti})();var re=p(6523),qe=p(429),bt=p(2994),Vt=p(8377),bi=p(8138),wi=p(7998),Xi=p(5986),Zi=p(8104),on=p(1402);let mn=(()=>{class ti{constructor(st,Rt,Zt,fi,Ni,ki,un,jn,Nn,$n,_n){this.actions=st,this.httpClient=Rt,this.store=Zt,this.logger=fi,this.wsService=Ni,this.sessionService=ki,this.commonService=un,this.dataService=jn,this.dialog=Nn,this.snackBar=$n,this.router=_n,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new e.x,new e.x],this.closeAllDialogs=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALL_DIALOGS),(0,b.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SNACK_BAR),(0,b.U)(Si=>{"string"==typeof Si.payload?this.snackBar.open(Si.payload):this.snackBar.open(Si.payload.message,"","ERROR"===Si.payload.type?{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Si.payload.type?{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SPINNER),(0,b.U)(Si=>{Si.payload!==S.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(j,{data:{titleMessage:Si.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_SPINNER),(0,b.U)(Si=>{if(Si.payload!==S.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Si.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(ji=>{ji.componentInstance&&ji.componentInstance.data&&ji.componentInstance.data.titleMessage&&ji.componentInstance.data.titleMessage===Si.payload&&ji.close()})}catch(ji){this.logger.error(ji)}})),{dispatch:!1}),this.openAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_ALERT),(0,b.U)(Si=>{const ji=JSON.parse(JSON.stringify(Si.payload));ji.width||(ji.width=this.alertWidth),this.dialogRef=this.dialog.open(Si.payload.data.component?Si.payload.data.component:Wt,ji)})),{dispatch:!1}),this.closeAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALERT),(0,b.U)(Si=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Si.payload),Si.payload))),{dispatch:!1}),this.openConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_CONFIRMATION),(0,b.U)(Si=>{const ji=JSON.parse(JSON.stringify(Si.payload));ji.width||(ji.width=this.confirmWidth),this.dialogRef=this.dialog.open(Gi,ji)})),{dispatch:!1}),this.closeConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,b.U)(Si=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Si.payload),Si.payload))),{dispatch:!1}),this.showNodePubkey=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Vt.R4)),(0,h.z)(([Si,ji])=>(this.sessionService.getItem("token")&&ji.identity_pubkey?this.store.dispatch((0,ui.qR)({payload:{data:{information:ji,component:yt}}})):this.snackBar.open("Node Pubkey does not exist."),(0,f.of)({type:S.pg.VOID}))))),this.appConfigFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_RTL_CONFIG),(0,h.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===S.cu.XS||this.screenSize===S.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===S.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,ui.ac)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(D.NZ.CONF_API+"/rtlconf"):this.httpClient.get(D.NZ.CONF_API+"/rtlconfinit"))),(0,b.U)(Si=>{this.logger.info(Si),this.store.dispatch((0,ui.uO)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.COMPLETED}}));let ji=null;return Si.nodes.forEach(wn=>{var Kn,nr;wn.settings.currencyUnits=[...S.uA,(null===(Kn=wn.settings)||void 0===Kn?void 0:Kn.currencyUnit)?null===(nr=wn.settings)||void 0===nr?void 0:nr.currencyUnit:""],+(wn.index||-1)===Si.selectedNodeIndex&&(ji=wn)}),ji?(this.store.dispatch((0,ui.fk)({payload:{uiMessage:S.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:ji,isInitialSetup:!0}})),{type:S.pg.SET_RTL_CONFIG,payload:Si}):{type:S.pg.VOID}}),(0,L.K)(Si=>(this.handleErrorWithAlert("FetchRTLConfig",S.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",D.NZ.CONF_API,Si),(0,f.of)({type:S.pg.VOID}))))),this.settingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SAVE_SETTINGS),(0,h.z)(Si=>{this.store.dispatch((0,ui.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.INITIATED}}));let ji=new M.y;if(Si.payload.settings&&Si.payload.defaultNodeIndex){const wn=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Si.payload.settings}),Kn=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Si.payload.defaultNodeIndex});ji=(0,s.D)([wn,Kn])}else Si.payload.settings&&!Si.payload.defaultNodeIndex?ji=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Si.payload.settings}):!Si.payload.settings&&Si.payload.defaultNodeIndex&&(ji=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Si.payload.defaultNodeIndex}));return ji.pipe((0,b.U)(wn=>(this.logger.info(wn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Si.payload.uiMessage})),{type:S.pg.OPEN_SNACK_BAR,payload:wn.length?wn[0].message+".":wn.message+"."})),(0,L.K)(wn=>(this.handleErrorWithAlert("UpdateSettings",Si.payload.uiMessage,"Update Settings Failed!",D.NZ.CONF_API,wn.length?wn[0]:wn),(0,f.of)({type:S.pg.VOID}))))}))),this.updateServicesettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.UPDATE_SERVICE_SETTINGS),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/updateServiceSettings",Si.payload).pipe((0,b.U)(ji=>(this.logger.info(ji),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.Tm)({payload:Si.payload})),{type:S.pg.OPEN_SNACK_BAR,payload:ji.message+"."})),(0,L.K)(ji=>(this.handleErrorWithAlert("UpdateServiceSettings",Si.payload.uiMessage,"Update Service Settings Failed!",D.NZ.CONF_API,ji),(0,f.of)({type:S.pg.VOID})))))))),this.twoFASettingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.TWO_FA_SAVE_SETTINGS),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/update2FA",{secret2fa:Si.payload.secret2fa}))),(0,R.M)(this.store.select(Vt.Yj)),(0,b.U)(([Si,ji])=>{this.logger.info(Si),ji.enable2FA=!ji.enable2FA,this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.XT)({payload:ji}))}),(0,L.K)(Si=>(this.handleErrorWithAlert("Update2FASettings",S.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",D.NZ.CONF_API,Si),(0,f.of)({type:S.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_CONFIG),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/config/"+Si.payload).pipe((0,b.U)(ji=>(this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.OPEN_CONFIG_FILE})),{type:S.pg.SHOW_CONFIG,payload:ji})),(0,L.K)(ji=>(this.handleErrorWithAlert("fetchConfig",S.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",D.NZ.CONF_API+"/config/"+Si.payload,ji),(0,f.of)({type:S.pg.VOID})))))))),this.showLnConfig=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_CONFIG),(0,b.U)(Si=>Si.payload)),{dispatch:!1}),this.isAuthorized=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED),(0,h.z)(Si=>(this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Si.payload&&""!==Si.payload.trim()?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Si.payload&&""!==Si.payload.trim()?Si.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,b.U)(ji=>(this.logger.info(ji),this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:S.pg.IS_AUTHORIZED_RES,payload:ji})),(0,L.K)(ji=>(this.handleErrorWithAlert("IsAuthorized",S.m6.NO_SPINNER,"Authorization Failed",D.NZ.AUTHENTICATE_API,ji),(0,f.of)({type:S.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED_RES),(0,b.U)(Si=>Si.payload)),{dispatch:!1}),this.authLogin=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGIN),(0,R.M)(this.store.select(Vt.Yj)),(0,h.z)(([Si,ji])=>(this.store.dispatch((0,re.Ll)({payload:null})),this.store.dispatch((0,qe.xH)({payload:null})),this.store.dispatch((0,bt.Fd)({payload:null})),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Si.payload.password?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Si.payload.password?Si.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Si.payload.twoFAToken?Si.payload.twoFAToken:""}).pipe((0,b.U)(wn=>{this.logger.info(wn),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.COMPLETED}})),this.setLoggedInDetails(Si.payload.defaultPassword,wn)}),(0,L.K)(wn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",S.m6.NO_SPINNER,wn),+ji.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:wn.error&&wn.error.error?wn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.VERIFY_TWO_FA),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/token",{authentication2FA:Si.payload.token}).pipe((0,b.U)(ji=>{this.logger.info(ji),this.store.dispatch((0,ui.uO)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Si.payload.authResponse)}),(0,L.K)(ji=>(this.handleErrorWithAlert("VerifyToken",S.m6.VERIFY_TOKEN,"Authorization Failed!",D.NZ.AUTHENTICATE_API+"/token",ji),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGOUT),(0,R.M)(this.store.select(Vt.Yj)),(0,h.z)(([Si,ji])=>(this.store.dispatch((0,ui.ac)({payload:S.m6.LOG_OUT})),this.httpClient.get(D.NZ.AUTHENTICATE_API+"/logout").pipe((0,b.U)(wn=>{this.logger.info(wn),this.store.dispatch((0,ui.uO)({payload:S.m6.LOG_OUT})),+ji.sso.rtlSSO?window.location.href=ji.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,ui._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,t.GW)(()=>this.actions.pipe((0,w.R)(this.unSubs[1]),(0,t.l4)(S.pg.RESET_PASSWORD),(0,h.z)(Si=>(this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/reset",{currPassword:Si.payload.currPassword,newPassword:Si.payload.newPassword}).pipe((0,w.R)(this.unSubs[0]),(0,b.U)(ji=>(this.logger.info(ji),this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,ui.jW)({payload:"Password Reset Successful!"})),this.SetToken(ji.token),{type:S.pg.RESET_PASSWORD_RES,payload:ji.token})),(0,L.K)(ji=>(this.handleErrorWithAlert("ResetPassword",S.m6.NO_SPINNER,"Password Reset Failed!",D.NZ.AUTHENTICATE_API+"/reset",ji),(0,f.of)({type:S.pg.VOID})))))))),this.setSelectedNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SET_SELECTED_NODE),(0,h.z)(Si=>{var ji;return this.store.dispatch((0,ui.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/updateSelNode/"+(null===(ji=Si.payload.currentLnNode)||void 0===ji?void 0:ji.index)+"/"+Si.payload.prevLnNodeIndex).pipe((0,b.U)(wn=>(this.logger.info(wn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Si.payload.uiMessage})),this.initializeNode(Si.payload.currentLnNode,Si.payload.isInitialSetup),{type:S.pg.VOID})),(0,L.K)(wn=>(this.handleErrorWithAlert("UpdateSelNode",Si.payload.uiMessage,"Update Selected Node Failed!",D.NZ.CONF_API+"/updateSelNode",wn),(0,f.of)({type:S.pg.VOID}))))}))),this.fetchFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_FILE),(0,h.z)(Si=>{this.store.dispatch((0,ui.ac)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.INITIATED}}));const ji="?channel="+Si.payload.channelPoint+(Si.payload.path?"&path="+Si.payload.path:"");return this.httpClient.get(D.NZ.CONF_API+"/file"+ji).pipe((0,b.U)(wn=>(this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),{type:S.pg.SHOW_FILE,payload:wn})),(0,L.K)(wn=>(this.handleErrorWithAlert("fetchFile",S.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",D.NZ.CONF_API+"/file"+ji,{status:this.commonService.extractErrorNumber(wn),error:{error:this.commonService.extractErrorCode(wn)}}),(0,f.of)({type:S.pg.VOID}))))}))),this.showFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_FILE),(0,b.U)(Si=>Si.payload)),{dispatch:!1})}initializeNode(st,Rt){this.logger.info("Initializing node from RTL Effects.");const Zt=Rt?"":"HOME",fi={userPersona:st.settings.userPersona,channelBackupPath:st.settings.channelBackupPath,selCurrencyUnit:st.settings.currencyUnit,currencyUnits:S.uA,fiatConversion:st.settings.fiatConversion,lnImplementation:st.lnImplementation,swapServerUrl:st.settings.swapServerUrl,boltzServerUrl:st.settings.boltzServerUrl,enableOffers:st.settings.enableOffers,enablePeerswap:st.settings.enablePeerswap};if(st.settings.fiatConversion&&st.settings.currencyUnit&&(fi.currencyUnits=[...S.uA,st.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,ui.vI)({payload:st})),this.store.dispatch((0,re.Ll)({payload:fi})),this.store.dispatch((0,qe.xH)({payload:fi})),this.store.dispatch((0,bt.Fd)({payload:fi})),this.sessionService.getItem("token")){const Ni=st.lnImplementation?st.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ni);const ki=D.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":D.T5;switch(this.wsService.connectWebSocket((null==ki?void 0:ki.replace(/^http/,"ws"))+D.NZ.Web_SOCKET_API,st.index?st.index.toString():"-1"),Ni){case"CLN":this.store.dispatch((0,qe.CN)({payload:{loadPage:Zt}}));break;case"ECL":this.store.dispatch((0,bt.iz)({payload:{loadPage:Zt}}));break;default:this.store.dispatch((0,re.sQ)({payload:{loadPage:Zt}}))}}}SetToken(st){st?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",st)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(st,Rt){this.logger.info("Successfully Authorized!"),this.SetToken(Rt.token),this.sessionService.setItem("defaultPassword",st),st?(this.store.dispatch((0,ui.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,ui.ey)())}handleErrorWithoutAlert(st,Rt,Zt){this.logger.error("ERROR IN: "+st+"\n"+JSON.stringify(Zt)),401===Zt.status&&"Login"!==st?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,ui.uO)({payload:Rt})),this.store.dispatch((0,ui.qi)({payload:{action:st,status:S.Bn.ERROR,statusCode:Zt.status?Zt.status.toString():"",message:this.commonService.extractErrorMessage(Zt)}})))}handleErrorWithAlert(st,Rt,Zt,fi,Ni){if(this.logger.error(Ni),0===Ni.status&&Ni.statusText&&"Unknown Error"===Ni.statusText&&(Ni={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ni.status&&"Login"!==st)this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,ui.uO)({payload:Rt}));const ki=this.commonService.extractErrorMessage(Ni);this.store.dispatch((0,ui.qR)({payload:{data:{type:"ERROR",alertTitle:Zt,message:{code:Ni.status?Ni.status:"Unknown Error",message:ki,URL:fi},component:zi.H}}})),this.store.dispatch((0,ui.qi)({payload:{action:st,status:S.Bn.ERROR,statusCode:Ni.status?Ni.status.toString():"",message:ki,URL:fi}}))}}ngOnDestroy(){this.unSubs.forEach(st=>{st.next(null),st.complete()})}}return ti.\u0275fac=function(st){return new(st||ti)(E.LFG(t.eX),E.LFG(bi.eN),E.LFG(Ot.yh),E.LFG(ne.mQ),E.LFG(wi.d),E.LFG(Xi.m),E.LFG(de.v),E.LFG(Zi.D),E.LFG(k.uw),E.LFG(ee.ux),E.LFG(on.F0))},ti.\u0275prov=E.Yz7({token:ti,factory:ti.\u0275fac}),ti})()},8377:(ze,K,p)=>{"use strict";p.d(K,{R4:()=>b,Sr:()=>R,Yj:()=>s,dT:()=>M,gW:()=>h,ul:()=>d});var t=p(5620);const e=(0,t.ZF)("root"),M=((0,t.P1)(e,L=>L.apiURL),(0,t.P1)(e,L=>L.selNode)),s=(0,t.P1)(e,L=>L.appConfig),b=(0,t.P1)(e,L=>L.nodeData),d=(0,t.P1)(e,L=>L.apisCallStatus.Login),R=(0,t.P1)(e,L=>L.apisCallStatus.IsAuthorized),h=(0,t.P1)(e,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(ze,K,p)=>{"use strict";p.d(K,{NZ:()=>e,T5:()=>t,q4:()=>f});const t="./api",e={production:!0,isDebugMode:!1,AUTHENTICATE_API:t+"/authenticate",CONF_API:t+"/conf",PAGE_SETTINGS_API:t+"/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",Web_SOCKET_API:"/ws"},f="0.13.2-beta"},6403:(ze,K,p)=>{"use strict";var t=p(2313),e=p(5e3),f=p(6360),M=p(8138),s=p(5113),b=p(5620),d=p(6642),R=p(9565),h=p(7579),L=p(6451),w=p(4968),D=p(457),S=p(4986),k=p(2805);function E(Z=0,Le=S.z){return Z<0&&(Z=0),(0,k.H)(Z,Z,Le)}var U=p(9646),W=p(727),j=p(4482),ne=p(5403),ee=p(8737),de=p(3269),te=p(9672),le=p(9300),$=p(8505),ge=p(3900),C=p(2722),i=p(8746),r=p(1884),u=p(4004);class c{}let v=(()=>{class Z{constructor(P,he){this._ngZone=he,this.timerStart$=new h.x,this.idleDetected$=new h.x,this.timeout$=new h.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,P&&this.setConfig(P)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,w.R)(window,"mousemove"),(0,w.R)(window,"resize"),(0,w.R)(document,"keydown"))),this.idle$=(0,D.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ie(Z,...Le){var P,he;const at=null!==(P=(0,de.yG)(Le))&&void 0!==P?P:S.z,jt=null!==(he=Le[0])&&void 0!==he?he:null,Vi=Le[1]||1/0;return(0,j.e)((On,$i)=>{let vr=[],fs=!1;const $s=ar=>{const{buffer:ea,subs:Pn}=ar;Pn.unsubscribe(),(0,ee.P)(vr,ar),$i.next(ea),fs&&da()},da=()=>{if(vr){const ar=new W.w0;$i.add(ar);const Pn={buffer:[],subs:ar};vr.push(Pn),(0,te.f)(ar,at,()=>$s(Pn),Z)}};null!==jt&&jt>=0?(0,te.f)($i,at,da,jt,!0):fs=!0,da();const ua=(0,ne.x)($i,ar=>{const ea=vr.slice();for(const Pn of ea){const{buffer:fr}=Pn;fr.push(ar),Vi<=fr.length&&$s(Pn)}},()=>{for(;null==vr?void 0:vr.length;)$i.next(vr.shift().buffer);null==ua||ua.unsubscribe(),$i.complete(),$i.unsubscribe()},void 0,()=>vr=null);On.subscribe(ua)})}(this.idleSensitivityMillisec),(0,le.h)(P=>!P.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,$.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ge.w)(()=>this._ngZone.runOutsideAngular(()=>E(1e3).pipe((0,C.R)((0,L.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,$.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,r.x)(),(0,ge.w)(P=>P?this.timer$:(0,U.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,le.h)(P=>!!P),(0,$.b)(()=>this.isTimeout=!0),(0,u.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(P){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(P):console.error("Call stopWatching() before set config values")}setConfig(P){P.idle&&(this.idleMillisec=1e3*P.idle),P.ping&&(this.pingMillisec=1e3*P.ping),P.idleSensitivity&&(this.idleSensitivityMillisec=1e3*P.idleSensitivity),P.timeout&&(this.timeout=P.timeout)}setCustomActivityEvents(P){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=P:console.error("Call stopWatching() before set custom activity events")}setupTimer(P){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,U.of)(()=>new Date).pipe((0,u.U)(he=>he()),(0,ge.w)(he=>E(1e3).pipe((0,u.U)(()=>Math.round(((new Date).valueOf()-he.valueOf())/1e3)),(0,$.b)(at=>{at>=P&&this.timeout$.next(!0)}))))})}setupPing(P){this.ping$=E(P).pipe((0,le.h)(()=>!this.isTimeout))}}return Z.\u0275fac=function(P){return new(P||Z)(e.LFG(c,8),e.LFG(e.R0b))},Z.\u0275prov=e.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),T=(()=>{class Z{static forRoot(P){return{ngModule:Z,providers:[{provide:c,useValue:P}]}}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275mod=e.oAB({type:Z}),Z.\u0275inj=e.cJS({imports:[[]]}),Z})();var I=p(1402),y=p(2687),n=p(8377),_=p(7093),B=p(9546),N=p(9224),H=p(3251),J=p(9808);const ue=function(){return{initial:!1}};function xe(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[1].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[1].link),e.Q6J("active",P.activeLink===P.links[1].link)("state",e.DdM(4,ue)),e.xp6(1),e.Oqu(P.links[1].name)}}function Pe(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[2].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link),e.xp6(1),e.Oqu(P.links[2].name)}}let Se=(()=>{class Z{constructor(P,he){this.store=P,this.router=he,this.faUserCog=y.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(he=>this.router.url.includes(he.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,C.R)(this.unSubs[0]),(0,le.h)(he=>he instanceof I.Av)).subscribe({next:he=>{const at=this.links.find(jt=>he.urlAfterRedirects.includes(jt.link));this.activeLink=at?at.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{this.appConfig=he}),this.store.select(n.dT).pipe((0,C.R)(this.unSubs[2])).subscribe(he=>{this.showBitcoind=!1,this.selNode=he,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(b.yh),e.Y36(I.F0))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(P,he){1&P&&(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 he.activeLink=he.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,xe,2,5,"div",7),e.YNc(11,Pe,2,3,"div",8),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",he.faUserCog),e.xp6(7),e.s9C("routerLink",he.links[0].link),e.Q6J("active",he.activeLink===he.links[0].link),e.xp6(1),e.Oqu(he.links[0].name),e.xp6(1),e.Q6J("ngIf",!+he.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",he.showBitcoind))},directives:[_.xw,_.Wh,B.BN,N.a8,N.dn,H.BU,H.Nj,I.rH,J.O5,_.yH,I.lC],styles:[""]}),Z})();var Q=p(7731),Ue=p(7861),Ce=p(5043),q=p(8129),Ae=p(3075),ut=p(7322),Ie=p(4107),De=p(3390),ae=p(508),we=p(7423);function ye(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P.index),e.xp6(1),e.AsE(" ",P.lnNode," (",P.lnImplementation,") ")}}function Y(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw().appConfig.defaultNodeIndex=at}),e.YNc(14,ye,2,3,"mat-option",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",10)(17,"button",14),e.NdJ("click",function(){return e.CHM(P),e.oxw().onResetSettings()}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){return e.CHM(P),e.oxw().onUpdateSettings()}),e._uU(20,"Update"),e.qZA()()()()()}if(2&Z){const P=e.oxw();e.xp6(3),e.Q6J("icon",P.faWindowRestore),e.xp6(5),e.Q6J("icon",P.faInfoCircle),e.xp6(5),e.Q6J("ngModel",P.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",P.appConfig.nodes)}}let z=(()=>{class Z{constructor(P,he){this.logger=P,this.store=he,this.faInfoCircle=y.sqG,this.faWindowRestore=y.wyP,this.faPlus=y.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.appConfig=P,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(P)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Ue.zQ)({payload:{uiMessage:Q.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(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Y,21,4,"form",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngIf",he.appConfig.nodes&&he.appConfig.nodes.length&&he.appConfig.nodes.length>0))},directives:[_.xw,_.yH,q.$V,J.O5,Ae._Y,Ae.JL,Ae.F,_.Wh,B.BN,ut.KE,Ie.gD,De.h,Ae.JJ,Ae.On,J.sg,ae.ey,we.lW],styles:[""]}),Z})();var be=p(8012),fe=p(5698),He=p(8966),pt=p(5768),et=p(3093),Lt=p(7261),di=p(5615),Wt=p(7531),Gt=p(159),ui=p(6895);const Ot=["stepper"];function Nt(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw();e.Oqu(P.passwordFormLabel)}}function gt(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function tt(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw(2);e.Oqu(P.secretFormLabel)}}function xt(Z,Le){if(1&Z&&e._UZ(0,"qr-code",32),2&Z){const P=e.oxw(2);e.Q6J("value",P.otpauth)("size",180)("errorCorrectionLevel","L")}}function ei(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function Kt(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",21),e.YNc(2,tt,1,1,"ng-template",22),e.TgZ(3,"div",23),e.YNc(4,xt,1,3,"qr-code",24),e.qZA(),e.TgZ(5,"div",25),e._UZ(6,"fa-icon",26),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",27)(10,"mat-form-field",1),e._UZ(11,"input",28),e.TgZ(12,"fa-icon",29),e.NdJ("copied",function(at){return e.CHM(P),e.oxw().onCopySecret(at)}),e.qZA(),e.YNc(13,ei,2,0,"mat-error",14),e.qZA()(),e.TgZ(14,"div",30)(15,"button",31),e._uU(16,"Next"),e.qZA()()()()}if(2&Z){const P=e.oxw();e.Q6J("stepControl",P.secretFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.secretFormGroup),e.xp6(3),e.Q6J("ngIf",P.otpauth),e.xp6(2),e.Q6J("icon",P.faInfoCircle),e.xp6(6),e.Q6J("icon",P.faCopy)("payload",null==P.secretFormGroup||null==P.secretFormGroup.controls||null==P.secretFormGroup.controls.secret?null:P.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==P.secretFormGroup||null==P.secretFormGroup.controls||null==P.secretFormGroup.controls.secret||null==P.secretFormGroup.controls.secret.errors?null:P.secretFormGroup.controls.secret.errors.required)}}function Re(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw(2);e.Oqu(P.tokenFormLabel)}}function Oe(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function ce(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function ve(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),e._UZ(3,"input",36),e.YNc(4,Oe,2,0,"mat-error",14),e.YNc(5,ce,2,0,"mat-error",14),e.qZA()(),e.TgZ(6,"div",30)(7,"button",37),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onVerifyToken()}),e._uU(8),e.qZA()()()}if(2&Z){const P=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==P.tokenFormGroup||null==P.tokenFormGroup.controls||null==P.tokenFormGroup.controls.token||null==P.tokenFormGroup.controls.token.errors?null:P.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==P.tokenFormGroup||null==P.tokenFormGroup.controls||null==P.tokenFormGroup.controls.token||null==P.tokenFormGroup.controls.token.errors?null:P.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=P.tokenFormGroup&&null!=P.tokenFormGroup.controls&&null!=P.tokenFormGroup.controls.token&&null!=P.tokenFormGroup.controls.token.errors&&P.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ht(Z,Le){1&Z&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function mt(Z,Le){if(1&Z&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Re,1,1,"ng-template",12),e.YNc(3,ve,9,3,"div",35),e.YNc(4,ht,3,0,"div",14),e.qZA()()),2&Z){const P=e.oxw();e.Q6J("stepControl",P.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",P.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!P.flgValidated||!P.isTokenValid),e.xp6(1),e.Q6J("ngIf",P.flgValidated&&P.isTokenValid)}}function Ht(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw(2);e.Oqu(P.disableFormLabel)}}function it(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",7)(1,"div",38),e._UZ(2,"fa-icon",26),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",30)(6,"button",37),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onVerifyToken()}),e._uU(7,"Disable"),e.qZA()()()}if(2&Z){const P=e.oxw(2);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle)}}function Ne(Z,Le){1&Z&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function nt(Z,Le){if(1&Z&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Ht,1,1,"ng-template",12),e.YNc(3,it,8,1,"div",35),e.YNc(4,Ne,3,0,"div",14),e.qZA()()),2&Z){const P=e.oxw();e.Q6J("stepControl",P.disableFormGroup),e.xp6(1),e.Q6J("formGroup",P.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!P.flgValidated||!P.isTokenValid),e.xp6(1),e.Q6J("ngIf",P.flgValidated&&P.isTokenValid)}}let Xe=(()=>{class Z{constructor(P,he,at,jt,Vi,On){this.dialogRef=P,this.data=he,this.store=at,this.formBuilder=jt,this.rtlEffects=Vi,this.snackBar=On,this.faExclamationTriangle=y.eHv,this.faCopy=y.kZ_,this.faInfoCircle=y.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:["",[Ae.kI.required]],password:["",[Ae.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ae.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ae.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){var P,he;this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!(null===(P=this.appConfig)||void 0===P?void 0:P.enable2FA),this.secretFormGroup=this.formBuilder.group({secret:[{value:(null===(he=this.appConfig)||void 0===he?void 0:he.enable2FA)?"":this.generateSecret(),disabled:!0},Ae.kI.required]})}generateSecret(){const P=pt.authenticator.generateSecret();return this.otpauth=pt.authenticator.keyuri("","Ride The Lightning (RTL)",P),P}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ue.QO)({payload:be(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,fe.q)(1)).subscribe(P=>{"ERROR"!==P?(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(P){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){var P,he;if(null===(P=this.appConfig)||void 0===P?void 0:P.enable2FA)this.store.dispatch((0,Ue.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=pt.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,Ue.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!(null===(he=this.appConfig)||void 0===he?void 0:he.enable2FA))}stepSelectionChanged(P){switch(P.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}P.selectedIndex<P.previouslySelectedIndex&&0===P.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(He.so),e.Y36(He.WI),e.Y36(b.yh),e.Y36(Ae.qu),e.Y36(et.V),e.Y36(Lt.ux))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-two-factor-auth"]],viewQuery:function(P,he){if(1&P&&e.Gf(Ot,5),2&P){let at;e.iGM(at=e.CRH())&&(he.stepper=at.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(P,he){1&P&&(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(jt){return he.stepSelectionChanged(jt)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Nt,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",1),e._UZ(17,"input",13),e.YNc(18,gt,2,0,"mat-error",14),e.qZA()(),e.TgZ(19,"div",15)(20,"button",16),e.NdJ("click",function(){return he.onAuthenticate()}),e._uU(21,"Confirm"),e.qZA()()()(),e.YNc(22,Kt,17,8,"mat-step",17),e.YNc(23,mt,5,4,"mat-step",18),e.YNc(24,nt,5,4,"mat-step",18),e.qZA(),e.TgZ(25,"div",19)(26,"button",20),e._uU(27),e.qZA()()()()()()),2&P&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",he.passwordFormGroup)("editable",he.flgEditable),e.xp6(1),e.Q6J("formGroup",he.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==he.passwordFormGroup||null==he.passwordFormGroup.controls||null==he.passwordFormGroup.controls.password||null==he.passwordFormGroup.controls.password.errors?null:he.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!he.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!he.showDisableStepper),e.xp6(1),e.Q6J("ngIf",he.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(he.flgValidated&&he.isTokenValid?"Close":"Cancel"))},directives:[_.xw,_.yH,N.dk,_.Wh,we.lW,He.ZT,N.dn,di.Vq,di.C0,Ae._Y,Ae.JL,Ae.sg,di.VY,ut.KE,Wt.Nt,Ae.Fj,De.h,Ae.JJ,Ae.u,Ae.Q7,J.O5,ut.TO,Gt.uU,B.BN,ut.R9,ui.y,di.Ic],styles:[""]}),Z})();var Ee=p(5986),Ge=p(4834);const ot=["authForm"];function lt(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function Ct(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.Oqu(P.errorMsg)}}function mi(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.Oqu(P.errorConfirmMsg)}}function Jt(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"form",10,11)(2,"div",12),e._UZ(3,"fa-icon",4),e.TgZ(4,"span",5),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"input",13),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw().currPassword=at}),e.qZA(),e.YNc(8,lt,2,0,"mat-error",14),e.qZA(),e.TgZ(9,"mat-form-field")(10,"input",15),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw().newPassword=at}),e.qZA(),e.YNc(11,Ct,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field")(13,"input",16),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw().confirmPassword=at}),e.qZA(),e.YNc(14,mi,2,1,"mat-error",14),e.qZA(),e.TgZ(15,"div",17)(16,"button",18),e.NdJ("click",function(){return e.CHM(P),e.oxw().onResetPassword()}),e._uU(17,"Reset"),e.qZA(),e.TgZ(18,"button",19),e.NdJ("click",function(){return e.CHM(P),e.oxw().onChangePassword()}),e._uU(19,"Change Password"),e.qZA()(),e.TgZ(20,"div",20),e._UZ(21,"mat-divider",21),e.qZA()()}if(2&Z){const P=e.oxw();e.xp6(3),e.Q6J("icon",P.faLock),e.xp6(4),e.Q6J("ngModel",P.currPassword),e.xp6(1),e.Q6J("ngIf",!P.currPassword),e.xp6(2),e.Q6J("ngModel",P.newPassword),e.xp6(1),e.Q6J("ngIf",P.matchOldAndNewPasswords()),e.xp6(2),e.Q6J("ngModel",P.confirmPassword),e.xp6(1),e.Q6J("ngIf",P.matchNewPasswords()),e.xp6(7),e.Q6J("inset",!0)}}let $t=(()=>{class Z{constructor(P,he,at,jt,Vi){this.logger=P,this.store=he,this.actions=at,this.router=jt,this.sessionService=Vi,this.faInfoCircle=y.sqG,this.faUserLock=y.FJU,this.faUserClock=y.hnx,this.faLock=y.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(n.Yj).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.appConfig=P,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{this.selNode=P}),this.actions.pipe((0,C.R)(this.unSubs[2]),(0,le.h)(P=>P.type===Q.pg.RESET_PASSWORD_RES)).subscribe(P=>{var he;if(Q.kO.includes(this.currPassword.toLowerCase()))switch(null===(he=this.selNode.lnImplementation)||void 0===he?void 0:he.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||Q.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ue.c0)({payload:{currPassword:be(this.currPassword).toString(),newPassword:be(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let P=!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.",P=!0):Q.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=null==Q.kO?void 0:Q.kO.reduce((he,at,jt)=>jt<Q.kO.length-1?he+at+'" / "':he+at+'".','Password cannot be "'),P=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",P=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",P=!0)),P}matchNewPasswords(){let P=!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.",P=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",P=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",P=!0)),P}on2FAuth(){this.store.dispatch((0,Ue.qR)({payload:{data:{appConfig:this.appConfig,component:Xe}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,Ue.fk)({payload:{uiMessage:Q.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh),e.Y36(d.eX),e.Y36(I.F0),e.Y36(Ee.m))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-auth-settings"]],viewQuery:function(P,he){if(1&P&&e.Gf(ot,5),2&P){let at;e.iGM(at=e.CRH())&&(he.form=at.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Jt,22,8,"form",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Two Factor Authentication"),e.qZA()(),e.TgZ(7,"div",6),e._UZ(8,"fa-icon",7),e.TgZ(9,"span"),e._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return he.on2FAuth()}),e._uU(13),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("ngIf",null==he.appConfig?null:he.appConfig.allowPasswordUpdate),e.xp6(3),e.Q6J("icon",he.faUserClock),e.xp6(4),e.Q6J("icon",he.faInfoCircle),e.xp6(5),e.Oqu(he.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[_.xw,_.yH,_.Wh,J.O5,Ae._Y,Ae.JL,Ae.F,B.BN,ut.KE,Wt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,ut.TO,we.lW,Ge.d],styles:[""]}),Z})();var Ki=p(4623);function hi(Z,Le){1&Z&&e._UZ(0,"mat-divider",7)}function ai(Z,Le){if(1&Z&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,hi,1,0,"mat-divider",6),e.qZA()),2&Z){const P=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,P.configData)),e.xp6(2),e.Q6J("ngIf",""!==P.configData)}}function Ji(Z,Le){if(1&Z&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Gi(Z,Le){if(1&Z&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function zi(Z,Le){1&Z&&e._UZ(0,"mat-divider",15),2&Z&&e.Q6J("inset",!0)}function Ui(Z,Le){if(1&Z&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Ji,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Gi,2,1,"h4",12),e.qZA(),e.YNc(5,zi,1,1,"mat-divider",13),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(2),e.Q6J("ngIf",P.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",P.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",P.indexOf("[")<0)}}function Be(Z,Le){if(1&Z&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Ui,6,3,"mat-list-item",9),e.qZA()()),2&Z){const P=e.oxw();e.xp6(2),e.Q6J("ngForOf",P.configData)}}let Tt=(()=>{class Z{constructor(P,he,at){this.store=P,this.rtlEffects=he,this.router=at,this.configData="",this.fileFormat="INI",this.faCog=y.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.dispatch((0,Ue.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{const he=P.data;this.fileFormat=P.format,this.configData=""===he||!he||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==he&&he&&"JSON"===this.fileFormat?he:"":he.split("\n")})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(b.yh),e.Y36(et.V),e.Y36(I.F0))},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ai,5,4,"div",2),e.YNc(3,Be,3,1,"div",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",""!==he.configData&&"JSON"===he.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==he.configData&&("INI"===he.fileFormat||"HOCON"===he.fileFormat)))},directives:[_.xw,_.yH,_.Wh,J.O5,Ge.d,Ki.i$,J.sg,Ki.Tg,N.$j],pipes:[J.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),Z})();function _e(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let Ke=(()=>{class Z{constructor(P,he,at){this.dialogRef=P,this.store=he,this.rtlEffects=at,this.password="",this.isAuthenticated=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,fe.q)(1)).subscribe(P=>{"ERROR"!==P?(this.isAuthenticated=!0,this.store.dispatch((0,Ue.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Ue.QO)({payload:be(this.password)}))}onClose(){this.store.dispatch((0,Ue.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(He.so),e.Y36(b.yh),e.Y36(et.V))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-is-authorized"]],decls:16,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","placeholder","Password","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(P,he){1&P&&(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 he.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"input",8),e.NdJ("ngModelChange",function(jt){return he.password=jt}),e.qZA(),e.YNc(12,_e,2,0,"mat-error",9),e.qZA(),e.TgZ(13,"div",10)(14,"button",11),e.NdJ("click",function(){return he.onAuthenticate()}),e._uU(15,"Confirm"),e.qZA()()()()()()),2&P&&(e.xp6(11),e.Q6J("ngModel",he.password),e.xp6(1),e.Q6J("ngIf",!he.password))},directives:[_.xw,_.Wh,_.yH,N.dk,we.lW,N.dn,Ae._Y,Ae.JL,Ae.F,ut.KE,Wt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,J.O5,ut.TO],styles:[""]}),Z})();const yt=function(){return{initial:!1}};function re(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[2].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link)("state",e.DdM(4,yt)),e.xp6(1),e.Oqu(P.links[2].name)}}function qe(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[3].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[3].link),e.Q6J("active",P.activeLink===P.links[3].link),e.xp6(1),e.Oqu(P.links[3].name)}}function bt(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){return e.CHM(P),e.oxw().showLnConfigClicked()}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.Q6J("active",P.activeLink===P.links[4].link),e.xp6(1),e.Oqu(P.links[4].name)}}let Vt=(()=>{class Z{constructor(P,he,at,jt){this.store=P,this.router=he,this.rtlEffects=at,this.activatedRoute=jt,this.faTools=y.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"applayout",name:"Application Layout"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(he=>this.router.url.includes(he.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,C.R)(this.unSubs[0]),(0,le.h)(he=>he instanceof I.Av)).subscribe({next:he=>{const at=this.links.find(jt=>he.urlAfterRedirects.includes(jt.link));this.activeLink=at?at.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{var at;switch(this.showLnConfig=!1,this.selNode=he,null===(at=this.selNode.lnImplementation)||void 0===at?void 0:at.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.store.dispatch((0,Ue.qR)({payload:{maxWidth:"50rem",data:{component:Ke}}})),this.rtlEffects.closeAlert.pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{P&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(b.yh),e.Y36(I.F0),e.Y36(et.V),e.Y36(I.gz))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-node-config"]],decls:17,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",""],["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"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(P,he){1&P&&(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 he.activeLink=he.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return he.activeLink=he.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,re,2,5,"div",7),e.YNc(13,qe,2,3,"div",8),e.YNc(14,bt,2,2,"div",9),e.qZA(),e.TgZ(15,"div",10),e._UZ(16,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",he.faTools),e.xp6(7),e.s9C("routerLink",he.links[0].link),e.Q6J("active",he.activeLink===he.links[0].link),e.xp6(1),e.Oqu(he.links[0].name),e.xp6(1),e.s9C("routerLink",he.links[1].link),e.Q6J("active",he.activeLink===he.links[1].link),e.xp6(1),e.Oqu(he.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==he.selNode||null==he.selNode.lnImplementation?null:he.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==he.selNode||null==he.selNode.lnImplementation?null:he.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",he.showLnConfig))},directives:[_.xw,_.Wh,B.BN,N.a8,N.dn,H.BU,H.Nj,I.rH,J.O5,_.yH,I.lC],styles:[""]}),Z})();function bi(Z,Le){1&Z&&e._UZ(0,"mat-divider",7)}function wi(Z,Le){if(1&Z&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,bi,1,0,"mat-divider",6),e.qZA()),2&Z){const P=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,P.configData)),e.xp6(2),e.Q6J("ngIf",""!==P.configData)}}function Xi(Z,Le){if(1&Z&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Zi(Z,Le){if(1&Z&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function on(Z,Le){1&Z&&e._UZ(0,"mat-divider",15),2&Z&&e.Q6J("inset",!0)}function mn(Z,Le){if(1&Z&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Xi,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Zi,2,1,"h4",12),e.qZA(),e.YNc(5,on,1,1,"mat-divider",13),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(2),e.Q6J("ngIf",P.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",P.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",P.indexOf("[")<0)}}function ti(Z,Le){if(1&Z&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,mn,6,3,"mat-list-item",9),e.qZA()()),2&Z){const P=e.oxw();e.xp6(2),e.Q6J("ngForOf",P.configData)}}let Pi=(()=>{class Z{constructor(P,he,at){this.store=P,this.rtlEffects=he,this.router=at,this.configData="",this.fileFormat="INI",this.faCog=y.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.dispatch((0,Ue.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{const he=P.data;this.fileFormat=P.format,this.configData=""===he||!he||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==he&&he&&"JSON"===this.fileFormat?he:"":he.split("\n")})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(b.yh),e.Y36(et.V),e.Y36(I.F0))},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,wi,5,4,"div",2),e.YNc(3,ti,3,1,"div",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",""!==he.configData&&"JSON"===he.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==he.configData&&("INI"===he.fileFormat||"HOCON"===he.fileFormat)))},directives:[_.xw,_.yH,_.Wh,J.O5,Ge.d,Ki.i$,J.sg,Ki.Tg,N.$j],pipes:[J.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),Z})();var st=p(2994),Rt=p(429),Zt=p(6523),fi=p(62),Ni=p(2368),ki=p(9814),un=p(3322);function jn(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P.id),e.xp6(1),e.hij(" ",P.id," ")}}function Nn(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function $n(Z,Le){if(1&Z&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw();e.Q6J("value",P)("checked",he.selNode.settings.userPersona===P),e.xp6(1),e.hij(" ",e.lcZ(2,3,P)," ")}}const _n=function(Z){return{"mr-4":Z}};function Si(Z,Le){if(1&Z&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw();e.Q6J("value",P)("ngClass",e.VKq(3,_n,he.screenSize===he.screenSizeEnum.XS||he.screenSize===he.screenSizeEnum.SM)),e.xp6(1),e.hij("",P.name," ")}}const ji=function(Z){return{skin:!0,"selected-color":Z}};function wn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw().changeThemeColor(jt.id)}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&Z){const P=Le.$implicit,he=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,P.id)),e.Q6J("ngClass",e.VKq(6,ji,he.selectedThemeColor===P.id)),e.xp6(2),e.hij(" ",P.name," ")}}let Kn=(()=>{class Z{constructor(P,he,at){this.logger=P,this.commonService=he,this.store=at,this.faExclamationTriangle=y.eHv,this.faMoneyBillAlt=y.co4,this.faPaintBrush=y.XsY,this.faInfoCircle=y.sqG,this.userPersonas=[Q.ol.OPERATOR,Q.ol.MERCHANT],this.currencyUnits=Q.Er,this.themeModes=Q.wZ.modes,this.themeColors=Q.wZ.themes,this.selectedThemeMode=Q.wZ.modes[0],this.selectedThemeColor=Q.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.selectedThemeMode=this.themeModes.find(he=>this.selNode.settings.themeMode===he.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(P)})}onCurrencyChange(P){this.selNode.settings.currencyUnits=[...Q.uA,P.value],this.store.dispatch((0,Zt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(P,he){this.selNode.settings[P]=!this.selNode.settings[P]}changeThemeColor(P){this.selectedThemeColor=P,this.selNode.settings.themeColor=P}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,Ue.zQ)({payload:{uiMessage:Q.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Zt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const P=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(he=>he.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ue.fk)({payload:{uiMessage:Q.m6.NO_SPINNER,prevLnNodeIndex:+P,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(fi.v),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Balance Display"),e.qZA()(),e.TgZ(7,"div",6)(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Fiat conversion calls "),e.TgZ(12,"strong")(13,"a",9),e._uU(14,"Blockchain.com"),e.qZA()(),e._uU(15," API to get conversion rates."),e.qZA()(),e.TgZ(16,"div",10)(17,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(jt){return he.selNode.settings.fiatConversion=jt})("change",function(jt){return he.selNode.settings.currencyUnit=jt.checked?he.selNode.settings.currencyUnit:null}),e._uU(18,"Enable Fiat Conversion"),e.qZA(),e.TgZ(19,"mat-form-field")(20,"mat-select",12,13),e.NdJ("ngModelChange",function(jt){return he.selNode.settings.currencyUnit=jt})("selectionChange",function(jt){return he.onCurrencyChange(jt)}),e.YNc(22,jn,2,2,"mat-option",14),e.qZA(),e.YNc(23,Nn,2,0,"mat-error",15),e.qZA()()(),e.TgZ(24,"div",16)(25,"div",17)(26,"div",18),e._UZ(27,"fa-icon",4),e.TgZ(28,"span",5),e._uU(29,"Customization"),e.qZA()(),e.TgZ(30,"div",6)(31,"div",19)(32,"div",20),e._UZ(33,"fa-icon",8),e.TgZ(34,"span"),e._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(36,"div",21)(37,"h4"),e._uU(38,"Dashboard Layout"),e.qZA(),e.TgZ(39,"mat-radio-group",22),e.NdJ("ngModelChange",function(jt){return he.selNode.settings.userPersona=jt}),e.YNc(40,$n,3,5,"mat-radio-button",23),e.qZA()()(),e._UZ(41,"mat-divider",24),e.TgZ(42,"div",25)(43,"div",26)(44,"h4"),e._uU(45,"Mode"),e.qZA(),e.TgZ(46,"mat-radio-group",27),e.NdJ("ngModelChange",function(jt){return he.selectedThemeMode=jt})("change",function(){return he.chooseThemeMode()}),e.YNc(47,Si,2,5,"mat-radio-button",28),e.qZA()()(),e._UZ(48,"mat-divider",24),e.TgZ(49,"div",25)(50,"div",29)(51,"h4"),e._uU(52,"Themes"),e.qZA(),e.TgZ(53,"div",30),e.YNc(54,wn,4,8,"span",31),e.qZA()()()()()()(),e.TgZ(55,"div",32)(56,"button",33),e.NdJ("click",function(){return he.onResetSettings()}),e._uU(57,"Reset"),e.qZA(),e.TgZ(58,"button",34),e.NdJ("click",function(){return he.onUpdateSettings()}),e._uU(59,"Update"),e.qZA()()()),2&P&&(e.xp6(4),e.Q6J("icon",he.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",he.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",he.selNode.settings.fiatConversion),e.xp6(3),e.Q6J("ngModel",he.selNode.settings.currencyUnit)("disabled",!he.selNode.settings.fiatConversion)("required",he.selNode.settings.fiatConversion),e.xp6(2),e.Q6J("ngForOf",he.currencyUnits),e.xp6(1),e.Q6J("ngIf",he.selNode.settings.fiatConversion&&!he.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",he.faPaintBrush),e.xp6(6),e.Q6J("icon",he.faInfoCircle),e.xp6(6),e.Q6J("ngModel",he.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",he.userPersonas),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Q6J("ngModel",he.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",he.themeModes),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Q6J("ngForOf",he.themeColors))},directives:[_.xw,_.yH,q.$V,Ae._Y,Ae.JL,Ae.F,_.Wh,B.BN,Ni.Rr,Ae.JJ,Ae.On,ut.KE,Ie.gD,De.h,Ae.Q7,J.sg,ae.ey,J.O5,ut.TO,ki.VQ,ki.U0,Ge.d,J.mk,un.oO,we.lW],pipes:[J.rS,J.i8],styles:[""]}),Z})();var nr=p(9828),lr=p(1125),qr=p(5245),zr=p(9445);const ls=function(Z){return{error:Z}};function Jr(Z,Le){if(1&Z&&e.GkF(0,13),2&Z){const P=e.oxw(),he=e.MAs(17);e.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",e.VKq(2,ls,P.errorMessage))}}function zs(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",28),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",P," ")}}function Ms(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",28),e._uU(1),e.ALo(2,"camelcaseWithReplace"),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",e.xi3(2,2,P,"_")," ")}}function cs(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",28),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ","desc"===P?"Descending":"Ascending"," ")}}function Xr(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",29),e._uU(1),e.ALo(2,"camelcaseWithReplace"),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw().$implicit;e.Q6J("value",P)("disabled",he.columnSelectionSM.length<=1&&he.columnSelectionSM.includes(P)||he.columnSelectionSM.length>=2&&!he.columnSelectionSM.includes(P)),e.xp6(1),e.hij(" ",e.xi3(2,3,P,"_")," ")}}function $r(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",29),e._uU(1),e.ALo(2,"camelcaseWithReplace"),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw().$implicit,at=e.oxw(2);e.Q6J("value",P)("disabled",he.columnSelection.length<=2&&he.columnSelection.includes(P)||he.columnSelection.length>=at.tableFieldsDef[he.tableId].maxColumns&&!he.columnSelection.includes(P)),e.xp6(1),e.hij(" ",e.xi3(2,3,P,"_")," ")}}function ws(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",16)(1,"div",17)(2,"span",18),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA(),e.TgZ(5,"mat-form-field",18)(6,"mat-select",19),e.NdJ("ngModelChange",function(at){return e.CHM(P).$implicit.recordsPerPage=at}),e.YNc(7,zs,2,2,"mat-option",20),e.qZA()(),e.TgZ(8,"mat-form-field",18)(9,"mat-select",21),e.NdJ("ngModelChange",function(at){return e.CHM(P).$implicit.sortBy=at}),e.YNc(10,Ms,3,5,"mat-option",20),e.qZA()(),e.TgZ(11,"mat-form-field",18)(12,"mat-select",22),e.NdJ("ngModelChange",function(at){return e.CHM(P).$implicit.sortOrder=at}),e.YNc(13,cs,2,2,"mat-option",20),e.qZA()(),e.TgZ(14,"mat-form-field",23)(15,"mat-select",24),e.NdJ("ngModelChange",function(at){return e.CHM(P).$implicit.columnSelectionSM=at}),e.YNc(16,Xr,3,6,"mat-option",25),e.qZA(),e.TgZ(17,"mat-hint"),e._uU(18,"Columns (mobile) should be between 1 and 2"),e.qZA()(),e.TgZ(19,"mat-form-field",26)(20,"mat-select",27),e.NdJ("ngModelChange",function(at){return e.CHM(P).$implicit.columnSelection=at})("selectionChange",function(){const jt=e.CHM(P).$implicit;return e.oxw(2).oncolumnSelectionChange(jt)}),e.YNc(21,$r,3,6,"mat-option",25),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23),e.qZA()()()()}if(2&Z){const P=Le.$implicit,he=e.oxw(2);e.xp6(3),e.hij("Table ",e.xi3(4,17,P.tableId,"_"),": "),e.xp6(3),e.MGl("name","",P.tableId,"-page-size-options"),e.Q6J("ngModel",P.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",he.pageSizeOptions),e.xp6(2),e.MGl("name","",P.tableId,"-sort-by"),e.Q6J("ngModel",P.sortBy),e.xp6(1),e.Q6J("ngForOf",P.columnSelection),e.xp6(2),e.MGl("name","",P.tableId,"-sort-order"),e.Q6J("ngModel",P.sortOrder),e.xp6(1),e.Q6J("ngForOf",he.sortOrders),e.xp6(2),e.MGl("name","",P.tableId,"-columns-selection-sm"),e.Q6J("ngModel",P.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",he.tableFieldsDef[P.tableId].allowedColumns),e.xp6(4),e.MGl("name","",P.tableId,"-columns-selection"),e.Q6J("ngModel",P.columnSelection),e.xp6(1),e.Q6J("ngForOf",he.tableFieldsDef[P.tableId].allowedColumns),e.xp6(2),e.hij("Column selection should be between 2 and ",he.tableFieldsDef[P.tableId].maxColumns,"")}}function ds(Z,Le){if(1&Z&&e.GkF(0,13),2&Z){const P=e.oxw(2),he=e.MAs(17);e.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",e.VKq(2,ls,P.errorMessage))}}const Ws=function(Z){return{"error-border":Z}};function Dr(Z,Le){if(1&Z&&(e.TgZ(0,"mat-expansion-panel",14)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"titlecase"),e.qZA()(),e.YNc(5,ws,24,20,"div",15),e.YNc(6,ds,1,4,"ng-container",6),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw();e.Q6J("ngClass",e.VKq(6,Ws,(null==he.errorMessage?null:he.errorMessage.page)===P.pageId)),e.xp6(3),e.Oqu(e.lcZ(4,4,P.pageId)),e.xp6(2),e.Q6J("ngForOf",P.tables),e.xp6(1),e.Q6J("ngIf",he.errorMessage&&(null==he.errorMessage?null:he.errorMessage.page)===P.pageId)}}function Zn(Z,Le){if(1&Z&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&Z){const P=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,P.page),"")}}function Vr(Z,Le){if(1&Z&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",34),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&Z){const P=e.oxw().error;e.xp6(4),e.Oqu(P.message)}}function cr(Z,Le){if(1&Z&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",34),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,P.table)," ",P.message,"")}}const Ys=function(Z){return{"error-border p-2":Z}};function Zr(Z,Le){if(1&Z&&(e.TgZ(0,"div",30),e.YNc(1,Zn,3,3,"mat-panel-title",31),e.TgZ(2,"mat-list",32),e.YNc(3,Vr,5,1,"mat-list-item",31),e.YNc(4,cr,6,4,"mat-list-item",33),e.qZA()()),2&Z){const P=Le.error,he=e.oxw();e.Q6J("ngClass",e.VKq(4,Ys,"unknown"===he.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===he.errorMessage.page),e.xp6(2),e.Q6J("ngIf",P.message),e.xp6(1),e.Q6J("ngForOf",P.tables)}}let js=(()=>{class Z{constructor(P,he,at,jt){this.logger=P,this.commonService=he,this.store=at,this.actions=jt,this.faPenRuler=y.SoD,this.faExclamationTriangle=y.eHv,this.screenSize="",this.screenSizeEnum=Q.cu,this.pageSizeOptions=Q.TJ,this.pageSettings=[],this.initialPageSettings=Q.gG,this.tableFieldsDef=Q.V5,this.sortOrders=Q.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=Q.Bn,this.errorMessage=null,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(nr.AS).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.errorMessage=null,this.apiCallStatus=P.apiCallStatus,this.apiCallStatus.status===Q.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||null),this.pageSettings=P.pageSettings,this.initialPageSettings=JSON.parse(JSON.stringify(P.pageSettings)),this.logger.info(P)}),this.actions.pipe((0,C.R)(this.unSubs[1]),(0,le.h)(P=>P.type===Q.AB.UPDATE_API_CALL_STATUS_CLN||P.type===Q.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(P=>{P.type===Q.AB.UPDATE_API_CALL_STATUS_CLN&&P.payload.status===Q.Bn.ERROR&&"SavePageSettings"===P.payload.action&&(this.errorMessage=JSON.parse(P.payload.message))})}oncolumnSelectionChange(P){P.columnSelection&&!P.columnSelection.includes(P.sortBy)&&(P.sortBy=P.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((P,he)=>P||he.tables.reduce((at,jt)=>!(jt.recordsPerPage&&jt.sortBy&&jt.sortOrder&&jt.columnSelection&&jt.columnSelection.length>=2),!1),!1))return!0;this.errorMessage="",this.store.dispatch((0,Rt.eF)({payload:this.pageSettings}))}onResetPageSettings(P){"current"===P?(this.errorMessage=null,this.pageSettings=this.initialPageSettings):(this.errorMessage=null,this.pageSettings=Q.gG,this.onUpdatePageSettings())}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(fi.v),e.Y36(b.yh),e.Y36(d.eX))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-page-settings"]],decls:18,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"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","true",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","6",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","true",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","row","fxLayoutAlign","space-between center"],["fxFlex","10"],["placeholder","Records/Page","tabindex","1","required","",3,"ngModel","name","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Sort By","tabindex","2","required","",3,"ngModel","name","ngModelChange"],["placeholder","Sort Order","tabindex","3","required","",3,"ngModel","name","ngModelChange"],["fxFlex","18"],["placeholder","Column selection (Mobile)","tabindex","4","multiple","","required","",3,"ngModel","name","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["fxFlex","40"],["placeholder","Column selection (Desktop)","tabindex","5","multiple","","required","",3,"ngModel","name","ngModelChange","selectionChange"],[3,"value"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(P,he){1&P&&(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,Jr,1,4,"ng-container",6),e.YNc(8,Dr,7,8,"mat-expansion-panel",7),e.qZA(),e.TgZ(9,"div",8)(10,"button",9),e.NdJ("click",function(){return he.onResetPageSettings("current")}),e._uU(11,"Reset"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return he.onResetPageSettings("default")}),e._uU(13,"Default Settings"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return he.onUpdatePageSettings()}),e._uU(15,"Save"),e.qZA()()(),e.YNc(16,Zr,5,6,"ng-template",null,12,e.W1O)),2&P&&(e.xp6(4),e.Q6J("icon",he.faPenRuler),e.xp6(3),e.Q6J("ngIf",he.errorMessage&&"unknown"===he.errorMessage.page),e.xp6(1),e.Q6J("ngForOf",he.pageSettings))},directives:[_.xw,_.yH,q.$V,Ae._Y,Ae.JL,Ae.F,_.Wh,B.BN,J.O5,J.tP,J.sg,lr.ib,J.mk,un.oO,lr.yz,lr.yK,ut.KE,Ie.gD,Ae.Q7,Ae.JJ,Ae.On,ae.ey,ut.bx,we.lW,Ki.i$,Ki.Tg,qr.Hw],pipes:[J.rS,zr.D3],styles:[".table-setting-row[_ngcontent-%COMP%]:last-child{margin-bottom:3rem}.table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:3rem 0}"]}),Z})();function ms(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[0].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[0].link),e.Q6J("active",P.activeLink===P.links[0].link),e.xp6(1),e.Oqu(P.links[0].name)}}const dr=function(){return{initial:!1}};function gs(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[1].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[1].link),e.Q6J("active",P.activeLink===P.links[1].link)("state",e.DdM(4,dr)),e.xp6(1),e.Oqu(P.links[1].name)}}function Ir(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.activeLink=at.links[2].link}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link),e.xp6(1),e.Oqu(P.links[2].name)}}let Tr=(()=>{class Z{constructor(P,he,at){this.store=P,this.router=he,this.activatedRoute=at,this.faLayerGroup=y.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(he=>this.router.url.includes(he.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,C.R)(this.unSubs[0]),(0,le.h)(he=>he instanceof I.Av)).subscribe({next:he=>{const at=this.links.find(jt=>he.urlAfterRedirects.includes(jt.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:at?at.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{this.selNode=he,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(b.yh),e.Y36(I.F0),e.Y36(I.gz))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-services-settings"]],decls:13,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Services"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,ms,2,3,"div",6),e.YNc(9,gs,2,5,"div",7),e.YNc(10,Ir,2,3,"div",6),e.qZA(),e.TgZ(11,"div",8),e._UZ(12,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",he.faLayerGroup),e.xp6(7),e.Q6J("ngIf","LND"===(null==he.selNode||null==he.selNode.lnImplementation?null:he.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==he.selNode||null==he.selNode.lnImplementation?null:he.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==he.selNode||null==he.selNode.lnImplementation?null:he.selNode.lnImplementation.toUpperCase())))},directives:[_.xw,_.Wh,B.BN,N.a8,N.dn,H.BU,J.O5,H.Nj,I.rH,_.yH,I.lC],styles:[""]}),Z})();const is=["form"];function Ss(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function Rs(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function _s(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let or=(()=>{class Z{constructor(P,he){this.logger=P,this.store=he,this.faInfoCircle=y.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enableLoop=!(!P.settings.swapServerUrl||""===P.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(P)})}onEnableServiceChanged(P){this.enableLoop=P.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,Ue.jS)({payload:{uiMessage:Q.m6.UPDATE_LOOP_SETTINGS,service:Q.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Zt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-loop-service-settings"]],viewQuery:function(P,he){if(1&P&&e.Gf(is,7),2&P){let at;e.iGM(at=e.CRH())&&(he.form=at.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(P,he){if(1&P&&(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(jt){return he.enableLoop=jt})("change",function(jt){return he.onEnableServiceChanged(jt)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(jt){return he.selNode.settings.swapServerUrl=jt}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),e.qZA(),e.YNc(22,Ss,2,0,"mat-error",11),e.YNc(23,Rs,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(jt){return he.selNode.authentication.swapMacaroonPath=jt}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(28,_s,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return he.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return he.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&P){const at=e.MAs(19);e.xp6(2),e.Q6J("icon",he.faInfoCircle),e.xp6(13),e.Q6J("ngModel",he.enableLoop),e.xp6(3),e.Q6J("ngModel",he.selNode.settings.swapServerUrl)("required",he.enableLoop)("disabled",!he.enableLoop),e.xp6(4),e.Q6J("ngIf",!he.selNode.settings.swapServerUrl&&he.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==at||null==at.errors?null:at.errors.invalid)&&he.enableLoop),e.xp6(2),e.Q6J("ngModel",he.selNode.authentication.swapMacaroonPath)("required",he.enableLoop)("disabled",!he.enableLoop),e.xp6(3),e.Q6J("ngIf",!he.selNode.authentication.swapMacaroonPath&&he.enableLoop)}},directives:[_.xw,_.yH,q.$V,B.BN,Ae._Y,Ae.JL,Ae.F,_.Wh,Ni.Rr,De.h,Ae.JJ,Ae.On,ut.KE,Wt.Nt,Ae.Fj,Ae.Q7,ut.bx,J.O5,ut.TO,we.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),Z})();const ns=["form"];function Vs(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function er(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function rs(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Wr=(()=>{class Z{constructor(P,he){this.logger=P,this.store=he,this.faInfoCircle=y.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enableBoltz=!(!P.settings.boltzServerUrl||""===P.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(P)})}onEnableServiceChanged(P){this.enableBoltz=P.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,Ue.jS)({payload:{uiMessage:Q.m6.UPDATE_BOLTZ_SETTINGS,service:Q.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Zt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(P,he){if(1&P&&e.Gf(ns,7),2&P){let at;e.iGM(at=e.CRH())&&(he.form=at.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(P,he){if(1&P&&(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(jt){return he.enableBoltz=jt})("change",function(jt){return he.onEnableServiceChanged(jt)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(jt){return he.serverUrl=jt}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),e.qZA(),e.YNc(22,Vs,2,0,"mat-error",11),e.YNc(23,er,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(jt){return he.macaroonPath=jt}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(28,rs,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return he.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return he.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&P){const at=e.MAs(19);e.xp6(2),e.Q6J("icon",he.faInfoCircle),e.xp6(13),e.Q6J("ngModel",he.enableBoltz),e.xp6(3),e.Q6J("ngModel",he.serverUrl)("required",he.enableBoltz)("disabled",!he.enableBoltz),e.xp6(4),e.Q6J("ngIf",(!he.serverUrl||""===he.serverUrl.trim())&&he.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==at||null==at.errors?null:at.errors.invalid)&&he.enableBoltz),e.xp6(2),e.Q6J("ngModel",he.macaroonPath)("required",he.enableBoltz)("disabled",!he.enableBoltz),e.xp6(3),e.Q6J("ngIf",!he.macaroonPath&&he.enableBoltz)}},directives:[_.xw,_.yH,q.$V,B.BN,Ae._Y,Ae.JL,Ae.F,_.Wh,Ni.Rr,De.h,Ae.JJ,Ae.On,ut.KE,Wt.Nt,Ae.Fj,Ae.Q7,ut.bx,J.O5,ut.TO,we.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),Z})(),Or=(()=>{class Z{constructor(){}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(P,he){1&P&&e._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),Z})();var kr=p(2615),us=p(9107),vs=p(6087),Vn=p(4847),je=p(2075),Et=p(5899);function Je(Z,Le){1&Z&&e._UZ(0,"mat-progress-bar",34)}function Pt(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," Initiation Time "),e.qZA())}function ri(Z,Le){if(1&Z&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"date"),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,P.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Mi(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," Last Update Time "),e.qZA())}function Ii(Z,Le){if(1&Z&&(e.TgZ(0,"td",36),e._uU(1),e.ALo(2,"date"),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,P.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function tn(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," ID "),e.qZA())}function tr(Z,Le){if(1&Z&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(P.id)}}function It(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," ID (Bytes) "),e.qZA())}function li(Z,Le){if(1&Z&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(P.id_bytes)}}function vt(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," State "),e.qZA())}function qt(Z,Le){if(1&Z&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw();e.xp6(1),e.Oqu(he.LoopStateEnum[P.state])}}function Ei(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," HTLC Address "),e.qZA())}function Wi(Z,Le){if(1&Z&&(e.TgZ(0,"td",36),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(P.htlc_address)}}function $e(Z,Le){1&Z&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function We(Z,Le){if(1&Z&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.amt))}}function Fe(Z,Le){1&Z&&(e.TgZ(0,"th",37),e._uU(1," Cost Server (Sats) "),e.qZA())}function Dt(Z,Le){if(1&Z&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.cost_server))}}function yi(Z,Le){1&Z&&(e.TgZ(0,"th",37),e._uU(1," Cost Offchain (Sats) "),e.qZA())}function qi(Z,Le){if(1&Z&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.cost_offchain))}}function Bn(Z,Le){1&Z&&(e.TgZ(0,"th",37),e._uU(1," Cost Onchain (Sats) "),e.qZA())}function Br(Z,Le){if(1&Z&&(e.TgZ(0,"td",36)(1,"span",38),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==P?null:P.cost_onchain)," ")}}function ta(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"th",39)(1,"div",40)(2,"mat-select",41),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",42),e.NdJ("click",function(){return e.CHM(P),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function ys(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"td",43)(1,"button",44),e.NdJ("click",function(at){const Vi=e.CHM(P).$implicit;return e.oxw().onSwapClick(Vi,at)}),e._uU(2,"View Info"),e.qZA()()}}function Es(Z,Le){if(1&Z&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.Oqu(P.emptyTableMessage)}}function Hi(Z,Le){if(1&Z&&(e.TgZ(0,"td",45),e.YNc(1,Es,2,1,"p",46),e.qZA()),2&Z){const P=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=P.listSwaps&&P.listSwaps.data)||(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)<1)}}const Wn=function(Z){return{"display-none":Z}};function Fa(Z,Le){if(1&Z&&e._UZ(0,"tr",47),2&Z){const P=e.oxw();e.Q6J("ngClass",e.VKq(1,Wn,(null==P.listSwaps?null:P.listSwaps.data)&&(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)>0))}}function wr(Z,Le){1&Z&&e._UZ(0,"tr",48)}function $a(Z,Le){1&Z&&e._UZ(0,"tr",49)}const va=function(Z){return{"overflow-auto error-border":Z,"overflow-auto":!0}},Ts=function(){return["no_swap"]};let La=(()=>{class Z{constructor(P,he,at,jt){this.logger=P,this.commonService=he,this.store=at,this.loopService=jt,this.selectedSwapType=Q.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=Q.Fq,this.faHistory=y.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.pageSize=Q.IV,this.pageSizeOptions=Q.TJ,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.displayedColumns=this.screenSize===Q.cu.XS||this.screenSize===Q.cu.SM?["state","amt","actions"]:this.screenSize===Q.cu.MD?["state","initiation_time","amt","actions"]:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"]}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(P){this.swapCaption=this.selectedSwapType===Q.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(P,he){var at,jt;this.loopService.getSwap((null===(jt=null===(at=P.id_bytes)||void 0===at?void 0:at.replace(/\//g,"_"))||void 0===jt?void 0:jt.replace(/\+/g,"-"))||"").pipe((0,C.R)(this.unSubs[2])).subscribe(Vi=>{this.store.dispatch((0,Ue.qR)({payload:{data:{type:Q.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Q.Fq[Vi.state||""],title:"Status",width:50,type:Q.Gi.STRING},{key:"amt",value:Vi.amt,title:"Amount (Sats)",width:50,type:Q.Gi.NUMBER}],[{key:"initiation_time",value:(Vi.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Q.Gi.DATE_TIME},{key:"last_update_time",value:(Vi.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Q.Gi.DATE_TIME}],[{key:"cost_server",value:Vi.cost_server,title:"Server Cost (Sats)",width:33,type:Q.Gi.NUMBER},{key:"cost_offchain",value:Vi.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Q.Gi.NUMBER},{key:"cost_onchain",value:Vi.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Q.Gi.NUMBER}],[{key:"id_bytes",value:Vi.id_bytes,title:"ID",width:100,type:Q.Gi.STRING}],[{key:"htlc_address",value:Vi.htlc_address,title:"HTLC Address",width:100,type:Q.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(P){this.listSwaps=new je.by([...P]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(he,at)=>he[at]&&isNaN(he[at])?he[at].toLocaleLowerCase():he[at]?+he[at]:null,this.listSwaps.filterPredicate=(he,at)=>JSON.stringify(he).toLowerCase().includes(at),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Q.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(fi.v),e.Y36(b.yh),e.Y36(us.W))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-swaps"]],viewQuery:function(P,he){if(1&P&&(e.Gf(Vn.YE,5),e.Gf(vs.NW,5)),2&P){let at;e.iGM(at=e.CRH())&&(he.sort=at.first),e.iGM(at=e.CRH())&&(he.paginator=at.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:vs.ye,useValue:(0,Q.pt)("Swaps")}]),e.TTD],decls:52,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(P,he){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"mat-form-field",5)(7,"input",6),e.NdJ("keyup",function(){return he.applyFilter()})("ngModelChange",function(jt){return he.selFilter=jt}),e.qZA()()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,Je,1,0,"mat-progress-bar",9),e.TgZ(11,"table",10,11),e.ynx(13,12),e.YNc(14,Pt,2,0,"th",13),e.YNc(15,ri,3,4,"td",14),e.BQk(),e.ynx(16,15),e.YNc(17,Mi,2,0,"th",13),e.YNc(18,Ii,3,4,"td",14),e.BQk(),e.ynx(19,16),e.YNc(20,tn,2,0,"th",13),e.YNc(21,tr,2,1,"td",14),e.BQk(),e.ynx(22,17),e.YNc(23,It,2,0,"th",13),e.YNc(24,li,2,1,"td",14),e.BQk(),e.ynx(25,18),e.YNc(26,vt,2,0,"th",13),e.YNc(27,qt,2,1,"td",14),e.BQk(),e.ynx(28,19),e.YNc(29,Ei,2,0,"th",13),e.YNc(30,Wi,2,1,"td",14),e.BQk(),e.ynx(31,20),e.YNc(32,$e,2,0,"th",21),e.YNc(33,We,4,3,"td",14),e.BQk(),e.ynx(34,22),e.YNc(35,Fe,2,0,"th",21),e.YNc(36,Dt,4,3,"td",14),e.BQk(),e.ynx(37,23),e.YNc(38,yi,2,0,"th",21),e.YNc(39,qi,4,3,"td",14),e.BQk(),e.ynx(40,24),e.YNc(41,Bn,2,0,"th",21),e.YNc(42,Br,4,3,"td",14),e.BQk(),e.ynx(43,25),e.YNc(44,ta,6,0,"th",26),e.YNc(45,ys,3,0,"td",27),e.BQk(),e.ynx(46,28),e.YNc(47,Hi,2,1,"td",29),e.BQk(),e.YNc(48,Fa,1,3,"tr",30),e.YNc(49,wr,1,0,"tr",31),e.YNc(50,$a,1,0,"tr",32),e.qZA(),e._UZ(51,"mat-paginator",33),e.qZA()()()),2&P&&(e.xp6(3),e.Q6J("icon",he.faHistory),e.xp6(2),e.hij("",he.swapCaption," History"),e.xp6(2),e.Q6J("ngModel",he.selFilter),e.xp6(3),e.Q6J("ngIf",!0===he.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",he.listSwaps)("ngClass",e.VKq(12,va,"error"===he.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(14,Ts)),e.xp6(1),e.Q6J("matHeaderRowDef",he.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",he.displayedColumns),e.xp6(1),e.Q6J("pageSize",he.pageSize)("pageSizeOptions",he.pageSizeOptions)("showFirstLastButtons",he.screenSize!==he.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,B.BN,ut.KE,Wt.Nt,Ae.Fj,Ae.JJ,Ae.On,q.$V,J.O5,Et.pW,je.BZ,Vn.YE,J.mk,un.oO,je.w1,je.fO,je.ge,Vn.nU,je.Dz,je.ev,Ie.gD,Ie.$L,ae.ey,we.lW,je.mD,je.yh,je.Ke,je.Q2,je.as,je.XQ,je.nj,je.Gk,vs.NW],pipes:[J.uU,J.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),Z})();const Da=function(Z){return["../",Z]};function za(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw().onSelectedIndexChange(jt)}),e._uU(1),e.qZA()}if(2&Z){const P=Le.$implicit,he=e.oxw();e.Q6J("active",he.activeTab.link===P.link)("routerLink",e.VKq(3,Da,P.link)),e.xp6(1),e.Oqu(P.name)}}let Va=(()=>{class Z{constructor(P,he,at){this.router=P,this.loopService=he,this.store=at,this.faInfinity=y.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Q.$I,this.selectedSwapType=Q.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.loopService.listSwaps();const P=this.links.find(he=>this.router.url.includes(he.link));this.activeTab=P||this.links[0],this.selectedSwapType=P&&"loopin"===P.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT,this.router.events.pipe((0,C.R)(this.unSubs[0]),(0,le.h)(he=>he instanceof I.Av)).subscribe({next:he=>{const at=this.links.find(jt=>he.urlAfterRedirects.includes(jt.link));this.activeTab=at||this.links[0],this.selectedSwapType=at&&"loopin"===at.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,C.R)(this.unSubs[1])).subscribe({next:he=>{var at;this.flgLoading[0]=!1,this.storedSwaps=he,this.filteredSwaps=null===(at=this.storedSwaps)||void 0===at?void 0:at.filter(jt=>jt.type===this.selectedSwapType)},error:he=>{this.flgLoading[0]="error",this.emptyTableMessage=he.message?he.message:"No loop "+(this.selectedSwapType===Q.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(P){var he;this.selectedSwapType="loopin"===P.link?Q.$I.LOOP_IN:Q.$I.LOOP_OUT,this.filteredSwaps=null===(he=this.storedSwaps)||void 0===he?void 0:he.filter(at=>at.type===this.selectedSwapType)}onLoop(P){P===Q.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,C.R)(this.unSubs[2])).subscribe({next:he=>{this.store.dispatch((0,Ue.qR)({payload:{data:{minQuote:he[0],maxQuote:he[1],direction:P,component:kr.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,C.R)(this.unSubs[3])).subscribe({next:he=>{this.store.dispatch((0,Ue.qR)({payload:{data:{minQuote:he[0],maxQuote:he[1],direction:P,component:kr.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(I.F0),e.Y36(us.W),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(P,he){1&P&&(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,za,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return he.onLoop(he.selectedSwapType)}),e._uU(11),e.qZA()(),e._UZ(12,"rtl-swaps",9),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("icon",he.faInfinity),e.xp6(7),e.Q6J("ngForOf",he.links),e.xp6(3),e.hij("Start ",he.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",he.selectedSwapType)("swapsData",he.filteredSwaps)("flgLoading",he.flgLoading)("emptyTableMessage",he.emptyTableMessage))},directives:[_.xw,_.Wh,B.BN,N.a8,N.dn,H.BU,J.sg,H.Nj,I.rH,we.lW,La,_.yH],styles:[""]}),Z})();var Ba=p(7772),aa=p(1135),Ur=p(2843),hs=p(262),_t=p(2340),se=p(1786);let pe=(()=>{class Z{constructor(P,he,at,jt){this.httpClient=P,this.logger=he,this.store=at,this.commonService=jt,this.swapUrl="",this.swaps={},this.swapsChanged=new aa.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ue.ac)({payload:Q.m6.GET_BOLTZ_SWAPS})),this.swapUrl=_t.T5+_t.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,C.R)(this.unSubs[0])).subscribe({next:P=>{this.store.dispatch((0,Ue.uO)({payload:Q.m6.GET_BOLTZ_SWAPS})),this.swaps=P,this.swapsChanged.next(this.swaps)},error:P=>this.swapsChanged.error(this.handleErrorWithAlert(Q.m6.GET_BOLTZ_SWAPS,this.swapUrl,P))})}swapInfo(P){return this.swapUrl=_t.T5+_t.NZ.BOLTZ_API+"/swapInfo/"+P,this.httpClient.get(this.swapUrl).pipe((0,hs.K)(he=>(0,U.of)(this.handleErrorWithAlert(Q.m6.NO_SPINNER,this.swapUrl,he))))}serviceInfo(){return this.store.dispatch((0,Ue.ac)({payload:Q.m6.GET_SERVICE_INFO})),this.swapUrl=_t.T5+_t.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,C.R)(this.unSubs[1]),(0,u.U)(P=>(this.store.dispatch((0,Ue.uO)({payload:Q.m6.GET_SERVICE_INFO})),P)),(0,hs.K)(P=>(0,U.of)(this.handleErrorWithAlert(Q.m6.GET_SERVICE_INFO,this.swapUrl,P))))}swapOut(P,he){const at={amount:P,address:he};return this.swapUrl=_t.T5+_t.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,at).pipe((0,hs.K)(jt=>this.handleErrorWithoutAlert("Swap Out for Address: "+he,Q.m6.NO_SPINNER,jt)))}swapIn(P){const he={amount:P};return this.swapUrl=_t.T5+_t.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,he).pipe((0,hs.K)(at=>this.handleErrorWithoutAlert("Swap In for Amount: "+P,Q.m6.NO_SPINNER,at)))}handleErrorWithoutAlert(P,he,at){let jt="";return this.logger.error("ERROR IN: "+P+"\n"+JSON.stringify(at)),this.store.dispatch((0,Ue.uO)({payload:he})),401===at.status?(jt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ue.kS)())):503===at.status?(jt="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ue.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:at.status,message:"Unable to Connect to Boltz Server",URL:P},component:se.H}}}))):jt=this.commonService.extractErrorMessage(at),(0,Ur._)(()=>new Error(jt))}handleErrorWithAlert(P,he,at){let jt="";if(401===at.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ue.kS)())),this.logger.error(at),this.store.dispatch((0,Ue.uO)({payload:P})),401===at.status)jt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ue.kS)());else if(503===at.status)jt="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ue.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:at.status,message:"Unable to Connect to Boltz Server",URL:he},component:se.H}}}))},100);else{jt=this.commonService.extractErrorMessage(at);const Vi=at.error&&at.error.error&&at.error.error.code?at.error.error.code:at.error&&at.error.code?at.error.code:at.code?at.code:at.status;setTimeout(()=>{this.store.dispatch((0,Ue.qR)({payload:{data:{type:Q.n_.ERROR,alertTitle:"ERROR",message:{code:Vi,message:jt,URL:he},component:se.H}}}))},100)}return{message:jt}}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.LFG(M.eN),e.LFG(Ce.mQ),e.LFG(b.yh),e.LFG(fi.v))},Z.\u0275prov=e.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),Ye=(()=>{class Z{constructor(){this.serviceInfo={},this.direction=Q.hc.SWAP_OUT,this.swapTypeEnum=Q.hc}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){1&P&&(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&P&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==he.serviceInfo||null==he.serviceInfo.limits?null:he.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==he.serviceInfo||null==he.serviceInfo.limits?null:he.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==he.serviceInfo||null==he.serviceInfo.fees?null:he.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,he.direction===he.swapTypeEnum.SWAP_OUT?null==he.serviceInfo||null==he.serviceInfo.fees||null==he.serviceInfo.fees.miner?null:he.serviceInfo.fees.miner.reverse:null==he.serviceInfo||null==he.serviceInfo.fees||null==he.serviceInfo.fees.miner?null:he.serviceInfo.fees.miner.normal)))},directives:[lr.ib,_.yH,lr.yz,lr.yK,_.Wh,_.xw,Ge.d],pipes:[J.JJ],styles:[""]}),Z})();function Mt(Z,Le){1&Z&&e.GkF(0)}function zt(Z,Le){if(1&Z&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&Z){const P=e.oxw();e.xp6(2),e.Oqu(null!=P.swapStatus&&P.swapStatus.error?null==P.swapStatus?null:P.swapStatus.error:"Unknown Error.")}}function ii(Z,Le){if(1&Z&&(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&Z){const P=e.oxw();e.xp6(6),e.Oqu(null==P.swapStatus?null:P.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==P.swapStatus?null:P.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==P.swapStatus?null:P.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==P.swapStatus?null:P.swapStatus.lockupAddress)}}function ni(Z,Le){if(1&Z&&(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&Z){const P=e.oxw();e.xp6(6),e.Oqu(null==P.swapStatus?null:P.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==P.swapStatus?null:P.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==P.swapStatus?null:P.swapStatus.address),e.xp6(7),e.Oqu(null==P.swapStatus?null:P.swapStatus.bip21)}}let gi=(()=>{class Z{constructor(){this.swapStatus=null,this.direction=Q.hc.SWAP_OUT,this.swapTypeEnum=Q.hc}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){if(1&P&&(e.YNc(0,Mt,1,0,"ng-container",0),e.YNc(1,zt,3,1,"ng-template",null,1,e.W1O),e.YNc(3,ii,25,6,"ng-template",null,2,e.W1O),e.YNc(5,ni,27,6,"ng-template",null,3,e.W1O)),2&P){const at=e.MAs(2),jt=e.MAs(4),Vi=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=he.swapStatus&&he.swapStatus.error?at:he.direction===he.swapTypeEnum.SWAP_OUT?jt:Vi)}},directives:[J.tP,_.xw,_.yH,_.Wh,Ge.d],pipes:[J.JJ],styles:[""]}),Z})();var Oi=p(113);function en(Z,Le){1&Z&&e.GkF(0)}const hn=function(Z,Le){return{"small-svg":Z,"large-svg":Le}};function Ln(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,hn,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function zn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,hn,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function En(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,hn,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function kn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,hn,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function rr(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,hn,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}let Pr=(()=>{class Z{constructor(P){this.commonService=P,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Q.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(P){2===P.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===P.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(fi.v))},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){if(1&P&&(e.YNc(0,en,1,0,"ng-container",0),e.YNc(1,Ln,18,5,"ng-template",null,1,e.W1O),e.YNc(3,zn,19,5,"ng-template",null,2,e.W1O),e.YNc(5,En,19,5,"ng-template",null,3,e.W1O),e.YNc(7,kn,17,5,"ng-template",null,4,e.W1O),e.YNc(9,rr,13,5,"ng-template",null,5,e.W1O)),2&P){const at=e.MAs(2),jt=e.MAs(4),Vi=e.MAs(6),On=e.MAs(8),$i=e.MAs(10);e.Q6J("ngTemplateOutlet",1===he.stepNumber?at:2===he.stepNumber?jt:3===he.stepNumber?Vi:4===he.stepNumber?On:$i)}},directives:[J.tP,_.xw,_.yH,_.Wh,J.mk,un.oO,N.n5,N.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Oi.l]}}),Z})();function Sr(Z,Le){1&Z&&e.GkF(0)}const Nr=function(Z,Le){return{"small-svg":Z,"large-svg":Le}};function es(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Nr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function br(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Nr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Yr(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Nr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Gn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Nr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function yr(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(at){return e.CHM(P),e.oxw().onSwipe(at)}),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&Z){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Nr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}let Ks=(()=>{class Z{constructor(P){this.commonService=P,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Q.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(P){2===P.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===P.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(fi.v))},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){if(1&P&&(e.YNc(0,Sr,1,0,"ng-container",0),e.YNc(1,es,18,5,"ng-template",null,1,e.W1O),e.YNc(3,br,15,5,"ng-template",null,2,e.W1O),e.YNc(5,Yr,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Gn,17,5,"ng-template",null,4,e.W1O),e.YNc(9,yr,13,5,"ng-template",null,5,e.W1O)),2&P){const at=e.MAs(2),jt=e.MAs(4),Vi=e.MAs(6),On=e.MAs(8),$i=e.MAs(10);e.Q6J("ngTemplateOutlet",1===he.stepNumber?at:2===he.stepNumber?jt:3===he.stepNumber?Vi:4===he.stepNumber?On:$i)}},directives:[J.tP,_.xw,_.yH,_.Wh,J.mk,un.oO,N.n5,N.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Oi.l]}}),Z})();const Hs=["stepper"];function wa(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw(2);e.Oqu(P.inputFormLabel)}}function Qs(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function As(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.minimal),".")}}function ya(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.maximal),".")}}function xa(Z,Le){1&Z&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function dn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onSwap()}),e._uU(1),e.qZA()}if(2&Z){const P=e.oxw(2);e.xp6(1),e.hij("Initiate ",P.swapDirectionCaption,"")}}function xn(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw(3);e.Oqu(P.addressFormLabel)}}function Tn(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Jn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,xn,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(at){return e.CHM(P),e.oxw(2).onAddressTypeChange(at)}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46),e._UZ(10,"input",47),e.YNc(11,Tn,2,0,"mat-error",24),e.qZA()(),e.TgZ(12,"div",25)(13,"button",48),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onSwap()}),e._uU(14),e.qZA()()()()}if(2&Z){const P=e.oxw(2);e.Q6J("stepControl",P.addressFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.addressFormGroup),e.xp6(9),e.Q6J("required","external"===P.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==P.addressFormGroup.controls.address.errors?null:P.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",P.swapDirectionCaption,"")}}function gr(Z,Le){if(1&Z&&e._uU(0),2&Z){const P=e.oxw(2);e.hij("",P.swapDirectionCaption," Status")}}function Ls(Z,Le){if(1&Z&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.Oqu(P.swapStatus&&null!=P.swapStatus&&P.swapStatus.id?"check":"close")}}function Gr(Z,Le){1&Z&&e._UZ(0,"div")}function ia(Z,Le){1&Z&&e._UZ(0,"mat-progress-bar",50)}function ur(Z,Le){if(1&Z&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.Oqu(P.swapStatus&&P.swapStatus.error?P.swapDirectionCaption+" failed.":P.swapStatus&&P.swapStatus.id?P.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":P.swapDirectionCaption+" request placed successfully.")}}function rt(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function St(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){return e.CHM(P),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(P),e.oxw().onClose()}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(at){return e.CHM(P),e.oxw().stepSelectionChanged(at)}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,wa,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21),e._UZ(22,"input",22),e.TgZ(23,"mat-hint"),e._uU(24),e.ALo(25,"number"),e.ALo(26,"number"),e.qZA(),e.TgZ(27,"span",23),e._uU(28,"Sats"),e.qZA(),e.YNc(29,Qs,2,0,"mat-error",24),e.YNc(30,As,3,3,"mat-error",24),e.YNc(31,ya,3,3,"mat-error",24),e.qZA()(),e.TgZ(32,"div",25),e.YNc(33,xa,2,0,"button",26),e.YNc(34,dn,2,1,"button",27),e.qZA()()(),e.YNc(35,Jn,15,6,"mat-step",28),e.TgZ(36,"mat-step",29)(37,"form",16),e.YNc(38,gr,1,1,"ng-template",17),e.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),e._uU(44),e.YNc(45,Ls,2,1,"mat-icon",33),e.qZA()()(),e.YNc(46,Gr,1,0,"div",34),e.qZA(),e.YNc(47,ia,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(48,ur,2,1,"h4",36),e.TgZ(49,"div",25),e.YNc(50,rt,2,0,"button",37),e.qZA()()()(),e.TgZ(51,"div",38)(52,"button",39),e._uU(53,"Close"),e.qZA()()()()()()}if(2&Z){const P=e.oxw(),he=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",P.screenSize===P.screenSizeEnum.XS||P.screenSize===P.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(P.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",P.screenSize===P.screenSizeEnum.XS||P.screenSize===P.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",P.inputFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",P.serviceInfo)("direction",P.direction),e.xp6(3),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(25,30,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.minimal),"-",e.lcZ(26,32,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",P.statusFormGroup),e.xp6(1),e.Q6J("formGroup",P.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!P.swapStatus),e.xp6(4),e.Oqu(P.swapStatus?P.swapStatus.id?P.swapDirectionCaption+" request details":P.swapDirectionCaption+" error details":"Waiting for "+P.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",P.swapStatus),e.xp6(1),e.Q6J("ngIf",!P.swapStatus)("ngIfElse",he),e.xp6(1),e.Q6J("ngIf",!P.swapStatus),e.xp6(1),e.Q6J("ngIf",P.swapStatus),e.xp6(2),e.Q6J("ngIf",P.swapStatus&&(P.swapStatus.error||!P.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function wt(Z,Le){if(1&Z&&e._UZ(0,"rtl-boltz-swap-status",53),2&Z){const P=e.oxw();e.Q6J("swapStatus",P.swapStatus)("direction",P.direction)}}function Ft(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(at){return e.CHM(P),e.oxw(2).stepNumber=at}),e.qZA()}if(2&Z){const P=e.oxw(2);e.Q6J("stepNumber",P.stepNumber)("animationDirection",P.animationDirection)}}function Xt(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(at){return e.CHM(P),e.oxw(2).stepNumber=at}),e.qZA()}if(2&Z){const P=e.oxw(2);e.Q6J("stepNumber",P.stepNumber)("animationDirection",P.animationDirection)}}const pi=function(Z,Le){return{"dot-primary":Z,"dot-primary-lighter":Le}};function _i(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw(2).onStepChanged(jt)}),e._UZ(1,"p",72),e.qZA()}if(2&Z){const P=Le.$implicit,he=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,pi,he.stepNumber===P,he.stepNumber!==P))}}function Di(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onReadMore()}),e._uU(1,"Read More"),e.qZA()}}function Fi(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function ln(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(P);const at=e.oxw(2);return at.flgShowInfo=!1,at.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function rn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(P);const at=e.oxw(2);return at.flgShowInfo=!1,at.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function fn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(P);const at=e.oxw(2);return at.onStepChanged(at.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function Qn(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(P);const at=e.oxw(2);return at.onStepChanged(at.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const ir=function(){return[1,2,3,4,5]};function ss(Z,Le){if(1&Z){const P=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(P);const at=e.oxw();return at.flgShowInfo=!1,at.stepNumber=1}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,Ft,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,Xt,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,_i,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,Di,2,0,"button",64),e.YNc(15,Fi,2,0,"button",65),e.YNc(16,ln,2,0,"button",66),e.YNc(17,rn,2,0,"button",67),e.YNc(18,fn,2,0,"button",68),e.YNc(19,Qn,2,0,"button",69),e.qZA()()()}if(2&Z){const P=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,ir)),e.xp6(2),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",P.stepNumber<5),e.xp6(1),e.Q6J("ngIf",P.stepNumber>1&&P.stepNumber<5),e.xp6(1),e.Q6J("ngIf",P.stepNumber<5)}}let Ve=(()=>{class Z{constructor(P,he,at,jt,Vi,On,$i,vr,fs){this.dialogRef=P,this.data=he,this.store=at,this.boltzService=jt,this.formBuilder=Vi,this.decimalPipe=On,this.logger=$i,this.router=vr,this.commonService=fs,this.faInfoCircle=y.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Q.hc,this.direction=Q.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=Q.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){var P,he,at;this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Q.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===Q.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal,[Ae.kI.required,Ae.kI.min((null===(he=this.serviceInfo.limits)||void 0===he?void 0:he.minimal)||0),Ae.kI.max((null===(at=this.serviceInfo.limits)||void 0===at?void 0:at.maximal)||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ae.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Q.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Q.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,C.R)(this.unSubs[2])).subscribe(P=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(P){"external"===P.value?(this.addressFormGroup.controls.address.setValidators([Ae.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){var P,he,at;if(!this.inputFormGroup.controls.amount.value||(null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal)&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||(null===(he=this.serviceInfo.limits)||void 0===he?void 0:he.maximal)&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Q.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,null===(at=this.stepper.selected)||void 0===at||at.stepControl.setErrors(null),this.stepper.next(),this.direction===Q.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,C.R)(this.unSubs[3])).subscribe({next:jt=>{this.swapStatus=jt,this.boltzService.listSwaps(),this.flgEditable=!0},error:jt=>{this.swapStatus={error:jt},this.flgEditable=!0,this.logger.error(jt)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,C.R)(this.unSubs[4])).subscribe({next:Vi=>{this.swapStatus=Vi,this.boltzService.listSwaps(),this.flgEditable=!0},error:Vi=>{this.swapStatus={error:Vi},this.flgEditable=!0,this.logger.error(Vi)}})}stepSelectionChanged(P){switch(P.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"}P.selectedIndex<P.previouslySelectedIndex&&P.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===Q.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(P){this.animationDirection=P<this.stepNumber?"backward":"forward",this.stepNumber=P}onRestart(){var P;this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal}),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(He.so),e.Y36(He.WI),e.Y36(b.yh),e.Y36(pe),e.Y36(Ae.qu),e.Y36(J.JJ),e.Y36(Ce.mQ),e.Y36(I.F0),e.Y36(fi.v))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(P,he){if(1&P&&e.Gf(Hs,5),2&P){let at;e.iGM(at=e.CRH())&&(he.stepper=at.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(P,he){1&P&&(e.YNc(0,St,54,34,"div",0),e.YNc(1,wt,1,2,"ng-template",null,1,e.W1O),e.YNc(3,ss,20,11,"div",2)),2&P&&(e.Q6J("ngIf",!he.flgShowInfo),e.xp6(3),e.Q6J("ngIf",he.flgShowInfo))},directives:[J.O5,_.xw,_.yH,_.Wh,N.dk,we.lW,N.dn,di.Vq,di.C0,Ae._Y,Ae.JL,Ae.sg,di.VY,Ye,ut.KE,Wt.Nt,Ae.wV,Ae.Fj,De.h,Ae.JJ,Ae.u,Ae.Q7,ut.bx,ut.R9,ut.TO,di.Ic,ki.VQ,ki.U0,lr.ib,lr.yz,lr.yK,qr.Hw,Et.pW,He.ZT,gi,Pr,Ks,J.sg,J.mk,un.oO],pipes:[J.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[Ba._]}}),Z})();function Me(Z,Le){1&Z&&e._UZ(0,"mat-progress-bar",32)}function me(Z,Le){1&Z&&(e.TgZ(0,"th",33),e._uU(1," Status "),e.qZA())}function Qe(Z,Le){if(1&Z&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw();e.xp6(1),e.Oqu(he.swapStateEnum[P.status])}}function ct(Z,Le){1&Z&&(e.TgZ(0,"th",33),e._uU(1," Swap ID "),e.qZA())}function kt(Z,Le){if(1&Z&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(P.id)}}function Qt(Z,Le){1&Z&&(e.TgZ(0,"th",33),e._uU(1," Claim Address "),e.qZA())}function si(Z,Le){if(1&Z&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(P.claimAddress)}}function Li(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," Onchain Amount (Sats) "),e.qZA())}function an(Z,Le){if(1&Z&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.onchainAmount))}}function In(Z,Le){1&Z&&(e.TgZ(0,"th",33),e._uU(1," Lockup Address "),e.qZA())}function bn(Z,Le){if(1&Z&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.xp6(1),e.Oqu(P.lockupAddress)}}function _r(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," Expected Amount (Sats) "),e.qZA())}function hr(Z,Le){if(1&Z&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.expectedAmount))}}function oa(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," Timeout Block Height "),e.qZA())}function Ia(Z,Le){if(1&Z&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.timeoutBlockHeight))}}function Ko(Z,Le){1&Z&&(e.TgZ(0,"th",35),e._uU(1," Amount (Sats) "),e.qZA())}function Qo(Z,Le){if(1&Z&&(e.TgZ(0,"td",34)(1,"span",36),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&Z){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,P.amt))}}function Ds(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(P),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Ua(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"td",41)(1,"button",42),e.NdJ("click",function(at){const Vi=e.CHM(P).$implicit;return e.oxw().onSwapClick(Vi,at)}),e._uU(2,"View Info"),e.qZA()()}}function Bc(Z,Le){if(1&Z&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(1),e.Oqu(P.emptyTableMessage)}}function eo(Z,Le){if(1&Z&&(e.TgZ(0,"td",43),e.YNc(1,Bc,2,1,"p",44),e.qZA()),2&Z){const P=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=P.listSwaps&&P.listSwaps.data)||(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)<1)}}const Z1=function(Z){return{"display-none":Z}};function qo(Z,Le){if(1&Z&&e._UZ(0,"tr",45),2&Z){const P=e.oxw();e.Q6J("ngClass",e.VKq(1,Z1,(null==P.listSwaps?null:P.listSwaps.data)&&(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)>0))}}function Zl(Z,Le){1&Z&&e._UZ(0,"tr",46)}function pl(Z,Le){1&Z&&e._UZ(0,"tr",47)}const Wl=function(Z){return{"overflow-auto error-border":Z,"overflow-auto":!0}},po=function(){return["no_swap"]};let Lo=(()=>{class Z{constructor(P,he,at,jt){this.logger=P,this.commonService=he,this.store=at,this.boltzService=jt,this.selectedSwapType=Q.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=Q.Qw,this.faHistory=y.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.pageSize=Q.IV,this.pageSizeOptions=Q.TJ,this.screenSize="",this.screenSizeEnum=Q.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(P){P.selectedSwapType&&!P.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Q.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.displayedColumns=this.screenSize===Q.cu.XS||this.screenSize===Q.cu.SM?this.selectedSwapType===Q.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]:this.screenSize===Q.cu.MD?this.selectedSwapType===Q.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]:this.selectedSwapType===Q.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"]}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(P,he){this.boltzService.swapInfo(P.id||"").pipe((0,C.R)(this.unSubs[1])).subscribe(at=>{this.store.dispatch((0,Ue.qR)({payload:{data:{type:Q.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Q.Qw[(at=this.selectedSwapType===Q.hc.SWAP_IN?at.swap:at.reverseSwap).status],title:"Status",width:50,type:Q.Gi.STRING},{key:"id",value:at.id,title:"ID",width:50,type:Q.Gi.STRING}],[{key:"amount",value:at.onchainAmount?at.onchainAmount:at.expectedAmount?at.expectedAmount:0,title:at.onchainAmount?"Onchain Amount (Sats)":at.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Q.Gi.NUMBER},{key:"timeoutBlockHeight",value:at.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Q.Gi.NUMBER}],[{key:"address",value:at.claimAddress?at.claimAddress:at.lockupAddress?at.lockupAddress:"",title:at.claimAddress?"Claim Address":at.lockupAddress?"Lockup Address":"Address",width:100,type:Q.Gi.STRING}],[{key:"invoice",value:at.invoice,title:"Invoice",width:100,type:Q.Gi.STRING}],[{key:"privateKey",value:at.privateKey,title:"Private Key",width:100,type:Q.Gi.STRING}],[{key:"preimage",value:at.preimage,title:"Preimage",width:100,type:Q.Gi.STRING}],[{key:"redeemScript",value:at.redeemScript,title:"Redeem Script",width:100,type:Q.Gi.STRING}],[{key:"lockupTransactionId",value:at.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Q.Gi.STRING},{key:"transactionId",value:at.claimTransactionId?at.claimTransactionId:at.refundTransactionId?at.refundTransactionId:"",title:at.claimTransactionId?"Claim Transaction ID":at.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Q.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(P){this.listSwaps=new je.by(P?[...P]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(he,at)=>he[at]&&isNaN(he[at])?he[at].toLocaleLowerCase():he[at]?+he[at]:null,this.listSwaps.filterPredicate=(he,at)=>JSON.stringify(he).toLowerCase().includes(at),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Q.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(fi.v),e.Y36(b.yh),e.Y36(pe))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-boltz-swaps"]],viewQuery:function(P,he){if(1&P&&(e.Gf(Vn.YE,5),e.Gf(vs.NW,5)),2&P){let at;e.iGM(at=e.CRH())&&(he.sort=at.first),e.iGM(at=e.CRH())&&(he.paginator=at.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:vs.ye,useValue:(0,Q.pt)("Swaps")}]),e.TTD],decls:46,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(P,he){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"mat-form-field",5)(7,"input",6),e.NdJ("keyup",function(){return he.applyFilter()})("ngModelChange",function(jt){return he.selFilter=jt}),e.qZA()()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,Me,1,0,"mat-progress-bar",9),e.TgZ(11,"table",10,11),e.ynx(13,12),e.YNc(14,me,2,0,"th",13),e.YNc(15,Qe,2,1,"td",14),e.BQk(),e.ynx(16,15),e.YNc(17,ct,2,0,"th",13),e.YNc(18,kt,2,1,"td",14),e.BQk(),e.ynx(19,16),e.YNc(20,Qt,2,0,"th",13),e.YNc(21,si,2,1,"td",14),e.BQk(),e.ynx(22,17),e.YNc(23,Li,2,0,"th",18),e.YNc(24,an,4,3,"td",14),e.BQk(),e.ynx(25,19),e.YNc(26,In,2,0,"th",13),e.YNc(27,bn,2,1,"td",14),e.BQk(),e.ynx(28,20),e.YNc(29,_r,2,0,"th",18),e.YNc(30,hr,4,3,"td",14),e.BQk(),e.ynx(31,21),e.YNc(32,oa,2,0,"th",18),e.YNc(33,Ia,4,3,"td",14),e.BQk(),e.ynx(34,22),e.YNc(35,Ko,2,0,"th",18),e.YNc(36,Qo,4,3,"td",14),e.BQk(),e.ynx(37,23),e.YNc(38,Ds,6,0,"th",24),e.YNc(39,Ua,3,0,"td",25),e.BQk(),e.ynx(40,26),e.YNc(41,eo,2,1,"td",27),e.BQk(),e.YNc(42,qo,1,3,"tr",28),e.YNc(43,Zl,1,0,"tr",29),e.YNc(44,pl,1,0,"tr",30),e.qZA(),e._UZ(45,"mat-paginator",31),e.qZA()()()),2&P&&(e.xp6(3),e.Q6J("icon",he.faHistory),e.xp6(2),e.hij("",he.swapCaption," History"),e.xp6(2),e.Q6J("ngModel",he.selFilter),e.xp6(3),e.Q6J("ngIf",!0===he.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",he.listSwaps)("ngClass",e.VKq(12,Wl,"error"===he.flgLoading[0])),e.xp6(31),e.Q6J("matFooterRowDef",e.DdM(14,po)),e.xp6(1),e.Q6J("matHeaderRowDef",he.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",he.displayedColumns),e.xp6(1),e.Q6J("pageSize",he.pageSize)("pageSizeOptions",he.pageSizeOptions)("showFirstLastButtons",he.screenSize!==he.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,B.BN,ut.KE,Wt.Nt,Ae.Fj,Ae.JJ,Ae.On,q.$V,J.O5,Et.pW,je.BZ,Vn.YE,J.mk,un.oO,je.w1,je.fO,je.ge,Vn.nU,je.Dz,je.ev,Ie.gD,Ie.$L,ae.ey,we.lW,je.mD,je.yh,je.Ke,je.Q2,je.as,je.XQ,je.nj,je.Gk,vs.NW],pipes:[J.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),Z})();const Jo=function(Z){return["../",Z]};function ml(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw().onSelectedIndexChange(jt)}),e._uU(1),e.qZA()}if(2&Z){const P=Le.$implicit,he=e.oxw();e.Q6J("active",he.activeTab.link===P.link)("routerLink",e.VKq(3,Jo,P.link)),e.xp6(1),e.Oqu(P.name)}}let Yl=(()=>{class Z{constructor(P,he,at){this.router=P,this.store=he,this.boltzService=at,this.swapTypeEnum=Q.hc,this.selectedSwapType=Q.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.boltzService.listSwaps();const P=this.links.find(he=>this.router.url.includes(he.link));this.activeTab=P||this.links[0],this.selectedSwapType=P&&"swapin"===P.link?Q.hc.SWAP_IN:Q.hc.SWAP_OUT,this.router.events.pipe((0,C.R)(this.unSubs[0]),(0,le.h)(he=>he instanceof I.Av)).subscribe({next:he=>{const at=this.links.find(jt=>he.urlAfterRedirects.includes(jt.link));this.activeTab=at||this.links[0],this.selectedSwapType=at&&"swapin"===at.link?Q.hc.SWAP_IN:Q.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,C.R)(this.unSubs[1])).subscribe({next:he=>{this.swaps=he,this.swapsData=this.selectedSwapType===Q.hc.SWAP_IN&&he.swaps?he.swaps:this.selectedSwapType===Q.hc.SWAP_OUT&&he.reverseSwaps?he.reverseSwaps:[],this.flgLoading[0]=!1},error:he=>{this.flgLoading[0]="error",this.emptyTableMessage=he.message?he.message:"No swap "+(this.selectedSwapType===Q.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(P){"swapin"===P.link?(this.selectedSwapType=Q.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Q.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(P){this.boltzService.serviceInfo().pipe((0,C.R)(this.unSubs[2])).subscribe({next:he=>{this.store.dispatch((0,Ue.qR)({payload:{data:{serviceInfo:he,direction:P,component:Ve}}}))}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(I.F0),e.Y36(b.yh),e.Y36(pe))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(P,he){1&P&&(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,ml,2,5,"div",11),e.qZA(),e.TgZ(14,"div",12)(15,"button",13),e.NdJ("click",function(){return he.onSwap(he.selectedSwapType)}),e._uU(16),e.qZA()(),e._UZ(17,"rtl-boltz-swaps",14),e.qZA()()()),2&P&&(e.xp6(13),e.Q6J("ngForOf",he.links),e.xp6(3),e.hij("Start ",he.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",he.selectedSwapType)("swapsData",he.swapsData)("flgLoading",he.flgLoading)("emptyTableMessage",he.emptyTableMessage))},directives:[_.xw,_.Wh,N.a8,N.dn,_.yH,H.BU,J.sg,H.Nj,I.rH,we.lW,Lo],styles:[""]}),Z})();class ts{constructor(Le){this.help=Le}}function j1(Z,Le){if(1&Z&&(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&Z){const P=e.oxw().$implicit,he=e.oxw();e.xp6(3),e.Oqu(P.help.question),e.xp6(2),e.Q6J("innerHTML",P.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",he.flgLoggedIn?P.help.link:"/login"),e.xp6(1),e.Oqu(he.flgLoggedIn?P.help.linkCaption:"Login to go to the page")}}function Bs(Z,Le){if(1&Z&&(e.TgZ(0,"div",6),e.YNc(1,j1,8,4,"mat-expansion-panel",7),e.qZA()),2&Z){const P=Le.$implicit,he=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===P.help.lnImplementation||P.help.lnImplementation===he.selNode.lnImplementation)}}let qs=(()=>{class Z{constructor(P,he){this.store=P,this.sessionService=he,this.helpTopics=[],this.faQuestion=y.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{this.flgLoggedIn=!!P.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new ts({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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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. Vendor - Vendor 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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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 ts({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(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(b.yh),e.Y36(Ee.m))},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){1&P&&(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,Bs,2,1,"div",5),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",he.faQuestion),e.xp6(5),e.Q6J("ngForOf",he.helpTopics))},directives:[_.xw,_.yH,_.Wh,B.BN,J.sg,J.O5,lr.ib,lr.yz,lr.yK,lr.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),Z})();var K1=p(9841);function jl(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let to=(()=>{class Z{constructor(P,he){this.dialogRef=P,this.store=he,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ue.M6)({payload:{twoFAToken:this.token}}))}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(He.so),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(P,he){1&P&&(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 he.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return he.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"input",9),e.NdJ("ngModelChange",function(jt){return he.token=jt}),e.qZA(),e.YNc(13,jl,2,0,"mat-error",10),e.qZA(),e.TgZ(14,"div",11)(15,"button",12),e._uU(16,"Verify Token"),e.qZA()()()()()()),2&P&&(e.xp6(12),e.Q6J("ngModel",he.token),e.xp6(1),e.Q6J("ngIf",!he.token))},directives:[_.xw,_.Wh,_.yH,N.dk,we.lW,N.dn,Ae._Y,Ae.JL,Ae.F,ut.KE,Wt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,J.O5,ut.TO],styles:[""]}),Z})();function Io(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function xs(Z,Le){if(1&Z&&(e.TgZ(0,"p",21)(1,"mat-icon",22),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&Z){const P=e.oxw();e.xp6(3),e.hij(" ",P.loginErrorMessage," ")}}const Sa=function(Z){return{"padding-gap-large":Z}},Oo=function(Z,Le){return{"font-size-200":Z,"font-size-300":Le}};let Q1=(()=>{class Z{constructor(P,he,at,jt){this.logger=P,this.store=he,this.rtlEffects=at,this.commonService=jt,this.faUnlockAlt=y.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Q.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Q.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,K1.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,C.R)(this.unSubs[0])).subscribe(([P,he])=>{this.loginErrorMessage="",P.status===Q.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof P.message?JSON.stringify(P.message):P.message),this.logger.error(P.message)),he.status===Q.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof he.message?JSON.stringify(he.message):he.message),this.logger.error(he.message))}),this.store.select(n.Yj).pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{this.appConfig=P,this.logger.info(P)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Ue.qR)({payload:{maxWidth:"35rem",data:{component:to}}})),this.rtlEffects.closeAlert.pipe((0,fe.q)(1)).subscribe(P=>{P&&this.store.dispatch((0,Ue.x4)({payload:{password:be(this.password),defaultPassword:Q.kO.includes(this.password.toLowerCase()),twoFAToken:P.twoFAToken}}))})):this.store.dispatch((0,Ue.x4)({payload:{password:be(this.password),defaultPassword:Q.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh),e.Y36(et.V),e.Y36(fi.v))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),e.NdJ("ngModelChange",function(jt){return he.password=jt}),e.qZA(),e.TgZ(16,"mat-icon",15),e.NdJ("click",function(){return he.flgShow=!he.flgShow}),e._uU(17),e.qZA(),e.YNc(18,Io,2,0,"mat-error",16),e.qZA(),e.YNc(19,xs,4,1,"p",17),e.TgZ(20,"div",18)(21,"button",19),e.NdJ("click",function(){return he.resetData()}),e._uU(22,"Clear"),e.qZA(),e.TgZ(23,"button",20),e.NdJ("click",function(){return he.onLogin()}),e._uU(24,"Login"),e.qZA()()()()()()()()()),2&P&&(e.xp6(6),e.Q6J("ngClass",e.VKq(7,Sa,he.screenSize===he.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(9,Oo,he.screenSize===he.screenSizeEnum.XS,he.screenSize!==he.screenSizeEnum.XS)),e.xp6(7),e.Q6J("type",he.flgShow?"text":"password")("ngModel",he.password),e.xp6(2),e.Oqu(he.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!he.password),e.xp6(1),e.Q6J("ngIf",""!==he.loginErrorMessage))},directives:[_.xw,_.yH,_.Wh,N.a8,J.mk,un.oO,N.dk,N.n5,N.dn,Ae._Y,Ae.JL,Ae.F,ut.KE,Wt.Nt,Ae.Fj,De.h,Ae.Q7,Ae.JJ,Ae.On,qr.Hw,ut.R9,J.O5,ut.TO,we.lW],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 90rem){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 60rem){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),Z})();var q1=p(9442);let la=(()=>{class Z{constructor(P,he){this.activatedRoute=P,this.router=he,this.error={errorCode:"",errorMessage:""},this.faTimes=y.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,C.R)(this.unsubs[0])).subscribe(P=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(I.gz),e.Y36(I.F0))},Z.\u0275cmp=e.Xpm({type:Z,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(P,he){1&P&&(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 he.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&P&&(e.xp6(4),e.Q6J("icon",he.faTimes),e.xp6(2),e.hij("Error ",he.error.errorCode,""),e.xp6(3),e.Oqu(he.error.errorMessage))},directives:[_.xw,_.yH,_.Wh,N.a8,N.dk,N.n5,B.BN,N.dn,we.lW],encapsulation:2}),Z})();var sr=p(1643),Kl=p(8104),gl=p(6534),$o=p(9843);function _l(Z,Le){1&Z&&e._UZ(0,"span",16)}function J1(Z,Le){1&Z&&e._UZ(0,"span",17)}function X1(Z,Le){if(1&Z){const P=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(at){return e.CHM(P),e.oxw(2).enableOffers=at})("change",function(){return e.CHM(P),e.oxw(2).onUpdateFeature()}),e._uU(28),e.qZA()()}if(2&Z){const P=e.oxw(2);e.xp6(3),e.Q6J("icon",P.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",P.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",P.enableOffers),e.xp6(1),e.hij("Enable Offers ",P.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function U0(Z,Le){if(1&Z&&(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&Z){const P=e.oxw(3);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle)}}function Pd(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",e.lcZ(2,2,P.id)," ")}}function Uc(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(4);e.xp6(1),e.hij("",P.selPolicyType.placeholder," is required.")}}function Js(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(4);e.xp6(1),e.AsE("",P.selPolicyType.placeholder," must be greater than or equal to ",P.selPolicyType.min,".")}}function el(Z,Le){if(1&Z&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&Z){const P=e.oxw(4);e.xp6(1),e.AsE("",P.selPolicyType.placeholder," must be less than or equal to ",P.selPolicyType.max,".")}}function io(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function G0(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function mo(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function Ql(Z,Le){1&Z&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const ql=function(Z,Le){return{"alert-danger":Z,"alert-info":Le}};function $1(Z,Le){if(1&Z&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&Z){const P=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,ql,!!P.updateMsg.error,!!P.updateMsg.data)),e.xp6(1),e.hij(" ",P.updateMsg.error&&""!==P.updateMsg.error?"Error: "+P.updateMsg.error||0:P.updateMsg.data&&""!==P.updateMsg.data?P.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function Gc(Z,Le){if(1&Z){const P=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-select",34),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw(3).selPolicyType=at})("selectionChange",function(){return e.CHM(P),e.oxw(3).policyMod=null}),e.YNc(8,Pd,3,4,"mat-option",35),e.qZA()(),e.TgZ(9,"mat-form-field",36)(10,"input",37,38),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw(3).policyMod=at}),e.qZA(),e.TgZ(12,"mat-hint"),e._uU(13),e.qZA(),e.YNc(14,Uc,2,1,"mat-error",26),e.YNc(15,Js,2,2,"mat-error",26),e.YNc(16,el,2,2,"mat-error",26),e.qZA()(),e.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw(3).leaseFeeBaseSat=at}),e.qZA(),e.YNc(20,io,2,0,"mat-error",26),e.qZA(),e.TgZ(21,"mat-form-field",36)(22,"input",40),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw(3).leaseFeeBasis=at}),e.qZA(),e.YNc(23,G0,2,0,"mat-error",26),e.qZA()(),e.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw(3).channelFeeMaxBaseSat=at}),e.qZA(),e.YNc(27,mo,2,0,"mat-error",26),e.qZA(),e.TgZ(28,"mat-form-field",36)(29,"input",42),e.NdJ("ngModelChange",function(at){return e.CHM(P),e.oxw(3).channelFeeMaxProportional=at}),e.qZA(),e.YNc(30,Ql,2,0,"mat-error",26),e.qZA()(),e.YNc(31,$1,3,5,"h4",43),e.TgZ(32,"div",44)(33,"button",45),e.NdJ("click",function(){return e.CHM(P),e.oxw(3).onResetPolicy()}),e._uU(34,"Reset"),e.qZA(),e.TgZ(35,"button",46),e.NdJ("click",function(){return e.CHM(P),e.oxw(3).onUpdateFundingPolicy()}),e._uU(36,"Update"),e.qZA()()()}if(2&Z){const P=e.oxw(3);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle),e.xp6(5),e.Q6J("ngModel",P.selPolicyType),e.xp6(1),e.Q6J("ngForOf",P.policyTypes),e.xp6(2),e.Q6J("ngModel",P.policyMod)("placeholder",P.selPolicyType.placeholder)("step","fixed"===P.selPolicyType.id?1e3:10)("min",P.selPolicyType.min)("max",P.selPolicyType.max),e.xp6(3),e.lnq("",P.selPolicyType.placeholder," should be between ",P.selPolicyType.min," and ",P.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!P.policyMod),e.xp6(1),e.Q6J("ngIf",P.policyMod<P.selPolicyType.min),e.xp6(1),e.Q6J("ngIf",P.policyMod>P.selPolicyType.max),e.xp6(3),e.Q6J("ngModel",P.leaseFeeBaseSat),e.xp6(1),e.Q6J("ngIf",!P.leaseFeeBaseSat),e.xp6(2),e.Q6J("ngModel",P.leaseFeeBasis),e.xp6(1),e.Q6J("ngIf",!P.leaseFeeBasis),e.xp6(3),e.Q6J("ngModel",P.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!P.channelFeeMaxBaseSat),e.xp6(2),e.Q6J("ngModel",P.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!P.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",P.flgUpdateCalled)}}function vl(Z,Le){if(1&Z&&(e.TgZ(0,"form",18,4),e.YNc(2,U0,12,1,"div",26),e.YNc(3,Gc,37,23,"div",27),e.qZA()),2&Z){const P=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!P.features[1].enabled),e.xp6(1),e.Q6J("ngIf",P.features[1].enabled)}}function Oa(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const jt=e.CHM(P).index;return e.oxw().onPanelExpanded(jt)}),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,_l,1,0,"span",12),e.YNc(7,J1,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,X1,29,5,"form",15),e.YNc(11,vl,4,2,"form",15),e.qZA()()}if(2&Z){const P=Le.$implicit,he=Le.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(P.name),e.xp6(2),e.Q6J("ngIf",P.enabled),e.xp6(1),e.Q6J("ngIf",!P.enabled),e.xp6(1),e.hij(" ",P.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===he),e.xp6(1),e.Q6J("ngIf",1===he)}}let na=(()=>{class Z{constructor(P,he,at,jt){this.logger=P,this.store=he,this.dataService=at,this.commonService=jt,this.faInfoCircle=y.sqG,this.faExclamationTriangle=y.eHv,this.faCode=y.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Q.gB,this.selPolicyType=Q.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,C.R)(this.unSubs[0])).subscribe({next:P=>{this.logger.info("Received List Configs: "+JSON.stringify(P)),this.features[1].enabled=!!P["experimental-dual-fund"]},error:P=>{this.logger.error("List Configs Error: "+JSON.stringify(P)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{this.selNode=P,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(nr.Rn).pipe((0,C.R)(this.unSubs[2])).subscribe(P=>{this.policyTypes[2].max=P.balance.totalBalance||1e3})}onPanelExpanded(P){1===P&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,C.R)(this.unSubs[3])).subscribe(he=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(he)),this.fundingPolicy=he,this.fundingPolicy.policy&&(this.selPolicyType=Q.gB.find(at=>at.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Ue.jS)({payload:{uiMessage:Q.m6.UPDATE_SETTING,service:Q.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Zt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.leaseFeeBaseSat||0),this.leaseFeeBasis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,C.R)(this.unSubs[4])).subscribe({next:P=>{this.logger.info(P),this.fundingPolicy=P,this.updateMsg={data:"Compact Lease: "+P.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:P=>{this.logger.error(P),this.updateMsg={error:this.commonService.extractErrorMessage(P,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Q.gB.find(P=>P.id===this.fundingPolicy.policy)||this.policyTypes[0]:Q.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh),e.Y36(Kl.D),e.Y36(fi.v))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","leaseFeeBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","leaseFeeBasis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(P,he){1&P&&(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,Oa,12,7,"mat-expansion-panel",8),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",he.faInfoCircle),e.xp6(6),e.Q6J("icon",he.faCode),e.xp6(4),e.Q6J("ngForOf",he.features))},directives:[_.xw,_.yH,q.$V,B.BN,Ae._Y,Ae.JL,Ae.F,_.Wh,lr.pp,J.sg,lr.ib,lr.yz,lr.yK,J.O5,Ge.d,Ni.Rr,De.h,Ae.JJ,Ae.On,ut.KE,Ie.gD,ae.ey,Wt.Nt,Ae.wV,Ae.qQ,Ae.Fd,Ae.Fj,gl.q,$o.F,Ae.Q7,ut.bx,ut.TO,J.mk,un.oO,we.lW],pipes:[J.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),Z})();function ba(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw().activeTab=jt}),e._uU(1),e.qZA()}if(2&Z){const P=Le.$implicit,he=e.oxw();e.s9C("routerLink",P.link),e.Q6J("active",he.activeTab.link===P.link),e.xp6(1),e.Oqu(P.name)}}let ko=(()=>{class Z{constructor(P){this.router=P,this.faHandshake=y.yOe,this.links=[{link:"peers",name:"Peers"},{link:"psout",name:"Peerswap Out"},{link:"psin",name:"Peerswap In"},{link:"pscancelled",name:"Cancelled Peerswaps"}],this.activeTab=this.links[0],this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(he=>this.router.url.includes(he.link));this.activeTab=P||this.links[0],this.router.events.pipe((0,C.R)(this.unSubs[0]),(0,le.h)(he=>he instanceof I.Av)).subscribe({next:he=>{const at=this.links.find(jt=>he.urlAfterRedirects.includes(jt.link));this.activeTab=at||this.links[0]}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(I.F0))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-peerswap"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(P,he){1&P&&(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,ba,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",he.faHandshake),e.xp6(7),e.Q6J("ngForOf",he.links))},directives:[_.xw,_.Wh,B.BN,N.a8,N.dn,H.BU,J.sg,H.Nj,I.rH,_.yH,I.lC],styles:[""]}),Z})();const tl=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(267),p.e(636)]).then(p.bind(p,1636)).then(Z=>Z.LNDModule),canActivate:[sr.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(267),p.e(564)]).then(p.bind(p,9564)).then(Z=>Z.CLNModule),canActivate:[sr.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(267),p.e(258)]).then(p.bind(p,7258)).then(Z=>Z.ECLModule),canActivate:[sr.a1]},{path:"settings",component:Se,canActivate:[sr.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:z,canActivate:[sr.a1]},{path:"auth",component:$t,canActivate:[sr.a1]},{path:"bconfig",component:Tt,canActivate:[sr.a1]}]},{path:"config",component:Vt,canActivate:[sr.a1],children:[{path:"",pathMatch:"full",redirectTo:"applayout"},{path:"applayout",component:Kn,canActivate:[sr.a1]},{path:"pglayout",component:js,canActivate:[sr.a1]},{path:"services",component:Tr,canActivate:[sr.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:or,canActivate:[sr.a1]},{path:"boltz",component:Wr,canActivate:[sr.a1]},{path:"peerswap",component:(()=>{class Z{constructor(P,he){this.logger=P,this.store=he,this.faInfoCircle=y.sqG,this.enablePeerswap=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enablePeerswap=!!(null==P?void 0:P.settings.enablePeerswap),this.logger.info(P)})}onUpdateService(){this.store.dispatch((0,Ue.jS)({payload:{uiMessage:Q.m6.UPDATE_PEERSWAP_SETTINGS,service:Q.JX.PEERSWAP,settings:{enablePeerswap:this.enablePeerswap}}})),this.store.dispatch((0,Zt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(b.yh))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-peerswap-service-settings"]],decls:20,vars:2,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/ElementsProject/peerswap","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","peerswap",1,"mb-1",3,"ngModel","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(P,he){1&P&&(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,"peerswapd"),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 Core Lightning peerswap."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(jt){return he.enablePeerswap=jt}),e._uU(16,"Enable Peerswap Service"),e.qZA()()(),e.TgZ(17,"div",8)(18,"button",9),e.NdJ("click",function(){return he.onUpdateService()}),e._uU(19,"Update"),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",he.faInfoCircle),e.xp6(13),e.Q6J("ngModel",he.enablePeerswap))},directives:[_.xw,_.yH,q.$V,B.BN,Ae._Y,Ae.JL,Ae.F,_.Wh,Ni.Rr,De.h,Ae.JJ,Ae.On,we.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),Z})(),canActivate:[sr.a1]}]},{path:"experimental",component:na,canActivate:[sr.a1]},{path:"lnconfig",component:Pi,canActivate:[sr.a1]}]},{path:"services",component:Or,canActivate:[sr.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Va},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:Yl},{path:"peerswap",component:ko,canActivate:[sr.a1],children:[{path:"",pathMatch:"full",redirectTo:"peers"},{path:"peers",component:(()=>{class Z{constructor(){this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-peerswap-peers"]],decls:2,vars:0,template:function(P,he){1&P&&(e.TgZ(0,"h1"),e._uU(1,"Swap Peers"),e.qZA())},styles:[""]}),Z})(),canActivate:[sr.a1]},{path:"psout",component:(()=>{class Z{constructor(){this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-peer-swaps-out"]],decls:2,vars:0,template:function(P,he){1&P&&(e.TgZ(0,"h1"),e._uU(1,"Peerswaps Out"),e.qZA())},styles:[""]}),Z})(),canActivate:[sr.a1]},{path:"psin",component:(()=>{class Z{constructor(){this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-peer-swaps-in"]],decls:2,vars:0,template:function(P,he){1&P&&(e.TgZ(0,"h1"),e._uU(1,"Peerswaps In"),e.qZA())},styles:[""]}),Z})(),canActivate:[sr.a1]},{path:"pscancelled",component:(()=>{class Z{constructor(){this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-peerswap-cancelled"]],decls:2,vars:0,template:function(P,he){1&P&&(e.TgZ(0,"h1"),e._uU(1,"Peerswaps Cancelled"),e.qZA())},styles:[""]}),Z})(),canActivate:[sr.a1]}]}]},{path:"help",component:qs},{path:"login",component:Q1},{path:"error",component:la},{path:"**",component:q1.w}]);var e2=p(8750),xl=p(8878),No=p(4594),Ro=p(7238),Os=p(2181);function $l(Z,Le){if(1&Z&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&Z){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faCode),e.xp6(2),e.hij("API Version: ",null==P.information?null:P.information.api_version,"")}}function ec(Z,Le){if(1&Z&&(e.TgZ(0,"a",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&Z){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faUserCog)}}function Zc(Z,Le){if(1&Z&&(e.TgZ(0,"a",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&Z){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faLifeRing)}}function _o(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){return e.CHM(P),e.oxw().onClick()}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&Z){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faEject)}}let Wc=(()=>{class Z{constructor(P,he,at,jt,Vi){this.logger=P,this.sessionService=he,this.store=at,this.rtlEffects=jt,this.actions=Vi,this.faUserCog=y.gNZ,this.faCodeBranch=y.mh3,this.faCode=y.dT$,this.faCog=y.b7W,this.faLifeRing=y.uli,this.faEject=y.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.version=_t.q4}ngOnInit(){this.store.select(n.R4).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{if(this.information=P,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 he=this.information.chains[0];this.informationChain.chain=he.chain,this.informationChain.network=he.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(P)}),this.sessionService.watchSession().pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{this.showLogout=!!P.token,this.flgLoading=!!P.token}),this.actions.pipe((0,C.R)(this.unSubs[2]),(0,le.h)(P=>P.type===Q.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ue.c1)({payload:{data:{type:Q.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,C.R)(this.unSubs[3])).subscribe(P=>{P&&(this.showLogout=!1,this.store.dispatch((0,Ue.kS)()))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(Ee.m),e.Y36(b.yh),e.Y36(et.V),e.Y36(d.eX))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(P,he){if(1&P&&(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,$l,4,2,"p",4),e.YNc(7,ec,4,1,"a",5),e.YNc(8,Zc,4,1,"a",6),e.YNc(9,_o,4,1,"a",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&P){const at=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",he.faCodeBranch),e.xp6(2),e.hij("Version: ",he.version,""),e.xp6(1),e.Q6J("ngIf",null==he.information?null:he.information.api_version),e.xp6(1),e.Q6J("ngIf",he.showLogout),e.xp6(1),e.Q6J("ngIf",he.showLogout),e.xp6(1),e.Q6J("ngIf",he.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",at)}},directives:[Os.VK,Os.OP,B.BN,J.O5,I.yS,I.rH,we.lW,Os.p6,qr.Hw],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),Z})();var tc=p(2638),bl=p(8258),Us=p(149);const Xs={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/lnd/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/lnd/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/lnd/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/lnd/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/lnd/transactions",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/lnd/routing",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/lnd/reports",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/lnd/graph",userPersona:Q.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:y.hkK,link:"/lnd/messages",userPersona:Q.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:y.q7m,link:"/lnd/channelbackup",userPersona:Q.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:y.TmZ,link:"/lnd/network",userPersona:Q.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:y.xf3,link:"/lnd/network",userPersona:Q.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:y.Krp,link:"/services/loop",userPersona:Q.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:y.vqe,link:"/services/loop",userPersona:Q.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Q.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:Q.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:Q.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/cln/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/cln/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/cln/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/cln/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:y.Acd,link:"/cln/liquidityads",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/cln/transactions",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/cln/routing",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/cln/reports",userPersona:Q.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/cln/graph",userPersona:Q.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:y.hkK,link:"/cln/messages",userPersona:Q.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:y.USL,link:"/cln/rates",userPersona:Q.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:y.xf3,link:"/cln/rates",userPersona:Q.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:Q.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:Q.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/ecl/home",userPersona:Q.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/ecl/onchain",userPersona:Q.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/ecl/connections",userPersona:Q.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/ecl/connections",userPersona:Q.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/ecl/transactions",userPersona:Q.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/ecl/routing",userPersona:Q.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/ecl/reports",userPersona:Q.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/ecl/graph",userPersona:Q.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:Q.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:Q.ol.ALL}]};function Cl(Z,Le){if(1&Z&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&Z){const P=Le.$implicit;e.Q6J("value",P.index),e.xp6(1),e.AsE(" ",P.lnNode," (",P.lnImplementation,") ")}}function Yc(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(at){return e.CHM(P),e.oxw().onNodeSelectionChange(at.value)}),e.YNc(1,Cl,2,3,"mat-option",10),e.qZA()}if(2&Z){const P=e.oxw();e.Q6J("value",P.selConfigNodeIndex),e.xp6(1),e.Q6J("ngForOf",P.appConfig.nodes)}}function nc(Z,Le){if(1&Z&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&Z){const P=e.oxw().$implicit;e.oxw(2);const he=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===P.icon?he:null)}}function Ga(Z,Le){if(1&Z&&e._UZ(0,"fa-icon",23),2&Z){const P=e.oxw().$implicit;e.Q6J("icon",P.icon)}}function jc(Z,Le){if(1&Z&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P.icon)}}function t2(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw(2).onChildNavClicked(jt)}),e.TgZ(2,"div",17),e.YNc(3,nc,2,1,"span",18),e.YNc(4,Ga,1,1,"fa-icon",19),e.YNc(5,jc,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&Z){const P=Le.$implicit;e.s9C("routerLink",P.link),e.xp6(3),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name)}}function n2(Z,Le){if(1&Z&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function il(Z,Le){if(1&Z&&e._UZ(0,"fa-icon",23),2&Z){const P=e.oxw().$implicit;e.Q6J("icon",P.icon)}}function nl(Z,Le){if(1&Z&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P.icon)}}function Z0(Z,Le){if(1&Z&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,n2,2,1,"span",28),e.YNc(4,il,1,1,"fa-icon",19),e.YNc(5,nl,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon",30),e._uU(10),e.qZA()()(),e.TgZ(11,"div",31),e.GkF(12,32),e.qZA()()),2&Z){const P=Le.$implicit,he=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name),e.xp6(1),e.uIk("aria-label","toggle "+P.name),e.xp6(2),e.Oqu(he.treeControlNested.isExpanded(P)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!he.treeControlNested.isExpanded(P))}}function Nd(Z,Le){if(1&Z&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,t2,8,5,"mat-tree-node",13),e.YNc(3,Z0,13,8,"mat-nested-tree-node",14),e.qZA()),2&Z){const P=e.oxw();e.Q6J("dataSource",P.navMenus)("treeControl",P.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",P.hasChild)}}function r2(Z,Le){if(1&Z&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function W0(Z,Le){if(1&Z&&e._UZ(0,"fa-icon",36),2&Z){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.Q6J("icon",P.icon)}}function s2(Z,Le){if(1&Z&&(e.TgZ(0,"mat-icon",37),e._uU(1),e.qZA()),2&Z){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.xp6(1),e.Oqu(P.icon)}}function rl(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw().onShowData(jt)}),e.YNc(1,r2,2,1,"span",18),e.YNc(2,W0,1,2,"fa-icon",34),e.YNc(3,s2,2,2,"mat-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&Z){const P=Le.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name)}}function Y0(Z,Le){if(1&Z&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&Z){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function rc(Z,Le){if(1&Z&&e._UZ(0,"fa-icon",36),2&Z){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.Q6J("icon",P.icon)}}function ka(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const jt=e.CHM(P).$implicit;return e.oxw(2).onClick(jt)}),e.YNc(1,Y0,2,1,"span",28),e.YNc(2,rc,1,2,"fa-icon",34),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&Z){const P=Le.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(2),e.Oqu(P.name)}}function sc(Z,Le){if(1&Z&&(e.TgZ(0,"mat-tree",5),e.YNc(1,ka,5,3,"mat-tree-node",6),e.qZA()),2&Z){const P=e.oxw();e.Q6J("dataSource",P.navMenusLogout)("treeControl",P.treeControlLogout)}}function vo(Z,Le){1&Z&&(e.O4$(),e.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),e._UZ(3,"circle",41)(4,"path",42)(5,"path",43),e.qZA()()())}let a2=(()=>{class Z{constructor(P,he,at,jt,Vi,On){this.logger=P,this.commonService=he,this.sessionService=at,this.store=jt,this.actions=Vi,this.rtlEffects=On,this.ChildNavClicked=new e.vpe,this.faEject=y.KOR,this.faEye=y.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:y.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:y.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Q.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new bl.VY($i=>$i.children),this.treeControlLogout=new bl.VY($i=>$i.children),this.treeControlShowData=new bl.VY($i=>$i.children),this.navMenus=new Us.WX,this.navMenusLogout=new Us.WX,this.navMenusShowData=new Us.WX,this.hasChild=($i,vr)=>!!vr.children&&vr.children.length>0,this.version=_t.q4,Xs.LNDChildren&&200===Xs.LNDChildren[Xs.LNDChildren.length-1].id&&Xs.LNDChildren.pop(),this.navMenus.data=Xs.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const P=this.sessionService.getItem("token");this.showLogout=!!P,this.flgLoading=!!P,this.store.select(n.Yj).pipe((0,C.R)(this.unSubs[0])).subscribe(he=>{this.appConfig=he}),this.store.select(n.gW).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{var at,jt;if(this.information=he.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 Vi=this.information.chains[0];this.informationChain.chain=Vi.chain,this.informationChain.network=Vi.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=he.selNode,this.settings=(null===(at=this.selNode)||void 0===at?void 0:at.settings)||null,this.selConfigNodeIndex=+((null===(jt=he.selNode)||void 0===jt?void 0:jt.index)||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(he)}),this.sessionService.watchSession().pipe((0,C.R)(this.unSubs[2])).subscribe(he=>{this.showLogout=!!he.token,this.flgLoading=!!he.token}),this.actions.pipe((0,C.R)(this.unSubs[3]),(0,le.h)(he=>he.type===Q.pg.LOGOUT)).subscribe(he=>{this.showLogout=!1})}onClick(P){"Logout"===P.name&&(this.store.dispatch((0,Ue.c1)({payload:{data:{type:Q.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,C.R)(this.unSubs[4])).subscribe(he=>{he&&(this.showLogout=!1,this.store.dispatch((0,Ue.kS)()))})),this.ChildNavClicked.emit(P)}onChildNavClicked(P){this.ChildNavClicked.emit(P)}filterSideMenuNodes(){var P,he;switch(null===(he=null===(P=this.selNode)||void 0===P?void 0:P.lnImplementation)||void 0===he?void 0:he.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let P=[];P=JSON.parse(JSON.stringify(Xs.LNDChildren)),this.navMenus.data=null==P?void 0:P.filter(he=>{var at,jt;return he.children&&he.children.length?(he.children=null===(at=he.children)||void 0===at?void 0:at.filter(Vi=>{var On,$i,vr;return(Vi.userPersona===Q.ol.ALL||Vi.userPersona===(null===(On=this.settings)||void 0===On?void 0:On.userPersona))&&"/services/loop"!==Vi.link&&"/services/boltz"!==Vi.link||"/services/loop"===Vi.link&&(null===($i=this.settings)||void 0===$i?void 0:$i.swapServerUrl)&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Vi.link&&(null===(vr=this.settings)||void 0===vr?void 0:vr.boltzServerUrl)&&""!==this.settings.boltzServerUrl.trim()}),he.children.length>0):he.userPersona===Q.ol.ALL||he.userPersona===(null===(jt=this.settings)||void 0===jt?void 0:jt.userPersona)})}loadCLNMenu(){let P=[];P=JSON.parse(JSON.stringify(Xs.CLNChildren)),this.navMenus.data=null==P?void 0:P.filter(he=>{var at,jt;return he.children&&he.children.length?(he.children=null===(at=he.children)||void 0===at?void 0:at.filter(Vi=>{var On,$i;return(Vi.userPersona===Q.ol.ALL||Vi.userPersona===(null===(On=this.settings)||void 0===On?void 0:On.userPersona))&&"/services/peerswap"!==Vi.link||"/services/peerswap"===Vi.link&&(null===($i=this.settings)||void 0===$i?void 0:$i.enablePeerswap)}),he.children.length>0):he.userPersona===Q.ol.ALL||he.userPersona===(null===(jt=this.settings)||void 0===jt?void 0:jt.userPersona)})}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Xs.ECLChildren))}onShowData(P){this.store.dispatch((0,Ue.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(P){const he=this.selConfigNodeIndex;this.selConfigNodeIndex=P;const at=this.appConfig.nodes.find(jt=>+jt.index===P);this.store.dispatch((0,Ue.fk)({payload:{uiMessage:Q.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+he,currentLnNode:at||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(fi.v),e.Y36(Ee.m),e.Y36(b.yh),e.Y36(d.eX),e.Y36(et.V))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-side-navigation"]],viewQuery:function(P,he){if(1&P&&e.Gf(Us.gi,5),2&P){let at;e.iGM(at=e.CRH())&&(he.tree=at.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Yc,2,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,Nd,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,rl,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,sc,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,vo,6,0,"ng-template",null,8,e.W1O)),2&P&&(e.xp6(2),e.Q6J("ngIf",he.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==he.settings?null:he.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",he.navMenusShowData)("treeControl",he.treeControlShowData),e.xp6(3),e.Q6J("ngIf",he.showLogout))},directives:[_.xw,_.yH,_.Wh,q.$V,J.O5,Ie.gD,J.sg,ae.ey,Ge.d,Us.gi,Us.fQ,Us.uo,Us.eu,I.Od,I.rH,J.tP,B.BN,qr.Hw,Us.GZ,we.lW,Us.Ar,Ro.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),Z})();var o2=p(773);const l2=["sideNavigation"],Ml=["sideNavContent"];function Kc(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(P),e.oxw().sideNavToggle()}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&Z){const P=e.oxw();e.Q6J("matTooltip",P.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",P.smallScreen)}}function ac(Z,Le){1&Z&&(e.O4$(),e._UZ(0,"path",18))}function wl(Z,Le){1&Z&&(e.O4$(),e._UZ(0,"path",19))}function Qc(Z,Le){if(1&Z){const P=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(P);const at=e.oxw();return at.flgSidenavPinned=!at.flgSidenavPinned}),e.O4$(),e.TgZ(1,"svg",15),e.YNc(2,ac,1,0,"path",16),e.YNc(3,wl,1,0,"path",17),e.qZA()()}if(2&Z){const P=e.oxw();e.Q6J("matTooltip",P.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!P.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",P.flgSidenavPinned)}}function ca(Z,Le){if(1&Z&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Z){const P=e.oxw();e.xp6(1),e.Oqu(P.information.alias?"RTL - "+P.information.alias:"RTL")}}function oc(Z,Le){if(1&Z&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Z){const P=e.oxw();e.xp6(1),e.Oqu(P.information.alias?"Ride The Lightning - "+P.information.alias:"Ride The Lightning")}}function sl(Z,Le){1&Z&&(e.TgZ(0,"div",20),e._UZ(1,"mat-spinner",21),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const c2=function(Z,Le){return[Z,Le]};let d2=(()=>{class Z{constructor(P,he,at,jt,Vi,On,$i,vr,fs){this.logger=P,this.commonService=he,this.store=at,this.actions=jt,this.userIdle=Vi,this.router=On,this.sessionService=$i,this.breakpointObserver=vr,this.renderer=fs,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(P=>{P instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([s.u3.XSmall,s.u3.TabletPortrait,s.u3.Small,s.u3.Medium,s.u3.Large,s.u3.XLarge]).pipe((0,C.R)(this.unSubs[0])).subscribe(P=>{P.breakpoints[s.u3.XSmall]?(this.commonService.setScreenSize(Q.cu.XS),this.smallScreen=!0):P.breakpoints[s.u3.TabletPortrait]?(this.commonService.setScreenSize(Q.cu.SM),this.smallScreen=!0):P.breakpoints[s.u3.Small]||P.breakpoints[s.u3.Medium]?(this.commonService.setScreenSize(Q.cu.MD),this.smallScreen=!1):P.breakpoints[s.u3.Large]?(this.commonService.setScreenSize(Q.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Q.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ue.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(n.dT).pipe((0,C.R)(this.unSubs[1])).subscribe(P=>{this.settings=P.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(n.Yj).pipe((0,C.R)(this.unSubs[2])).subscribe(P=>{this.appConfig=P}),this.store.select(n.R4).pipe((0,C.R)(this.unSubs[3])).subscribe(P=>{this.information=P,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,C.R)(this.unSubs[4]),(0,le.h)(P=>P.type===Q.pg.SET_RTL_CONFIG||P.type===Q.pg.LOGIN||P.type===Q.pg.LOGOUT)).subscribe(P=>{P.type===Q.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+P.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,Ue.x4)({payload:{password:be(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),P.type===Q.pg.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),P.type===Q.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,C.R)(this.unSubs[5])).subscribe(P=>{this.logger.info("Counting Down: "+(11-P))}),this.userIdle.onTimeout().pipe((0,C.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,Ue.ts)()),this.store.dispatch((0,Ue.qR)({payload:{data:{type:Q.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ue.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const P=window.location.href;return P.includes("access-key=")?P.substring(P.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(P){this.smallScreen&&this.sideNavigation.close()}copiedText(P){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+P)}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return Z.\u0275fac=function(P){return new(P||Z)(e.Y36(Ce.mQ),e.Y36(fi.v),e.Y36(b.yh),e.Y36(d.eX),e.Y36(v),e.Y36(I.F0),e.Y36(Ee.m),e.Y36(s.Yg),e.Y36(e.Qsj))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["rtl-app"]],viewQuery:function(P,he){if(1&P&&(e.Gf(l2,5),e.Gf(Ml,5)),2&P){let at;e.iGM(at=e.CRH())&&(he.sideNavigation=at.first),e.iGM(at=e.CRH())&&(he.sideNavContent=at.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(P,he){1&P&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,Kc,3,2,"button",2),e.YNc(6,Qc,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,ca,2,1,"span",4),e.YNc(9,oc,2,1,"span",4),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),e.NdJ("ChildNavClicked",function(jt){return he.onNavigationClicked(jt)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),e._UZ(19,"router-outlet",null,11),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,sl,4,0,"div",12),e.qZA()),2&P&&(e.Q6J("ngClass",e.WLB(12,c2,e.lcZ(1,8,he.settings.themeColor),e.lcZ(2,10,he.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",he.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!he.smallScreen&&he.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",he.smallScreen),e.xp6(1),e.Q6J("ngIf",!he.smallScreen),e.xp6(4),e.Q6J("opened",he.flgSideNavOpened&&he.flgLoggedIn)("mode",he.flgSidenavPinned&&!he.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!he.settings.themeColor))},directives:[_.xw,J.mk,un.oO,No.Ye,_.Wh,J.O5,we.lW,Ro.gM,qr.Hw,Wc,tc.TM,tc.JX,q.$V,a2,_.yH,tc.Rh,I.lC,o2.Ou],pipes:[J.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[xl.g]}}),Z})(),Ho=(()=>{class Z{constructor(P){this.sessionService=P}intercept(P,he){if(this.sessionService.getItem("token")){const at=P.clone({headers:P.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return he.handle(at)}return he.handle(P)}}return Z.\u0275fac=function(P){return new(P||Z)(e.LFG(Ee.m))},Z.\u0275prov=e.Yz7({token:Z,factory:Z.\u0275fac}),Z})();var Pa=p(7998),Fo=p(711),u2=p(4947),j0=p(3289);const h2={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},f2={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},p2={apiURL:"",apisCallStatus:{Login:{status:Q.Bn.UN_INITIATED},IsAuthorized:{status:Q.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:h2,authentication:f2,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:h2,authentication:f2}]},nodeData:{}},K0=(0,b.Lq)(p2,(0,b.on)(Ue.qi,(Z,{payload:Le})=>{const P=JSON.parse(JSON.stringify(Z.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},Z),{apisCallStatus:P})}),(0,b.on)(Ue.vI,(Z,{payload:Le})=>Object.assign(Object.assign({},p2),{apisCallStatus:Z.apisCallStatus,appConfig:Z.appConfig,selNode:Le})),(0,b.on)(Ue.fk,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{selNode:Le.currentLnNode})),(0,b.on)(Ue.Tm,(Z,{payload:Le})=>{const P=JSON.parse(JSON.stringify(Z.selNode));switch(Le.service){case Q.JX.BOLTZ:P.settings.boltzServerUrl=Le.settings.boltzServerUrl;break;case Q.JX.LOOP:P.settings.swapServerUrl=Le.settings.swapServerUrl;break;case Q.JX.OFFERS:P.settings.enableOffers=Le.settings.enableOffers;break;case Q.JX.PEERSWAP:P.settings.enablePeerswap=Le.settings.enablePeerswap}return Object.assign(Object.assign({},Z),{selNode:P})}),(0,b.on)(Ue._V,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{nodeData:Le})),(0,b.on)(Ue.XT,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{appConfig:Le}))),qc={apisCallStatus:{FetchInfo:{status:Q.Bn.UN_INITIATED},FetchFees:{status:Q.Bn.UN_INITIATED},FetchPeers:{status:Q.Bn.UN_INITIATED},FetchClosedChannels:{status:Q.Bn.UN_INITIATED},FetchPendingChannels:{status:Q.Bn.UN_INITIATED},FetchAllChannels:{status:Q.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Q.Bn.UN_INITIATED},FetchInvoices:{status:Q.Bn.UN_INITIATED},FetchPayments:{status:Q.Bn.UN_INITIATED},FetchForwardingHistory:{status:Q.Bn.UN_INITIATED},FetchUTXOs:{status:Q.Bn.UN_INITIATED},FetchTransactions:{status:Q.Bn.UN_INITIATED},FetchLightningTransactions:{status:Q.Bn.UN_INITIATED},FetchNetwork:{status:Q.Bn.UN_INITIATED}},nodeSettings:{userPersona:Q.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let lc=!1,cc=!1;const m2=(0,b.Lq)(qc,(0,b.on)(Zt.PC,(Z,{payload:Le})=>{const P=JSON.parse(JSON.stringify(Z.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},Z),{apisCallStatus:P})}),(0,b.on)(Zt.JT,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{nodeSettings:Le})),(0,b.on)(Zt.Ll,(Z,{payload:Le})=>Object.assign(Object.assign({},qc),{nodeSettings:Le})),(0,b.on)(Zt.CX,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{information:Le})),(0,b.on)(Zt.Z8,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{peers:Le})),(0,b.on)(Zt.EK,(Z,{payload:Le})=>{const P=[...Z.peers],he=Z.peers.findIndex(at=>at.pub_key===Le.pubkey);return he>-1&&P.splice(he,1),Object.assign(Object.assign({},Z),{peers:P})}),(0,b.on)(Zt.YP,(Z,{payload:Le})=>{var P;const he=Z.listInvoices;return null===(P=he.invoices)||void 0===P||P.unshift(Le),Object.assign(Object.assign({},Z),{listInvoices:he})}),(0,b.on)(Zt.aL,(Z,{payload:Le})=>{var P;const he=Z.listInvoices;return he.invoices=null===(P=he.invoices)||void 0===P?void 0:P.map(at=>at.payment_request===Le.payment_request?Le:at),Object.assign(Object.assign({},Z),{listInvoices:he})}),(0,b.on)(Zt.qY,(Z,{payload:Le})=>{var P;const he=Z.listPayments;return he.payments=null===(P=he.payments)||void 0===P?void 0:P.map(at=>at.payment_hash===Le.payment_hash?Le:at),Object.assign(Object.assign({},Z),{listPayments:he})}),(0,b.on)(Zt.RX,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{fees:Le})),(0,b.on)(Zt._L,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{closedChannels:Le})),(0,b.on)(Zt.TW,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{pendingChannels:Le.pendingChannels,pendingChannelsSummary:Le.pendingChannelsSummary})),(0,b.on)(Zt.as,(Z,{payload:Le})=>{let P=0,he=0,at=0,jt=0,Vi=0,On=0;return Le&&Le.forEach($i=>{$i.local_balance||($i.local_balance=0),!0===$i.active?(Vi+=+$i.local_balance,at+=1,$i.local_balance?P=+P+ +$i.local_balance:$i.local_balance=0,$i.remote_balance?he=+he+ +$i.remote_balance:$i.remote_balance=0):(On+=+$i.local_balance,jt+=1)}),Object.assign(Object.assign({},Z),{channels:Le,channelsSummary:{active:{num_channels:at,capacity:Vi},inactive:{num_channels:jt,capacity:On}},lightningBalance:{local:P,remote:he}})}),(0,b.on)(Zt.OG,(Z,{payload:Le})=>{const P=[...Z.channels],he=Z.channels.findIndex(at=>at.channel_point===Le.channelPoint);return he>-1&&P.splice(he,1),Object.assign(Object.assign({},Z),{channels:P})}),(0,b.on)(Zt.Jl,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{blockchainBalance:Le})),(0,b.on)(Zt.ks,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{networkInfo:Le})),(0,b.on)(Zt.Nr,(Z,{payload:Le})=>(Le.total_invoices||(Le.total_invoices=Z.listInvoices.total_invoices),Object.assign(Object.assign({},Z),{listInvoices:Le}))),(0,b.on)(Zt.Lf,(Z,{payload:Le})=>{if(lc=!0,Le.length&&cc){const P=[...Z.utxos];return P.forEach(he=>{const at=Le.find(jt=>{var Vi;return jt.tx_hash===(null===(Vi=he.outpoint)||void 0===Vi?void 0:Vi.txid_str)});he.label=at&&at.label?at.label:""}),Object.assign(Object.assign({},Z),{utxos:P,transactions:Le})}return Object.assign(Object.assign({},Z),{transactions:Le})}),(0,b.on)(Zt.UH,(Z,{payload:Le})=>{if(cc=!0,Le.length&&lc){const P=[...Z.transactions];Le.forEach(he=>{const at=P.find(jt=>{var Vi;return jt.tx_hash===(null===(Vi=he.outpoint)||void 0===Vi?void 0:Vi.txid_str)});he.label=at&&at.label?at.label:""})}return Object.assign(Object.assign({},Z),{utxos:Le})}),(0,b.on)(Zt.HI,(Z,{payload:Le})=>{const P={listInvoicesAll:Z.allLightningTransactions.listInvoicesAll,listPaymentsAll:Le};return Object.assign(Object.assign({},Z),{listPayments:Le,allLightningTransactions:P})}),(0,b.on)(Zt.Fr,(Z,{payload:Le})=>{const P={listInvoicesAll:Le.listInvoicesAll,listPaymentsAll:Z.listPayments};return Object.assign(Object.assign({},Z),{allLightningTransactions:P})}),(0,b.on)(Zt.QJ,(Z,{payload:Le})=>{const P=[...Z.channels,...Z.closedChannels];let he=Le.forwarding_events?JSON.parse(JSON.stringify(Le)):{};return he.forwarding_events&&(he=dc(he,P)),Object.assign(Object.assign({},Z),{forwardingHistory:he})})),dc=(Z,Le)=>(Z.forwarding_events.forEach(P=>{var he,at;if(Le&&Le.length>0)for(let jt=0;jt<Le.length;jt++){if((null===(he=Le[jt].chan_id)||void 0===he?void 0:he.toString())===P.chan_id_in&&(P.alias_in=Le[jt].remote_alias?Le[jt].remote_alias:P.chan_id_in,P.alias_out)||(null===(at=Le[jt].chan_id)||void 0===at?void 0:at.toString())===P.chan_id_out&&(P.alias_out=Le[jt].remote_alias?Le[jt].remote_alias:P.chan_id_out,P.alias_in))return;jt===Le.length-1&&(P.alias_in||(P.alias_in=P.chan_id_in),P.alias_out||(P.alias_out=P.chan_id_out))}else P.alias_in=P.chan_id_in,P.alias_out=P.chan_id_out}),Z),zo={apisCallStatus:{FetchPageSettings:{status:Q.Bn.UN_INITIATED},FetchInfo:{status:Q.Bn.UN_INITIATED},FetchInvoices:{status:Q.Bn.UN_INITIATED},FetchFees:{status:Q.Bn.UN_INITIATED},FetchChannels:{status:Q.Bn.UN_INITIATED},FetchBalance:{status:Q.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:Q.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:Q.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:Q.Bn.UN_INITIATED},FetchPeers:{status:Q.Bn.UN_INITIATED},FetchUTXOs:{status:Q.Bn.UN_INITIATED},FetchPayments:{status:Q.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:Q.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:Q.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:Q.Bn.UN_INITIATED},FetchOffers:{status:Q.Bn.UN_INITIATED},FetchOfferBookmarks:{status:Q.Bn.UN_INITIATED}},nodeSettings:{userPersona:Q.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1,enablePeerswap:!1},pageSettings:Q.gG,information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},Q0=(0,b.Lq)(zo,(0,b.on)(Rt.Ni,(Z,{payload:Le})=>{const P=JSON.parse(JSON.stringify(Z.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},Z),{apisCallStatus:P})}),(0,b.on)(Rt.oo,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{nodeSettings:Le})),(0,b.on)(Rt.xH,(Z,{payload:Le})=>Object.assign(Object.assign({},zo),{nodeSettings:Le})),(0,b.on)(Rt.CX,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{information:Le})),(0,b.on)(Rt.RX,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{fees:Le})),(0,b.on)(Rt.I8,(Z,{payload:Le})=>Le.perkb?Object.assign(Object.assign({},Z),{feeRatesPerKB:Le}):Le.perkw?Object.assign(Object.assign({},Z),{feeRatesPerKW:Le}):Object.assign({},Z)),(0,b.on)(Rt.Lu,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{balance:Le})),(0,b.on)(Rt.xS,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{localRemoteBalance:Le})),(0,b.on)(Rt.Z8,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{peers:Le})),(0,b.on)(Rt.X3,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{peers:[...Z.peers,Le]})),(0,b.on)(Rt.EK,(Z,{payload:Le})=>{const P=[...Z.peers],he=Z.peers.findIndex(at=>at.id===Le.id);return he>-1&&P.splice(he,1),Object.assign(Object.assign({},Z),{peers:P})}),(0,b.on)(Rt.as,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{activeChannels:Le.activeChannels,pendingChannels:Le.pendingChannels,inactiveChannels:Le.inactiveChannels})),(0,b.on)(Rt.OG,(Z,{payload:Le})=>{const P=[...Z.peers];return P.forEach(he=>{he.id===Le.id&&(he.connected=!1,delete he.netaddr)}),Object.assign(Object.assign({},Z),{peers:P})}),(0,b.on)(Rt.HI,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{payments:Le})),(0,b.on)(Rt.QJ,(Z,{payload:Le})=>{const P=[...Z.activeChannels,...Z.pendingChannels,...Z.inactiveChannels],he=yo(Le.listForwards,P);switch(Le.listForwards=he,Le.status){case Q.OO.SETTLED:const at=Z.fees;return at.totalTxCount=Le.totalForwards||0,Object.assign(Object.assign({},Z),{fees:at,forwardingHistory:Le});case Q.OO.FAILED:return Object.assign(Object.assign({},Z),{failedForwardingHistory:Le});case Q.OO.LOCAL_FAILED:return Object.assign(Object.assign({},Z),{localFailedForwardingHistory:Le});default:return Object.assign({},Z)}}),(0,b.on)(Rt.YP,(Z,{payload:Le})=>{var P;const he=Z.invoices;return null===(P=he.invoices)||void 0===P||P.unshift(Le),Object.assign(Object.assign({},Z),{invoices:he})}),(0,b.on)(Rt.Nr,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{invoices:Le})),(0,b.on)(Rt.aL,(Z,{payload:Le})=>{var P;const he=Z.invoices;return he.invoices=null===(P=he.invoices)||void 0===P?void 0:P.map(at=>at.label===Le.label?Le:at),Object.assign(Object.assign({},Z),{invoices:he})}),(0,b.on)(Rt.UH,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{utxos:Le})),(0,b.on)(Rt.Zu,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{offers:Le})),(0,b.on)(Rt.ZH,(Z,{payload:Le})=>{const P=Z.offers;return null==P||P.unshift(Le),Object.assign(Object.assign({},Z),{offers:P})}),(0,b.on)(Rt.JK,(Z,{payload:Le})=>{const P=[...Z.offers],he=Z.offers.findIndex(at=>at.offer_id===Le.offer.offer_id);return he>-1&&P.splice(he,1,Le.offer),Object.assign(Object.assign({},Z),{offers:P})}),(0,b.on)(Rt.d7,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{offersBookmarks:Le})),(0,b.on)(Rt.e9,(Z,{payload:Le})=>{const P=[...Z.offersBookmarks],he=P.findIndex(at=>at.bolt12===Le.bolt12);if(he<0)null==P||P.unshift(Le);else{const at=Object.assign({},P[he]);at.title=Le.title,at.amountMSat=Le.amountMSat,at.lastUpdatedAt=Le.lastUpdatedAt,at.description=Le.description,at.vendor=Le.vendor,P.splice(he,1,at)}return Object.assign(Object.assign({},Z),{offersBookmarks:P})}),(0,b.on)(Rt.en,(Z,{payload:Le})=>{const P=[...Z.offersBookmarks],he=Z.offersBookmarks.findIndex(at=>at.bolt12===Le.bolt12);return he>-1&&P.splice(he,1),Object.assign(Object.assign({},Z),{offersBookmarks:P})}),(0,b.on)(Rt.pd,(Z,{payload:Le})=>{const P=[];return Q.gG.forEach(he=>{const at=Le.findIndex(jt=>jt.pageId===he.pageId);P.push(at>=0?Le[at]:he)}),Object.assign(Object.assign({},Z),{pageSettings:P})})),yo=(Z,Le)=>(Z&&Z.length>0?Z.forEach((P,he)=>{var at;if(Le&&Le.length>0)for(let jt=0;jt<Le.length;jt++){if(Le[jt].short_channel_id&&Le[jt].short_channel_id===P.in_channel&&(P.in_channel_alias=Le[jt].alias?Le[jt].alias:P.in_channel,P.out_channel_alias)||Le[jt].short_channel_id&&(null===(at=Le[jt].short_channel_id)||void 0===at?void 0:at.toString())===P.out_channel&&(P.out_channel_alias=Le[jt].alias?Le[jt].alias:P.out_channel,P.in_channel_alias))return;jt===Le.length-1&&(P.in_channel_alias||(P.in_channel_alias=P.in_channel?P.in_channel:"-"),P.out_channel_alias||(P.out_channel_alias=P.out_channel?P.out_channel:"-"))}else P.in_channel_alias=P.in_channel?P.in_channel:"-",P.out_channel_alias=P.out_channel?P.out_channel:"-"}):Z=[],Z),Jc={apisCallStatus:{FetchInfo:{status:Q.Bn.UN_INITIATED},FetchFees:{status:Q.Bn.UN_INITIATED},FetchChannels:{status:Q.Bn.UN_INITIATED},FetchOnchainBalance:{status:Q.Bn.UN_INITIATED},FetchPeers:{status:Q.Bn.UN_INITIATED},FetchPayments:{status:Q.Bn.UN_INITIATED},FetchInvoices:{status:Q.Bn.UN_INITIATED},FetchTransactions:{status:Q.Bn.UN_INITIATED}},nodeSettings:{userPersona:Q.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},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:[]},Za=(0,b.Lq)(Jc,(0,b.on)(st.QZ,(Z,{payload:Le})=>{const P=JSON.parse(JSON.stringify(Z.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},Z),{apisCallStatus:P})}),(0,b.on)(st.Zr,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{nodeSettings:Le})),(0,b.on)(st.Fd,(Z,{payload:Le})=>Object.assign(Object.assign({},Jc),{nodeSettings:Le})),(0,b.on)(st.CX,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{information:Le})),(0,b.on)(st.RX,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{fees:Le})),(0,b.on)(st.eN,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{activeChannels:Le})),(0,b.on)(st.TW,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{pendingChannels:Le})),(0,b.on)(st.i,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{inactiveChannels:Le})),(0,b.on)(st.HG,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{channelsStatus:Le})),(0,b.on)(st.Bw,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{onchainBalance:Le})),(0,b.on)(st.On,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{lightningBalance:Le})),(0,b.on)(st.Z8,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{peers:Le})),(0,b.on)(st.EK,(Z,{payload:Le})=>{const P=[...Z.peers],he=Z.peers.findIndex(at=>at.nodeId===Le.nodeId);return he>-1&&P.splice(he,1),Object.assign(Object.assign({},Z),{peers:P})}),(0,b.on)(st.OG,(Z,{payload:Le})=>{const P=[...Z.activeChannels],he=Z.activeChannels.findIndex(at=>at.channelId===Le.channelId);return he>-1&&P.splice(he,1),Object.assign(Object.assign({},Z),{activeChannels:P})}),(0,b.on)(st.HI,(Z,{payload:Le})=>{var P;if(Le&&Le.sent){const he=[...Z.activeChannels,...Z.pendingChannels,...Z.inactiveChannels];null===(P=Le.sent)||void 0===P||P.map(at=>{var jt;const Vi=Z.peers.find(On=>On.nodeId===at.recipientNodeId);return at.recipientNodeAlias=Vi?Vi.alias:at.recipientNodeId,at.parts&&(null===(jt=at.parts)||void 0===jt||jt.map(On=>{const $i=he.find(vr=>vr.channelId===On.toChannelId);return On.toChannelAlias=$i?$i.alias:On.toChannelId,at.parts})),Le.sent})}if(Le&&Le.relayed){const he=[...Z.activeChannels,...Z.pendingChannels,...Z.inactiveChannels];Le.relayed.forEach(at=>{at=xo(at,he)})}return Object.assign(Object.assign({},Z),{payments:Le})}),(0,b.on)(st.Lf,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{transactions:Le})),(0,b.on)(st.YP,(Z,{payload:Le})=>{const P=Z.invoices;return null==P||P.unshift(Le),Object.assign(Object.assign({},Z),{invoices:P})}),(0,b.on)(st.Nr,(Z,{payload:Le})=>Object.assign(Object.assign({},Z),{invoices:Le})),(0,b.on)(st.aL,(Z,{payload:Le})=>{let P=Z.invoices;return P=null==P?void 0:P.map(he=>{if(he.paymentHash===Le.paymentHash){if(Le.hasOwnProperty("type")){const at=JSON.parse(JSON.stringify(he));return at.amountSettled=Le.parts&&Le.parts.length&&Le.parts.length>0&&Le.parts[0].amount?(Le.parts[0].amount||0)/1e3:0,at.receivedAt=Le.parts&&Le.parts.length&&Le.parts.length>0&&Le.parts[0].timestamp?Math.round((Le.parts[0].timestamp||0)/1e3):0,at.status="received",at}return Le}return he}),Object.assign(Object.assign({},Z),{invoices:P})}),(0,b.on)(st.DJ,(Z,{payload:Le})=>{let P=Z.pendingChannels;return P=null==P?void 0:P.map(he=>{var at;return he.channelId===Le.channelId&&he.nodeId===Le.remoteNodeId&&(Le.currentState=null===(at=Le.currentState)||void 0===at?void 0:at.replace(/_/g," "),he.state=Le.currentState),he}),Object.assign(Object.assign({},Z),{pendingChannels:P})}),(0,b.on)(st.ti,(Z,{payload:Le})=>{var P,he,at;const jt=Z.payments,Vi=xo(Le,[...Z.activeChannels,...Z.pendingChannels,...Z.inactiveChannels]);Vi.amountIn=Math.round((Le.amountIn||0)/1e3),Vi.amountOut=Math.round((Le.amountOut||0)/1e3),null===(P=jt.relayed)||void 0===P||P.unshift(Vi);const On=(Le.amountIn||0)-(Le.amountOut||0),$i={localBalance:Z.lightningBalance.localBalance+On,remoteBalance:Z.lightningBalance.remoteBalance-On},vr=Z.channelsStatus;vr.active&&(vr.active.capacity=((null===(at=null===(he=Z.channelsStatus)||void 0===he?void 0:he.active)||void 0===at?void 0:at.capacity)||0)+On);const fs={daily_fee:(Z.fees.daily_fee||0)+On,daily_txs:(Z.fees.daily_txs||0)+1,weekly_fee:(Z.fees.weekly_fee||0)+On,weekly_txs:(Z.fees.weekly_txs||0)+1,monthly_fee:(Z.fees.monthly_fee||0)+On,monthly_txs:(Z.fees.monthly_txs||0)+1},$s=Z.activeChannels;let da=!1,ua=!1;for(const ar of $s){if(ar.channelId===Le.fromChannelId){da=!0;const ea=(ar.toLocal||0)+(ar.toRemote||0);ar.toLocal=(ar.toLocal||0)+Vi.amountIn,ar.toRemote=(ar.toRemote||0)-Vi.amountIn,ar.balancedness=0===ea?1:+(1-Math.abs((ar.toLocal-ar.toRemote)/ea)).toFixed(3)}if(ar.channelId===Le.toChannelId){ua=!0;const ea=(ar.toLocal||0)+(ar.toRemote||0);ar.toLocal=(ar.toLocal||0)-Vi.amountOut,ar.toRemote=(ar.toRemote||0)+Vi.amountOut,ar.balancedness=0===ea?1:+(1-Math.abs((ar.toLocal-ar.toRemote)/ea)).toFixed(3)}if(ua&&da)break}return Object.assign(Object.assign({},Z),{payments:jt,lightningBalance:$i,channelStatus:vr,fees:fs,activeChannels:$s})})),xo=(Z,Le)=>{var P,he,at,jt,Vi,On,$i,vr,fs,$s,da,ua,ar,ea;if("payment-relayed"===Z.type)if(Le&&Le.length>0)for(let Pn=0;Pn<Le.length;Pn++){if((null===(P=Le[Pn].channelId)||void 0===P?void 0:P.toString())===Z.fromChannelId&&(Z.fromChannelAlias=Le[Pn].alias?Le[Pn].alias:Z.fromChannelId,Z.fromShortChannelId=Le[Pn].shortChannelId?Le[Pn].shortChannelId:"",Z.toChannelAlias)||(null===(he=Le[Pn].channelId)||void 0===he?void 0:he.toString())===Z.toChannelId&&(Z.toChannelAlias=Le[Pn].alias?Le[Pn].alias:Z.toChannelId,Z.toShortChannelId=Le[Pn].shortChannelId?Le[Pn].shortChannelId:"",Z.fromChannelAlias))return Z;Pn===Le.length-1&&(Z.fromChannelAlias||(Z.fromChannelAlias=(null===(at=Z.fromChannelId)||void 0===at?void 0:at.substring(0,17))+"...",Z.fromShortChannelId=""),Z.toChannelAlias||(Z.toChannelAlias=(null===(jt=Z.toChannelId)||void 0===jt?void 0:jt.substring(0,17))+"...",Z.toShortChannelId=""))}else Z.fromChannelAlias=(null===(Vi=Z.fromChannelId)||void 0===Vi?void 0:Vi.substring(0,17))+"...",Z.fromShortChannelId="",Z.toChannelAlias=(null===(On=Z.toChannelId)||void 0===On?void 0:On.substring(0,17))+"...",Z.toShortChannelId="";else if(Z.type="trampoline-payment-relayed"){if(Le&&Le.length>0)for(let Pn=0;Pn<Le.length;Pn++)null===($i=Z.incoming)||void 0===$i||$i.forEach(fr=>{var ks;(null===(ks=Le[Pn].channelId)||void 0===ks?void 0:ks.toString())===fr.channelId&&(fr.channelAlias=Le[Pn].alias?Le[Pn].alias:fr.channelId,fr.shortChannelId=Le[Pn].shortChannelId?Le[Pn].shortChannelId:"")}),null===(vr=Z.outgoing)||void 0===vr||vr.forEach(fr=>{var ks;(null===(ks=Le[Pn].channelId)||void 0===ks?void 0:ks.toString())===fr.channelId&&(fr.channelAlias=Le[Pn].alias?Le[Pn].alias:fr.channelId,fr.shortChannelId=Le[Pn].shortChannelId?Le[Pn].shortChannelId:"")}),Pn===Le.length-1&&(Z.incoming&&Z.incoming.length&&Z.incoming.length>0&&!Z.incoming[0].channelAlias&&(null===(fs=Z.incoming)||void 0===fs||fs.forEach(fr=>{var ks;fr.channelAlias=(null===(ks=fr.channelId)||void 0===ks?void 0:ks.substring(0,17))+"...",fr.shortChannelId=""})),Z.outgoing&&Z.outgoing.length&&Z.outgoing.length>0&&!Z.outgoing[0].channelAlias&&(null===($s=Z.outgoing)||void 0===$s||$s.forEach(fr=>{var ks;fr.channelAlias=(null===(ks=fr.channelId)||void 0===ks?void 0:ks.substring(0,17))+"...",fr.shortChannelId=""})));else null===(da=Z.incoming)||void 0===da||da.forEach(Pn=>{var fr;Pn.channelAlias=(null===(fr=Pn.channelId)||void 0===fr?void 0:fr.substring(0,17))+"...",Pn.shortChannelId=""}),null===(ua=Z.outgoing)||void 0===ua||ua.forEach(Pn=>{var fr;Pn.channelAlias=(null===(fr=Pn.channelId)||void 0===fr?void 0:fr.substring(0,17))+"...",Pn.shortChannelId=""});Z.amountIn=(null===(ar=Z.incoming)||void 0===ar?void 0:ar.reduce((Pn,fr)=>Pn+fr.amount,0))||0,Z.fromChannelId=Z.incoming&&Z.incoming.length?Z.incoming[0].channelId:"",Z.fromChannelAlias=Z.incoming&&Z.incoming.length?Z.incoming[0].channelAlias:"",Z.fromShortChannelId=Z.incoming&&Z.incoming.length?Z.incoming[0].shortChannelId:"",Z.amountOut=(null===(ea=Z.outgoing)||void 0===ea?void 0:ea.reduce((Pn,fr)=>Pn+fr.amount,0))||0,Z.toChannelId=Z.outgoing&&Z.outgoing.length?Z.outgoing[0].channelId:"",Z.toChannelAlias=Z.outgoing&&Z.outgoing.length?Z.outgoing[0].channelAlias:"",Z.toShortChannelId=Z.outgoing&&Z.outgoing.length?Z.outgoing[0].shortChannelId:""}return Z};let Xc=(()=>{class Z{}return Z.\u0275fac=function(P){return new(P||Z)},Z.\u0275mod=e.oAB({type:Z,bootstrap:[d2]}),Z.\u0275inj=e.cJS({providers:[{provide:M.TP,useClass:Ho,multi:!0},sr.a1,Ee.m,Kl.D,Pa.d,us.W,fi.v,pe],imports:[[f.PW,e2.m,tl,s.xu,t.t6,T.forRoot({idle:3590,timeout:10,ping:12e3}),b.Aw.forRoot({root:K0,lnd:m2,cln:Q0,ecl:Za},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([et.V,Fo.l,u2.J,j0.o]),_t.NZ.production?[]:R.FT.instrument()]]}),Z})();_t.NZ.production&&(0,e.G48)(),t.q6().bootstrapModule(Xc).catch(Z=>console.log(Z))},7854:(ze,K)=>{"use strict";function p(Q){return Object.keys(Q).map(Ue=>Q[Ue])}var Q;Object.defineProperty(K,"__esModule",{value:!0}),(Q=K.HashAlgorithms||(K.HashAlgorithms={})).SHA1="sha1",Q.SHA256="sha256",Q.SHA512="sha512";const t=p(K.HashAlgorithms);!function(Q){Q.ASCII="ascii",Q.BASE64="base64",Q.HEX="hex",Q.LATIN1="latin1",Q.UTF8="utf8"}(K.KeyEncodings||(K.KeyEncodings={}));const e=p(K.KeyEncodings);!function(Q){Q.HOTP="hotp",Q.TOTP="totp"}(K.Strategy||(K.Strategy={}));const f=p(K.Strategy),M=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(Q){return/^(\d+)$/.test(Q)}function b(Q,Ue,Ce){return Q.length>=Ue?Q:`${Array(Ue+1).join(Ce)}${Q}`.slice(-1*Ue)}function d(Q){const Ue=`otpauth://${Q.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Ce=[];if(f.indexOf(Q.type)<0)throw new Error(`Expecting options.type to be one of ${f.join(", ")}. Received ${Q.type}.`);if("hotp"===Q.type){if(null==Q.counter||"number"!=typeof Q.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Ce.push(`&counter=${Q.counter}`)}return"totp"===Q.type&&Q.step&&Ce.push(`&period=${Q.step}`),Q.digits&&Ce.push(`&digits=${Q.digits}`),Q.algorithm&&Ce.push(`&algorithm=${Q.algorithm.toUpperCase()}`),Q.issuer&&Ce.push(`&issuer=${encodeURIComponent(Q.issuer)}`),Ue.replace("{labelPrefix}",encodeURIComponent(Q.issuer||Q.accountName)).replace("{accountName}",encodeURIComponent(Q.accountName)).replace("{secret}",Q.secret).replace("{query}",Ce.join(""))}class R{constructor(Ue={}){this._defaultOptions=Object.freeze(Xa({},Ue)),this._options=Object.freeze({})}create(Ue={}){return new R(Ue)}clone(Ue={}){const Ce=this.create(Xa(Xa({},this._defaultOptions),Ue));return Ce.options=this._options,Ce}get options(){return Object.freeze(Xa(Xa({},this._defaultOptions),this._options))}set options(Ue){this._options=Object.freeze(Xa(Xa({},this._options),Ue))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function h(Q){if("function"!=typeof Q.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof Q.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof Q.digits)throw new Error("Expecting options.digits to be a number.");if(!Q.algorithm||t.indexOf(Q.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${Q.algorithm}.`);if(!Q.encoding||e.indexOf(Q.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${Q.encoding}.`)}const L=(Q,Ue,Ce)=>Buffer.from(Ue,Ce).toString("hex");function w(){return{algorithm:K.HashAlgorithms.SHA1,createHmacKey:L,createDigest:M,digits:6,encoding:K.KeyEncodings.ASCII}}function D(Q){const Ue=Xa(Xa({},w()),Q);return h(Ue),Object.freeze(Ue)}function S(Q){return b(Q.toString(16),16,"0")}function k(Q,Ue){const Ce=Buffer.from(Q,"hex"),q=15&Ce[Ce.length-1],ut=((127&Ce[q])<<24|(255&Ce[q+1])<<16|(255&Ce[q+2])<<8|255&Ce[q+3])%Math.pow(10,Ue);return b(String(ut),Ue,"0")}function U(Q,Ue,Ce){const q=Ce.digest||function E(Q,Ue,Ce){const q=S(Ue),Ae=Ce.createHmacKey(Ce.algorithm,Q,Ce.encoding);return Ce.createDigest(Ce.algorithm,Ae,q)}(Q,Ue,Ce);return k(q,Ce.digits)}function W(Q,Ue,Ce,q){return!!s(Q)&&Q===U(Ue,Ce,q)}function j(Q,Ue,Ce,q,Ae){return d({algorithm:Ae.algorithm,digits:Ae.digits,type:K.Strategy.HOTP,accountName:Q,counter:q,issuer:Ue,secret:Ce})}class ne extends R{create(Ue={}){return new ne(Ue)}allOptions(){return D(this.options)}generate(Ue,Ce){return U(Ue,Ce,this.allOptions())}check(Ue,Ce,q){return W(Ue,Ce,q,this.allOptions())}verify(Ue){if("object"!=typeof Ue)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ue.token,Ue.secret,Ue.counter)}keyuri(Ue,Ce,q,Ae){return j(Ue,Ce,q,Ae,this.allOptions())}}function ee(Q){if("number"==typeof Q)return[Math.abs(Q),Math.abs(Q)];if(Array.isArray(Q)){const[Ue,Ce]=Q;if("number"==typeof Ue&&"number"==typeof Ce)return[Math.abs(Ue),Math.abs(Ce)]}throw new Error("Expecting options.window to be an number or [number, number].")}function de(Q){if(h(Q),ee(Q.window),"number"!=typeof Q.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof Q.step)throw new Error("Expecting options.step to be a number.")}const te=(Q,Ue,Ce)=>{const q=Q.length,Ae=Buffer.from(Q,Ue).toString("hex");if(q<Ce){const ut=new Array(Ce-q+1).join(Ae);return Buffer.from(ut,"hex").slice(0,Ce).toString("hex")}return Ae},ie=(Q,Ue,Ce)=>{switch(Q){case K.HashAlgorithms.SHA1:return te(Ue,Ce,20);case K.HashAlgorithms.SHA256:return te(Ue,Ce,32);case K.HashAlgorithms.SHA512:return te(Ue,Ce,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${Q}.`)}};function le(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:ie,digits:6,encoding:K.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function $(Q){const Ue=Xa(Xa({},le()),Q);return de(Ue),Object.freeze(Ue)}function ge(Q,Ue){return Math.floor(Q/Ue/1e3)}function C(Q,Ue){return U(Q,ge(Ue.epoch,Ue.step),Ue)}function i(Q,Ue,Ce,q){const Ae=[];if(0===q)return Ae;for(let ut=1;ut<=q;ut++)Ae.push(Q+Ue*ut*Ce);return Ae}function r(Q,Ue,Ce){const q=ee(Ce),Ae=1e3*Ue;return{current:Q,past:i(Q,-1,Ae,q[0]),future:i(Q,1,Ae,q[1])}}function u(Q,Ue,Ce){return!!s(Q)&&Q===C(Ue,Ce)}function c(Q,Ue,Ce,q){let Ae=null;return Q.some((ut,Ie)=>!!u(Ue,Ce,$_(Xa({},q),{epoch:ut}))&&(Ae=Ie+1,!0)),Ae}function v(Q,Ue,Ce){if(u(Q,Ue,Ce))return 0;const q=r(Ce.epoch,Ce.step,Ce.window),Ae=c(q.past,Q,Ue,Ce);return null!==Ae?-1*Ae:c(q.future,Q,Ue,Ce)}function T(Q,Ue){return Math.floor(Q/1e3)%Ue}function I(Q,Ue){return Ue-T(Q,Ue)}function y(Q,Ue,Ce,q){return d({algorithm:q.algorithm,digits:q.digits,step:q.step,type:K.Strategy.TOTP,accountName:Q,issuer:Ue,secret:Ce})}class n extends ne{create(Ue={}){return new n(Ue)}allOptions(){return $(this.options)}generate(Ue){return C(Ue,this.allOptions())}checkDelta(Ue,Ce){return v(Ue,Ce,this.allOptions())}check(Ue,Ce){return"number"==typeof this.checkDelta(Ue,Ce)}verify(Ue){if("object"!=typeof Ue)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ue.token,Ue.secret)}timeRemaining(){const Ue=this.allOptions();return I(Ue.epoch,Ue.step)}timeUsed(){const Ue=this.allOptions();return T(Ue.epoch,Ue.step)}keyuri(Ue,Ce,q){return y(Ue,Ce,q,this.allOptions())}}function _(Q){if(de(Q),"function"!=typeof Q.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(Q.keyEncoder&&"function"!=typeof Q.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function B(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:ie,digits:6,encoding:K.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(Q){const Ue=Xa(Xa({},B()),Q);return _(Ue),Object.freeze(Ue)}function H(Q,Ue){return Ue.keyEncoder(Q,Ue.encoding)}function J(Q,Ue){return Ue.keyDecoder(Q,Ue.encoding)}function ue(Q,Ue){return H(Ue.createRandomBytes(Q,Ue.encoding),Ue)}function xe(Q,Ue){return C(J(Q,Ue),Ue)}function Pe(Q,Ue,Ce){return v(Q,J(Ue,Ce),Ce)}class Se extends n{create(Ue={}){return new Se(Ue)}allOptions(){return N(this.options)}generate(Ue){return xe(Ue,this.allOptions())}checkDelta(Ue,Ce){return Pe(Ue,Ce,this.allOptions())}encode(Ue){return H(Ue,this.allOptions())}decode(Ue){return J(Ue,this.allOptions())}generateSecret(Ue=10){return ue(Ue,this.allOptions())}}K.Authenticator=Se,K.HASH_ALGORITHMS=t,K.HOTP=ne,K.KEY_ENCODINGS=e,K.OTP=R,K.STRATEGY=f,K.TOTP=n,K.authenticatorCheckWithWindow=Pe,K.authenticatorDecoder=J,K.authenticatorDefaultOptions=B,K.authenticatorEncoder=H,K.authenticatorGenerateSecret=ue,K.authenticatorOptionValidator=_,K.authenticatorOptions=N,K.authenticatorToken=xe,K.createDigestPlaceholder=M,K.hotpCheck=W,K.hotpCounter=S,K.hotpCreateHmacKey=L,K.hotpDefaultOptions=w,K.hotpDigestToToken=k,K.hotpKeyuri=j,K.hotpOptions=D,K.hotpOptionsValidator=h,K.hotpToken=U,K.isTokenValid=s,K.keyuri=d,K.objectValues=p,K.padStart=b,K.totpCheck=u,K.totpCheckByEpoch=c,K.totpCheckWithWindow=v,K.totpCounter=ge,K.totpCreateHmacKey=ie,K.totpDefaultOptions=le,K.totpEpochAvailable=r,K.totpKeyuri=y,K.totpOptions=$,K.totpOptionsValidator=de,K.totpPadSecret=te,K.totpTimeRemaining=I,K.totpTimeUsed=T,K.totpToken=C},6098:(ze,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(p(1348));K.createDigest=(s,b,d)=>e.createHmac(s,Buffer.from(b,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),K.createRandomBytes=(s,b)=>e.randomBytes(s).toString(b)},1415:(ze,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(p(2167));K.keyDecoder=(s,b)=>e.decode(s).toString(b),K.keyEncoder=(s,b)=>e.encode(Buffer.from(s,b).toString("ascii")).toString().replace(/=/g,"")},842:(ze,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var t=p(6098),e=p(1415),f=p(7854);const M=new f.HOTP({createDigest:t.createDigest}),s=new f.TOTP({createDigest:t.createDigest}),b=new f.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});K.authenticator=b,K.hotp=M,K.totp=s},7977:(ze,K,p)=>{"use strict";const t=K;t.bignum=p(3854),t.define=p(9516).define,t.base=p(7813),t.constants=p(5459),t.decoders=p(196),t.encoders=p(1131)},9516:(ze,K,p)=>{"use strict";const t=p(1131),e=p(196),f=p(3894);function s(b,d){this.name=b,this.body=d,this.decoders={},this.encoders={}}K.define=function(d,R){return new s(d,R)},s.prototype._createNamed=function(d){const R=this.name;function h(L){this._initNamed(L,R)}return f(h,d),h.prototype._initNamed=function(w,D){d.call(this,w,D)},new h(this)},s.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(e[d])),this.decoders[d]},s.prototype.decode=function(d,R,h){return this._getDecoder(R).decode(d,h)},s.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(t[d])),this.encoders[d]},s.prototype.encode=function(d,R,h){return this._getEncoder(R).encode(d,h)}},2769:(ze,K,p)=>{"use strict";const t=p(3894),e=p(4919).b,f=p(2038).Buffer;function M(b,d){e.call(this,d),f.isBuffer(b)?(this.base=b,this.offset=0,this.length=b.length):this.error("Input not Buffer")}function s(b,d){if(Array.isArray(b))this.length=0,this.value=b.map(function(R){return s.isEncoderBuffer(R)||(R=new s(R,d)),this.length+=R.length,R},this);else if("number"==typeof b){if(!(0<=b&&b<=255))return d.error("non-byte EncoderBuffer value");this.value=b,this.length=1}else if("string"==typeof b)this.value=b,this.length=f.byteLength(b);else{if(!f.isBuffer(b))return d.error("Unsupported type: "+typeof b);this.value=b,this.length=b.length}}t(M,e),K.C=M,M.isDecoderBuffer=function(d){return d instanceof M||"object"==typeof d&&f.isBuffer(d.base)&&"DecoderBuffer"===d.constructor.name&&"number"==typeof d.offset&&"number"==typeof d.length&&"function"==typeof d.save&&"function"==typeof d.restore&&"function"==typeof d.isEmpty&&"function"==typeof d.readUInt8&&"function"==typeof d.skip&&"function"==typeof d.raw},M.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},M.prototype.restore=function(d){const R=new M(this.base);return R.offset=d.offset,R.length=this.offset,this.offset=d.offset,e.prototype.restore.call(this,d.reporter),R},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},M.prototype.skip=function(d,R){if(!(this.offset+d<=this.length))return this.error(R||"DecoderBuffer overrun");const h=new M(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},M.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},K.R=s,s.isEncoderBuffer=function(d){return d instanceof s||"object"==typeof d&&"EncoderBuffer"===d.constructor.name&&"number"==typeof d.length&&"function"==typeof d.join},s.prototype.join=function(d,R){return d||(d=f.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(d,R),R+=h.length}):("number"==typeof this.value?d[R]=this.value:"string"==typeof this.value?d.write(this.value,R):f.isBuffer(this.value)&&this.value.copy(d,R),R+=this.length)),d}},7813:(ze,K,p)=>{"use strict";const t=K;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(ze,K,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,f=p(2769).C,M=p(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"],b=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function R(L,w,D){const S={};this._baseState=S,S.name=D,S.enc=L,S.parent=w||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,S.parent||(S.children=[],this._wrap())}ze.exports=R;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const w=this._baseState,D={};h.forEach(function(k){D[k]=w[k]});const S=new this.constructor(D.parent);return S._baseState=D,S},R.prototype._wrap=function(){const w=this._baseState;b.forEach(function(D){this[D]=function(){const k=new this.constructor(this);return w.children.push(k),k[D].apply(k,arguments)}},this)},R.prototype._init=function(w){const D=this._baseState;M(null===D.parent),w.call(this),D.children=D.children.filter(function(S){return S._baseState.parent===this},this),M.equal(D.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(w){const D=this._baseState,S=w.filter(function(k){return k instanceof this.constructor},this);w=w.filter(function(k){return!(k instanceof this.constructor)},this),0!==S.length&&(M(null===D.children),D.children=S,S.forEach(function(k){k._baseState.parent=this},this)),0!==w.length&&(M(null===D.args),D.args=w,D.reverseArgs=w.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const E={};return Object.keys(k).forEach(function(U){U==(0|U)&&(U|=0),E[k[U]]=U}),E}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){R.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(L){R.prototype[L]=function(){const D=this._baseState,S=Array.prototype.slice.call(arguments);return M(null===D.tag),D.tag=L,this._useArgs(S),this}}),R.prototype.use=function(w){M(w);const D=this._baseState;return M(null===D.use),D.use=w,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(w){const D=this._baseState;return M(null===D.default),D.default=w,D.optional=!0,this},R.prototype.explicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.explicit=w,this},R.prototype.implicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.implicit=w,this},R.prototype.obj=function(){const w=this._baseState,D=Array.prototype.slice.call(arguments);return w.obj=!0,0!==D.length&&this._useArgs(D),this},R.prototype.key=function(w){const D=this._baseState;return M(null===D.key),D.key=w,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(w){const D=this._baseState;return M(null===D.choice),D.choice=w,this._useArgs(Object.keys(w).map(function(S){return w[S]})),this},R.prototype.contains=function(w){const D=this._baseState;return M(null===D.use),D.contains=w,this},R.prototype._decode=function(w,D){const S=this._baseState;if(null===S.parent)return w.wrapResult(S.children[0]._decode(w,D));let W,k=S.default,E=!0,U=null;if(null!==S.key&&(U=w.enterKey(S.key)),S.optional){let j=null;if(null!==S.explicit?j=S.explicit:null!==S.implicit?j=S.implicit:null!==S.tag&&(j=S.tag),null!==j||S.any){if(E=this._peekTag(w,j,S.any),w.isError(E))return E}else{const ne=w.save();try{null===S.choice?this._decodeGeneric(S.tag,w,D):this._decodeChoice(w,D),E=!0}catch(ee){E=!1}w.restore(ne)}}if(S.obj&&E&&(W=w.enterObject()),E){if(null!==S.explicit){const ne=this._decodeTag(w,S.explicit);if(w.isError(ne))return ne;w=ne}const j=w.offset;if(null===S.use&&null===S.choice){let ne;S.any&&(ne=w.save());const ee=this._decodeTag(w,null!==S.implicit?S.implicit:S.tag,S.any);if(w.isError(ee))return ee;S.any?k=w.raw(ne):w=ee}if(D&&D.track&&null!==S.tag&&D.track(w.path(),j,w.length,"tagged"),D&&D.track&&null!==S.tag&&D.track(w.path(),w.offset,w.length,"content"),S.any||(k=null===S.choice?this._decodeGeneric(S.tag,w,D):this._decodeChoice(w,D)),w.isError(k))return k;if(!S.any&&null===S.choice&&null!==S.children&&S.children.forEach(function(ee){ee._decode(w,D)}),S.contains&&("octstr"===S.tag||"bitstr"===S.tag)){const ne=new f(k);k=this._getUse(S.contains,w._reporterState.obj)._decode(ne,D)}}return S.obj&&E&&(k=w.leaveObject(W)),null===S.key||null===k&&!0!==E?null!==U&&w.exitKey(U):w.leaveKey(U,S.key,k),k},R.prototype._decodeGeneric=function(w,D,S){const k=this._baseState;return"seq"===w||"set"===w?null:"seqof"===w||"setof"===w?this._decodeList(D,w,k.args[0],S):/str$/.test(w)?this._decodeStr(D,w,S):"objid"===w&&k.args?this._decodeObjid(D,k.args[0],k.args[1],S):"objid"===w?this._decodeObjid(D,null,null,S):"gentime"===w||"utctime"===w?this._decodeTime(D,w,S):"null_"===w?this._decodeNull(D,S):"bool"===w?this._decodeBool(D,S):"objDesc"===w?this._decodeStr(D,w,S):"int"===w||"enum"===w?this._decodeInt(D,k.args&&k.args[0],S):null!==k.use?this._getUse(k.use,D._reporterState.obj)._decode(D,S):D.error("unknown tag: "+w)},R.prototype._getUse=function(w,D){const S=this._baseState;return S.useDecoder=this._use(w,D),M(null===S.useDecoder._baseState.parent),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},R.prototype._decodeChoice=function(w,D){const S=this._baseState;let k=null,E=!1;return Object.keys(S.choice).some(function(U){const W=w.save(),j=S.choice[U];try{const ne=j._decode(w,D);if(w.isError(ne))return!1;k={type:U,value:ne},E=!0}catch(ne){return w.restore(W),!1}return!0},this),E?k:w.error("Choice not matched")},R.prototype._createEncoderBuffer=function(w){return new e(w,this.reporter)},R.prototype._encode=function(w,D,S){const k=this._baseState;if(null!==k.default&&k.default===w)return;const E=this._encodeValue(w,D,S);return void 0===E||this._skipDefault(E,D,S)?void 0:E},R.prototype._encodeValue=function(w,D,S){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(w,D||new t);let E=null;if(this.reporter=D,k.optional&&void 0===w){if(null===k.default)return;w=k.default}let U=null,W=!1;if(k.any)E=this._createEncoderBuffer(w);else if(k.choice)E=this._encodeChoice(w,D);else if(k.contains)U=this._getUse(k.contains,S)._encode(w,D),W=!0;else if(k.children)U=k.children.map(function(j){if("null_"===j._baseState.tag)return j._encode(null,D,w);if(null===j._baseState.key)return D.error("Child should have a key");const ne=D.enterKey(j._baseState.key);if("object"!=typeof w)return D.error("Child expected, but input is not object");const ee=j._encode(w[j._baseState.key],D,w);return D.leaveKey(ne),ee},this).filter(function(j){return j}),U=this._createEncoderBuffer(U);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return D.error("Too many args for : "+k.tag);if(!Array.isArray(w))return D.error("seqof/setof, but data is not Array");const j=this.clone();j._baseState.implicit=null,U=this._createEncoderBuffer(w.map(function(ne){return this._getUse(this._baseState.args[0],w)._encode(ne,D)},j))}else null!==k.use?E=this._getUse(k.use,S)._encode(w,D):(U=this._encodePrimitive(k.tag,w),W=!0);if(!k.any&&null===k.choice){const j=null!==k.implicit?k.implicit:k.tag,ne=null===k.implicit?"universal":"context";null===j?null===k.use&&D.error("Tag could be omitted only for .use()"):null===k.use&&(E=this._encodeComposite(j,W,ne,U))}return null!==k.explicit&&(E=this._encodeComposite(k.explicit,!1,"context",E)),E},R.prototype._encodeChoice=function(w,D){const S=this._baseState,k=S.choice[w.type];return k||M(!1,w.type+" not found in "+JSON.stringify(Object.keys(S.choice))),k._encode(w.value,D)},R.prototype._encodePrimitive=function(w,D){const S=this._baseState;if(/str$/.test(w))return this._encodeStr(D,w);if("objid"===w&&S.args)return this._encodeObjid(D,S.reverseArgs[0],S.args[1]);if("objid"===w)return this._encodeObjid(D,null,null);if("gentime"===w||"utctime"===w)return this._encodeTime(D,w);if("null_"===w)return this._encodeNull();if("int"===w||"enum"===w)return this._encodeInt(D,S.args&&S.reverseArgs[0]);if("bool"===w)return this._encodeBool(D);if("objDesc"===w)return this._encodeStr(D,w);throw new Error("Unsupported tag: "+w)},R.prototype._isNumstr=function(w){return/^[0-9 ]*$/.test(w)},R.prototype._isPrintstr=function(w){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(w)}},4919:(ze,K,p)=>{"use strict";const t=p(3894);function e(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function f(M,s){this.path=M,this.rethrow(s)}K.b=e,e.prototype.isError=function(s){return s instanceof f},e.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},e.prototype.restore=function(s){const b=this._reporterState;b.obj=s.obj,b.path=b.path.slice(0,s.pathLen)},e.prototype.enterKey=function(s){return this._reporterState.path.push(s)},e.prototype.exitKey=function(s){const b=this._reporterState;b.path=b.path.slice(0,s-1)},e.prototype.leaveKey=function(s,b,d){const R=this._reporterState;this.exitKey(s),null!==R.obj&&(R.obj[b]=d)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const s=this._reporterState,b=s.obj;return s.obj={},b},e.prototype.leaveObject=function(s){const b=this._reporterState,d=b.obj;return b.obj=s,d},e.prototype.error=function(s){let b;const d=this._reporterState,R=s instanceof f;if(b=R?s:new f(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),s.message||s,s.stack),!d.options.partial)throw b;return R||d.errors.push(b),b},e.prototype.wrapResult=function(s){const b=this._reporterState;return b.options.partial?{result:this.isError(s)?null:s,errors:b.errors}:s},t(f,Error),f.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(b){this.stack=b.stack}return this}},5496:(ze,K)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(f){(0|f)==f&&(f|=0),e[t[f]]=f}),e}K.tagClass={0:"universal",1:"application",2:"context",3:"private"},K.tagClassByName=p(K.tagClass),K.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"},K.tagByName=p(K.tag)},5459:(ze,K,p)=>{"use strict";const t=K;t._reverse=function(f){const M={};return Object.keys(f).forEach(function(s){(0|s)==s&&(s|=0),M[f[s]]=s}),M},t.der=p(5496)},7127:(ze,K,p)=>{"use strict";const t=p(3894),e=p(3854),f=p(2769).C,M=p(1430),s=p(5496);function b(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new d,this.tree._init(L.body)}function d(L){M.call(this,"der",L)}function R(L,w){let D=L.readUInt8(w);if(L.isError(D))return D;const S=s.tagClass[D>>6],k=0==(32&D);if(31==(31&D)){let U=D;for(D=0;128==(128&U);){if(U=L.readUInt8(w),L.isError(U))return U;D<<=7,D|=127&U}}else D&=31;return{cls:S,primitive:k,tag:D,tagStr:s.tag[D]}}function h(L,w,D){let S=L.readUInt8(D);if(L.isError(S))return S;if(!w&&128===S)return null;if(0==(128&S))return S;const k=127&S;if(k>4)return L.error("length octect is too long");S=0;for(let E=0;E<k;E++){S<<=8;const U=L.readUInt8(D);if(L.isError(U))return U;S|=U}return S}ze.exports=b,b.prototype.decode=function(w,D){return f.isDecoderBuffer(w)||(w=new f(w,D)),this.tree._decode(w,D)},t(d,M),d.prototype._peekTag=function(w,D,S){if(w.isEmpty())return!1;const k=w.save(),E=R(w,'Failed to peek tag: "'+D+'"');return w.isError(E)?E:(w.restore(k),E.tag===D||E.tagStr===D||E.tagStr+"of"===D||S)},d.prototype._decodeTag=function(w,D,S){const k=R(w,'Failed to decode tag of "'+D+'"');if(w.isError(k))return k;let E=h(w,k.primitive,'Failed to get length of "'+D+'"');if(w.isError(E))return E;if(!S&&k.tag!==D&&k.tagStr!==D&&k.tagStr+"of"!==D)return w.error('Failed to match tag: "'+D+'"');if(k.primitive||null!==E)return w.skip(E,'Failed to match body of: "'+D+'"');const U=w.save(),W=this._skipUntilEnd(w,'Failed to skip indefinite length body: "'+this.tag+'"');return w.isError(W)?W:(E=w.offset-U.offset,w.restore(U),w.skip(E,'Failed to match body of: "'+D+'"'))},d.prototype._skipUntilEnd=function(w,D){for(;;){const S=R(w,D);if(w.isError(S))return S;const k=h(w,S.primitive,D);if(w.isError(k))return k;let E;if(E=S.primitive||null!==k?w.skip(k):this._skipUntilEnd(w,D),w.isError(E))return E;if("end"===S.tagStr)break}},d.prototype._decodeList=function(w,D,S,k){const E=[];for(;!w.isEmpty();){const U=this._peekTag(w,"end");if(w.isError(U))return U;const W=S.decode(w,"der",k);if(w.isError(W)&&U)break;E.push(W)}return E},d.prototype._decodeStr=function(w,D){if("bitstr"===D){const S=w.readUInt8();return w.isError(S)?S:{unused:S,data:w.raw()}}if("bmpstr"===D){const S=w.raw();if(S.length%2==1)return w.error("Decoding of string type: bmpstr length mismatch");let k="";for(let E=0;E<S.length/2;E++)k+=String.fromCharCode(S.readUInt16BE(2*E));return k}if("numstr"===D){const S=w.raw().toString("ascii");return this._isNumstr(S)?S:w.error("Decoding of string type: numstr unsupported characters")}if("octstr"===D)return w.raw();if("objDesc"===D)return w.raw();if("printstr"===D){const S=w.raw().toString("ascii");return this._isPrintstr(S)?S:w.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(D)?w.raw().toString():w.error("Decoding of string type: "+D+" unsupported")},d.prototype._decodeObjid=function(w,D,S){let k;const E=[];let U=0,W=0;for(;!w.isEmpty();)W=w.readUInt8(),U<<=7,U|=127&W,0==(128&W)&&(E.push(U),U=0);if(128&W&&E.push(U),k=S?E:[E[0]/40|0,E[0]%40].concat(E.slice(1)),D){let ee=D[k.join(" ")];void 0===ee&&(ee=D[k.join(".")]),void 0!==ee&&(k=ee)}return k},d.prototype._decodeTime=function(w,D){const S=w.raw().toString();let k,E,U,W,j,ne;if("gentime"===D)k=0|S.slice(0,4),E=0|S.slice(4,6),U=0|S.slice(6,8),W=0|S.slice(8,10),j=0|S.slice(10,12),ne=0|S.slice(12,14);else{if("utctime"!==D)return w.error("Decoding "+D+" time is not supported yet");k=0|S.slice(0,2),E=0|S.slice(2,4),U=0|S.slice(4,6),W=0|S.slice(6,8),j=0|S.slice(8,10),ne=0|S.slice(10,12),k=k<70?2e3+k:1900+k}return Date.UTC(k,E-1,U,W,j,ne,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(w){const D=w.readUInt8();return w.isError(D)?D:0!==D},d.prototype._decodeInt=function(w,D){const S=w.raw();let k=new e(S);return D&&(k=D[k.toString(10)]||k),k},d.prototype._use=function(w,D){return"function"==typeof w&&(w=w(D)),w._getDecoder("der").tree}},196:(ze,K,p)=>{"use strict";const t=K;t.der=p(7127),t.pem=p(9617)},9617:(ze,K,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(7127);function M(s){f.call(this,s),this.enc="pem"}t(M,f),ze.exports=M,M.prototype.decode=function(b,d){const R=b.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let w=-1,D=-1;for(let E=0;E<R.length;E++){const U=R[E].match(L);if(null!==U&&U[2]===h){if(-1!==w){if("END"!==U[1])break;D=E;break}if("BEGIN"!==U[1])break;w=E}}if(-1===w||-1===D)throw new Error("PEM section not found for: "+h);const S=R.slice(w+1,D).join("");S.replace(/[^a-z0-9+/=]+/gi,"");const k=e.from(S,"base64");return f.prototype.decode.call(this,k,d)}},6374:(ze,K,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(1430),M=p(5496);function s(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new b,this.tree._init(h.body)}function b(h){f.call(this,"der",h)}function d(h){return h<10?"0"+h:h}ze.exports=s,s.prototype.encode=function(L,w){return this.tree._encode(L,w).join()},t(b,f),b.prototype._encodeComposite=function(L,w,D,S){const k=function R(h,L,w,D){let S;if("seqof"===h?h="seq":"setof"===h&&(h="set"),M.tagByName.hasOwnProperty(h))S=M.tagByName[h];else{if("number"!=typeof h||(0|h)!==h)return D.error("Unknown tag: "+h);S=h}return S>=31?D.error("Multi-octet tag encoding unsupported"):(L||(S|=32),S|=M.tagClassByName[w||"universal"]<<6,S)}(L,w,D,this.reporter);if(S.length<128){const W=e.alloc(2);return W[0]=k,W[1]=S.length,this._createEncoderBuffer([W,S])}let E=1;for(let W=S.length;W>=256;W>>=8)E++;const U=e.alloc(2+E);U[0]=k,U[1]=128|E;for(let W=1+E,j=S.length;j>0;W--,j>>=8)U[W]=255&j;return this._createEncoderBuffer([U,S])},b.prototype._encodeStr=function(L,w){if("bitstr"===w)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===w){const D=e.alloc(2*L.length);for(let S=0;S<L.length;S++)D.writeUInt16BE(L.charCodeAt(S),2*S);return this._createEncoderBuffer(D)}return"numstr"===w?this._isNumstr(L)?this._createEncoderBuffer(L):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===w?this._isPrintstr(L)?this._createEncoderBuffer(L):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(L):this.reporter.error("Encoding of string type: "+w+" unsupported")},b.prototype._encodeObjid=function(L,w,D){if("string"==typeof L){if(!w)return this.reporter.error("string objid given, but no values map found");if(!w.hasOwnProperty(L))return this.reporter.error("objid not found in values map");L=w[L].split(/[\s.]+/g);for(let U=0;U<L.length;U++)L[U]|=0}else if(Array.isArray(L)){L=L.slice();for(let U=0;U<L.length;U++)L[U]|=0}if(!Array.isArray(L))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(L));if(!D){if(L[1]>=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let S=0;for(let U=0;U<L.length;U++){let W=L[U];for(S++;W>=128;W>>=7)S++}const k=e.alloc(S);let E=k.length-1;for(let U=L.length-1;U>=0;U--){let W=L[U];for(k[E--]=127&W;(W>>=7)>0;)k[E--]=128|127&W}return this._createEncoderBuffer(k)},b.prototype._encodeTime=function(L,w){let D;const S=new Date(L);return"gentime"===w?D=[d(S.getUTCFullYear()),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):"utctime"===w?D=[d(S.getUTCFullYear()%100),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+w+" time is not supported yet"),this._encodeStr(D,"octstr")},b.prototype._encodeNull=function(){return this._createEncoderBuffer("")},b.prototype._encodeInt=function(L,w){if("string"==typeof L){if(!w)return this.reporter.error("String int or enum given, but no values map");if(!w.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=w[L]}if("number"!=typeof L&&!e.isBuffer(L)){const k=L.toArray();!L.sign&&128&k[0]&&k.unshift(0),L=e.from(k)}if(e.isBuffer(L)){let k=L.length;0===L.length&&k++;const E=e.alloc(k);return L.copy(E),0===L.length&&(E[0]=0),this._createEncoderBuffer(E)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let D=1;for(let k=L;k>=256;k>>=8)D++;const S=new Array(D);for(let k=S.length-1;k>=0;k--)S[k]=255&L,L>>=8;return 128&S[0]&&S.unshift(0),this._createEncoderBuffer(e.from(S))},b.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},b.prototype._use=function(L,w){return"function"==typeof L&&(L=L(w)),L._getEncoder("der").tree},b.prototype._skipDefault=function(L,w,D){const S=this._baseState;let k;if(null===S.default)return!1;const E=L.join();if(void 0===S.defaultBuffer&&(S.defaultBuffer=this._encodeValue(S.default,w,D).join()),E.length!==S.defaultBuffer.length)return!1;for(k=0;k<E.length;k++)if(E[k]!==S.defaultBuffer[k])return!1;return!0}},1131:(ze,K,p)=>{"use strict";const t=K;t.der=p(6374),t.pem=p(3530)},3530:(ze,K,p)=>{"use strict";const t=p(3894),e=p(6374);function f(M){e.call(this,M),this.enc="pem"}t(f,e),ze.exports=f,f.prototype.encode=function(s,b){const R=e.prototype.encode.call(this,s).toString("base64"),h=["-----BEGIN "+b.label+"-----"];for(let L=0;L<R.length;L+=64)h.push(R.slice(L,L+64));return h.push("-----END "+b.label+"-----"),h.join("\n")}},3854:function(ze,K,p){!function(t,e){"use strict";function f(C,i){if(!C)throw new Error(i||"Assertion failed")}function M(C,i){C.super_=i;var r=function(){};r.prototype=i.prototype,C.prototype=new r,C.prototype.constructor=C}function s(C,i,r){if(s.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,null!==C&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(C||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(950).Buffer}catch(C){}function d(C,i){var r=C.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(C,i,r){var u=d(C,r);return r-1>=i&&(u|=d(C,r-1)<<4),u}function h(C,i,r,u){for(var c=0,v=Math.min(C.length,r),T=i;T<v;T++){var I=C.charCodeAt(T)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}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,r){return i.cmp(r)>0?i:r},s.min=function(i,r){return i.cmp(r)<0?i:r},s.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<i.length&&(16===r?this._parseHex(i,c,u):(this._parseBase(i,r,c),"le"===u&&this._initArray(this.toArray(),r,u)))},s.prototype._initNumber=function(i,r,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):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},s.prototype._initArray=function(i,r,u){if(f("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 c=0;c<this.length;c++)this.words[c]=0;var v,T,I=0;if("be"===u)for(c=i.length-1,v=0;c>=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c<i.length;c+=3)this.words[v]|=(T=i[c]|i[c+1]<<8|i[c+2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},s.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,v=0,T=0;if("be"===u)for(c=i.length-1;c>=r;c-=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c<i.length;c+=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_<y;_+=c)n=h(i,_,_+c,r),this.imuln(v),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var B=1;for(n=h(i,_,i.length,r),_=0;_<I;_++)B*=r;this.imuln(B),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 r=0;r<this.length;r++)i.words[r]=this.words[r];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 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"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(C,i,r){r.negative=i.negative^C.negative;var u=C.length+i.length|0;r.length=u,u=u-1|0;var c=0|C.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=y>>>26,B=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-C.length+1);H<=N;H++)_+=(T=(c=0|C.words[n-H|0])*(v=0|i.words[H])+B)/67108864|0,B=67108863&T;r.words[n]=0|B,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}s.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T<this.length;T++){var I=this.words[T],y=(16777215&(I<<c|v)).toString(16);u=0!=(v=I>>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},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&&f(!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,r){return f(void 0!==b),this.toArrayLike(b,i,r)},s.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},s.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n<v;n++)I[n]=0}else{for(n=0;n<v-c;n++)I[n]=0;for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[v-n-1]=y}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},s.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},s.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);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 r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},s.prototype.ior=function(i){return f(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 r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},s.prototype.iand=function(i){return f(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 r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;c<u.length;c++)this.words[c]=r.words[c]^u.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},s.prototype.ixor=function(i){return f(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){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return u>0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<c:this.words[u]&~(1<<c),this.strip()},s.prototype.iadd=function(i){var r,u,c;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T<c.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+(0|c.words[T])+v),v=r>>>26;for(;0!==v&&T<u.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+v),v=r>>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;T<u.length;T++)this.words[T]=u.words[T];return this},s.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):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 r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I<v.length;I++)T=(r=(0|c.words[I])-(0|v.words[I])+T)>>26,this.words[I]=67108863&r;for(;0!==T&&I<c.length;I++)T=(r=(0|c.words[I])+T)>>26,this.words[I]=67108863&r;if(0===T&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var E=function(i,r,u){var y,n,_,c=i.words,v=r.words,T=u.words,I=0,B=0|c[0],N=8191&B,H=B>>>13,J=0|c[1],ue=8191&J,xe=J>>>13,Pe=0|c[2],Se=8191&Pe,Q=Pe>>>13,Ue=0|c[3],Ce=8191&Ue,q=Ue>>>13,Ae=0|c[4],ut=8191&Ae,Ie=Ae>>>13,De=0|c[5],ae=8191&De,we=De>>>13,ye=0|c[6],Y=8191&ye,z=ye>>>13,be=0|c[7],fe=8191&be,He=be>>>13,pt=0|c[8],et=8191&pt,Lt=pt>>>13,di=0|c[9],Wt=8191&di,Gt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],tt=8191&gt,xt=gt>>>13,ei=0|v[2],Kt=8191&ei,Re=ei>>>13,Oe=0|v[3],ce=8191&Oe,ve=Oe>>>13,ht=0|v[4],mt=8191&ht,Ht=ht>>>13,it=0|v[5],Ne=8191&it,nt=it>>>13,Xe=0|v[6],Ee=8191&Xe,Ge=Xe>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,$t=mi>>>13,Ki=0|v[9],hi=8191&Ki,ai=Ki>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(ue,Ot),n=(n=Math.imul(ue,Nt))+Math.imul(xe,Ot)|0,_=Math.imul(xe,Nt);var Gi=(I+(y=y+Math.imul(N,tt)|0)|0)+((8191&(n=(n=n+Math.imul(N,xt)|0)+Math.imul(H,tt)|0))<<13)|0;I=((_=_+Math.imul(H,xt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,y=Math.imul(Se,Ot),n=(n=Math.imul(Se,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(ue,tt)|0,n=(n=n+Math.imul(ue,xt)|0)+Math.imul(xe,tt)|0,_=_+Math.imul(xe,xt)|0;var zi=(I+(y=y+Math.imul(N,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,y=Math.imul(Ce,Ot),n=(n=Math.imul(Ce,Nt))+Math.imul(q,Ot)|0,_=Math.imul(q,Nt),y=y+Math.imul(Se,tt)|0,n=(n=n+Math.imul(Se,xt)|0)+Math.imul(Q,tt)|0,_=_+Math.imul(Q,xt)|0,y=y+Math.imul(ue,Kt)|0,n=(n=n+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0,_=_+Math.imul(xe,Re)|0;var Ui=(I+(y=y+Math.imul(N,ce)|0)|0)+((8191&(n=(n=n+Math.imul(N,ve)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,ve)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Ie,Ot)|0,_=Math.imul(Ie,Nt),y=y+Math.imul(Ce,tt)|0,n=(n=n+Math.imul(Ce,xt)|0)+Math.imul(q,tt)|0,_=_+Math.imul(q,xt)|0,y=y+Math.imul(Se,Kt)|0,n=(n=n+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(ue,ce)|0,n=(n=n+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0,_=_+Math.imul(xe,ve)|0;var Be=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ht)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,y=Math.imul(ae,Ot),n=(n=Math.imul(ae,Nt))+Math.imul(we,Ot)|0,_=Math.imul(we,Nt),y=y+Math.imul(ut,tt)|0,n=(n=n+Math.imul(ut,xt)|0)+Math.imul(Ie,tt)|0,_=_+Math.imul(Ie,xt)|0,y=y+Math.imul(Ce,Kt)|0,n=(n=n+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,_=_+Math.imul(q,Re)|0,y=y+Math.imul(Se,ce)|0,n=(n=n+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,_=_+Math.imul(Q,ve)|0,y=y+Math.imul(ue,mt)|0,n=(n=n+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0,_=_+Math.imul(xe,Ht)|0;var Tt=(I+(y=y+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,nt)|0)+Math.imul(H,Ne)|0))<<13)|0;I=((_=_+Math.imul(H,nt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Y,Ot),n=(n=Math.imul(Y,Nt))+Math.imul(z,Ot)|0,_=Math.imul(z,Nt),y=y+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,xt)|0)+Math.imul(we,tt)|0,_=_+Math.imul(we,xt)|0,y=y+Math.imul(ut,Kt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,_=_+Math.imul(Ie,Re)|0,y=y+Math.imul(Ce,ce)|0,n=(n=n+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,_=_+Math.imul(q,ve)|0,y=y+Math.imul(Se,mt)|0,n=(n=n+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ht)|0,y=y+Math.imul(ue,Ne)|0,n=(n=n+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0,_=_+Math.imul(xe,nt)|0;var _e=(I+(y=y+Math.imul(N,Ee)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ee)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(He,Ot)|0,_=Math.imul(He,Nt),y=y+Math.imul(Y,tt)|0,n=(n=n+Math.imul(Y,xt)|0)+Math.imul(z,tt)|0,_=_+Math.imul(z,xt)|0,y=y+Math.imul(ae,Kt)|0,n=(n=n+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,_=_+Math.imul(we,Re)|0,y=y+Math.imul(ut,ce)|0,n=(n=n+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,_=_+Math.imul(Ie,ve)|0,y=y+Math.imul(Ce,mt)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,_=_+Math.imul(q,Ht)|0,y=y+Math.imul(Se,Ne)|0,n=(n=n+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,_=_+Math.imul(Q,nt)|0,y=y+Math.imul(ue,Ee)|0,n=(n=n+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0,_=_+Math.imul(xe,Ge)|0;var Ke=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,y=Math.imul(et,Ot),n=(n=Math.imul(et,Nt))+Math.imul(Lt,Ot)|0,_=Math.imul(Lt,Nt),y=y+Math.imul(fe,tt)|0,n=(n=n+Math.imul(fe,xt)|0)+Math.imul(He,tt)|0,_=_+Math.imul(He,xt)|0,y=y+Math.imul(Y,Kt)|0,n=(n=n+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,_=_+Math.imul(z,Re)|0,y=y+Math.imul(ae,ce)|0,n=(n=n+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,_=_+Math.imul(we,ve)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,_=_+Math.imul(Ie,Ht)|0,y=y+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,_=_+Math.imul(q,nt)|0,y=y+Math.imul(Se,Ee)|0,n=(n=n+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(ue,lt)|0,n=(n=n+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0,_=_+Math.imul(xe,Ct)|0;var yt=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,$t)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,$t)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(Wt,Ot),n=(n=Math.imul(Wt,Nt))+Math.imul(Gt,Ot)|0,_=Math.imul(Gt,Nt),y=y+Math.imul(et,tt)|0,n=(n=n+Math.imul(et,xt)|0)+Math.imul(Lt,tt)|0,_=_+Math.imul(Lt,xt)|0,y=y+Math.imul(fe,Kt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,_=_+Math.imul(He,Re)|0,y=y+Math.imul(Y,ce)|0,n=(n=n+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,_=_+Math.imul(z,ve)|0,y=y+Math.imul(ae,mt)|0,n=(n=n+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,_=_+Math.imul(we,Ht)|0,y=y+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ie,nt)|0,y=y+Math.imul(Ce,Ee)|0,n=(n=n+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,_=_+Math.imul(q,Ge)|0,y=y+Math.imul(Se,lt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(ue,Jt)|0,n=(n=n+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0,_=_+Math.imul(xe,$t)|0;var re=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,ai)|0)+(n>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Wt,tt),n=(n=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,_=Math.imul(Gt,xt),y=y+Math.imul(et,Kt)|0,n=(n=n+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,_=_+Math.imul(Lt,Re)|0,y=y+Math.imul(fe,ce)|0,n=(n=n+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,_=_+Math.imul(He,ve)|0,y=y+Math.imul(Y,mt)|0,n=(n=n+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,_=_+Math.imul(z,Ht)|0,y=y+Math.imul(ae,Ne)|0,n=(n=n+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,_=_+Math.imul(we,nt)|0,y=y+Math.imul(ut,Ee)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,_=_+Math.imul(Ie,Ge)|0,y=y+Math.imul(Ce,lt)|0,n=(n=n+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,_=_+Math.imul(q,Ct)|0,y=y+Math.imul(Se,Jt)|0,n=(n=n+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,$t)|0;var qe=(I+(y=y+Math.imul(ue,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;I=((_=_+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(Wt,Kt),n=(n=Math.imul(Wt,Re))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Re),y=y+Math.imul(et,ce)|0,n=(n=n+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,_=_+Math.imul(Lt,ve)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,_=_+Math.imul(He,Ht)|0,y=y+Math.imul(Y,Ne)|0,n=(n=n+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,_=_+Math.imul(z,nt)|0,y=y+Math.imul(ae,Ee)|0,n=(n=n+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,_=_+Math.imul(we,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,Ct)|0,y=y+Math.imul(Ce,Jt)|0,n=(n=n+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,_=_+Math.imul(q,$t)|0;var bt=(I+(y=y+Math.imul(Se,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,ai)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Wt,ce),n=(n=Math.imul(Wt,ve))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,ve),y=y+Math.imul(et,mt)|0,n=(n=n+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,_=_+Math.imul(Lt,Ht)|0,y=y+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,_=_+Math.imul(He,nt)|0,y=y+Math.imul(Y,Ee)|0,n=(n=n+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,_=_+Math.imul(z,Ge)|0,y=y+Math.imul(ae,lt)|0,n=(n=n+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,_=_+Math.imul(we,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,_=_+Math.imul(Ie,$t)|0;var Vt=(I+(y=y+Math.imul(Ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0))<<13)|0;I=((_=_+Math.imul(q,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(Wt,mt),n=(n=Math.imul(Wt,Ht))+Math.imul(Gt,mt)|0,_=Math.imul(Gt,Ht),y=y+Math.imul(et,Ne)|0,n=(n=n+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,_=_+Math.imul(Lt,nt)|0,y=y+Math.imul(fe,Ee)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,_=_+Math.imul(He,Ge)|0,y=y+Math.imul(Y,lt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,_=_+Math.imul(z,Ct)|0,y=y+Math.imul(ae,Jt)|0,n=(n=n+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,_=_+Math.imul(we,$t)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0))<<13)|0;I=((_=_+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Wt,Ne),n=(n=Math.imul(Wt,nt))+Math.imul(Gt,Ne)|0,_=Math.imul(Gt,nt),y=y+Math.imul(et,Ee)|0,n=(n=n+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,_=_+Math.imul(Lt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,_=_+Math.imul(He,Ct)|0,y=y+Math.imul(Y,Jt)|0,n=(n=n+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,_=_+Math.imul(z,$t)|0;var wi=(I+(y=y+Math.imul(ae,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0))<<13)|0;I=((_=_+Math.imul(we,ai)|0)+(n>>>13)|0)+(wi>>>26)|0,wi&=67108863,y=Math.imul(Wt,Ee),n=(n=Math.imul(Wt,Ge))+Math.imul(Gt,Ee)|0,_=Math.imul(Gt,Ge),y=y+Math.imul(et,lt)|0,n=(n=n+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,_=_+Math.imul(Lt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,_=_+Math.imul(He,$t)|0;var Xi=(I+(y=y+Math.imul(Y,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0))<<13)|0;I=((_=_+Math.imul(z,ai)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Wt,lt),n=(n=Math.imul(Wt,Ct))+Math.imul(Gt,lt)|0,_=Math.imul(Gt,Ct),y=y+Math.imul(et,Jt)|0,n=(n=n+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,_=_+Math.imul(Lt,$t)|0;var Zi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0))<<13)|0;I=((_=_+Math.imul(He,ai)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Wt,Jt),n=(n=Math.imul(Wt,$t))+Math.imul(Gt,Jt)|0,_=Math.imul(Gt,$t);var on=(I+(y=y+Math.imul(et,hi)|0)|0)+((8191&(n=(n=n+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0))<<13)|0;I=((_=_+Math.imul(Lt,ai)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var mn=(I+(y=Math.imul(Wt,hi))|0)+((8191&(n=(n=Math.imul(Wt,ai))+Math.imul(Gt,hi)|0))<<13)|0;return I=((_=Math.imul(Gt,ai))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,T[0]=Ji,T[1]=Gi,T[2]=zi,T[3]=Ui,T[4]=Be,T[5]=Tt,T[6]=_e,T[7]=Ke,T[8]=yt,T[9]=re,T[10]=qe,T[11]=bt,T[12]=Vt,T[13]=bi,T[14]=wi,T[15]=Xi,T[16]=Zi,T[17]=on,T[18]=mn,0!==I&&(T[19]=I,u.length++),u};function W(C,i,r){return(new j).mulp(C,i,r)}function j(C,i){this.x=C,this.y=i}Math.imul||(E=k),s.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function U(C,i,r){r.negative=i.negative^C.negative,r.length=C.length+i.length;for(var u=0,c=0,v=0;v<r.length-1;v++){var T=c;c=0;for(var I=67108863&u,y=Math.min(v,i.length-1),n=Math.max(0,v-C.length+1);n<=y;n++){var H=(0|C.words[v-n])*(0|i.words[n]),J=67108863&H;I=67108863&(J=J+I|0),c+=(T=(T=T+(H/67108864|0)|0)+(J>>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):W(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=s.prototype._countBits(i)-1,c=0;c<i;c++)r[c]=this.revBin(c,u,i);return r},j.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var c=0,v=0;v<r;v++)c|=(1&i)<<r-v-1,i>>=1;return c},j.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I<T;I++)c[I]=r[i[I]],v[I]=u[i[I]]},j.prototype.transform=function(i,r,u,c,v,T){this.permute(T,i,r,u,c,v);for(var I=1;I<v;I<<=1)for(var y=I<<1,n=Math.cos(2*Math.PI/y),_=Math.sin(2*Math.PI/y),B=0;B<v;B+=y)for(var N=n,H=_,J=0;J<I;J++){var ue=u[B+J],xe=c[B+J],Pe=u[B+J+I],Se=c[B+J+I],Q=N*Pe-H*Se;Se=N*Se+H*Pe,u[B+J]=ue+(Pe=Q),c[B+J]=xe+Se,u[B+J+I]=ue-Pe,c[B+J+I]=xe-Se,J!==y&&(Q=n*N-_*H,H=n*H+_*N,N=Q)}},j.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),c=1&u,v=0;for(u=u/2|0;u;u>>>=1)v++;return 1<<v+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c<u/2;c++){var v=i[c];i[c]=i[u-c-1],i[u-c-1]=v,v=r[c],r[c]=-r[u-c-1],r[u-c-1]=-v}},j.prototype.normalize13b=function(i,r){for(var u=0,c=0;c<r/2;c++){var v=8192*Math.round(i[2*c+1]/r)+Math.round(i[2*c]/r)+u;i[c]=67108863&v,u=v<67108864?0:v/67108864|0}return i},j.prototype.convert13b=function(i,r,u,c){for(var v=0,T=0;T<r;T++)u[2*T]=8191&(v+=0|i[T]),u[2*T+1]=8191&(v>>>=13),v>>>=13;for(T=2*r;T<c;++T)u[T]=0;f(0===v),f(0==(-8192&v))},j.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},j.prototype.mulp=function(i,r,u){var c=2*this.guessLen13b(i.length,r.length),v=this.makeRBT(c),T=this.stub(c),I=new Array(c),y=new Array(c),n=new Array(c),_=new Array(c),B=new Array(c),N=new Array(c),H=u.words;H.length=c,this.convert13b(i.words,i.length,I,c),this.convert13b(r.words,r.length,_,c),this.transform(I,T,y,n,c,v),this.transform(_,T,B,N,c,v);for(var J=0;J<c;J++){var ue=y[J]*B[J]-n[J]*N[J];n[J]=y[J]*N[J]+n[J]*B[J],y[J]=ue}return this.conjugate(y,n,c),this.transform(y,n,H,T,c,v),this.conjugate(H,T,c),this.normalize13b(H,c),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},s.prototype.mul=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},s.prototype.mulf=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),W(this,i,r)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var c=(0|this.words[u])*i,v=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,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 r=function S(C){for(var i=new Array(C.bitLength()),r=0;r<i.length;r++){var c=r%26;i[r]=(C.words[r/26|0]&1<<c)>>>c}return i}(i);if(0===r.length)return new s(1);for(var u=this,c=0;c<r.length&&0===r[c];c++,u=u.sqr());if(++c<r.length)for(var v=u.sqr();c<r.length;c++,v=v.sqr())0!==r[c]&&(u=u.mul(v));return u},s.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v<this.length;v++){var I=this.words[v]&c;this.words[v]=(0|this.words[v])-I<<r|T,T=I>>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v<u;v++)this.words[v]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,r,u){var c;f("number"==typeof i&&i>=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<<v,y=u;if(c-=T,c=Math.max(0,c),y){for(var n=0;n<T;n++)y.words[n]=this.words[n];y.length=T}if(0!==T)if(this.length>T)for(this.length-=T,n=0;n<this.length;n++)this.words[n]=this.words[n+T];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-v|B>>>v,_=B&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,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){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},s.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return f("number"==typeof i),f(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 r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+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,r,u){var v;this._expand(i.length+u);var T,I=0;for(v=0;v<i.length;v++){T=(0|this.words[v+u])+I;var y=(0|i.words[v])*r;I=((T-=67108863&y)>>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v<this.length-u;v++)I=(T=(0|this.words[v+u])+I)>>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v<this.length;v++)I=(T=-(0|this.words[v])+I)>>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new s(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=c.clone()._ishlnsubmul(v,1,y);0===B.negative&&(c=B,n&&(n.words[y]=1));for(var N=y-1;N>=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},s.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{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,r);var c,v,T},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 r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},s.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=new s(0),I=new s(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,J=1;0==(u.words[0]&J)&&H<26;++H,J<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},s.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(B=0===r.cmpn(1)?c:v).cmpn(0)<0&&B.iadd(i),B},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},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){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=c,this;for(var v=c,T=u;0!==v&&T<this.length;T++){var I=0|this.words[T];v=(I+=v)>>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:c<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 r=this.ucmp(i);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){c<v?r=-1:c>v&&(r=1);break}}return r},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 $(i)},s.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function ee(C,i){this.name=C,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 de(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(C){if("string"==typeof C){var i=s._prime(C);this.m=i.p,this.prime=i}else f(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function ge(C){$.call(this,C),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,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(de,ee),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v<c;v++)r.words[v]=i.words[v];if(r.length=c,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(r.words[r.length++]=T&u,v=10;v<i.length;v++){var I=0|i.words[v];i.words[v-10]=(I&u)<<4|T>>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var c=0|i.words[u];i.words[u]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},M(te,ee),M(ie,ee),M(le,ee),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var c=19*(0|i.words[u])+r,v=67108863&c;c>>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},s._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new te;else if("p192"===i)r=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return ne[i]=r,r},$.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},$.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},$.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},$.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},$.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},$.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},$.prototype.isqr=function(i){return this.imul(i,i.clone())},$.prototype.sqr=function(i){return this.mul(i,i)},$.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new s(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var J=N,ue=0;0!==J.cmp(T);ue++)J=J.redSqr();f(ue<H);var xe=this.pow(_,new s(1).iushln(H-ue-1));B=B.redMul(xe),_=xe.redSqr(),N=N.redMul(_),H=ue}return B},$.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},$.prototype.pow=function(i,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return i.clone();var c=new Array(16);c[0]=new s(1).toRed(this),c[1]=i;for(var v=2;v<c.length;v++)c[v]=this.mul(c[v-1],i);var T=c[0],I=0,y=0,n=r.bitLength()%26;for(0===n&&(n=26),v=r.length-1;v>=0;v--){for(var _=r.words[v],B=n-1;B>=0;B--){var N=_>>B&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===B)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},$.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},$.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},s.mont=function(i){return new ge(i)},M(ge,$),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new s(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},5343:(ze,K)=>{"use strict";K.byteLength=function d(S){var k=b(S),U=k[1];return 3*(k[0]+U)/4-U},K.toByteArray=function h(S){var k,de,E=b(S),U=E[0],W=E[1],j=new e(function R(S,k,E){return 3*(k+E)/4-E}(0,U,W)),ne=0,ee=W>0?U-4:U;for(de=0;de<ee;de+=4)k=t[S.charCodeAt(de)]<<18|t[S.charCodeAt(de+1)]<<12|t[S.charCodeAt(de+2)]<<6|t[S.charCodeAt(de+3)],j[ne++]=k>>16&255,j[ne++]=k>>8&255,j[ne++]=255&k;return 2===W&&(k=t[S.charCodeAt(de)]<<2|t[S.charCodeAt(de+1)]>>4,j[ne++]=255&k),1===W&&(k=t[S.charCodeAt(de)]<<10|t[S.charCodeAt(de+1)]<<4|t[S.charCodeAt(de+2)]>>2,j[ne++]=k>>8&255,j[ne++]=255&k),j},K.fromByteArray=function D(S){for(var k,E=S.length,U=E%3,W=[],j=16383,ne=0,ee=E-U;ne<ee;ne+=j)W.push(w(S,ne,ne+j>ee?ee:ne+j));return 1===U?W.push(p[(k=S[E-1])>>2]+p[k<<4&63]+"=="):2===U&&W.push(p[(k=(S[E-2]<<8)+S[E-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),W.join("")};for(var p=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,s=f.length;M<s;++M)p[M]=f[M],t[f.charCodeAt(M)]=M;function b(S){var k=S.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=S.indexOf("=");return-1===E&&(E=k),[E,E===k?0:4-E%4]}function L(S){return p[S>>18&63]+p[S>>12&63]+p[S>>6&63]+p[63&S]}function w(S,k,E){for(var W=[],j=k;j<E;j+=3)W.push(L((S[j]<<16&16711680)+(S[j+1]<<8&65280)+(255&S[j+2])));return W.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},8538:function(ze,K,p){!function(t,e){"use strict";function f(u,c){if(!u)throw new Error(c||"Assertion failed")}function M(u,c){u.super_=c;var v=function(){};v.prototype=c.prototype,u.prototype=new v,u.prototype.constructor=u}function s(u,c,v){if(s.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,null!==u&&(("le"===c||"be"===c)&&(v=c,c=10),this._init(u||0,c||10,v||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(6601).Buffer}catch(u){}function d(u,c){var v=u.charCodeAt(c);return v>=48&&v<=57?v-48:v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:void f(!1,"Invalid character in "+u)}function R(u,c,v){var T=d(u,v);return v-1>=c&&(T|=d(u,v-1)<<4),T}function h(u,c,v,T){for(var I=0,y=0,n=Math.min(u.length,v),_=c;_<n;_++){var B=u.charCodeAt(_)-48;I*=T,y=B>=49?B-49+10:B>=17?B-17+10:B,f(B>=0&&y<T,"Invalid character"),I+=y}return I}function L(u,c){u.words=c.words,u.length=c.length,u.negative=c.negative,u.red=c.red}if(s.isBN=function(c){return c instanceof s||null!==c&&"object"==typeof c&&c.constructor.wordSize===s.wordSize&&Array.isArray(c.words)},s.max=function(c,v){return c.cmp(v)>0?c:v},s.min=function(c,v){return c.cmp(v)<0?c:v},s.prototype._init=function(c,v,T){if("number"==typeof c)return this._initNumber(c,v,T);if("object"==typeof c)return this._initArray(c,v,T);"hex"===v&&(v=16),f(v===(0|v)&&v>=2&&v<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I<c.length&&(16===v?this._parseHex(c,I,T):(this._parseBase(c,v,I),"le"===T&&this._initArray(this.toArray(),v,T)))},s.prototype._initNumber=function(c,v,T){c<0&&(this.negative=1,c=-c),c<67108864?(this.words=[67108863&c],this.length=1):c<4503599627370496?(this.words=[67108863&c,c/67108864&67108863],this.length=2):(f(c<9007199254740992),this.words=[67108863&c,c/67108864&67108863,1],this.length=3),"le"===T&&this._initArray(this.toArray(),v,T)},s.prototype._initArray=function(c,v,T){if(f("number"==typeof c.length),c.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(c.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var y,n,_=0;if("be"===T)for(I=c.length-1,y=0;I>=0;I-=3)this.words[y]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<<_&67108863,this.words[y+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,y++);else if("le"===T)for(I=0,y=0;I<c.length;I+=3)this.words[y]|=(n=c[I]|c[I+1]<<8|c[I+2]<<16)<<_&67108863,this.words[y+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,y++);return this._strip()},s.prototype._parseHex=function(c,v,T){this.length=Math.ceil((c.length-v)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var _,y=0,n=0;if("be"===T)for(I=c.length-1;I>=v;I-=2)_=R(c,v,I)<<y,this.words[n]|=67108863&_,y>=18?(y-=18,this.words[n+=1]|=_>>>26):y+=8;else for(I=(c.length-v)%2==0?v+1:v;I<c.length;I+=2)_=R(c,v,I)<<y,this.words[n]|=67108863&_,y>=18?(y-=18,this.words[n+=1]|=_>>>26):y+=8;this._strip()},s.prototype._parseBase=function(c,v,T){this.words=[0],this.length=1;for(var I=0,y=1;y<=67108863;y*=v)I++;I--,y=y/v|0;for(var n=c.length-T,_=n%I,B=Math.min(n,n-_)+T,N=0,H=T;H<B;H+=I)N=h(c,H,H+I,v),this.imuln(y),this.words[0]+N<67108864?this.words[0]+=N:this._iaddn(N);if(0!==_){var J=1;for(N=h(c,H,c.length,v),H=0;H<_;H++)J*=v;this.imuln(J),this.words[0]+N<67108864?this.words[0]+=N:this._iaddn(N)}this._strip()},s.prototype.copy=function(c){c.words=new Array(this.length);for(var v=0;v<this.length;v++)c.words[v]=this.words[v];c.length=this.length,c.negative=this.negative,c.red=this.red},s.prototype._move=function(c){L(c,this)},s.prototype.clone=function(){var c=new s(null);return this.copy(c),c},s.prototype._expand=function(c){for(;this.length<c;)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},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch(u){s.prototype.inspect=w}else s.prototype.inspect=w;function w(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function W(u,c,v){v.negative=c.negative^u.negative;var T=u.length+c.length|0;v.length=T,T=T-1|0;var I=0|u.words[0],y=0|c.words[0],n=I*y,B=n/67108864|0;v.words[0]=67108863&n;for(var N=1;N<T;N++){for(var H=B>>>26,J=67108863&B,ue=Math.min(N,c.length-1),xe=Math.max(0,N-u.length+1);xe<=ue;xe++)H+=(n=(I=0|u.words[N-xe|0])*(y=0|c.words[xe])+J)/67108864|0,J=67108863&n;v.words[N]=0|J,B=0|H}return 0!==B?v.words[N]=0|B:v.length--,v._strip()}s.prototype.toString=function(c,v){var T;if(v=0|v||1,16===(c=c||10)||"hex"===c){T="";for(var I=0,y=0,n=0;n<this.length;n++){var _=this.words[n],B=(16777215&(_<<I|y)).toString(16);y=_>>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),T=0!==y||n!==this.length-1?D[6-B.length]+B+T:B+T}for(0!==y&&(T=y.toString(16)+T);T.length%v!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(c===(0|c)&&c>=2&&c<=36){var N=S[c],H=k[c];T="";var J=this.clone();for(J.negative=0;!J.isZero();){var ue=J.modrn(H).toString(c);T=(J=J.idivn(H)).isZero()?ue+T:D[N-ue.length]+ue+T}for(this.isZero()&&(T="0"+T);T.length%v!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}f(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},s.prototype.toJSON=function(){return this.toString(16,2)},b&&(s.prototype.toBuffer=function(c,v){return this.toArrayLike(b,c,v)}),s.prototype.toArray=function(c,v){return this.toArrayLike(Array,c,v)},s.prototype.toArrayLike=function(c,v,T){this._strip();var I=this.byteLength(),y=T||Math.max(1,I);f(I<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0");var n=function(c,v){return c.allocUnsafe?c.allocUnsafe(v):new c(v)}(c,y);return this["_toArrayLike"+("le"===v?"LE":"BE")](n,I),n},s.prototype._toArrayLikeLE=function(c,v){for(var T=0,I=0,y=0,n=0;y<this.length;y++){var _=this.words[y]<<n|I;c[T++]=255&_,T<c.length&&(c[T++]=_>>8&255),T<c.length&&(c[T++]=_>>16&255),6===n?(T<c.length&&(c[T++]=_>>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(T<c.length)for(c[T++]=I;T<c.length;)c[T++]=0},s.prototype._toArrayLikeBE=function(c,v){for(var T=c.length-1,I=0,y=0,n=0;y<this.length;y++){var _=this.words[y]<<n|I;c[T--]=255&_,T>=0&&(c[T--]=_>>8&255),T>=0&&(c[T--]=_>>16&255),6===n?(T>=0&&(c[T--]=_>>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(T>=0)for(c[T--]=I;T>=0;)c[T--]=0},s.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var v=c,T=0;return v>=4096&&(T+=13,v>>>=13),v>=64&&(T+=7,v>>>=7),v>=8&&(T+=4,v>>>=4),v>=2&&(T+=2,v>>>=2),T+v},s.prototype._zeroBits=function(c){if(0===c)return 26;var v=c,T=0;return 0==(8191&v)&&(T+=13,v>>>=13),0==(127&v)&&(T+=7,v>>>=7),0==(15&v)&&(T+=4,v>>>=4),0==(3&v)&&(T+=2,v>>>=2),0==(1&v)&&T++,T},s.prototype.bitLength=function(){var v=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+v},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,v=0;v<this.length;v++){var T=this._zeroBits(this.words[v]);if(c+=T,26!==T)break}return c},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(c){return 0!==this.negative?this.abs().inotn(c).iaddn(1):this.clone()},s.prototype.fromTwos=function(c){return this.testn(c-1)?this.notn(c).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(c){for(;this.length<c.length;)this.words[this.length++]=0;for(var v=0;v<c.length;v++)this.words[v]=this.words[v]|c.words[v];return this._strip()},s.prototype.ior=function(c){return f(0==(this.negative|c.negative)),this.iuor(c)},s.prototype.or=function(c){return this.length>c.length?this.clone().ior(c):c.clone().ior(this)},s.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},s.prototype.iuand=function(c){var v;v=this.length>c.length?c:this;for(var T=0;T<v.length;T++)this.words[T]=this.words[T]&c.words[T];return this.length=v.length,this._strip()},s.prototype.iand=function(c){return f(0==(this.negative|c.negative)),this.iuand(c)},s.prototype.and=function(c){return this.length>c.length?this.clone().iand(c):c.clone().iand(this)},s.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},s.prototype.iuxor=function(c){var v,T;this.length>c.length?(v=this,T=c):(v=c,T=this);for(var I=0;I<T.length;I++)this.words[I]=v.words[I]^T.words[I];if(this!==v)for(;I<v.length;I++)this.words[I]=v.words[I];return this.length=v.length,this._strip()},s.prototype.ixor=function(c){return f(0==(this.negative|c.negative)),this.iuxor(c)},s.prototype.xor=function(c){return this.length>c.length?this.clone().ixor(c):c.clone().ixor(this)},s.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},s.prototype.inotn=function(c){f("number"==typeof c&&c>=0);var v=0|Math.ceil(c/26),T=c%26;this._expand(v),T>0&&v--;for(var I=0;I<v;I++)this.words[I]=67108863&~this.words[I];return T>0&&(this.words[I]=~this.words[I]&67108863>>26-T),this._strip()},s.prototype.notn=function(c){return this.clone().inotn(c)},s.prototype.setn=function(c,v){f("number"==typeof c&&c>=0);var T=c/26|0,I=c%26;return this._expand(T+1),this.words[T]=v?this.words[T]|1<<I:this.words[T]&~(1<<I),this._strip()},s.prototype.iadd=function(c){var v,T,I;if(0!==this.negative&&0===c.negative)return this.negative=0,v=this.isub(c),this.negative^=1,this._normSign();if(0===this.negative&&0!==c.negative)return c.negative=0,v=this.isub(c),c.negative=1,v._normSign();this.length>c.length?(T=this,I=c):(T=c,I=this);for(var y=0,n=0;n<I.length;n++)this.words[n]=67108863&(v=(0|T.words[n])+(0|I.words[n])+y),y=v>>>26;for(;0!==y&&n<T.length;n++)this.words[n]=67108863&(v=(0|T.words[n])+y),y=v>>>26;if(this.length=T.length,0!==y)this.words[this.length]=y,this.length++;else if(T!==this)for(;n<T.length;n++)this.words[n]=T.words[n];return this},s.prototype.add=function(c){var v;return 0!==c.negative&&0===this.negative?(c.negative=0,v=this.sub(c),c.negative^=1,v):0===c.negative&&0!==this.negative?(this.negative=0,v=c.sub(this),this.negative=1,v):this.length>c.length?this.clone().iadd(c):c.clone().iadd(this)},s.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var v=this.iadd(c);return c.negative=1,v._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,y,T=this.cmp(c);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(I=this,y=c):(I=c,y=this);for(var n=0,_=0;_<y.length;_++)n=(v=(0|I.words[_])-(0|y.words[_])+n)>>26,this.words[_]=67108863&v;for(;0!==n&&_<I.length;_++)n=(v=(0|I.words[_])+n)>>26,this.words[_]=67108863&v;if(0===n&&_<I.length&&I!==this)for(;_<I.length;_++)this.words[_]=I.words[_];return this.length=Math.max(this.length,_),I!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(c){return this.clone().isub(c)};var j=function(c,v,T){var B,N,H,I=c.words,y=v.words,n=T.words,_=0,J=0|I[0],ue=8191&J,xe=J>>>13,Pe=0|I[1],Se=8191&Pe,Q=Pe>>>13,Ue=0|I[2],Ce=8191&Ue,q=Ue>>>13,Ae=0|I[3],ut=8191&Ae,Ie=Ae>>>13,De=0|I[4],ae=8191&De,we=De>>>13,ye=0|I[5],Y=8191&ye,z=ye>>>13,be=0|I[6],fe=8191&be,He=be>>>13,pt=0|I[7],et=8191&pt,Lt=pt>>>13,di=0|I[8],Wt=8191&di,Gt=di>>>13,ui=0|I[9],Ot=8191&ui,Nt=ui>>>13,gt=0|y[0],tt=8191&gt,xt=gt>>>13,ei=0|y[1],Kt=8191&ei,Re=ei>>>13,Oe=0|y[2],ce=8191&Oe,ve=Oe>>>13,ht=0|y[3],mt=8191&ht,Ht=ht>>>13,it=0|y[4],Ne=8191&it,nt=it>>>13,Xe=0|y[5],Ee=8191&Xe,Ge=Xe>>>13,ot=0|y[6],lt=8191&ot,Ct=ot>>>13,mi=0|y[7],Jt=8191&mi,$t=mi>>>13,Ki=0|y[8],hi=8191&Ki,ai=Ki>>>13,Ji=0|y[9],Gi=8191&Ji,zi=Ji>>>13;T.negative=c.negative^v.negative,T.length=19;var Ui=(_+(B=Math.imul(ue,tt))|0)+((8191&(N=(N=Math.imul(ue,xt))+Math.imul(xe,tt)|0))<<13)|0;_=((H=Math.imul(xe,xt))+(N>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,B=Math.imul(Se,tt),N=(N=Math.imul(Se,xt))+Math.imul(Q,tt)|0,H=Math.imul(Q,xt);var Be=(_+(B=B+Math.imul(ue,Kt)|0)|0)+((8191&(N=(N=N+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0))<<13)|0;_=((H=H+Math.imul(xe,Re)|0)+(N>>>13)|0)+(Be>>>26)|0,Be&=67108863,B=Math.imul(Ce,tt),N=(N=Math.imul(Ce,xt))+Math.imul(q,tt)|0,H=Math.imul(q,xt),B=B+Math.imul(Se,Kt)|0,N=(N=N+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,H=H+Math.imul(Q,Re)|0;var Tt=(_+(B=B+Math.imul(ue,ce)|0)|0)+((8191&(N=(N=N+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0))<<13)|0;_=((H=H+Math.imul(xe,ve)|0)+(N>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,B=Math.imul(ut,tt),N=(N=Math.imul(ut,xt))+Math.imul(Ie,tt)|0,H=Math.imul(Ie,xt),B=B+Math.imul(Ce,Kt)|0,N=(N=N+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,H=H+Math.imul(q,Re)|0,B=B+Math.imul(Se,ce)|0,N=(N=N+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,H=H+Math.imul(Q,ve)|0;var _e=(_+(B=B+Math.imul(ue,mt)|0)|0)+((8191&(N=(N=N+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0))<<13)|0;_=((H=H+Math.imul(xe,Ht)|0)+(N>>>13)|0)+(_e>>>26)|0,_e&=67108863,B=Math.imul(ae,tt),N=(N=Math.imul(ae,xt))+Math.imul(we,tt)|0,H=Math.imul(we,xt),B=B+Math.imul(ut,Kt)|0,N=(N=N+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,H=H+Math.imul(Ie,Re)|0,B=B+Math.imul(Ce,ce)|0,N=(N=N+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,H=H+Math.imul(q,ve)|0,B=B+Math.imul(Se,mt)|0,N=(N=N+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,H=H+Math.imul(Q,Ht)|0;var Ke=(_+(B=B+Math.imul(ue,Ne)|0)|0)+((8191&(N=(N=N+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0))<<13)|0;_=((H=H+Math.imul(xe,nt)|0)+(N>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,B=Math.imul(Y,tt),N=(N=Math.imul(Y,xt))+Math.imul(z,tt)|0,H=Math.imul(z,xt),B=B+Math.imul(ae,Kt)|0,N=(N=N+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,H=H+Math.imul(we,Re)|0,B=B+Math.imul(ut,ce)|0,N=(N=N+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,H=H+Math.imul(Ie,ve)|0,B=B+Math.imul(Ce,mt)|0,N=(N=N+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,H=H+Math.imul(q,Ht)|0,B=B+Math.imul(Se,Ne)|0,N=(N=N+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,H=H+Math.imul(Q,nt)|0;var yt=(_+(B=B+Math.imul(ue,Ee)|0)|0)+((8191&(N=(N=N+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0))<<13)|0;_=((H=H+Math.imul(xe,Ge)|0)+(N>>>13)|0)+(yt>>>26)|0,yt&=67108863,B=Math.imul(fe,tt),N=(N=Math.imul(fe,xt))+Math.imul(He,tt)|0,H=Math.imul(He,xt),B=B+Math.imul(Y,Kt)|0,N=(N=N+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,H=H+Math.imul(z,Re)|0,B=B+Math.imul(ae,ce)|0,N=(N=N+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,H=H+Math.imul(we,ve)|0,B=B+Math.imul(ut,mt)|0,N=(N=N+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,H=H+Math.imul(Ie,Ht)|0,B=B+Math.imul(Ce,Ne)|0,N=(N=N+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,H=H+Math.imul(q,nt)|0,B=B+Math.imul(Se,Ee)|0,N=(N=N+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,H=H+Math.imul(Q,Ge)|0;var re=(_+(B=B+Math.imul(ue,lt)|0)|0)+((8191&(N=(N=N+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0))<<13)|0;_=((H=H+Math.imul(xe,Ct)|0)+(N>>>13)|0)+(re>>>26)|0,re&=67108863,B=Math.imul(et,tt),N=(N=Math.imul(et,xt))+Math.imul(Lt,tt)|0,H=Math.imul(Lt,xt),B=B+Math.imul(fe,Kt)|0,N=(N=N+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,H=H+Math.imul(He,Re)|0,B=B+Math.imul(Y,ce)|0,N=(N=N+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,H=H+Math.imul(z,ve)|0,B=B+Math.imul(ae,mt)|0,N=(N=N+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,H=H+Math.imul(we,Ht)|0,B=B+Math.imul(ut,Ne)|0,N=(N=N+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,H=H+Math.imul(Ie,nt)|0,B=B+Math.imul(Ce,Ee)|0,N=(N=N+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,H=H+Math.imul(q,Ge)|0,B=B+Math.imul(Se,lt)|0,N=(N=N+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,H=H+Math.imul(Q,Ct)|0;var qe=(_+(B=B+Math.imul(ue,Jt)|0)|0)+((8191&(N=(N=N+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0))<<13)|0;_=((H=H+Math.imul(xe,$t)|0)+(N>>>13)|0)+(qe>>>26)|0,qe&=67108863,B=Math.imul(Wt,tt),N=(N=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,H=Math.imul(Gt,xt),B=B+Math.imul(et,Kt)|0,N=(N=N+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,H=H+Math.imul(Lt,Re)|0,B=B+Math.imul(fe,ce)|0,N=(N=N+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,H=H+Math.imul(He,ve)|0,B=B+Math.imul(Y,mt)|0,N=(N=N+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,H=H+Math.imul(z,Ht)|0,B=B+Math.imul(ae,Ne)|0,N=(N=N+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,H=H+Math.imul(we,nt)|0,B=B+Math.imul(ut,Ee)|0,N=(N=N+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,H=H+Math.imul(Ie,Ge)|0,B=B+Math.imul(Ce,lt)|0,N=(N=N+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,H=H+Math.imul(q,Ct)|0,B=B+Math.imul(Se,Jt)|0,N=(N=N+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,H=H+Math.imul(Q,$t)|0;var bt=(_+(B=B+Math.imul(ue,hi)|0)|0)+((8191&(N=(N=N+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;_=((H=H+Math.imul(xe,ai)|0)+(N>>>13)|0)+(bt>>>26)|0,bt&=67108863,B=Math.imul(Ot,tt),N=(N=Math.imul(Ot,xt))+Math.imul(Nt,tt)|0,H=Math.imul(Nt,xt),B=B+Math.imul(Wt,Kt)|0,N=(N=N+Math.imul(Wt,Re)|0)+Math.imul(Gt,Kt)|0,H=H+Math.imul(Gt,Re)|0,B=B+Math.imul(et,ce)|0,N=(N=N+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,H=H+Math.imul(Lt,ve)|0,B=B+Math.imul(fe,mt)|0,N=(N=N+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,H=H+Math.imul(He,Ht)|0,B=B+Math.imul(Y,Ne)|0,N=(N=N+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,H=H+Math.imul(z,nt)|0,B=B+Math.imul(ae,Ee)|0,N=(N=N+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,H=H+Math.imul(we,Ge)|0,B=B+Math.imul(ut,lt)|0,N=(N=N+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,H=H+Math.imul(Ie,Ct)|0,B=B+Math.imul(Ce,Jt)|0,N=(N=N+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,H=H+Math.imul(q,$t)|0,B=B+Math.imul(Se,hi)|0,N=(N=N+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0,H=H+Math.imul(Q,ai)|0;var Vt=(_+(B=B+Math.imul(ue,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(ue,zi)|0)+Math.imul(xe,Gi)|0))<<13)|0;_=((H=H+Math.imul(xe,zi)|0)+(N>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,B=Math.imul(Ot,Kt),N=(N=Math.imul(Ot,Re))+Math.imul(Nt,Kt)|0,H=Math.imul(Nt,Re),B=B+Math.imul(Wt,ce)|0,N=(N=N+Math.imul(Wt,ve)|0)+Math.imul(Gt,ce)|0,H=H+Math.imul(Gt,ve)|0,B=B+Math.imul(et,mt)|0,N=(N=N+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,H=H+Math.imul(Lt,Ht)|0,B=B+Math.imul(fe,Ne)|0,N=(N=N+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,H=H+Math.imul(He,nt)|0,B=B+Math.imul(Y,Ee)|0,N=(N=N+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,H=H+Math.imul(z,Ge)|0,B=B+Math.imul(ae,lt)|0,N=(N=N+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,H=H+Math.imul(we,Ct)|0,B=B+Math.imul(ut,Jt)|0,N=(N=N+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,H=H+Math.imul(Ie,$t)|0,B=B+Math.imul(Ce,hi)|0,N=(N=N+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0,H=H+Math.imul(q,ai)|0;var bi=(_+(B=B+Math.imul(Se,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(Se,zi)|0)+Math.imul(Q,Gi)|0))<<13)|0;_=((H=H+Math.imul(Q,zi)|0)+(N>>>13)|0)+(bi>>>26)|0,bi&=67108863,B=Math.imul(Ot,ce),N=(N=Math.imul(Ot,ve))+Math.imul(Nt,ce)|0,H=Math.imul(Nt,ve),B=B+Math.imul(Wt,mt)|0,N=(N=N+Math.imul(Wt,Ht)|0)+Math.imul(Gt,mt)|0,H=H+Math.imul(Gt,Ht)|0,B=B+Math.imul(et,Ne)|0,N=(N=N+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,H=H+Math.imul(Lt,nt)|0,B=B+Math.imul(fe,Ee)|0,N=(N=N+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,H=H+Math.imul(He,Ge)|0,B=B+Math.imul(Y,lt)|0,N=(N=N+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,H=H+Math.imul(z,Ct)|0,B=B+Math.imul(ae,Jt)|0,N=(N=N+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,H=H+Math.imul(we,$t)|0,B=B+Math.imul(ut,hi)|0,N=(N=N+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0,H=H+Math.imul(Ie,ai)|0;var wi=(_+(B=B+Math.imul(Ce,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(Ce,zi)|0)+Math.imul(q,Gi)|0))<<13)|0;_=((H=H+Math.imul(q,zi)|0)+(N>>>13)|0)+(wi>>>26)|0,wi&=67108863,B=Math.imul(Ot,mt),N=(N=Math.imul(Ot,Ht))+Math.imul(Nt,mt)|0,H=Math.imul(Nt,Ht),B=B+Math.imul(Wt,Ne)|0,N=(N=N+Math.imul(Wt,nt)|0)+Math.imul(Gt,Ne)|0,H=H+Math.imul(Gt,nt)|0,B=B+Math.imul(et,Ee)|0,N=(N=N+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,H=H+Math.imul(Lt,Ge)|0,B=B+Math.imul(fe,lt)|0,N=(N=N+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,H=H+Math.imul(He,Ct)|0,B=B+Math.imul(Y,Jt)|0,N=(N=N+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,H=H+Math.imul(z,$t)|0,B=B+Math.imul(ae,hi)|0,N=(N=N+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0,H=H+Math.imul(we,ai)|0;var Xi=(_+(B=B+Math.imul(ut,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(ut,zi)|0)+Math.imul(Ie,Gi)|0))<<13)|0;_=((H=H+Math.imul(Ie,zi)|0)+(N>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,B=Math.imul(Ot,Ne),N=(N=Math.imul(Ot,nt))+Math.imul(Nt,Ne)|0,H=Math.imul(Nt,nt),B=B+Math.imul(Wt,Ee)|0,N=(N=N+Math.imul(Wt,Ge)|0)+Math.imul(Gt,Ee)|0,H=H+Math.imul(Gt,Ge)|0,B=B+Math.imul(et,lt)|0,N=(N=N+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,H=H+Math.imul(Lt,Ct)|0,B=B+Math.imul(fe,Jt)|0,N=(N=N+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,H=H+Math.imul(He,$t)|0,B=B+Math.imul(Y,hi)|0,N=(N=N+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0,H=H+Math.imul(z,ai)|0;var Zi=(_+(B=B+Math.imul(ae,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(ae,zi)|0)+Math.imul(we,Gi)|0))<<13)|0;_=((H=H+Math.imul(we,zi)|0)+(N>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,B=Math.imul(Ot,Ee),N=(N=Math.imul(Ot,Ge))+Math.imul(Nt,Ee)|0,H=Math.imul(Nt,Ge),B=B+Math.imul(Wt,lt)|0,N=(N=N+Math.imul(Wt,Ct)|0)+Math.imul(Gt,lt)|0,H=H+Math.imul(Gt,Ct)|0,B=B+Math.imul(et,Jt)|0,N=(N=N+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,H=H+Math.imul(Lt,$t)|0,B=B+Math.imul(fe,hi)|0,N=(N=N+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0,H=H+Math.imul(He,ai)|0;var on=(_+(B=B+Math.imul(Y,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(Y,zi)|0)+Math.imul(z,Gi)|0))<<13)|0;_=((H=H+Math.imul(z,zi)|0)+(N>>>13)|0)+(on>>>26)|0,on&=67108863,B=Math.imul(Ot,lt),N=(N=Math.imul(Ot,Ct))+Math.imul(Nt,lt)|0,H=Math.imul(Nt,Ct),B=B+Math.imul(Wt,Jt)|0,N=(N=N+Math.imul(Wt,$t)|0)+Math.imul(Gt,Jt)|0,H=H+Math.imul(Gt,$t)|0,B=B+Math.imul(et,hi)|0,N=(N=N+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0,H=H+Math.imul(Lt,ai)|0;var mn=(_+(B=B+Math.imul(fe,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(fe,zi)|0)+Math.imul(He,Gi)|0))<<13)|0;_=((H=H+Math.imul(He,zi)|0)+(N>>>13)|0)+(mn>>>26)|0,mn&=67108863,B=Math.imul(Ot,Jt),N=(N=Math.imul(Ot,$t))+Math.imul(Nt,Jt)|0,H=Math.imul(Nt,$t),B=B+Math.imul(Wt,hi)|0,N=(N=N+Math.imul(Wt,ai)|0)+Math.imul(Gt,hi)|0,H=H+Math.imul(Gt,ai)|0;var ti=(_+(B=B+Math.imul(et,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(et,zi)|0)+Math.imul(Lt,Gi)|0))<<13)|0;_=((H=H+Math.imul(Lt,zi)|0)+(N>>>13)|0)+(ti>>>26)|0,ti&=67108863,B=Math.imul(Ot,hi),N=(N=Math.imul(Ot,ai))+Math.imul(Nt,hi)|0,H=Math.imul(Nt,ai);var Pi=(_+(B=B+Math.imul(Wt,Gi)|0)|0)+((8191&(N=(N=N+Math.imul(Wt,zi)|0)+Math.imul(Gt,Gi)|0))<<13)|0;_=((H=H+Math.imul(Gt,zi)|0)+(N>>>13)|0)+(Pi>>>26)|0,Pi&=67108863;var st=(_+(B=Math.imul(Ot,Gi))|0)+((8191&(N=(N=Math.imul(Ot,zi))+Math.imul(Nt,Gi)|0))<<13)|0;return _=((H=Math.imul(Nt,zi))+(N>>>13)|0)+(st>>>26)|0,st&=67108863,n[0]=Ui,n[1]=Be,n[2]=Tt,n[3]=_e,n[4]=Ke,n[5]=yt,n[6]=re,n[7]=qe,n[8]=bt,n[9]=Vt,n[10]=bi,n[11]=wi,n[12]=Xi,n[13]=Zi,n[14]=on,n[15]=mn,n[16]=ti,n[17]=Pi,n[18]=st,0!==_&&(n[19]=_,T.length++),T};function ne(u,c,v){v.negative=c.negative^u.negative,v.length=u.length+c.length;for(var T=0,I=0,y=0;y<v.length-1;y++){var n=I;I=0;for(var _=67108863&T,B=Math.min(y,c.length-1),N=Math.max(0,y-u.length+1);N<=B;N++){var xe=(0|u.words[y-N])*(0|c.words[N]),Pe=67108863&xe;_=67108863&(Pe=Pe+_|0),I+=(n=(n=n+(xe/67108864|0)|0)+(Pe>>>26)|0)>>>26,n&=67108863}v.words[y]=_,T=n,n=I}return 0!==T?v.words[y]=T:v.length--,v._strip()}function ee(u,c,v){return ne(u,c,v)}function de(u,c){this.x=u,this.y=c}Math.imul||(j=W),s.prototype.mulTo=function(c,v){var I=this.length+c.length;return 10===this.length&&10===c.length?j(this,c,v):I<63?W(this,c,v):I<1024?ne(this,c,v):ee(this,c,v)},de.prototype.makeRBT=function(c){for(var v=new Array(c),T=s.prototype._countBits(c)-1,I=0;I<c;I++)v[I]=this.revBin(I,T,c);return v},de.prototype.revBin=function(c,v,T){if(0===c||c===T-1)return c;for(var I=0,y=0;y<v;y++)I|=(1&c)<<v-y-1,c>>=1;return I},de.prototype.permute=function(c,v,T,I,y,n){for(var _=0;_<n;_++)I[_]=v[c[_]],y[_]=T[c[_]]},de.prototype.transform=function(c,v,T,I,y,n){this.permute(n,c,v,T,I,y);for(var _=1;_<y;_<<=1)for(var B=_<<1,N=Math.cos(2*Math.PI/B),H=Math.sin(2*Math.PI/B),J=0;J<y;J+=B)for(var ue=N,xe=H,Pe=0;Pe<_;Pe++){var Se=T[J+Pe],Q=I[J+Pe],Ue=T[J+Pe+_],Ce=I[J+Pe+_],q=ue*Ue-xe*Ce;Ce=ue*Ce+xe*Ue,T[J+Pe]=Se+(Ue=q),I[J+Pe]=Q+Ce,T[J+Pe+_]=Se-Ue,I[J+Pe+_]=Q-Ce,Pe!==B&&(q=N*ue-H*xe,xe=N*xe+H*ue,ue=q)}},de.prototype.guessLen13b=function(c,v){var T=1|Math.max(v,c),I=1&T,y=0;for(T=T/2|0;T;T>>>=1)y++;return 1<<y+1+I},de.prototype.conjugate=function(c,v,T){if(!(T<=1))for(var I=0;I<T/2;I++){var y=c[I];c[I]=c[T-I-1],c[T-I-1]=y,y=v[I],v[I]=-v[T-I-1],v[T-I-1]=-y}},de.prototype.normalize13b=function(c,v){for(var T=0,I=0;I<v/2;I++){var y=8192*Math.round(c[2*I+1]/v)+Math.round(c[2*I]/v)+T;c[I]=67108863&y,T=y<67108864?0:y/67108864|0}return c},de.prototype.convert13b=function(c,v,T,I){for(var y=0,n=0;n<v;n++)T[2*n]=8191&(y+=0|c[n]),T[2*n+1]=8191&(y>>>=13),y>>>=13;for(n=2*v;n<I;++n)T[n]=0;f(0===y),f(0==(-8192&y))},de.prototype.stub=function(c){for(var v=new Array(c),T=0;T<c;T++)v[T]=0;return v},de.prototype.mulp=function(c,v,T){var I=2*this.guessLen13b(c.length,v.length),y=this.makeRBT(I),n=this.stub(I),_=new Array(I),B=new Array(I),N=new Array(I),H=new Array(I),J=new Array(I),ue=new Array(I),xe=T.words;xe.length=I,this.convert13b(c.words,c.length,_,I),this.convert13b(v.words,v.length,H,I),this.transform(_,n,B,N,I,y),this.transform(H,n,J,ue,I,y);for(var Pe=0;Pe<I;Pe++){var Se=B[Pe]*J[Pe]-N[Pe]*ue[Pe];N[Pe]=B[Pe]*ue[Pe]+N[Pe]*J[Pe],B[Pe]=Se}return this.conjugate(B,N,I),this.transform(B,N,xe,n,I,y),this.conjugate(xe,n,I),this.normalize13b(xe,I),T.negative=c.negative^v.negative,T.length=c.length+v.length,T._strip()},s.prototype.mul=function(c){var v=new s(null);return v.words=new Array(this.length+c.length),this.mulTo(c,v)},s.prototype.mulf=function(c){var v=new s(null);return v.words=new Array(this.length+c.length),ee(this,c,v)},s.prototype.imul=function(c){return this.clone().mulTo(c,this)},s.prototype.imuln=function(c){var v=c<0;v&&(c=-c),f("number"==typeof c),f(c<67108864);for(var T=0,I=0;I<this.length;I++){var y=(0|this.words[I])*c,n=(67108863&y)+(67108863&T);T>>=26,T+=y/67108864|0,T+=n>>>26,this.words[I]=67108863&n}return 0!==T&&(this.words[I]=T,this.length++),v?this.ineg():this},s.prototype.muln=function(c){return this.clone().imuln(c)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(c){var v=function U(u){for(var c=new Array(u.bitLength()),v=0;v<c.length;v++)c[v]=u.words[v/26|0]>>>v%26&1;return c}(c);if(0===v.length)return new s(1);for(var T=this,I=0;I<v.length&&0===v[I];I++,T=T.sqr());if(++I<v.length)for(var y=T.sqr();I<v.length;I++,y=y.sqr())0!==v[I]&&(T=T.mul(y));return T},s.prototype.iushln=function(c){f("number"==typeof c&&c>=0);var y,v=c%26,T=(c-v)/26,I=67108863>>>26-v<<26-v;if(0!==v){var n=0;for(y=0;y<this.length;y++){var _=this.words[y]&I;this.words[y]=(0|this.words[y])-_<<v|n,n=_>>>26-v}n&&(this.words[y]=n,this.length++)}if(0!==T){for(y=this.length-1;y>=0;y--)this.words[y+T]=this.words[y];for(y=0;y<T;y++)this.words[y]=0;this.length+=T}return this._strip()},s.prototype.ishln=function(c){return f(0===this.negative),this.iushln(c)},s.prototype.iushrn=function(c,v,T){var I;f("number"==typeof c&&c>=0),I=v?(v-v%26)/26:0;var y=c%26,n=Math.min((c-y)/26,this.length),_=67108863^67108863>>>y<<y,B=T;if(I-=n,I=Math.max(0,I),B){for(var N=0;N<n;N++)B.words[N]=this.words[N];B.length=n}if(0!==n)if(this.length>n)for(this.length-=n,N=0;N<this.length;N++)this.words[N]=this.words[N+n];else this.words[0]=0,this.length=1;var H=0;for(N=this.length-1;N>=0&&(0!==H||N>=I);N--){var J=0|this.words[N];this.words[N]=H<<26-y|J>>>y,H=J&_}return B&&0!==H&&(B.words[B.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(c,v,T){return f(0===this.negative),this.iushrn(c,v,T)},s.prototype.shln=function(c){return this.clone().ishln(c)},s.prototype.ushln=function(c){return this.clone().iushln(c)},s.prototype.shrn=function(c){return this.clone().ishrn(c)},s.prototype.ushrn=function(c){return this.clone().iushrn(c)},s.prototype.testn=function(c){f("number"==typeof c&&c>=0);var v=c%26,T=(c-v)/26;return!(this.length<=T||!(this.words[T]&1<<v))},s.prototype.imaskn=function(c){f("number"==typeof c&&c>=0);var v=c%26,T=(c-v)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==v&&T++,this.length=Math.min(T,this.length),0!==v&&(this.words[this.length-1]&=67108863^67108863>>>v<<v),this._strip())},s.prototype.maskn=function(c){return this.clone().imaskn(c)},s.prototype.iaddn=function(c){return f("number"==typeof c),f(c<67108864),c<0?this.isubn(-c):0!==this.negative?1===this.length&&(0|this.words[0])<=c?(this.words[0]=c-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(c),this.negative=1,this):this._iaddn(c)},s.prototype._iaddn=function(c){this.words[0]+=c;for(var v=0;v<this.length&&this.words[v]>=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},s.prototype.isubn=function(c){if(f("number"==typeof c),f(c<67108864),c<0)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v<this.length&&this.words[v]<0;v++)this.words[v]+=67108864,this.words[v+1]-=1;return this._strip()},s.prototype.addn=function(c){return this.clone().iaddn(c)},s.prototype.subn=function(c){return this.clone().isubn(c)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(c,v,T){var y;this._expand(c.length+T);var n,_=0;for(y=0;y<c.length;y++){n=(0|this.words[y+T])+_;var B=(0|c.words[y])*v;_=((n-=67108863&B)>>26)-(B/67108864|0),this.words[y+T]=67108863&n}for(;y<this.length-T;y++)_=(n=(0|this.words[y+T])+_)>>26,this.words[y+T]=67108863&n;if(0===_)return this._strip();for(f(-1===_),_=0,y=0;y<this.length;y++)_=(n=-(0|this.words[y])+_)>>26,this.words[y]=67108863&n;return this.negative=1,this._strip()},s.prototype._wordDiv=function(c,v){var T,I=this.clone(),y=c,n=0|y.words[y.length-1];0!=(T=26-this._countBits(n))&&(y=y.ushln(T),I.iushln(T),n=0|y.words[y.length-1]);var N,B=I.length-y.length;if("mod"!==v){(N=new s(null)).length=B+1,N.words=new Array(N.length);for(var H=0;H<N.length;H++)N.words[H]=0}var J=I.clone()._ishlnsubmul(y,1,B);0===J.negative&&(I=J,N&&(N.words[B]=1));for(var ue=B-1;ue>=0;ue--){var xe=67108864*(0|I.words[y.length+ue])+(0|I.words[y.length+ue-1]);for(xe=Math.min(xe/n|0,67108863),I._ishlnsubmul(y,xe,ue);0!==I.negative;)xe--,I.negative=0,I._ishlnsubmul(y,1,ue),I.isZero()||(I.negative^=1);N&&(N.words[ue]=xe)}return N&&N._strip(),I._strip(),"div"!==v&&0!==T&&I.iushrn(T),{div:N||null,mod:I}},s.prototype.divmod=function(c,v,T){return f(!c.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,v),"mod"!==v&&(I=n.div.neg()),"div"!==v&&(y=n.mod.neg(),T&&0!==y.negative&&y.iadd(c)),{div:I,mod:y}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),v),"mod"!==v&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),v),"div"!==v&&(y=n.mod.neg(),T&&0!==y.negative&&y.isub(c)),{div:n.div,mod:y}):c.length>this.length||this.cmp(c)<0?{div:new s(0),mod:this}:1===c.length?"div"===v?{div:this.divn(c.words[0]),mod:null}:"mod"===v?{div:null,mod:new s(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new s(this.modrn(c.words[0]))}:this._wordDiv(c,v);var I,y,n},s.prototype.div=function(c){return this.divmod(c,"div",!1).div},s.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},s.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},s.prototype.divRound=function(c){var v=this.divmod(c);if(v.mod.isZero())return v.div;var T=0!==v.div.negative?v.mod.isub(c):v.mod,I=c.ushrn(1),y=c.andln(1),n=T.cmp(I);return n<0||1===y&&0===n?v.div:0!==v.div.negative?v.div.isubn(1):v.div.iaddn(1)},s.prototype.modrn=function(c){var v=c<0;v&&(c=-c),f(c<=67108863);for(var T=(1<<26)%c,I=0,y=this.length-1;y>=0;y--)I=(T*I+(0|this.words[y]))%c;return v?-I:I},s.prototype.modn=function(c){return this.modrn(c)},s.prototype.idivn=function(c){var v=c<0;v&&(c=-c),f(c<=67108863);for(var T=0,I=this.length-1;I>=0;I--){var y=(0|this.words[I])+67108864*T;this.words[I]=y/c|0,T=y%c}return this._strip(),v?this.ineg():this},s.prototype.divn=function(c){return this.clone().idivn(c)},s.prototype.egcd=function(c){f(0===c.negative),f(!c.isZero());var v=this,T=c.clone();v=0!==v.negative?v.umod(c):v.clone();for(var I=new s(1),y=new s(0),n=new s(0),_=new s(1),B=0;v.isEven()&&T.isEven();)v.iushrn(1),T.iushrn(1),++B;for(var N=T.clone(),H=v.clone();!v.isZero();){for(var J=0,ue=1;0==(v.words[0]&ue)&&J<26;++J,ue<<=1);if(J>0)for(v.iushrn(J);J-- >0;)(I.isOdd()||y.isOdd())&&(I.iadd(N),y.isub(H)),I.iushrn(1),y.iushrn(1);for(var xe=0,Pe=1;0==(T.words[0]&Pe)&&xe<26;++xe,Pe<<=1);if(xe>0)for(T.iushrn(xe);xe-- >0;)(n.isOdd()||_.isOdd())&&(n.iadd(N),_.isub(H)),n.iushrn(1),_.iushrn(1);v.cmp(T)>=0?(v.isub(T),I.isub(n),y.isub(_)):(T.isub(v),n.isub(I),_.isub(y))}return{a:n,b:_,gcd:T.iushln(B)}},s.prototype._invmp=function(c){f(0===c.negative),f(!c.isZero());var J,v=this,T=c.clone();v=0!==v.negative?v.umod(c):v.clone();for(var I=new s(1),y=new s(0),n=T.clone();v.cmpn(1)>0&&T.cmpn(1)>0;){for(var _=0,B=1;0==(v.words[0]&B)&&_<26;++_,B<<=1);if(_>0)for(v.iushrn(_);_-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var N=0,H=1;0==(T.words[0]&H)&&N<26;++N,H<<=1);if(N>0)for(T.iushrn(N);N-- >0;)y.isOdd()&&y.iadd(n),y.iushrn(1);v.cmp(T)>=0?(v.isub(T),I.isub(y)):(T.isub(v),y.isub(I))}return(J=0===v.cmpn(1)?I:y).cmpn(0)<0&&J.iadd(c),J},s.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var v=this.clone(),T=c.clone();v.negative=0,T.negative=0;for(var I=0;v.isEven()&&T.isEven();I++)v.iushrn(1),T.iushrn(1);for(;;){for(;v.isEven();)v.iushrn(1);for(;T.isEven();)T.iushrn(1);var y=v.cmp(T);if(y<0){var n=v;v=T,T=n}else if(0===y||0===T.cmpn(1))break;v.isub(T)}return T.iushln(I)},s.prototype.invm=function(c){return this.egcd(c).a.umod(c)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(c){return this.words[0]&c},s.prototype.bincn=function(c){f("number"==typeof c);var v=c%26,T=(c-v)/26,I=1<<v;if(this.length<=T)return this._expand(T+1),this.words[T]|=I,this;for(var y=I,n=T;0!==y&&n<this.length;n++){var _=0|this.words[n];y=(_+=y)>>>26,this.words[n]=_&=67108863}return 0!==y&&(this.words[n]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(c){var T,v=c<0;if(0!==this.negative&&!v)return-1;if(0===this.negative&&v)return 1;if(this._strip(),this.length>1)T=1;else{v&&(c=-c),f(c<=67108863,"Number is too big");var I=0|this.words[0];T=I===c?0:I<c?-1:1}return 0!==this.negative?0|-T:T},s.prototype.cmp=function(c){if(0!==this.negative&&0===c.negative)return-1;if(0===this.negative&&0!==c.negative)return 1;var v=this.ucmp(c);return 0!==this.negative?0|-v:v},s.prototype.ucmp=function(c){if(this.length>c.length)return 1;if(this.length<c.length)return-1;for(var v=0,T=this.length-1;T>=0;T--){var I=0|this.words[T],y=0|c.words[T];if(I!==y){I<y?v=-1:I>y&&(v=1);break}}return v},s.prototype.gtn=function(c){return 1===this.cmpn(c)},s.prototype.gt=function(c){return 1===this.cmp(c)},s.prototype.gten=function(c){return this.cmpn(c)>=0},s.prototype.gte=function(c){return this.cmp(c)>=0},s.prototype.ltn=function(c){return-1===this.cmpn(c)},s.prototype.lt=function(c){return-1===this.cmp(c)},s.prototype.lten=function(c){return this.cmpn(c)<=0},s.prototype.lte=function(c){return this.cmp(c)<=0},s.prototype.eqn=function(c){return 0===this.cmpn(c)},s.prototype.eq=function(c){return 0===this.cmp(c)},s.red=function(c){return new i(c)},s.prototype.toRed=function(c){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},s.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(c){return this.red=c,this},s.prototype.forceRed=function(c){return f(!this.red,"Already a number in reduction context"),this._forceRed(c)},s.prototype.redAdd=function(c){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},s.prototype.redIAdd=function(c){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},s.prototype.redSub=function(c){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},s.prototype.redISub=function(c){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},s.prototype.redShl=function(c){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},s.prototype.redMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},s.prototype.redIMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(c){return f(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var te={k256:null,p224:null,p192:null,p25519:null};function ie(u,c){this.name=u,this.p=new s(c,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ge(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var c=s._prime(u);this.m=c.p,this.prime=c}else f(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function r(u){i.call(this,u),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new 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 c=new s(null);return c.words=new Array(Math.ceil(this.n/13)),c},ie.prototype.ireduce=function(c){var T,v=c;do{this.split(v,this.tmp),T=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength()}while(T>this.n);var I=T<this.n?-1:v.ucmp(this.p);return 0===I?(v.words[0]=0,v.length=1):I>0?v.isub(this.p):void 0!==v.strip?v.strip():v._strip(),v},ie.prototype.split=function(c,v){c.iushrn(this.n,0,v)},ie.prototype.imulK=function(c){return c.imul(this.k)},M(le,ie),le.prototype.split=function(c,v){for(var T=4194303,I=Math.min(c.length,9),y=0;y<I;y++)v.words[y]=c.words[y];if(v.length=I,c.length<=9)return c.words[0]=0,void(c.length=1);var n=c.words[9];for(v.words[v.length++]=n&T,y=10;y<c.length;y++){var _=0|c.words[y];c.words[y-10]=(_&T)<<4|n>>>22,n=_}c.words[y-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},le.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var v=0,T=0;T<c.length;T++){var I=0|c.words[T];c.words[T]=67108863&(v+=977*I),v=64*I+(v/67108864|0)}return 0===c.words[c.length-1]&&(c.length--,0===c.words[c.length-1]&&c.length--),c},M($,ie),M(ge,ie),M(C,ie),C.prototype.imulK=function(c){for(var v=0,T=0;T<c.length;T++){var I=19*(0|c.words[T])+v,y=67108863&I;I>>>=26,c.words[T]=y,v=I}return 0!==v&&(c.words[c.length++]=v),c},s._prime=function(c){if(te[c])return te[c];var v;if("k256"===c)v=new le;else if("p224"===c)v=new $;else if("p192"===c)v=new ge;else{if("p25519"!==c)throw new Error("Unknown prime "+c);v=new C}return te[c]=v,v},i.prototype._verify1=function(c){f(0===c.negative,"red works only with positives"),f(c.red,"red works only with red numbers")},i.prototype._verify2=function(c,v){f(0==(c.negative|v.negative),"red works only with positives"),f(c.red&&c.red===v.red,"red works only with red numbers")},i.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(L(c,c.umod(this.m)._forceRed(this)),c)},i.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},i.prototype.add=function(c,v){this._verify2(c,v);var T=c.add(v);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},i.prototype.iadd=function(c,v){this._verify2(c,v);var T=c.iadd(v);return T.cmp(this.m)>=0&&T.isub(this.m),T},i.prototype.sub=function(c,v){this._verify2(c,v);var T=c.sub(v);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},i.prototype.isub=function(c,v){this._verify2(c,v);var T=c.isub(v);return T.cmpn(0)<0&&T.iadd(this.m),T},i.prototype.shl=function(c,v){return this._verify1(c),this.imod(c.ushln(v))},i.prototype.imul=function(c,v){return this._verify2(c,v),this.imod(c.imul(v))},i.prototype.mul=function(c,v){return this._verify2(c,v),this.imod(c.mul(v))},i.prototype.isqr=function(c){return this.imul(c,c.clone())},i.prototype.sqr=function(c){return this.mul(c,c)},i.prototype.sqrt=function(c){if(c.isZero())return c.clone();var v=this.m.andln(3);if(f(v%2==1),3===v){var T=this.m.add(new s(1)).iushrn(2);return this.pow(c,T)}for(var I=this.m.subn(1),y=0;!I.isZero()&&0===I.andln(1);)y++,I.iushrn(1);f(!I.isZero());var n=new s(1).toRed(this),_=n.redNeg(),B=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new s(2*N*N).toRed(this);0!==this.pow(N,B).cmp(_);)N.redIAdd(_);for(var H=this.pow(N,I),J=this.pow(c,I.addn(1).iushrn(1)),ue=this.pow(c,I),xe=y;0!==ue.cmp(n);){for(var Pe=ue,Se=0;0!==Pe.cmp(n);Se++)Pe=Pe.redSqr();f(Se<xe);var Q=this.pow(H,new s(1).iushln(xe-Se-1));J=J.redMul(Q),H=Q.redSqr(),ue=ue.redMul(H),xe=Se}return J},i.prototype.invm=function(c){var v=c._invmp(this.m);return 0!==v.negative?(v.negative=0,this.imod(v).redNeg()):this.imod(v)},i.prototype.pow=function(c,v){if(v.isZero())return new s(1).toRed(this);if(0===v.cmpn(1))return c.clone();var I=new Array(16);I[0]=new s(1).toRed(this),I[1]=c;for(var y=2;y<I.length;y++)I[y]=this.mul(I[y-1],c);var n=I[0],_=0,B=0,N=v.bitLength()%26;for(0===N&&(N=26),y=v.length-1;y>=0;y--){for(var H=v.words[y],J=N-1;J>=0;J--){var ue=H>>J&1;n!==I[0]&&(n=this.sqr(n)),0!==ue||0!==_?(_<<=1,_|=ue,(4==++B||0===y&&0===J)&&(n=this.mul(n,I[_]),B=0,_=0)):B=0}N=26}return n},i.prototype.convertTo=function(c){var v=c.umod(this.m);return v===c?v.clone():v},i.prototype.convertFrom=function(c){var v=c.clone();return v.red=null,v},s.mont=function(c){return new r(c)},M(r,i),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var v=this.imod(c.mul(this.rinv));return v.red=null,v},r.prototype.imul=function(c,v){if(c.isZero()||v.isZero())return c.words[0]=0,c.length=1,c;var T=c.imul(v),I=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=T.isub(I).iushrn(this.shift),n=y;return y.cmp(this.m)>=0?n=y.isub(this.m):y.cmpn(0)<0&&(n=y.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,v){if(c.isZero()||v.isZero())return new s(0)._forceRed(this);var T=c.mul(v),I=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=T.isub(I).iushrn(this.shift),n=y;return y.cmp(this.m)>=0?n=y.isub(this.m):y.cmpn(0)<0&&(n=y.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},7950:(ze,K,p)=>{var t;function e(M){this.rand=M}if(ze.exports=function(s){return t||(t=new e(null)),t.generate(s)},ze.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 b=new Uint8Array(s),d=0;d<b.length;d++)b[d]=this.rand.getByte();return b},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(s){var b=new Uint8Array(s);return self.crypto.getRandomValues(b),b}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(s){var b=new Uint8Array(s);return self.msCrypto.getRandomValues(b),b}:"object"==typeof window&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var f=p(1348);if("function"!=typeof f.randomBytes)throw new Error("Not supported");e.prototype._rand=function(s){return f.randomBytes(s)}}catch(M){}},1899:(ze,K,p)=>{var t=p(3502).Buffer;function e(R){t.isBuffer(R)||(R=t.from(R));for(var h=R.length/4|0,L=new Array(h),w=0;w<h;w++)L[w]=R.readUInt32BE(4*w);return L}function f(R){for(;0<R.length;R++)R[0]=0}function M(R,h,L,w,D){for(var de,te,ie,le,S=L[0],k=L[1],E=L[2],U=L[3],W=R[0]^h[0],j=R[1]^h[1],ne=R[2]^h[2],ee=R[3]^h[3],$=4,ge=1;ge<D;ge++)de=S[W>>>24]^k[j>>>16&255]^E[ne>>>8&255]^U[255&ee]^h[$++],te=S[j>>>24]^k[ne>>>16&255]^E[ee>>>8&255]^U[255&W]^h[$++],ie=S[ne>>>24]^k[ee>>>16&255]^E[W>>>8&255]^U[255&j]^h[$++],le=S[ee>>>24]^k[W>>>16&255]^E[j>>>8&255]^U[255&ne]^h[$++],W=de,j=te,ne=ie,ee=le;return de=(w[W>>>24]<<24|w[j>>>16&255]<<16|w[ne>>>8&255]<<8|w[255&ee])^h[$++],te=(w[j>>>24]<<24|w[ne>>>16&255]<<16|w[ee>>>8&255]<<8|w[255&W])^h[$++],ie=(w[ne>>>24]<<24|w[ee>>>16&255]<<16|w[W>>>8&255]<<8|w[255&j])^h[$++],le=(w[ee>>>24]<<24|w[W>>>16&255]<<16|w[j>>>8&255]<<8|w[255&ne])^h[$++],[de>>>=0,te>>>=0,ie>>>=0,le>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],b=function(){for(var R=new Array(256),h=0;h<256;h++)R[h]=h<128?h<<1:h<<1^283;for(var L=[],w=[],D=[[],[],[],[]],S=[[],[],[],[]],k=0,E=0,U=0;U<256;++U){var W=E^E<<1^E<<2^E<<3^E<<4;L[k]=W=W>>>8^255&W^99,w[W]=k;var j=R[k],ne=R[j],ee=R[ne],de=257*R[W]^16843008*W;D[0][k]=de<<24|de>>>8,D[1][k]=de<<16|de>>>16,D[2][k]=de<<8|de>>>24,D[3][k]=de,S[0][W]=(de=16843009*ee^65537*ne^257*j^16843008*k)<<24|de>>>8,S[1][W]=de<<16|de>>>16,S[2][W]=de<<8|de>>>24,S[3][W]=de,0===k?k=E=1:(k=j^R[R[R[ee^j]]],E^=R[R[E]])}return{SBOX:L,INV_SBOX:w,SUB_MIX:D,INV_SUB_MIX:S}}();function d(R){this._key=e(R),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var R=this._key,h=R.length,L=h+6,w=4*(L+1),D=[],S=0;S<h;S++)D[S]=R[S];for(S=h;S<w;S++){var k=D[S-1];S%h==0?(k=b.SBOX[(k=k<<8|k>>>24)>>>24]<<24|b.SBOX[k>>>16&255]<<16|b.SBOX[k>>>8&255]<<8|b.SBOX[255&k],k^=s[S/h|0]<<24):h>6&&S%h==4&&(k=b.SBOX[k>>>24]<<24|b.SBOX[k>>>16&255]<<16|b.SBOX[k>>>8&255]<<8|b.SBOX[255&k]),D[S]=D[S-h]^k}for(var E=[],U=0;U<w;U++){var W=w-U,j=D[W-(U%4?0:4)];E[U]=U<4||W<=4?j:b.INV_SUB_MIX[0][b.SBOX[j>>>24]]^b.INV_SUB_MIX[1][b.SBOX[j>>>16&255]]^b.INV_SUB_MIX[2][b.SBOX[j>>>8&255]]^b.INV_SUB_MIX[3][b.SBOX[255&j]]}this._nRounds=L,this._keySchedule=D,this._invKeySchedule=E},d.prototype.encryptBlockRaw=function(R){return M(R=e(R),this._keySchedule,b.SUB_MIX,b.SBOX,this._nRounds)},d.prototype.encryptBlock=function(R){var h=this.encryptBlockRaw(R),L=t.allocUnsafe(16);return L.writeUInt32BE(h[0],0),L.writeUInt32BE(h[1],4),L.writeUInt32BE(h[2],8),L.writeUInt32BE(h[3],12),L},d.prototype.decryptBlock=function(R){var h=(R=e(R))[1];R[1]=R[3],R[3]=h;var L=M(R,this._invKeySchedule,b.INV_SUB_MIX,b.INV_SBOX,this._nRounds),w=t.allocUnsafe(16);return w.writeUInt32BE(L[0],0),w.writeUInt32BE(L[3],4),w.writeUInt32BE(L[2],8),w.writeUInt32BE(L[1],12),w},d.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},ze.exports.AES=d},9382:(ze,K,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052),M=p(3894),s=p(8857),b=p(8789),d=p(7968);function L(w,D,S,k){f.call(this);var E=e.alloc(4,0);this._cipher=new t.AES(D);var U=this._cipher.encryptBlock(E);this._ghash=new s(U),S=function h(w,D,S){if(12===D.length)return w._finID=e.concat([D,e.from([0,0,0,1])]),e.concat([D,e.from([0,0,0,2])]);var k=new s(S),E=D.length,U=E%16;k.update(D),U&&k.update(e.alloc(U=16-U,0)),k.update(e.alloc(8,0));var W=8*E,j=e.alloc(8);j.writeUIntBE(W,0,8),k.update(j),w._finID=k.state;var ne=e.from(w._finID);return d(ne),ne}(this,S,U),this._prev=e.from(S),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=w,this._authTag=null,this._called=!1}M(L,f),L.prototype._update=function(w){if(!this._called&&this._alen){var D=16-this._alen%16;D<16&&(D=e.alloc(D,0),this._ghash.update(D))}this._called=!0;var S=this._mode.encrypt(this,w);return this._ghash.update(this._decrypt?w:S),this._len+=w.length,S},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var w=b(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(w,D){var S=0;w.length!==D.length&&S++;for(var k=Math.min(w.length,D.length),E=0;E<k;++E)S+=w[E]^D[E];return S}(w,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=w,this._cipher.scrub()},L.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},L.prototype.setAuthTag=function(D){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=D},L.prototype.setAAD=function(D){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(D),this._alen+=D.length},ze.exports=L},4330:(ze,K,p)=>{var t=p(6900),e=p(856),f=p(4946);K.createCipher=K.Cipher=t.createCipher,K.createCipheriv=K.Cipheriv=t.createCipheriv,K.createDecipher=K.Decipher=e.createDecipher,K.createDecipheriv=K.Decipheriv=e.createDecipheriv,K.listCiphers=K.getCiphers=function M(){return Object.keys(f)}},856:(ze,K,p)=>{var t=p(9382),e=p(3502).Buffer,f=p(9171),M=p(8441),s=p(1052),b=p(1899),d=p(347);function h(k,E,U){s.call(this),this._cache=new L,this._last=void 0,this._cipher=new b.AES(E),this._prev=e.from(U),this._mode=k,this._autopadding=!0}function L(){this.cache=e.allocUnsafe(0)}function D(k,E,U){var W=f[k.toLowerCase()];if(!W)throw new TypeError("invalid suite type");if("string"==typeof U&&(U=e.from(U)),"GCM"!==W.mode&&U.length!==W.iv)throw new TypeError("invalid iv length "+U.length);if("string"==typeof E&&(E=e.from(E)),E.length!==W.key/8)throw new TypeError("invalid key length "+E.length);return"stream"===W.type?new M(W.module,E,U,!0):"auth"===W.type?new t(W.module,E,U,!0):new h(W.module,E,U)}p(3894)(h,s),h.prototype._update=function(k){this._cache.add(k);for(var E,U,W=[];E=this._cache.get(this._autopadding);)U=this._mode.decrypt(this,E),W.push(U);return e.concat(W)},h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function w(k){var E=k[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var U=-1;++U<E;)if(k[U+(16-E)]!==E)throw new Error("unable to decrypt data");if(16!==E)return k.slice(0,16-E)}(this._mode.decrypt(this,k));if(k)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},L.prototype.add=function(k){this.cache=e.concat([this.cache,k])},L.prototype.get=function(k){var E;if(k){if(this.cache.length>16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E}else if(this.cache.length>=16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E;return null},L.prototype.flush=function(){if(this.cache.length)return this.cache},K.createDecipher=function S(k,E){var U=f[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var W=d(E,!1,U.key,U.iv);return D(k,W.key,W.iv)},K.createDecipheriv=D},6900:(ze,K,p)=>{var t=p(9171),e=p(9382),f=p(3502).Buffer,M=p(8441),s=p(1052),b=p(1899),d=p(347);function h(k,E,U){s.call(this),this._cache=new w,this._cipher=new b.AES(E),this._prev=f.from(U),this._mode=k,this._autopadding=!0}p(3894)(h,s),h.prototype._update=function(k){this._cache.add(k);for(var E,U,W=[];E=this._cache.get();)U=this._mode.encrypt(this,E),W.push(U);return f.concat(W)};var L=f.alloc(16,16);function w(){this.cache=f.allocUnsafe(0)}function D(k,E,U){var W=t[k.toLowerCase()];if(!W)throw new TypeError("invalid suite type");if("string"==typeof E&&(E=f.from(E)),E.length!==W.key/8)throw new TypeError("invalid key length "+E.length);if("string"==typeof U&&(U=f.from(U)),"GCM"!==W.mode&&U.length!==W.iv)throw new TypeError("invalid iv length "+U.length);return"stream"===W.type?new M(W.module,E,U):"auth"===W.type?new e(W.module,E,U):new h(W.module,E,U)}h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},w.prototype.add=function(k){this.cache=f.concat([this.cache,k])},w.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},w.prototype.flush=function(){for(var k=16-this.cache.length,E=f.allocUnsafe(k),U=-1;++U<k;)E.writeUInt8(k,U);return f.concat([this.cache,E])},K.createCipheriv=D,K.createCipher=function S(k,E){var U=t[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var W=d(E,!1,U.key,U.iv);return D(k,W.key,W.iv)}},8857:(ze,K,p)=>{var t=p(3502).Buffer,e=t.alloc(16,0);function M(b){var d=t.allocUnsafe(16);return d.writeUInt32BE(b[0]>>>0,0),d.writeUInt32BE(b[1]>>>0,4),d.writeUInt32BE(b[2]>>>0,8),d.writeUInt32BE(b[3]>>>0,12),d}function s(b){this.h=b,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}s.prototype.ghash=function(b){for(var d=-1;++d<b.length;)this.state[d]^=b[d];this._multiply()},s.prototype._multiply=function(){for(var R,L,b=function f(b){return[b.readUInt32BE(0),b.readUInt32BE(4),b.readUInt32BE(8),b.readUInt32BE(12)]}(this.h),d=[0,0,0,0],w=-1;++w<128;){for(0!=(this.state[~~(w/8)]&1<<7-w%8)&&(d[0]^=b[0],d[1]^=b[1],d[2]^=b[2],d[3]^=b[3]),L=0!=(1&b[3]),R=3;R>0;R--)b[R]=b[R]>>>1|(1&b[R-1])<<31;b[0]=b[0]>>>1,L&&(b[0]=b[0]^225<<24)}this.state=M(d)},s.prototype.update=function(b){this.cache=t.concat([this.cache,b]);for(var d;this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},s.prototype.final=function(b,d){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(M([0,b,0,d])),this.state},ze.exports=s},7968:ze=>{ze.exports=function K(p){for(var e,t=p.length;t--;){if(255!==(e=p.readUInt8(t))){e++,p.writeUInt8(e,t);break}p.writeUInt8(0,t)}}},4903:(ze,K,p)=>{var t=p(8789);K.encrypt=function(e,f){var M=t(f,e._prev);return e._prev=e._cipher.encryptBlock(M),e._prev},K.decrypt=function(e,f){var M=e._prev;e._prev=f;var s=e._cipher.decryptBlock(f);return t(s,M)}},9885:(ze,K,p)=>{var t=p(3502).Buffer,e=p(8789);function f(M,s,b){var d=s.length,R=e(s,M._cache);return M._cache=M._cache.slice(d),M._prev=t.concat([M._prev,b?s:R]),R}K.encrypt=function(M,s,b){for(var R,d=t.allocUnsafe(0);s.length;){if(0===M._cache.length&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=t.allocUnsafe(0)),!(M._cache.length<=s.length)){d=t.concat([d,f(M,s,b)]);break}d=t.concat([d,f(M,s.slice(0,R=M._cache.length),b)]),s=s.slice(R)}return d}},6531:(ze,K,p)=>{var t=p(3502).Buffer;function e(M,s,b){for(var w,D,R=-1,L=0;++R<8;)L+=(128&(D=M._cipher.encryptBlock(M._prev)[0]^(w=s&1<<7-R?128:0)))>>R%8,M._prev=f(M._prev,b?w:D);return L}function f(M,s){var b=M.length,d=-1,R=t.allocUnsafe(M.length);for(M=t.concat([M,t.from([s])]);++d<b;)R[d]=M[d]<<1|M[d+1]>>7;return R}K.encrypt=function(M,s,b){for(var d=s.length,R=t.allocUnsafe(d),h=-1;++h<d;)R[h]=e(M,s[h],b);return R}},1641:(ze,K,p)=>{var t=p(3502).Buffer;function e(f,M,s){var d=f._cipher.encryptBlock(f._prev)[0]^M;return f._prev=t.concat([f._prev.slice(1),t.from([s?M:d])]),d}K.encrypt=function(f,M,s){for(var b=M.length,d=t.allocUnsafe(b),R=-1;++R<b;)d[R]=e(f,M[R],s);return d}},1150:(ze,K,p)=>{var t=p(8789),e=p(3502).Buffer,f=p(7968);function M(b){var d=b._cipher.encryptBlockRaw(b._prev);return f(b._prev),d}K.encrypt=function(b,d){var R=Math.ceil(d.length/16),h=b._cache.length;b._cache=e.concat([b._cache,e.allocUnsafe(16*R)]);for(var L=0;L<R;L++){var w=M(b),D=h+16*L;b._cache.writeUInt32BE(w[0],D+0),b._cache.writeUInt32BE(w[1],D+4),b._cache.writeUInt32BE(w[2],D+8),b._cache.writeUInt32BE(w[3],D+12)}var S=b._cache.slice(0,d.length);return b._cache=b._cache.slice(d.length),t(d,S)}},1704:(ze,K)=>{K.encrypt=function(p,t){return p._cipher.encryptBlock(t)},K.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(ze,K,p)=>{var t={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},e=p(4946);for(var f in e)e[f].module=t[e[f].mode];ze.exports=e},6816:(ze,K,p)=>{var t=p(8789);function e(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}K.encrypt=function(f,M){for(;f._cache.length<M.length;)f._cache=Buffer.concat([f._cache,e(f)]);var s=f._cache.slice(0,M.length);return f._cache=f._cache.slice(M.length),t(M,s)}},8441:(ze,K,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052);function s(b,d,R,h){f.call(this),this._cipher=new t.AES(d),this._prev=e.from(R),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=h,this._mode=b}p(3894)(s,f),s.prototype._update=function(b){return this._mode.encrypt(this,b,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},ze.exports=s},5255:(ze,K,p)=>{var t=p(9004),e=p(4330),f=p(9171),M=p(1115),s=p(347);function R(w,D,S){if(w=w.toLowerCase(),f[w])return e.createCipheriv(w,D,S);if(M[w])return new t({key:D,iv:S,mode:w});throw new TypeError("invalid suite type")}function h(w,D,S){if(w=w.toLowerCase(),f[w])return e.createDecipheriv(w,D,S);if(M[w])return new t({key:D,iv:S,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}K.createCipher=K.Cipher=function b(w,D){var S,k;if(w=w.toLowerCase(),f[w])S=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");S=8*M[w].key,k=M[w].iv}var E=s(D,!1,S,k);return R(w,E.key,E.iv)},K.createCipheriv=K.Cipheriv=R,K.createDecipher=K.Decipher=function d(w,D){var S,k;if(w=w.toLowerCase(),f[w])S=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");S=8*M[w].key,k=M[w].iv}var E=s(D,!1,S,k);return h(w,E.key,E.iv)},K.createDecipheriv=K.Decipheriv=h,K.listCiphers=K.getCiphers=function L(){return Object.keys(M).concat(e.getCiphers())}},9004:(ze,K,p)=>{var t=p(1052),e=p(3684),f=p(3894),M=p(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 b(d){t.call(this);var L,R=d.mode.toLowerCase(),h=s[R];L=d.decrypt?"decrypt":"encrypt";var w=d.key;M.isBuffer(w)||(w=M.from(w)),("des-ede"===R||"des-ede-cbc"===R)&&(w=M.concat([w,w.slice(0,8)]));var D=d.iv;M.isBuffer(D)||(D=M.from(D)),this._des=h.create({key:w,iv:D,type:L})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],ze.exports=b,f(b,t),b.prototype._update=function(d){return M.from(this._des.update(d))},b.prototype._final=function(){return M.from(this._des.final())}},1115:(ze,K)=>{K["des-ecb"]={key:8,iv:0},K["des-cbc"]=K.des={key:8,iv:8},K["des-ede3-cbc"]=K.des3={key:24,iv:8},K["des-ede3"]={key:24,iv:0},K["des-ede-cbc"]={key:16,iv:8},K["des-ede"]={key:16,iv:0}},8466:(ze,K,p)=>{var t=p(8538),e=p(3753);function M(b){var R,d=b.modulus.byteLength();do{R=new t(e(d))}while(R.cmp(b.modulus)>=0||!R.umod(b.prime1)||!R.umod(b.prime2));return R}function s(b,d){var R=function f(b){var d=M(b);return{blinder:d.toRed(t.mont(b.modulus)).redPow(new t(b.publicExponent)).fromRed(),unblinder:d.invm(b.modulus)}}(d),h=d.modulus.byteLength(),L=new t(b).mul(R.blinder).umod(d.modulus),w=L.toRed(t.mont(d.prime1)),D=L.toRed(t.mont(d.prime2)),S=d.coefficient,k=d.prime1,E=d.prime2,U=w.redPow(d.exponent1).fromRed(),W=D.redPow(d.exponent2).fromRed(),j=U.isub(W).imul(S).umod(k).imul(E);return W.iadd(j).imul(R.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",h)}s.getr=M,ze.exports=s},7793:(ze,K,p)=>{ze.exports=p(5207)},3923:(ze,K,p)=>{var t=p(8446).Buffer,e=p(6386),f=p(5685),M=p(3894),s=p(9947),b=p(3946),d=p(5207);function R(D){f.Writable.call(this);var S=d[D];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function h(D){f.Writable.call(this);var S=d[D];if(!S)throw new Error("Unknown message digest");this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function L(D){return new R(D)}function w(D){return new h(D)}Object.keys(d).forEach(function(D){d[D].id=t.from(d[D].id,"hex"),d[D.toLowerCase()]=d[D]}),M(R,f.Writable),R.prototype._write=function(S,k,E){this._hash.update(S),E()},R.prototype.update=function(S,k){return"string"==typeof S&&(S=t.from(S,k)),this._hash.update(S),this},R.prototype.sign=function(S,k){this.end();var E=this._hash.digest(),U=s(E,S,this._hashType,this._signType,this._tag);return k?U.toString(k):U},M(h,f.Writable),h.prototype._write=function(S,k,E){this._hash.update(S),E()},h.prototype.update=function(S,k){return"string"==typeof S&&(S=t.from(S,k)),this._hash.update(S),this},h.prototype.verify=function(S,k,E){"string"==typeof k&&(k=t.from(k,E)),this.end();var U=this._hash.digest();return b(k,U,S,this._signType,this._tag)},ze.exports={Sign:L,Verify:w,createSign:L,createVerify:w}},9947:(ze,K,p)=>{var t=p(8446).Buffer,e=p(4529),f=p(8466),M=p(7715).ec,s=p(8538),b=p(2772),d=p(1308);function D(W,j,ne,ee){if((W=t.from(W.toArray())).length<j.byteLength()){var de=t.alloc(j.byteLength()-W.length);W=t.concat([de,W])}var te=ne.length,ie=function k(W,j){W=(W=S(W,j)).mod(j);var ne=t.from(W.toArray());if(ne.length<j.byteLength()){var ee=t.alloc(j.byteLength()-ne.length);ne=t.concat([ee,ne])}return ne}(ne,j),le=t.alloc(te);le.fill(1);var $=t.alloc(te);return $=e(ee,$).update(le).update(t.from([0])).update(W).update(ie).digest(),le=e(ee,$).update(le).digest(),{k:$=e(ee,$).update(le).update(t.from([1])).update(W).update(ie).digest(),v:le=e(ee,$).update(le).digest()}}function S(W,j){var ne=new s(W),ee=(W.length<<3)-j.bitLength();return ee>0&&ne.ishrn(ee),ne}function E(W,j,ne){var ee,de;do{for(ee=t.alloc(0);8*ee.length<W.bitLength();)j.v=e(ne,j.k).update(j.v).digest(),ee=t.concat([ee,j.v]);de=S(ee,W),j.k=e(ne,j.k).update(j.v).update(t.from([0])).digest(),j.v=e(ne,j.k).update(j.v).digest()}while(-1!==de.cmp(W));return de}function U(W,j,ne,ee){return W.toRed(s.mont(ne)).redPow(j).fromRed().mod(ee)}ze.exports=function R(W,j,ne,ee,de){var te=b(j);if(te.curve){if("ecdsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");return function h(W,j){var ne=d[j.curve.join(".")];if(!ne)throw new Error("unknown curve "+j.curve.join("."));var te=new M(ne).keyFromPrivate(j.privateKey).sign(W);return t.from(te.toDER())}(W,te)}if("dsa"===te.type){if("dsa"!==ee)throw new Error("wrong private key type");return function L(W,j,ne){for(var $,ee=j.params.priv_key,de=j.params.p,te=j.params.q,ie=j.params.g,le=new s(0),ge=S(W,te).mod(te),C=!1,i=D(ee,te,W,ne);!1===C;)le=U(ie,$=E(te,i,ne),de,te),0===(C=$.invm(te).imul(ge.add(ee.mul(le))).mod(te)).cmpn(0)&&(C=!1,le=new s(0));return function w(W,j){W=W.toArray(),j=j.toArray(),128&W[0]&&(W=[0].concat(W)),128&j[0]&&(j=[0].concat(j));var ee=[48,W.length+j.length+4,2,W.length];return ee=ee.concat(W,[2,j.length],j),t.from(ee)}(le,C)}(W,te,ne)}if("rsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");W=t.concat([de,W]);for(var ie=te.modulus.byteLength(),le=[0,1];W.length+le.length+1<ie;)le.push(255);le.push(0);for(var $=-1;++$<W.length;)le.push(W[$]);return f(le,te)},ze.exports.getKey=D,ze.exports.makeKey=E},3946:(ze,K,p)=>{var t=p(8446).Buffer,e=p(8538),f=p(7715).ec,M=p(2772),s=p(1308);function h(L,w){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(w)>=w)throw new Error("invalid sig")}ze.exports=function b(L,w,D,S,k){var E=M(D);if("ec"===E.type){if("ecdsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");return function d(L,w,D){var S=s[D.data.algorithm.curve.join(".")];if(!S)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));return new f(S).verify(w,L,D.data.subjectPrivateKey.data)}(L,w,E)}if("dsa"===E.type){if("dsa"!==S)throw new Error("wrong public key type");return function R(L,w,D){var S=D.data.p,k=D.data.q,E=D.data.g,U=D.data.pub_key,W=M.signature.decode(L,"der"),j=W.s,ne=W.r;h(j,k),h(ne,k);var ee=e.mont(S),de=j.invm(k);return 0===E.toRed(ee).redPow(new e(w).mul(de).mod(k)).fromRed().mul(U.toRed(ee).redPow(ne.mul(de).mod(k)).fromRed()).mod(S).mod(k).cmp(ne)}(L,w,E)}if("rsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");w=t.concat([k,w]);for(var U=E.modulus.byteLength(),W=[1],j=0;w.length+W.length+2<U;)W.push(255),j++;W.push(0);for(var ne=-1;++ne<w.length;)W.push(w[ne]);W=t.from(W);var ee=e.mont(E.modulus);L=(L=new e(L).toRed(ee)).redPow(new e(E.publicExponent)),L=t.from(L.fromRed().toArray());var de=j<8?1:0;for(U=Math.min(L.length,W.length),L.length!==W.length&&(de=1),ne=-1;++ne<U;)de|=L[ne]^W[ne];return 0===de}},8446:(ze,K,p)=>{var t=p(3172),e=t.Buffer;function f(s,b){for(var d in s)b[d]=s[d]}function M(s,b,d){return e(s,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?ze.exports=t:(f(t,K),K.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(s,b,d){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,b,d)},M.alloc=function(s,b,d){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=e(s);return void 0!==b?"string"==typeof d?R.fill(b,d):R.fill(b):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},8789:ze=>{ze.exports=function(p,t){for(var e=Math.min(p.length,t.length),f=new Buffer(e),M=0;M<e;++M)f[M]=p[M]^t[M];return f}},3172:(ze,K,p)=>{"use strict";var t=p(5343),e=p(8461),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;K.Buffer=d,K.SlowBuffer=function j(Ie){return+Ie!=Ie&&(Ie=0),d.alloc(+Ie)},K.INSPECT_MAX_BYTES=50;var M=2147483647;function b(Ie){if(Ie>M)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var De=new Uint8Array(Ie);return Object.setPrototypeOf(De,d.prototype),De}function d(Ie,De,ae){if("number"==typeof Ie){if("string"==typeof De)throw new TypeError('The "string" argument must be of type string. Received type number');return w(Ie)}return R(Ie,De,ae)}function R(Ie,De,ae){if("string"==typeof Ie)return function D(Ie,De){if(("string"!=typeof De||""===De)&&(De="utf8"),!d.isEncoding(De))throw new TypeError("Unknown encoding: "+De);var ae=0|ne(Ie,De),we=b(ae),ye=we.write(Ie,De);return ye!==ae&&(we=we.slice(0,ye)),we}(Ie,De);if(ArrayBuffer.isView(Ie))return function k(Ie){if(q(Ie,Uint8Array)){var De=new Uint8Array(Ie);return E(De.buffer,De.byteOffset,De.byteLength)}return S(Ie)}(Ie);if(null==Ie)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie);if(q(Ie,ArrayBuffer)||Ie&&q(Ie.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(q(Ie,SharedArrayBuffer)||Ie&&q(Ie.buffer,SharedArrayBuffer)))return E(Ie,De,ae);if("number"==typeof Ie)throw new TypeError('The "value" argument must not be of type number. Received type number');var we=Ie.valueOf&&Ie.valueOf();if(null!=we&&we!==Ie)return d.from(we,De,ae);var ye=function U(Ie){if(d.isBuffer(Ie)){var De=0|W(Ie.length),ae=b(De);return 0===ae.length||Ie.copy(ae,0,0,De),ae}return void 0!==Ie.length?"number"!=typeof Ie.length||Ae(Ie.length)?b(0):S(Ie):"Buffer"===Ie.type&&Array.isArray(Ie.data)?S(Ie.data):void 0}(Ie);if(ye)return ye;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Ie[Symbol.toPrimitive])return d.from(Ie[Symbol.toPrimitive]("string"),De,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function h(Ie){if("number"!=typeof Ie)throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function w(Ie){return h(Ie),b(Ie<0?0:0|W(Ie))}function S(Ie){for(var De=Ie.length<0?0:0|W(Ie.length),ae=b(De),we=0;we<De;we+=1)ae[we]=255&Ie[we];return ae}function E(Ie,De,ae){if(De<0||Ie.byteLength<De)throw new RangeError('"offset" is outside of buffer bounds');if(Ie.byteLength<De+(ae||0))throw new RangeError('"length" is outside of buffer bounds');var we;return we=void 0===De&&void 0===ae?new Uint8Array(Ie):void 0===ae?new Uint8Array(Ie,De):new Uint8Array(Ie,De,ae),Object.setPrototypeOf(we,d.prototype),we}function W(Ie){if(Ie>=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Ie}function ne(Ie,De){if(d.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||q(Ie,ArrayBuffer))return Ie.byteLength;if("string"!=typeof Ie)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ie);var ae=Ie.length,we=arguments.length>2&&!0===arguments[2];if(!we&&0===ae)return 0;for(var ye=!1;;)switch(De){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return Pe(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ae;case"hex":return ae>>>1;case"base64":return Ue(Ie).length;default:if(ye)return we?-1:Pe(Ie).length;De=(""+De).toLowerCase(),ye=!0}}function ee(Ie,De,ae){var we=!1;if((void 0===De||De<0)&&(De=0),De>this.length||((void 0===ae||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0)<=(De>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return y(this,De,ae);case"utf8":case"utf-8":return u(this,De,ae);case"ascii":return T(this,De,ae);case"latin1":case"binary":return I(this,De,ae);case"base64":return r(this,De,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,De,ae);default:if(we)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),we=!0}}function de(Ie,De,ae){var we=Ie[De];Ie[De]=Ie[ae],Ie[ae]=we}function te(Ie,De,ae,we,ye){if(0===Ie.length)return-1;if("string"==typeof ae?(we=ae,ae=0):ae>2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),Ae(ae=+ae)&&(ae=ye?0:Ie.length-1),ae<0&&(ae=Ie.length+ae),ae>=Ie.length){if(ye)return-1;ae=Ie.length-1}else if(ae<0){if(!ye)return-1;ae=0}if("string"==typeof De&&(De=d.from(De,we)),d.isBuffer(De))return 0===De.length?-1:ie(Ie,De,ae,we,ye);if("number"==typeof De)return De&=255,"function"==typeof Uint8Array.prototype.indexOf?ye?Uint8Array.prototype.indexOf.call(Ie,De,ae):Uint8Array.prototype.lastIndexOf.call(Ie,De,ae):ie(Ie,[De],ae,we,ye);throw new TypeError("val must be string, number or Buffer")}function ie(Ie,De,ae,we,ye){var He,Y=1,z=Ie.length,be=De.length;if(void 0!==we&&("ucs2"===(we=String(we).toLowerCase())||"ucs-2"===we||"utf16le"===we||"utf-16le"===we)){if(Ie.length<2||De.length<2)return-1;Y=2,z/=2,be/=2,ae/=2}function fe(di,Wt){return 1===Y?di[Wt]:di.readUInt16BE(Wt*Y)}if(ye){var pt=-1;for(He=ae;He<z;He++)if(fe(Ie,He)===fe(De,-1===pt?0:He-pt)){if(-1===pt&&(pt=He),He-pt+1===be)return pt*Y}else-1!==pt&&(He-=He-pt),pt=-1}else for(ae+be>z&&(ae=z-be),He=ae;He>=0;He--){for(var et=!0,Lt=0;Lt<be;Lt++)if(fe(Ie,He+Lt)!==fe(De,Lt)){et=!1;break}if(et)return He}return-1}function le(Ie,De,ae,we){ae=Number(ae)||0;var ye=Ie.length-ae;we?(we=Number(we))>ye&&(we=ye):we=ye;var Y=De.length;we>Y/2&&(we=Y/2);for(var z=0;z<we;++z){var be=parseInt(De.substr(2*z,2),16);if(Ae(be))return z;Ie[ae+z]=be}return z}function $(Ie,De,ae,we){return Ce(Pe(De,Ie.length-ae),Ie,ae,we)}function ge(Ie,De,ae,we){return Ce(function Se(Ie){for(var De=[],ae=0;ae<Ie.length;++ae)De.push(255&Ie.charCodeAt(ae));return De}(De),Ie,ae,we)}function C(Ie,De,ae,we){return Ce(Ue(De),Ie,ae,we)}function i(Ie,De,ae,we){return Ce(function Q(Ie,De){for(var ae,we,Y=[],z=0;z<Ie.length&&!((De-=2)<0);++z)we=(ae=Ie.charCodeAt(z))>>8,Y.push(ae%256),Y.push(we);return Y}(De,Ie.length-ae),Ie,ae,we)}function r(Ie,De,ae){return t.fromByteArray(0===De&&ae===Ie.length?Ie:Ie.slice(De,ae))}function u(Ie,De,ae){ae=Math.min(Ie.length,ae);for(var we=[],ye=De;ye<ae;){var fe,He,pt,et,Y=Ie[ye],z=null,be=Y>239?4:Y>223?3:Y>191?2:1;if(ye+be<=ae)switch(be){case 1:Y<128&&(z=Y);break;case 2:128==(192&(fe=Ie[ye+1]))&&(et=(31&Y)<<6|63&fe)>127&&(z=et);break;case 3:He=Ie[ye+2],128==(192&(fe=Ie[ye+1]))&&128==(192&He)&&(et=(15&Y)<<12|(63&fe)<<6|63&He)>2047&&(et<55296||et>57343)&&(z=et);break;case 4:He=Ie[ye+2],pt=Ie[ye+3],128==(192&(fe=Ie[ye+1]))&&128==(192&He)&&128==(192&pt)&&(et=(15&Y)<<18|(63&fe)<<12|(63&He)<<6|63&pt)>65535&&et<1114112&&(z=et)}null===z?(z=65533,be=1):z>65535&&(we.push((z-=65536)>>>10&1023|55296),z=56320|1023&z),we.push(z),ye+=be}return function v(Ie){var De=Ie.length;if(De<=c)return String.fromCharCode.apply(String,Ie);for(var ae="",we=0;we<De;)ae+=String.fromCharCode.apply(String,Ie.slice(we,we+=c));return ae}(we)}K.kMaxLength=M,!(d.TYPED_ARRAY_SUPPORT=function s(){try{var Ie=new Uint8Array(1),De={foo:function(){return 42}};return Object.setPrototypeOf(De,Uint8Array.prototype),Object.setPrototypeOf(Ie,De),42===Ie.foo()}catch(ae){return!1}}())&&"undefined"!=typeof console&&"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(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(Ie,De,ae){return R(Ie,De,ae)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(Ie,De,ae){return function L(Ie,De,ae){return h(Ie),Ie<=0?b(Ie):void 0!==De?"string"==typeof ae?b(Ie).fill(De,ae):b(Ie).fill(De):b(Ie)}(Ie,De,ae)},d.allocUnsafe=function(Ie){return w(Ie)},d.allocUnsafeSlow=function(Ie){return w(Ie)},d.isBuffer=function(De){return null!=De&&!0===De._isBuffer&&De!==d.prototype},d.compare=function(De,ae){if(q(De,Uint8Array)&&(De=d.from(De,De.offset,De.byteLength)),q(ae,Uint8Array)&&(ae=d.from(ae,ae.offset,ae.byteLength)),!d.isBuffer(De)||!d.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(De===ae)return 0;for(var we=De.length,ye=ae.length,Y=0,z=Math.min(we,ye);Y<z;++Y)if(De[Y]!==ae[Y]){we=De[Y],ye=ae[Y];break}return we<ye?-1:ye<we?1:0},d.isEncoding=function(De){switch(String(De).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}},d.concat=function(De,ae){if(!Array.isArray(De))throw new TypeError('"list" argument must be an Array of Buffers');if(0===De.length)return d.alloc(0);var we;if(void 0===ae)for(ae=0,we=0;we<De.length;++we)ae+=De[we].length;var ye=d.allocUnsafe(ae),Y=0;for(we=0;we<De.length;++we){var z=De[we];if(q(z,Uint8Array))Y+z.length>ye.length?d.from(z).copy(ye,Y):Uint8Array.prototype.set.call(ye,z,Y);else{if(!d.isBuffer(z))throw new TypeError('"list" argument must be an Array of Buffers');z.copy(ye,Y)}Y+=z.length}return ye},d.byteLength=ne,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var De=this.length;if(De%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;ae<De;ae+=2)de(this,ae,ae+1);return this},d.prototype.swap32=function(){var De=this.length;if(De%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var ae=0;ae<De;ae+=4)de(this,ae,ae+3),de(this,ae+1,ae+2);return this},d.prototype.swap64=function(){var De=this.length;if(De%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var ae=0;ae<De;ae+=8)de(this,ae,ae+7),de(this,ae+1,ae+6),de(this,ae+2,ae+5),de(this,ae+3,ae+4);return this},d.prototype.toLocaleString=d.prototype.toString=function(){var De=this.length;return 0===De?"":0===arguments.length?u(this,0,De):ee.apply(this,arguments)},d.prototype.equals=function(De){if(!d.isBuffer(De))throw new TypeError("Argument must be a Buffer");return this===De||0===d.compare(this,De)},d.prototype.inspect=function(){var De="",ae=K.INSPECT_MAX_BYTES;return De=this.toString("hex",0,ae).replace(/(.{2})/g,"$1 ").trim(),this.length>ae&&(De+=" ... "),"<Buffer "+De+">"},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(De,ae,we,ye,Y){if(q(De,Uint8Array)&&(De=d.from(De,De.offset,De.byteLength)),!d.isBuffer(De))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof De);if(void 0===ae&&(ae=0),void 0===we&&(we=De?De.length:0),void 0===ye&&(ye=0),void 0===Y&&(Y=this.length),ae<0||we>De.length||ye<0||Y>this.length)throw new RangeError("out of range index");if(ye>=Y&&ae>=we)return 0;if(ye>=Y)return-1;if(ae>=we)return 1;if(this===De)return 0;for(var z=(Y>>>=0)-(ye>>>=0),be=(we>>>=0)-(ae>>>=0),fe=Math.min(z,be),He=this.slice(ye,Y),pt=De.slice(ae,we),et=0;et<fe;++et)if(He[et]!==pt[et]){z=He[et],be=pt[et];break}return z<be?-1:be<z?1:0},d.prototype.includes=function(De,ae,we){return-1!==this.indexOf(De,ae,we)},d.prototype.indexOf=function(De,ae,we){return te(this,De,ae,we,!0)},d.prototype.lastIndexOf=function(De,ae,we){return te(this,De,ae,we,!1)},d.prototype.write=function(De,ae,we,ye){if(void 0===ae)ye="utf8",we=this.length,ae=0;else if(void 0===we&&"string"==typeof ae)ye=ae,we=this.length,ae=0;else{if(!isFinite(ae))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ae>>>=0,isFinite(we)?(we>>>=0,void 0===ye&&(ye="utf8")):(ye=we,we=void 0)}var Y=this.length-ae;if((void 0===we||we>Y)&&(we=Y),De.length>0&&(we<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var z=!1;;)switch(ye){case"hex":return le(this,De,ae,we);case"utf8":case"utf-8":return $(this,De,ae,we);case"ascii":case"latin1":case"binary":return ge(this,De,ae,we);case"base64":return C(this,De,ae,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,De,ae,we);default:if(z)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),z=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function T(Ie,De,ae){var we="";ae=Math.min(Ie.length,ae);for(var ye=De;ye<ae;++ye)we+=String.fromCharCode(127&Ie[ye]);return we}function I(Ie,De,ae){var we="";ae=Math.min(Ie.length,ae);for(var ye=De;ye<ae;++ye)we+=String.fromCharCode(Ie[ye]);return we}function y(Ie,De,ae){var we=Ie.length;(!De||De<0)&&(De=0),(!ae||ae<0||ae>we)&&(ae=we);for(var ye="",Y=De;Y<ae;++Y)ye+=ut[Ie[Y]];return ye}function n(Ie,De,ae){for(var we=Ie.slice(De,ae),ye="",Y=0;Y<we.length-1;Y+=2)ye+=String.fromCharCode(we[Y]+256*we[Y+1]);return ye}function _(Ie,De,ae){if(Ie%1!=0||Ie<0)throw new RangeError("offset is not uint");if(Ie+De>ae)throw new RangeError("Trying to access beyond buffer length")}function B(Ie,De,ae,we,ye,Y){if(!d.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(De>ye||De<Y)throw new RangeError('"value" argument is out of bounds');if(ae+we>Ie.length)throw new RangeError("Index out of range")}function N(Ie,De,ae,we,ye,Y){if(ae+we>Ie.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function H(Ie,De,ae,we,ye){return De=+De,ae>>>=0,ye||N(Ie,0,ae,4),e.write(Ie,De,ae,we,23,4),ae+4}function J(Ie,De,ae,we,ye){return De=+De,ae>>>=0,ye||N(Ie,0,ae,8),e.write(Ie,De,ae,we,52,8),ae+8}d.prototype.slice=function(De,ae){var we=this.length;(De=~~De)<0?(De+=we)<0&&(De=0):De>we&&(De=we),(ae=void 0===ae?we:~~ae)<0?(ae+=we)<0&&(ae=0):ae>we&&(ae=we),ae<De&&(ae=De);var ye=this.subarray(De,ae);return Object.setPrototypeOf(ye,d.prototype),ye},d.prototype.readUintLE=d.prototype.readUIntLE=function(De,ae,we){De>>>=0,ae>>>=0,we||_(De,ae,this.length);for(var ye=this[De],Y=1,z=0;++z<ae&&(Y*=256);)ye+=this[De+z]*Y;return ye},d.prototype.readUintBE=d.prototype.readUIntBE=function(De,ae,we){De>>>=0,ae>>>=0,we||_(De,ae,this.length);for(var ye=this[De+--ae],Y=1;ae>0&&(Y*=256);)ye+=this[De+--ae]*Y;return ye},d.prototype.readUint8=d.prototype.readUInt8=function(De,ae){return De>>>=0,ae||_(De,1,this.length),this[De]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(De,ae){return De>>>=0,ae||_(De,2,this.length),this[De]|this[De+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(De,ae){return De>>>=0,ae||_(De,2,this.length),this[De]<<8|this[De+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(De,ae){return De>>>=0,ae||_(De,4,this.length),(this[De]|this[De+1]<<8|this[De+2]<<16)+16777216*this[De+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(De,ae){return De>>>=0,ae||_(De,4,this.length),16777216*this[De]+(this[De+1]<<16|this[De+2]<<8|this[De+3])},d.prototype.readIntLE=function(De,ae,we){De>>>=0,ae>>>=0,we||_(De,ae,this.length);for(var ye=this[De],Y=1,z=0;++z<ae&&(Y*=256);)ye+=this[De+z]*Y;return ye>=(Y*=128)&&(ye-=Math.pow(2,8*ae)),ye},d.prototype.readIntBE=function(De,ae,we){De>>>=0,ae>>>=0,we||_(De,ae,this.length);for(var ye=ae,Y=1,z=this[De+--ye];ye>0&&(Y*=256);)z+=this[De+--ye]*Y;return z>=(Y*=128)&&(z-=Math.pow(2,8*ae)),z},d.prototype.readInt8=function(De,ae){return De>>>=0,ae||_(De,1,this.length),128&this[De]?-1*(255-this[De]+1):this[De]},d.prototype.readInt16LE=function(De,ae){De>>>=0,ae||_(De,2,this.length);var we=this[De]|this[De+1]<<8;return 32768&we?4294901760|we:we},d.prototype.readInt16BE=function(De,ae){De>>>=0,ae||_(De,2,this.length);var we=this[De+1]|this[De]<<8;return 32768&we?4294901760|we:we},d.prototype.readInt32LE=function(De,ae){return De>>>=0,ae||_(De,4,this.length),this[De]|this[De+1]<<8|this[De+2]<<16|this[De+3]<<24},d.prototype.readInt32BE=function(De,ae){return De>>>=0,ae||_(De,4,this.length),this[De]<<24|this[De+1]<<16|this[De+2]<<8|this[De+3]},d.prototype.readFloatLE=function(De,ae){return De>>>=0,ae||_(De,4,this.length),e.read(this,De,!0,23,4)},d.prototype.readFloatBE=function(De,ae){return De>>>=0,ae||_(De,4,this.length),e.read(this,De,!1,23,4)},d.prototype.readDoubleLE=function(De,ae){return De>>>=0,ae||_(De,8,this.length),e.read(this,De,!0,52,8)},d.prototype.readDoubleBE=function(De,ae){return De>>>=0,ae||_(De,8,this.length),e.read(this,De,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(De,ae,we,ye){De=+De,ae>>>=0,we>>>=0,ye||B(this,De,ae,we,Math.pow(2,8*we)-1,0);var z=1,be=0;for(this[ae]=255&De;++be<we&&(z*=256);)this[ae+be]=De/z&255;return ae+we},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(De,ae,we,ye){De=+De,ae>>>=0,we>>>=0,ye||B(this,De,ae,we,Math.pow(2,8*we)-1,0);var z=we-1,be=1;for(this[ae+z]=255&De;--z>=0&&(be*=256);)this[ae+z]=De/be&255;return ae+we},d.prototype.writeUint8=d.prototype.writeUInt8=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,1,255,0),this[ae]=255&De,ae+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,2,65535,0),this[ae]=255&De,this[ae+1]=De>>>8,ae+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,2,65535,0),this[ae]=De>>>8,this[ae+1]=255&De,ae+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,4,4294967295,0),this[ae+3]=De>>>24,this[ae+2]=De>>>16,this[ae+1]=De>>>8,this[ae]=255&De,ae+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,4,4294967295,0),this[ae]=De>>>24,this[ae+1]=De>>>16,this[ae+2]=De>>>8,this[ae+3]=255&De,ae+4},d.prototype.writeIntLE=function(De,ae,we,ye){if(De=+De,ae>>>=0,!ye){var Y=Math.pow(2,8*we-1);B(this,De,ae,we,Y-1,-Y)}var z=0,be=1,fe=0;for(this[ae]=255&De;++z<we&&(be*=256);)De<0&&0===fe&&0!==this[ae+z-1]&&(fe=1),this[ae+z]=(De/be>>0)-fe&255;return ae+we},d.prototype.writeIntBE=function(De,ae,we,ye){if(De=+De,ae>>>=0,!ye){var Y=Math.pow(2,8*we-1);B(this,De,ae,we,Y-1,-Y)}var z=we-1,be=1,fe=0;for(this[ae+z]=255&De;--z>=0&&(be*=256);)De<0&&0===fe&&0!==this[ae+z+1]&&(fe=1),this[ae+z]=(De/be>>0)-fe&255;return ae+we},d.prototype.writeInt8=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,1,127,-128),De<0&&(De=255+De+1),this[ae]=255&De,ae+1},d.prototype.writeInt16LE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,2,32767,-32768),this[ae]=255&De,this[ae+1]=De>>>8,ae+2},d.prototype.writeInt16BE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,2,32767,-32768),this[ae]=De>>>8,this[ae+1]=255&De,ae+2},d.prototype.writeInt32LE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,4,2147483647,-2147483648),this[ae]=255&De,this[ae+1]=De>>>8,this[ae+2]=De>>>16,this[ae+3]=De>>>24,ae+4},d.prototype.writeInt32BE=function(De,ae,we){return De=+De,ae>>>=0,we||B(this,De,ae,4,2147483647,-2147483648),De<0&&(De=4294967295+De+1),this[ae]=De>>>24,this[ae+1]=De>>>16,this[ae+2]=De>>>8,this[ae+3]=255&De,ae+4},d.prototype.writeFloatLE=function(De,ae,we){return H(this,De,ae,!0,we)},d.prototype.writeFloatBE=function(De,ae,we){return H(this,De,ae,!1,we)},d.prototype.writeDoubleLE=function(De,ae,we){return J(this,De,ae,!0,we)},d.prototype.writeDoubleBE=function(De,ae,we){return J(this,De,ae,!1,we)},d.prototype.copy=function(De,ae,we,ye){if(!d.isBuffer(De))throw new TypeError("argument should be a Buffer");if(we||(we=0),!ye&&0!==ye&&(ye=this.length),ae>=De.length&&(ae=De.length),ae||(ae=0),ye>0&&ye<we&&(ye=we),ye===we||0===De.length||0===this.length)return 0;if(ae<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),De.length-ae<ye-we&&(ye=De.length-ae+we);var Y=ye-we;return this===De&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(ae,we,ye):Uint8Array.prototype.set.call(De,this.subarray(we,ye),ae),Y},d.prototype.fill=function(De,ae,we,ye){if("string"==typeof De){if("string"==typeof ae?(ye=ae,ae=0,we=this.length):"string"==typeof we&&(ye=we,we=this.length),void 0!==ye&&"string"!=typeof ye)throw new TypeError("encoding must be a string");if("string"==typeof ye&&!d.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);if(1===De.length){var Y=De.charCodeAt(0);("utf8"===ye&&Y<128||"latin1"===ye)&&(De=Y)}}else"number"==typeof De?De&=255:"boolean"==typeof De&&(De=Number(De));if(ae<0||this.length<ae||this.length<we)throw new RangeError("Out of range index");if(we<=ae)return this;var z;if(ae>>>=0,we=void 0===we?this.length:we>>>0,De||(De=0),"number"==typeof De)for(z=ae;z<we;++z)this[z]=De;else{var be=d.isBuffer(De)?De:d.from(De,ye),fe=be.length;if(0===fe)throw new TypeError('The value "'+De+'" is invalid for argument "value"');for(z=0;z<we-ae;++z)this[z+ae]=be[z%fe]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function Pe(Ie,De){De=De||1/0;for(var ae,we=Ie.length,ye=null,Y=[],z=0;z<we;++z){if((ae=Ie.charCodeAt(z))>55295&&ae<57344){if(!ye){if(ae>56319){(De-=3)>-1&&Y.push(239,191,189);continue}if(z+1===we){(De-=3)>-1&&Y.push(239,191,189);continue}ye=ae;continue}if(ae<56320){(De-=3)>-1&&Y.push(239,191,189),ye=ae;continue}ae=65536+(ye-55296<<10|ae-56320)}else ye&&(De-=3)>-1&&Y.push(239,191,189);if(ye=null,ae<128){if((De-=1)<0)break;Y.push(ae)}else if(ae<2048){if((De-=2)<0)break;Y.push(ae>>6|192,63&ae|128)}else if(ae<65536){if((De-=3)<0)break;Y.push(ae>>12|224,ae>>6&63|128,63&ae|128)}else{if(!(ae<1114112))throw new Error("Invalid code point");if((De-=4)<0)break;Y.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,63&ae|128)}}return Y}function Ue(Ie){return t.toByteArray(function xe(Ie){if((Ie=(Ie=Ie.split("=")[0]).trim().replace(ue,"")).length<2)return"";for(;Ie.length%4!=0;)Ie+="=";return Ie}(Ie))}function Ce(Ie,De,ae,we){for(var ye=0;ye<we&&!(ye+ae>=De.length||ye>=Ie.length);++ye)De[ye+ae]=Ie[ye];return ye}function q(Ie,De){return Ie instanceof De||null!=Ie&&null!=Ie.constructor&&null!=Ie.constructor.name&&Ie.constructor.name===De.name}function Ae(Ie){return Ie!=Ie}var ut=function(){for(var Ie="0123456789abcdef",De=new Array(256),ae=0;ae<16;++ae)for(var we=16*ae,ye=0;ye<16;++ye)De[we+ye]=Ie[ae]+Ie[ye];return De}()},1052:(ze,K,p)=>{var t=p(3502).Buffer,e=p(295).Transform,f=p(3054).s;function s(b){e.call(this),this.hashMode="string"==typeof b,this.hashMode?this[b]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(s,e),s.prototype.update=function(b,d,R){"string"==typeof b&&(b=t.from(b,d));var h=this._update(b);return this.hashMode?this:(R&&(h=this._toString(h,R)),h)},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(b,d,R){var h;try{this.hashMode?this._update(b):this.push(this._update(b))}catch(L){h=L}finally{R(h)}},s.prototype._flush=function(b){var d;try{this.push(this.__final())}catch(R){d=R}b(d)},s.prototype._finalOrDigest=function(b){var d=this.__final()||t.alloc(0);return b&&(d=this._toString(d,b,!0)),d},s.prototype._toString=function(b,d,R){if(this._decoder||(this._decoder=new f(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var h=this._decoder.write(b);return R&&(h+=this._decoder.end()),h},ze.exports=s},7293:(ze,K,p)=>{"use strict";const t=p(4315),e=p(2872),f=p(717);ze.exports=function M(d,R){switch(e(d)){case"object":return function s(d,R){if("function"==typeof R)return R(d);if(R||f(d)){const h=new d.constructor;for(let L in d)h[L]=M(d[L],R);return h}return d}(d,R);case"array":return function b(d,R){const h=new d.constructor(d.length);for(let L=0;L<d.length;L++)h[L]=M(d[L],R);return h}(d,R);default:return t(d)}}},6128:function(ze){!function(K){"use strict";var p={bytesToHex:function(f){return function t(f){return f.map(function(M){return function e(f,M){return f.length>M?f:Array(M-f.length+1).join("0")+f}(M.toString(16),2)}).join("")}(f)},hexToBytes:function(f){if(f.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===f.indexOf("0x")&&(f=f.slice(2)),f.match(/../g).map(function(M){return parseInt(M,16)})}};ze.exports?ze.exports=p:K.convertHex=p}(this)},5612:function(ze){!function(K){"use strict";var p={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};p.UTF8={bytesToString:function(t){return decodeURIComponent(escape(p.bytesToString(t)))},stringToBytes:function(t){return p.stringToBytes(unescape(encodeURIComponent(t)))}},ze.exports?ze.exports=p:K.convertString=p}(this)},4746:(ze,K,p)=>{var t=p(7715),e=p(6422);ze.exports=function(d){return new M(d)};var f={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function M(b){this.curveType=f[b],this.curveType||(this.curveType={name:b}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(b,d,R){Array.isArray(b)||(b=b.toArray());var h=new Buffer(b);if(R&&h.length<R){var L=new Buffer(R-h.length);L.fill(0),h=Buffer.concat([L,h])}return d?h.toString(d):h}f.p224=f.secp224r1,f.p256=f.secp256r1=f.prime256v1,f.p192=f.secp192r1=f.prime192v1,f.p384=f.secp384r1,f.p521=f.secp521r1,M.prototype.generateKeys=function(b,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(b,d)},M.prototype.computeSecret=function(b,d,R){return d=d||"utf8",Buffer.isBuffer(b)||(b=new Buffer(b,d)),s(this.curve.keyFromPublic(b).getPublic().mul(this.keys.getPrivate()).getX(),R,this.curveType.byteLength)},M.prototype.getPublicKey=function(b,d){var R=this.keys.getPublic("compressed"===d,!0);return"hybrid"===d&&(R[0]=R[R.length-1]%2?7:6),s(R,b)},M.prototype.getPrivateKey=function(b){return s(this.keys.getPrivate(),b)},M.prototype.setPublicKey=function(b,d){return d=d||"utf8",Buffer.isBuffer(b)||(b=new Buffer(b,d)),this.keys._importPublic(b),this},M.prototype.setPrivateKey=function(b,d){d=d||"utf8",Buffer.isBuffer(b)||(b=new Buffer(b,d));var R=new e(b);return R=R.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(R),this}},6422:function(ze,K,p){!function(t,e){"use strict";function f(C,i){if(!C)throw new Error(i||"Assertion failed")}function M(C,i){C.super_=i;var r=function(){};r.prototype=i.prototype,C.prototype=new r,C.prototype.constructor=C}function s(C,i,r){if(s.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,null!==C&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(C||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(8623).Buffer}catch(C){}function d(C,i){var r=C.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(C,i,r){var u=d(C,r);return r-1>=i&&(u|=d(C,r-1)<<4),u}function h(C,i,r,u){for(var c=0,v=Math.min(C.length,r),T=i;T<v;T++){var I=C.charCodeAt(T)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}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,r){return i.cmp(r)>0?i:r},s.min=function(i,r){return i.cmp(r)<0?i:r},s.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<i.length&&(16===r?this._parseHex(i,c,u):(this._parseBase(i,r,c),"le"===u&&this._initArray(this.toArray(),r,u)))},s.prototype._initNumber=function(i,r,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):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},s.prototype._initArray=function(i,r,u){if(f("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 c=0;c<this.length;c++)this.words[c]=0;var v,T,I=0;if("be"===u)for(c=i.length-1,v=0;c>=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c<i.length;c+=3)this.words[v]|=(T=i[c]|i[c+1]<<8|i[c+2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},s.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,v=0,T=0;if("be"===u)for(c=i.length-1;c>=r;c-=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c<i.length;c+=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_<y;_+=c)n=h(i,_,_+c,r),this.imuln(v),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var B=1;for(n=h(i,_,i.length,r),_=0;_<I;_++)B*=r;this.imuln(B),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 r=0;r<this.length;r++)i.words[r]=this.words[r];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 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"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(C,i,r){r.negative=i.negative^C.negative;var u=C.length+i.length|0;r.length=u,u=u-1|0;var c=0|C.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=y>>>26,B=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-C.length+1);H<=N;H++)_+=(T=(c=0|C.words[n-H|0])*(v=0|i.words[H])+B)/67108864|0,B=67108863&T;r.words[n]=0|B,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}s.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T<this.length;T++){var I=this.words[T],y=(16777215&(I<<c|v)).toString(16);u=0!=(v=I>>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},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&&f(!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,r){return f(void 0!==b),this.toArrayLike(b,i,r)},s.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},s.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n<v;n++)I[n]=0}else{for(n=0;n<v-c;n++)I[n]=0;for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[v-n-1]=y}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},s.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},s.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);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 r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},s.prototype.ior=function(i){return f(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 r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},s.prototype.iand=function(i){return f(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 r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;c<u.length;c++)this.words[c]=r.words[c]^u.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},s.prototype.ixor=function(i){return f(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){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return u>0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<c:this.words[u]&~(1<<c),this.strip()},s.prototype.iadd=function(i){var r,u,c;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T<c.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+(0|c.words[T])+v),v=r>>>26;for(;0!==v&&T<u.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+v),v=r>>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;T<u.length;T++)this.words[T]=u.words[T];return this},s.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):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 r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I<v.length;I++)T=(r=(0|c.words[I])-(0|v.words[I])+T)>>26,this.words[I]=67108863&r;for(;0!==T&&I<c.length;I++)T=(r=(0|c.words[I])+T)>>26,this.words[I]=67108863&r;if(0===T&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var E=function(i,r,u){var y,n,_,c=i.words,v=r.words,T=u.words,I=0,B=0|c[0],N=8191&B,H=B>>>13,J=0|c[1],ue=8191&J,xe=J>>>13,Pe=0|c[2],Se=8191&Pe,Q=Pe>>>13,Ue=0|c[3],Ce=8191&Ue,q=Ue>>>13,Ae=0|c[4],ut=8191&Ae,Ie=Ae>>>13,De=0|c[5],ae=8191&De,we=De>>>13,ye=0|c[6],Y=8191&ye,z=ye>>>13,be=0|c[7],fe=8191&be,He=be>>>13,pt=0|c[8],et=8191&pt,Lt=pt>>>13,di=0|c[9],Wt=8191&di,Gt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],tt=8191&gt,xt=gt>>>13,ei=0|v[2],Kt=8191&ei,Re=ei>>>13,Oe=0|v[3],ce=8191&Oe,ve=Oe>>>13,ht=0|v[4],mt=8191&ht,Ht=ht>>>13,it=0|v[5],Ne=8191&it,nt=it>>>13,Xe=0|v[6],Ee=8191&Xe,Ge=Xe>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,$t=mi>>>13,Ki=0|v[9],hi=8191&Ki,ai=Ki>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(ue,Ot),n=(n=Math.imul(ue,Nt))+Math.imul(xe,Ot)|0,_=Math.imul(xe,Nt);var Gi=(I+(y=y+Math.imul(N,tt)|0)|0)+((8191&(n=(n=n+Math.imul(N,xt)|0)+Math.imul(H,tt)|0))<<13)|0;I=((_=_+Math.imul(H,xt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,y=Math.imul(Se,Ot),n=(n=Math.imul(Se,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(ue,tt)|0,n=(n=n+Math.imul(ue,xt)|0)+Math.imul(xe,tt)|0,_=_+Math.imul(xe,xt)|0;var zi=(I+(y=y+Math.imul(N,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,y=Math.imul(Ce,Ot),n=(n=Math.imul(Ce,Nt))+Math.imul(q,Ot)|0,_=Math.imul(q,Nt),y=y+Math.imul(Se,tt)|0,n=(n=n+Math.imul(Se,xt)|0)+Math.imul(Q,tt)|0,_=_+Math.imul(Q,xt)|0,y=y+Math.imul(ue,Kt)|0,n=(n=n+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0,_=_+Math.imul(xe,Re)|0;var Ui=(I+(y=y+Math.imul(N,ce)|0)|0)+((8191&(n=(n=n+Math.imul(N,ve)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,ve)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Ie,Ot)|0,_=Math.imul(Ie,Nt),y=y+Math.imul(Ce,tt)|0,n=(n=n+Math.imul(Ce,xt)|0)+Math.imul(q,tt)|0,_=_+Math.imul(q,xt)|0,y=y+Math.imul(Se,Kt)|0,n=(n=n+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(ue,ce)|0,n=(n=n+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0,_=_+Math.imul(xe,ve)|0;var Be=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ht)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,y=Math.imul(ae,Ot),n=(n=Math.imul(ae,Nt))+Math.imul(we,Ot)|0,_=Math.imul(we,Nt),y=y+Math.imul(ut,tt)|0,n=(n=n+Math.imul(ut,xt)|0)+Math.imul(Ie,tt)|0,_=_+Math.imul(Ie,xt)|0,y=y+Math.imul(Ce,Kt)|0,n=(n=n+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,_=_+Math.imul(q,Re)|0,y=y+Math.imul(Se,ce)|0,n=(n=n+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,_=_+Math.imul(Q,ve)|0,y=y+Math.imul(ue,mt)|0,n=(n=n+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0,_=_+Math.imul(xe,Ht)|0;var Tt=(I+(y=y+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,nt)|0)+Math.imul(H,Ne)|0))<<13)|0;I=((_=_+Math.imul(H,nt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Y,Ot),n=(n=Math.imul(Y,Nt))+Math.imul(z,Ot)|0,_=Math.imul(z,Nt),y=y+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,xt)|0)+Math.imul(we,tt)|0,_=_+Math.imul(we,xt)|0,y=y+Math.imul(ut,Kt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,_=_+Math.imul(Ie,Re)|0,y=y+Math.imul(Ce,ce)|0,n=(n=n+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,_=_+Math.imul(q,ve)|0,y=y+Math.imul(Se,mt)|0,n=(n=n+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ht)|0,y=y+Math.imul(ue,Ne)|0,n=(n=n+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0,_=_+Math.imul(xe,nt)|0;var _e=(I+(y=y+Math.imul(N,Ee)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ee)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(He,Ot)|0,_=Math.imul(He,Nt),y=y+Math.imul(Y,tt)|0,n=(n=n+Math.imul(Y,xt)|0)+Math.imul(z,tt)|0,_=_+Math.imul(z,xt)|0,y=y+Math.imul(ae,Kt)|0,n=(n=n+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,_=_+Math.imul(we,Re)|0,y=y+Math.imul(ut,ce)|0,n=(n=n+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,_=_+Math.imul(Ie,ve)|0,y=y+Math.imul(Ce,mt)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,_=_+Math.imul(q,Ht)|0,y=y+Math.imul(Se,Ne)|0,n=(n=n+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,_=_+Math.imul(Q,nt)|0,y=y+Math.imul(ue,Ee)|0,n=(n=n+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0,_=_+Math.imul(xe,Ge)|0;var Ke=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,y=Math.imul(et,Ot),n=(n=Math.imul(et,Nt))+Math.imul(Lt,Ot)|0,_=Math.imul(Lt,Nt),y=y+Math.imul(fe,tt)|0,n=(n=n+Math.imul(fe,xt)|0)+Math.imul(He,tt)|0,_=_+Math.imul(He,xt)|0,y=y+Math.imul(Y,Kt)|0,n=(n=n+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,_=_+Math.imul(z,Re)|0,y=y+Math.imul(ae,ce)|0,n=(n=n+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,_=_+Math.imul(we,ve)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,_=_+Math.imul(Ie,Ht)|0,y=y+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,_=_+Math.imul(q,nt)|0,y=y+Math.imul(Se,Ee)|0,n=(n=n+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(ue,lt)|0,n=(n=n+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0,_=_+Math.imul(xe,Ct)|0;var yt=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,$t)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,$t)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(Wt,Ot),n=(n=Math.imul(Wt,Nt))+Math.imul(Gt,Ot)|0,_=Math.imul(Gt,Nt),y=y+Math.imul(et,tt)|0,n=(n=n+Math.imul(et,xt)|0)+Math.imul(Lt,tt)|0,_=_+Math.imul(Lt,xt)|0,y=y+Math.imul(fe,Kt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,_=_+Math.imul(He,Re)|0,y=y+Math.imul(Y,ce)|0,n=(n=n+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,_=_+Math.imul(z,ve)|0,y=y+Math.imul(ae,mt)|0,n=(n=n+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,_=_+Math.imul(we,Ht)|0,y=y+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ie,nt)|0,y=y+Math.imul(Ce,Ee)|0,n=(n=n+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,_=_+Math.imul(q,Ge)|0,y=y+Math.imul(Se,lt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(ue,Jt)|0,n=(n=n+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0,_=_+Math.imul(xe,$t)|0;var re=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,ai)|0)+(n>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Wt,tt),n=(n=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,_=Math.imul(Gt,xt),y=y+Math.imul(et,Kt)|0,n=(n=n+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,_=_+Math.imul(Lt,Re)|0,y=y+Math.imul(fe,ce)|0,n=(n=n+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,_=_+Math.imul(He,ve)|0,y=y+Math.imul(Y,mt)|0,n=(n=n+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,_=_+Math.imul(z,Ht)|0,y=y+Math.imul(ae,Ne)|0,n=(n=n+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,_=_+Math.imul(we,nt)|0,y=y+Math.imul(ut,Ee)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,_=_+Math.imul(Ie,Ge)|0,y=y+Math.imul(Ce,lt)|0,n=(n=n+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,_=_+Math.imul(q,Ct)|0,y=y+Math.imul(Se,Jt)|0,n=(n=n+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,$t)|0;var qe=(I+(y=y+Math.imul(ue,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;I=((_=_+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(Wt,Kt),n=(n=Math.imul(Wt,Re))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Re),y=y+Math.imul(et,ce)|0,n=(n=n+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,_=_+Math.imul(Lt,ve)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,_=_+Math.imul(He,Ht)|0,y=y+Math.imul(Y,Ne)|0,n=(n=n+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,_=_+Math.imul(z,nt)|0,y=y+Math.imul(ae,Ee)|0,n=(n=n+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,_=_+Math.imul(we,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,Ct)|0,y=y+Math.imul(Ce,Jt)|0,n=(n=n+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,_=_+Math.imul(q,$t)|0;var bt=(I+(y=y+Math.imul(Se,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,ai)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Wt,ce),n=(n=Math.imul(Wt,ve))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,ve),y=y+Math.imul(et,mt)|0,n=(n=n+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,_=_+Math.imul(Lt,Ht)|0,y=y+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,_=_+Math.imul(He,nt)|0,y=y+Math.imul(Y,Ee)|0,n=(n=n+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,_=_+Math.imul(z,Ge)|0,y=y+Math.imul(ae,lt)|0,n=(n=n+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,_=_+Math.imul(we,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,_=_+Math.imul(Ie,$t)|0;var Vt=(I+(y=y+Math.imul(Ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0))<<13)|0;I=((_=_+Math.imul(q,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(Wt,mt),n=(n=Math.imul(Wt,Ht))+Math.imul(Gt,mt)|0,_=Math.imul(Gt,Ht),y=y+Math.imul(et,Ne)|0,n=(n=n+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,_=_+Math.imul(Lt,nt)|0,y=y+Math.imul(fe,Ee)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,_=_+Math.imul(He,Ge)|0,y=y+Math.imul(Y,lt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,_=_+Math.imul(z,Ct)|0,y=y+Math.imul(ae,Jt)|0,n=(n=n+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,_=_+Math.imul(we,$t)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0))<<13)|0;I=((_=_+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Wt,Ne),n=(n=Math.imul(Wt,nt))+Math.imul(Gt,Ne)|0,_=Math.imul(Gt,nt),y=y+Math.imul(et,Ee)|0,n=(n=n+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,_=_+Math.imul(Lt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,_=_+Math.imul(He,Ct)|0,y=y+Math.imul(Y,Jt)|0,n=(n=n+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,_=_+Math.imul(z,$t)|0;var wi=(I+(y=y+Math.imul(ae,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0))<<13)|0;I=((_=_+Math.imul(we,ai)|0)+(n>>>13)|0)+(wi>>>26)|0,wi&=67108863,y=Math.imul(Wt,Ee),n=(n=Math.imul(Wt,Ge))+Math.imul(Gt,Ee)|0,_=Math.imul(Gt,Ge),y=y+Math.imul(et,lt)|0,n=(n=n+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,_=_+Math.imul(Lt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,_=_+Math.imul(He,$t)|0;var Xi=(I+(y=y+Math.imul(Y,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0))<<13)|0;I=((_=_+Math.imul(z,ai)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Wt,lt),n=(n=Math.imul(Wt,Ct))+Math.imul(Gt,lt)|0,_=Math.imul(Gt,Ct),y=y+Math.imul(et,Jt)|0,n=(n=n+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,_=_+Math.imul(Lt,$t)|0;var Zi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0))<<13)|0;I=((_=_+Math.imul(He,ai)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Wt,Jt),n=(n=Math.imul(Wt,$t))+Math.imul(Gt,Jt)|0,_=Math.imul(Gt,$t);var on=(I+(y=y+Math.imul(et,hi)|0)|0)+((8191&(n=(n=n+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0))<<13)|0;I=((_=_+Math.imul(Lt,ai)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var mn=(I+(y=Math.imul(Wt,hi))|0)+((8191&(n=(n=Math.imul(Wt,ai))+Math.imul(Gt,hi)|0))<<13)|0;return I=((_=Math.imul(Gt,ai))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,T[0]=Ji,T[1]=Gi,T[2]=zi,T[3]=Ui,T[4]=Be,T[5]=Tt,T[6]=_e,T[7]=Ke,T[8]=yt,T[9]=re,T[10]=qe,T[11]=bt,T[12]=Vt,T[13]=bi,T[14]=wi,T[15]=Xi,T[16]=Zi,T[17]=on,T[18]=mn,0!==I&&(T[19]=I,u.length++),u};function W(C,i,r){return(new j).mulp(C,i,r)}function j(C,i){this.x=C,this.y=i}Math.imul||(E=k),s.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function U(C,i,r){r.negative=i.negative^C.negative,r.length=C.length+i.length;for(var u=0,c=0,v=0;v<r.length-1;v++){var T=c;c=0;for(var I=67108863&u,y=Math.min(v,i.length-1),n=Math.max(0,v-C.length+1);n<=y;n++){var H=(0|C.words[v-n])*(0|i.words[n]),J=67108863&H;I=67108863&(J=J+I|0),c+=(T=(T=T+(H/67108864|0)|0)+(J>>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):W(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=s.prototype._countBits(i)-1,c=0;c<i;c++)r[c]=this.revBin(c,u,i);return r},j.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var c=0,v=0;v<r;v++)c|=(1&i)<<r-v-1,i>>=1;return c},j.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I<T;I++)c[I]=r[i[I]],v[I]=u[i[I]]},j.prototype.transform=function(i,r,u,c,v,T){this.permute(T,i,r,u,c,v);for(var I=1;I<v;I<<=1)for(var y=I<<1,n=Math.cos(2*Math.PI/y),_=Math.sin(2*Math.PI/y),B=0;B<v;B+=y)for(var N=n,H=_,J=0;J<I;J++){var ue=u[B+J],xe=c[B+J],Pe=u[B+J+I],Se=c[B+J+I],Q=N*Pe-H*Se;Se=N*Se+H*Pe,u[B+J]=ue+(Pe=Q),c[B+J]=xe+Se,u[B+J+I]=ue-Pe,c[B+J+I]=xe-Se,J!==y&&(Q=n*N-_*H,H=n*H+_*N,N=Q)}},j.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),c=1&u,v=0;for(u=u/2|0;u;u>>>=1)v++;return 1<<v+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c<u/2;c++){var v=i[c];i[c]=i[u-c-1],i[u-c-1]=v,v=r[c],r[c]=-r[u-c-1],r[u-c-1]=-v}},j.prototype.normalize13b=function(i,r){for(var u=0,c=0;c<r/2;c++){var v=8192*Math.round(i[2*c+1]/r)+Math.round(i[2*c]/r)+u;i[c]=67108863&v,u=v<67108864?0:v/67108864|0}return i},j.prototype.convert13b=function(i,r,u,c){for(var v=0,T=0;T<r;T++)u[2*T]=8191&(v+=0|i[T]),u[2*T+1]=8191&(v>>>=13),v>>>=13;for(T=2*r;T<c;++T)u[T]=0;f(0===v),f(0==(-8192&v))},j.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},j.prototype.mulp=function(i,r,u){var c=2*this.guessLen13b(i.length,r.length),v=this.makeRBT(c),T=this.stub(c),I=new Array(c),y=new Array(c),n=new Array(c),_=new Array(c),B=new Array(c),N=new Array(c),H=u.words;H.length=c,this.convert13b(i.words,i.length,I,c),this.convert13b(r.words,r.length,_,c),this.transform(I,T,y,n,c,v),this.transform(_,T,B,N,c,v);for(var J=0;J<c;J++){var ue=y[J]*B[J]-n[J]*N[J];n[J]=y[J]*N[J]+n[J]*B[J],y[J]=ue}return this.conjugate(y,n,c),this.transform(y,n,H,T,c,v),this.conjugate(H,T,c),this.normalize13b(H,c),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},s.prototype.mul=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},s.prototype.mulf=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),W(this,i,r)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var c=(0|this.words[u])*i,v=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,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 r=function S(C){for(var i=new Array(C.bitLength()),r=0;r<i.length;r++){var c=r%26;i[r]=(C.words[r/26|0]&1<<c)>>>c}return i}(i);if(0===r.length)return new s(1);for(var u=this,c=0;c<r.length&&0===r[c];c++,u=u.sqr());if(++c<r.length)for(var v=u.sqr();c<r.length;c++,v=v.sqr())0!==r[c]&&(u=u.mul(v));return u},s.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v<this.length;v++){var I=this.words[v]&c;this.words[v]=(0|this.words[v])-I<<r|T,T=I>>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v<u;v++)this.words[v]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,r,u){var c;f("number"==typeof i&&i>=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<<v,y=u;if(c-=T,c=Math.max(0,c),y){for(var n=0;n<T;n++)y.words[n]=this.words[n];y.length=T}if(0!==T)if(this.length>T)for(this.length-=T,n=0;n<this.length;n++)this.words[n]=this.words[n+T];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-v|B>>>v,_=B&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,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){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},s.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return f("number"==typeof i),f(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 r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+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,r,u){var v;this._expand(i.length+u);var T,I=0;for(v=0;v<i.length;v++){T=(0|this.words[v+u])+I;var y=(0|i.words[v])*r;I=((T-=67108863&y)>>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v<this.length-u;v++)I=(T=(0|this.words[v+u])+I)>>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v<this.length;v++)I=(T=-(0|this.words[v])+I)>>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new s(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=c.clone()._ishlnsubmul(v,1,y);0===B.negative&&(c=B,n&&(n.words[y]=1));for(var N=y-1;N>=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},s.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{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,r);var c,v,T},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 r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},s.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=new s(0),I=new s(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,J=1;0==(u.words[0]&J)&&H<26;++H,J<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},s.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(B=0===r.cmpn(1)?c:v).cmpn(0)<0&&B.iadd(i),B},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},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){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=c,this;for(var v=c,T=u;0!==v&&T<this.length;T++){var I=0|this.words[T];v=(I+=v)>>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:c<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 r=this.ucmp(i);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){c<v?r=-1:c>v&&(r=1);break}}return r},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 $(i)},s.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function ee(C,i){this.name=C,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 de(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(C){if("string"==typeof C){var i=s._prime(C);this.m=i.p,this.prime=i}else f(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function ge(C){$.call(this,C),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,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(de,ee),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v<c;v++)r.words[v]=i.words[v];if(r.length=c,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(r.words[r.length++]=T&u,v=10;v<i.length;v++){var I=0|i.words[v];i.words[v-10]=(I&u)<<4|T>>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var c=0|i.words[u];i.words[u]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},M(te,ee),M(ie,ee),M(le,ee),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var c=19*(0|i.words[u])+r,v=67108863&c;c>>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},s._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new te;else if("p192"===i)r=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return ne[i]=r,r},$.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},$.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},$.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},$.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},$.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},$.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},$.prototype.isqr=function(i){return this.imul(i,i.clone())},$.prototype.sqr=function(i){return this.mul(i,i)},$.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new s(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var J=N,ue=0;0!==J.cmp(T);ue++)J=J.redSqr();f(ue<H);var xe=this.pow(_,new s(1).iushln(H-ue-1));B=B.redMul(xe),_=xe.redSqr(),N=N.redMul(_),H=ue}return B},$.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},$.prototype.pow=function(i,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return i.clone();var c=new Array(16);c[0]=new s(1).toRed(this),c[1]=i;for(var v=2;v<c.length;v++)c[v]=this.mul(c[v-1],i);var T=c[0],I=0,y=0,n=r.bitLength()%26;for(0===n&&(n=26),v=r.length-1;v>=0;v--){for(var _=r.words[v],B=n-1;B>=0;B--){var N=_>>B&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===B)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},$.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},$.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},s.mont=function(i){return new ge(i)},M(ge,$),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new s(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},6386:(ze,K,p)=>{"use strict";var t=p(3894),e=p(8095),f=p(5634),M=p(5244),s=p(1052);function b(d){s.call(this,"digest"),this._hash=d}t(b,s),b.prototype._update=function(d){this._hash.update(d)},b.prototype._final=function(){return this._hash.digest()},ze.exports=function(R){return"md5"===(R=R.toLowerCase())?new e:"rmd160"===R||"ripemd160"===R?new f:new b(M(R))}},5640:(ze,K,p)=>{var t=p(8095);ze.exports=function(e){return(new t).update(e).digest()}},4529:(ze,K,p)=>{"use strict";var t=p(3894),e=p(7309),f=p(1052),M=p(3502).Buffer,s=p(5640),b=p(5634),d=p(5244),R=M.alloc(128);function h(L,w){f.call(this,"digest"),"string"==typeof w&&(w=M.from(w));var D="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=w,w.length>D?w=("rmd160"===L?new b:d(L)).update(w).digest():w.length<D&&(w=M.concat([w,R],D));for(var k=this._ipad=M.allocUnsafe(D),E=this._opad=M.allocUnsafe(D),U=0;U<D;U++)k[U]=54^w[U],E[U]=92^w[U];this._hash="rmd160"===L?new b:d(L),this._hash.update(k)}t(h,f),h.prototype._update=function(L){this._hash.update(L)},h.prototype._final=function(){var L=this._hash.digest();return("rmd160"===this._alg?new b:d(this._alg)).update(this._opad).update(L).digest()},ze.exports=function(w,D){return"rmd160"===(w=w.toLowerCase())||"ripemd160"===w?new h("rmd160",D):"md5"===w?new e(s,D):new h(w,D)}},7309:(ze,K,p)=>{"use strict";var t=p(3894),e=p(3502).Buffer,f=p(1052),M=e.alloc(128),s=64;function b(d,R){f.call(this,"digest"),"string"==typeof R&&(R=e.from(R)),this._alg=d,this._key=R,R.length>s?R=d(R):R.length<s&&(R=e.concat([R,M],s));for(var h=this._ipad=e.allocUnsafe(s),L=this._opad=e.allocUnsafe(s),w=0;w<s;w++)h[w]=54^R[w],L[w]=92^R[w];this._hash=[h]}t(b,f),b.prototype._update=function(d){this._hash.push(d)},b.prototype._final=function(){var d=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,d]))},ze.exports=b},1348:(ze,K,p)=>{"use strict";K.randomBytes=K.rng=K.pseudoRandomBytes=K.prng=p(3753),K.createHash=K.Hash=p(6386),K.createHmac=K.Hmac=p(4529);var t=p(7793),e=Object.keys(t),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);K.getHashes=function(){return f};var M=p(9357);K.pbkdf2=M.pbkdf2,K.pbkdf2Sync=M.pbkdf2Sync;var s=p(5255);K.Cipher=s.Cipher,K.createCipher=s.createCipher,K.Cipheriv=s.Cipheriv,K.createCipheriv=s.createCipheriv,K.Decipher=s.Decipher,K.createDecipher=s.createDecipher,K.Decipheriv=s.Decipheriv,K.createDecipheriv=s.createDecipheriv,K.getCiphers=s.getCiphers,K.listCiphers=s.listCiphers;var b=p(8829);K.DiffieHellmanGroup=b.DiffieHellmanGroup,K.createDiffieHellmanGroup=b.createDiffieHellmanGroup,K.getDiffieHellman=b.getDiffieHellman,K.createDiffieHellman=b.createDiffieHellman,K.DiffieHellman=b.DiffieHellman;var d=p(3923);K.createSign=d.createSign,K.Sign=d.Sign,K.createVerify=d.createVerify,K.Verify=d.Verify,K.createECDH=p(4746);var R=p(3701);K.publicEncrypt=R.publicEncrypt,K.privateEncrypt=R.privateEncrypt,K.publicDecrypt=R.publicDecrypt,K.privateDecrypt=R.privateDecrypt;var h=p(4275);K.randomFill=h.randomFill,K.randomFillSync=h.randomFillSync,K.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},K.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:(ze,K,p)=>{"use strict";K.utils=p(7451),K.Cipher=p(8170),K.DES=p(4631),K.CBC=p(9454),K.EDE=p(1862)},9454:(ze,K,p)=>{"use strict";var t=p(2391),e=p(3894),f={};function M(b){t.equal(b.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d<this.iv.length;d++)this.iv[d]=b[d]}K.instantiate=function s(b){function d(w){b.call(this,w),this._cbcInit()}e(d,b);for(var R=Object.keys(f),h=0;h<R.length;h++){var L=R[h];d.prototype[L]=f[L]}return d.create=function(D){return new d(D)},d},f._cbcInit=function(){var d=new M(this.options.iv);this._cbcState=d},f._update=function(d,R,h,L){var D=this.constructor.super_.prototype,S=this._cbcState.iv;if("encrypt"===this.type){for(var k=0;k<this.blockSize;k++)S[k]^=d[R+k];for(D._update.call(this,S,0,h,L),k=0;k<this.blockSize;k++)S[k]=h[L+k]}else{for(D._update.call(this,d,R,h,L),k=0;k<this.blockSize;k++)h[L+k]^=S[k];for(k=0;k<this.blockSize;k++)S[k]=d[R+k]}}},8170:(ze,K,p)=>{"use strict";var t=p(2391);function e(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}ze.exports=e,e.prototype._init=function(){},e.prototype.update=function(M){return 0===M.length?[]:"decrypt"===this.type?this._updateDecrypt(M):this._updateEncrypt(M)},e.prototype._buffer=function(M,s){for(var b=Math.min(this.buffer.length-this.bufferOff,M.length-s),d=0;d<b;d++)this.buffer[this.bufferOff+d]=M[s+d];return this.bufferOff+=b,b},e.prototype._flushBuffer=function(M,s){return this._update(this.buffer,0,M,s),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(M){var s=0,b=0,R=new Array(((this.bufferOff+M.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(s+=this._buffer(M,s),this.bufferOff===this.buffer.length&&(b+=this._flushBuffer(R,b)));for(var h=M.length-(M.length-s)%this.blockSize;s<h;s+=this.blockSize)this._update(M,s,R,b),b+=this.blockSize;for(;s<M.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=M[s];return R},e.prototype._updateDecrypt=function(M){for(var s=0,b=0,d=Math.ceil((this.bufferOff+M.length)/this.blockSize)-1,R=new Array(d*this.blockSize);d>0;d--)s+=this._buffer(M,s),b+=this._flushBuffer(R,b);return s+=this._buffer(M,s),R},e.prototype.final=function(M){var s,b;return M&&(s=this.update(M)),b="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(b):b},e.prototype._pad=function(M,s){if(0===s)return!1;for(;s<M.length;)M[s++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var M=new Array(this.blockSize);return this._update(this.buffer,0,M,0),M},e.prototype._unpad=function(M){return M},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var M=new Array(this.blockSize);return this._flushBuffer(M,0),this._unpad(M)}},4631:(ze,K,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(7451),M=p(8170);function s(){this.tmp=new Array(2),this.keys=null}function b(R){M.call(this,R);var h=new s;this._desState=h,this.deriveKeys(h,R.key)}e(b,M),ze.exports=b,b.create=function(h){return new b(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];b.prototype.deriveKeys=function(h,L){h.keys=new Array(32),t.equal(L.length,this.blockSize,"Invalid key length");var w=f.readUInt32BE(L,0),D=f.readUInt32BE(L,4);f.pc1(w,D,h.tmp,0),w=h.tmp[0],D=h.tmp[1];for(var S=0;S<h.keys.length;S+=2){var k=d[S>>>1];w=f.r28shl(w,k),D=f.r28shl(D,k),f.pc2(w,D,h.keys,S)}},b.prototype._update=function(h,L,w,D){var S=this._desState,k=f.readUInt32BE(h,L),E=f.readUInt32BE(h,L+4);f.ip(k,E,S.tmp,0),k=S.tmp[0],E=S.tmp[1],"encrypt"===this.type?this._encrypt(S,k,E,S.tmp,0):this._decrypt(S,k,E,S.tmp,0),E=S.tmp[1],f.writeUInt32BE(w,k=S.tmp[0],D),f.writeUInt32BE(w,E,D+4)},b.prototype._pad=function(h,L){for(var w=h.length-L,D=L;D<h.length;D++)h[D]=w;return!0},b.prototype._unpad=function(h){for(var L=h[h.length-1],w=h.length-L;w<h.length;w++)t.equal(h[w],L);return h.slice(0,h.length-L)},b.prototype._encrypt=function(h,L,w,D,S){for(var k=L,E=w,U=0;U<h.keys.length;U+=2){var W=h.keys[U],j=h.keys[U+1];f.expand(E,h.tmp,0);var ne=f.substitute(W^=h.tmp[0],j^=h.tmp[1]),de=E;E=(k^f.permute(ne))>>>0,k=de}f.rip(E,k,D,S)},b.prototype._decrypt=function(h,L,w,D,S){for(var k=w,E=L,U=h.keys.length-2;U>=0;U-=2){var W=h.keys[U],j=h.keys[U+1];f.expand(k,h.tmp,0);var ne=f.substitute(W^=h.tmp[0],j^=h.tmp[1]),de=k;k=(E^f.permute(ne))>>>0,E=de}f.rip(k,E,D,S)}},1862:(ze,K,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(8170),M=p(4631);function s(d,R){t.equal(R.length,24,"Invalid key length");var h=R.slice(0,8),L=R.slice(8,16),w=R.slice(16,24);this.ciphers="encrypt"===d?[M.create({type:"encrypt",key:h}),M.create({type:"decrypt",key:L}),M.create({type:"encrypt",key:w})]:[M.create({type:"decrypt",key:w}),M.create({type:"encrypt",key:L}),M.create({type:"decrypt",key:h})]}function b(d){f.call(this,d);var R=new s(this.type,this.options.key);this._edeState=R}e(b,f),ze.exports=b,b.create=function(R){return new b(R)},b.prototype._update=function(R,h,L,w){var D=this._edeState;D.ciphers[0]._update(R,h,L,w),D.ciphers[1]._update(L,w,L,w),D.ciphers[2]._update(L,w,L,w)},b.prototype._pad=M.prototype._pad,b.prototype._unpad=M.prototype._unpad},7451:(ze,K)=>{"use strict";K.readUInt32BE=function(M,s){return(M[0+s]<<24|M[1+s]<<16|M[2+s]<<8|M[3+s])>>>0},K.writeUInt32BE=function(M,s,b){M[0+b]=s>>>24,M[1+b]=s>>>16&255,M[2+b]=s>>>8&255,M[3+b]=255&s},K.ip=function(M,s,b,d){for(var R=0,h=0,L=6;L>=0;L-=2){for(var w=0;w<=24;w+=8)R<<=1,R|=s>>>w+L&1;for(w=0;w<=24;w+=8)R<<=1,R|=M>>>w+L&1}for(L=6;L>=0;L-=2){for(w=1;w<=25;w+=8)h<<=1,h|=s>>>w+L&1;for(w=1;w<=25;w+=8)h<<=1,h|=M>>>w+L&1}b[d+0]=R>>>0,b[d+1]=h>>>0},K.rip=function(M,s,b,d){for(var R=0,h=0,L=0;L<4;L++)for(var w=24;w>=0;w-=8)R<<=1,R|=s>>>w+L&1,R<<=1,R|=M>>>w+L&1;for(L=4;L<8;L++)for(w=24;w>=0;w-=8)h<<=1,h|=s>>>w+L&1,h<<=1,h|=M>>>w+L&1;b[d+0]=R>>>0,b[d+1]=h>>>0},K.pc1=function(M,s,b,d){for(var R=0,h=0,L=7;L>=5;L--){for(var w=0;w<=24;w+=8)R<<=1,R|=s>>w+L&1;for(w=0;w<=24;w+=8)R<<=1,R|=M>>w+L&1}for(w=0;w<=24;w+=8)R<<=1,R|=s>>w+L&1;for(L=1;L<=3;L++){for(w=0;w<=24;w+=8)h<<=1,h|=s>>w+L&1;for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+L&1}for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+L&1;b[d+0]=R>>>0,b[d+1]=h>>>0},K.r28shl=function(M,s){return M<<s&268435455|M>>>28-s};var p=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];K.pc2=function(M,s,b,d){for(var R=0,h=0,L=p.length>>>1,w=0;w<L;w++)R<<=1,R|=M>>>p[w]&1;for(w=L;w<p.length;w++)h<<=1,h|=s>>>p[w]&1;b[d+0]=R>>>0,b[d+1]=h>>>0},K.expand=function(M,s,b){var d=0,R=0;d=(1&M)<<5|M>>>27;for(var h=23;h>=15;h-=4)d<<=6,d|=M>>>h&63;for(h=11;h>=3;h-=4)R|=M>>>h&63,R<<=6;R|=(31&M)<<1|M>>>31,s[b+0]=d>>>0,s[b+1]=R>>>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];K.substitute=function(M,s){for(var b=0,d=0;d<4;d++)b<<=4,b|=t[64*d+(M>>>18-6*d&63)];for(d=0;d<4;d++)b<<=4,b|=t[256+64*d+(s>>>18-6*d&63)];return b>>>0};var e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];K.permute=function(M){for(var s=0,b=0;b<e.length;b++)s<<=1,s|=M>>>e[b]&1;return s>>>0},K.padSplit=function(M,s,b){for(var d=M.toString(2);d.length<s;)d="0"+d;for(var R=[],h=0;h<s;h+=b)R.push(d.slice(h,h+b));return R.join(" ")}},8829:(ze,K,p)=>{var t=p(5563),e=p(9799),f=p(1419),s={binary:!0,hex:!0,base64:!0};K.DiffieHellmanGroup=K.createDiffieHellmanGroup=K.getDiffieHellman=function M(d){var R=new Buffer(e[d].prime,"hex"),h=new Buffer(e[d].gen,"hex");return new f(R,h)},K.createDiffieHellman=K.DiffieHellman=function b(d,R,h,L){return Buffer.isBuffer(R)||void 0===s[R]?b(d,"binary",R,h):(R=R||"binary",L=L||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,L)),"number"==typeof d?new f(t(d,h),h,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,R)),new f(d,h,!0)))}},1419:(ze,K,p)=>{var t=p(8313),f=new(p(7079)),M=new t(24),s=new t(11),b=new t(10),d=new t(3),R=new t(7),h=p(5563),L=p(3753);function w(W,j){return j=j||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,j)),this._pub=new t(W),this}function D(W,j){return j=j||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,j)),this._priv=new t(W),this}ze.exports=E;var S={};function E(W,j,ne){this.setGenerator(j),this.__prime=new t(W),this._prime=t.mont(this.__prime),this._primeLen=W.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ne?(this.setPublicKey=w,this.setPrivateKey=D):this._primeCode=8}function U(W,j){var ne=new Buffer(W.toArray());return j?ne.toString(j):ne}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(W,j){var ne=j.toString("hex"),ee=[ne,W.toString(16)].join("_");if(ee in S)return S[ee];var te,de=0;if(W.isEven()||!h.simpleSieve||!h.fermatTest(W)||!f.test(W))return de+=1,S[ee]=de+="02"===ne||"05"===ne?8:4,de;switch(f.test(W.shrn(1))||(de+=2),ne){case"02":W.mod(M).cmp(s)&&(de+=8);break;case"05":(te=W.mod(b)).cmp(d)&&te.cmp(R)&&(de+=8);break;default:de+=4}return S[ee]=de,de}(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new t(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(W){var j=(W=(W=new t(W)).toRed(this._prime)).redPow(this._priv).fromRed(),ne=new Buffer(j.toArray()),ee=this.getPrime();if(ne.length<ee.length){var de=new Buffer(ee.length-ne.length);de.fill(0),ne=Buffer.concat([de,ne])}return ne},E.prototype.getPublicKey=function(j){return U(this._pub,j)},E.prototype.getPrivateKey=function(j){return U(this._priv,j)},E.prototype.getPrime=function(W){return U(this.__prime,W)},E.prototype.getGenerator=function(W){return U(this._gen,W)},E.prototype.setGenerator=function(W,j){return j=j||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,j)),this.__gen=W,this._gen=new t(W),this}},5563:(ze,K,p)=>{var t=p(3753);ze.exports=de,de.simpleSieve=ne,de.fermatTest=ee;var e=p(8313),f=new e(24),s=new(p(7079)),b=new e(1),d=new e(2),R=new e(5),w=(new e(16),new e(8),new e(10)),D=new e(3),k=(new e(7),new e(11)),E=new e(4),W=(new e(12),null);function ne(te){for(var ie=function j(){if(null!==W)return W;var ie=[];ie[0]=2;for(var le=1,$=3;$<1048576;$+=2){for(var ge=Math.ceil(Math.sqrt($)),C=0;C<le&&ie[C]<=ge&&$%ie[C]!=0;C++);le!==C&&ie[C]<=ge||(ie[le++]=$)}return W=ie,ie}(),le=0;le<ie.length;le++)if(0===te.modn(ie[le]))return 0===te.cmpn(ie[le]);return!0}function ee(te){var ie=e.mont(te);return 0===d.toRed(ie).redPow(te.subn(1)).fromRed().cmpn(1)}function de(te,ie){if(te<16)return new e(2===ie||5===ie?[140,123]:[140,39]);ie=new e(ie);for(var le,$;;){for(le=new e(t(Math.ceil(te/8)));le.bitLength()>te;)le.ishrn(1);if(le.isEven()&&le.iadd(b),le.testn(1)||le.iadd(d),ie.cmp(d)){if(!ie.cmp(R))for(;le.mod(w).cmp(D);)le.iadd(E)}else for(;le.mod(f).cmp(k);)le.iadd(E);if(ne($=le.shrn(1))&&ne(le)&&ee($)&&ee(le)&&s.test($)&&s.test(le))return le}}},8313:function(ze,K,p){!function(t,e){"use strict";function f(C,i){if(!C)throw new Error(i||"Assertion failed")}function M(C,i){C.super_=i;var r=function(){};r.prototype=i.prototype,C.prototype=new r,C.prototype.constructor=C}function s(C,i,r){if(s.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,null!==C&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(C||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(C){}function d(C,i){var r=C.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(C,i,r){var u=d(C,r);return r-1>=i&&(u|=d(C,r-1)<<4),u}function h(C,i,r,u){for(var c=0,v=Math.min(C.length,r),T=i;T<v;T++){var I=C.charCodeAt(T)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}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,r){return i.cmp(r)>0?i:r},s.min=function(i,r){return i.cmp(r)<0?i:r},s.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<i.length&&(16===r?this._parseHex(i,c,u):(this._parseBase(i,r,c),"le"===u&&this._initArray(this.toArray(),r,u)))},s.prototype._initNumber=function(i,r,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):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},s.prototype._initArray=function(i,r,u){if(f("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 c=0;c<this.length;c++)this.words[c]=0;var v,T,I=0;if("be"===u)for(c=i.length-1,v=0;c>=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c<i.length;c+=3)this.words[v]|=(T=i[c]|i[c+1]<<8|i[c+2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},s.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,v=0,T=0;if("be"===u)for(c=i.length-1;c>=r;c-=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c<i.length;c+=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_<y;_+=c)n=h(i,_,_+c,r),this.imuln(v),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var B=1;for(n=h(i,_,i.length,r),_=0;_<I;_++)B*=r;this.imuln(B),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 r=0;r<this.length;r++)i.words[r]=this.words[r];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 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"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(C,i,r){r.negative=i.negative^C.negative;var u=C.length+i.length|0;r.length=u,u=u-1|0;var c=0|C.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=y>>>26,B=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-C.length+1);H<=N;H++)_+=(T=(c=0|C.words[n-H|0])*(v=0|i.words[H])+B)/67108864|0,B=67108863&T;r.words[n]=0|B,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}s.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T<this.length;T++){var I=this.words[T],y=(16777215&(I<<c|v)).toString(16);u=0!=(v=I>>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},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&&f(!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,r){return f(void 0!==b),this.toArrayLike(b,i,r)},s.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},s.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n<v;n++)I[n]=0}else{for(n=0;n<v-c;n++)I[n]=0;for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[v-n-1]=y}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},s.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},s.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);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 r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},s.prototype.ior=function(i){return f(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 r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},s.prototype.iand=function(i){return f(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 r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;c<u.length;c++)this.words[c]=r.words[c]^u.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},s.prototype.ixor=function(i){return f(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){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return u>0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<c:this.words[u]&~(1<<c),this.strip()},s.prototype.iadd=function(i){var r,u,c;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T<c.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+(0|c.words[T])+v),v=r>>>26;for(;0!==v&&T<u.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+v),v=r>>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;T<u.length;T++)this.words[T]=u.words[T];return this},s.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):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 r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I<v.length;I++)T=(r=(0|c.words[I])-(0|v.words[I])+T)>>26,this.words[I]=67108863&r;for(;0!==T&&I<c.length;I++)T=(r=(0|c.words[I])+T)>>26,this.words[I]=67108863&r;if(0===T&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var E=function(i,r,u){var y,n,_,c=i.words,v=r.words,T=u.words,I=0,B=0|c[0],N=8191&B,H=B>>>13,J=0|c[1],ue=8191&J,xe=J>>>13,Pe=0|c[2],Se=8191&Pe,Q=Pe>>>13,Ue=0|c[3],Ce=8191&Ue,q=Ue>>>13,Ae=0|c[4],ut=8191&Ae,Ie=Ae>>>13,De=0|c[5],ae=8191&De,we=De>>>13,ye=0|c[6],Y=8191&ye,z=ye>>>13,be=0|c[7],fe=8191&be,He=be>>>13,pt=0|c[8],et=8191&pt,Lt=pt>>>13,di=0|c[9],Wt=8191&di,Gt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],tt=8191&gt,xt=gt>>>13,ei=0|v[2],Kt=8191&ei,Re=ei>>>13,Oe=0|v[3],ce=8191&Oe,ve=Oe>>>13,ht=0|v[4],mt=8191&ht,Ht=ht>>>13,it=0|v[5],Ne=8191&it,nt=it>>>13,Xe=0|v[6],Ee=8191&Xe,Ge=Xe>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,$t=mi>>>13,Ki=0|v[9],hi=8191&Ki,ai=Ki>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(ue,Ot),n=(n=Math.imul(ue,Nt))+Math.imul(xe,Ot)|0,_=Math.imul(xe,Nt);var Gi=(I+(y=y+Math.imul(N,tt)|0)|0)+((8191&(n=(n=n+Math.imul(N,xt)|0)+Math.imul(H,tt)|0))<<13)|0;I=((_=_+Math.imul(H,xt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,y=Math.imul(Se,Ot),n=(n=Math.imul(Se,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(ue,tt)|0,n=(n=n+Math.imul(ue,xt)|0)+Math.imul(xe,tt)|0,_=_+Math.imul(xe,xt)|0;var zi=(I+(y=y+Math.imul(N,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,y=Math.imul(Ce,Ot),n=(n=Math.imul(Ce,Nt))+Math.imul(q,Ot)|0,_=Math.imul(q,Nt),y=y+Math.imul(Se,tt)|0,n=(n=n+Math.imul(Se,xt)|0)+Math.imul(Q,tt)|0,_=_+Math.imul(Q,xt)|0,y=y+Math.imul(ue,Kt)|0,n=(n=n+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0,_=_+Math.imul(xe,Re)|0;var Ui=(I+(y=y+Math.imul(N,ce)|0)|0)+((8191&(n=(n=n+Math.imul(N,ve)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,ve)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Ie,Ot)|0,_=Math.imul(Ie,Nt),y=y+Math.imul(Ce,tt)|0,n=(n=n+Math.imul(Ce,xt)|0)+Math.imul(q,tt)|0,_=_+Math.imul(q,xt)|0,y=y+Math.imul(Se,Kt)|0,n=(n=n+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(ue,ce)|0,n=(n=n+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0,_=_+Math.imul(xe,ve)|0;var Be=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ht)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,y=Math.imul(ae,Ot),n=(n=Math.imul(ae,Nt))+Math.imul(we,Ot)|0,_=Math.imul(we,Nt),y=y+Math.imul(ut,tt)|0,n=(n=n+Math.imul(ut,xt)|0)+Math.imul(Ie,tt)|0,_=_+Math.imul(Ie,xt)|0,y=y+Math.imul(Ce,Kt)|0,n=(n=n+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,_=_+Math.imul(q,Re)|0,y=y+Math.imul(Se,ce)|0,n=(n=n+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,_=_+Math.imul(Q,ve)|0,y=y+Math.imul(ue,mt)|0,n=(n=n+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0,_=_+Math.imul(xe,Ht)|0;var Tt=(I+(y=y+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,nt)|0)+Math.imul(H,Ne)|0))<<13)|0;I=((_=_+Math.imul(H,nt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Y,Ot),n=(n=Math.imul(Y,Nt))+Math.imul(z,Ot)|0,_=Math.imul(z,Nt),y=y+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,xt)|0)+Math.imul(we,tt)|0,_=_+Math.imul(we,xt)|0,y=y+Math.imul(ut,Kt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,_=_+Math.imul(Ie,Re)|0,y=y+Math.imul(Ce,ce)|0,n=(n=n+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,_=_+Math.imul(q,ve)|0,y=y+Math.imul(Se,mt)|0,n=(n=n+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ht)|0,y=y+Math.imul(ue,Ne)|0,n=(n=n+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0,_=_+Math.imul(xe,nt)|0;var _e=(I+(y=y+Math.imul(N,Ee)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ee)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(He,Ot)|0,_=Math.imul(He,Nt),y=y+Math.imul(Y,tt)|0,n=(n=n+Math.imul(Y,xt)|0)+Math.imul(z,tt)|0,_=_+Math.imul(z,xt)|0,y=y+Math.imul(ae,Kt)|0,n=(n=n+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,_=_+Math.imul(we,Re)|0,y=y+Math.imul(ut,ce)|0,n=(n=n+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,_=_+Math.imul(Ie,ve)|0,y=y+Math.imul(Ce,mt)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,_=_+Math.imul(q,Ht)|0,y=y+Math.imul(Se,Ne)|0,n=(n=n+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,_=_+Math.imul(Q,nt)|0,y=y+Math.imul(ue,Ee)|0,n=(n=n+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0,_=_+Math.imul(xe,Ge)|0;var Ke=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,y=Math.imul(et,Ot),n=(n=Math.imul(et,Nt))+Math.imul(Lt,Ot)|0,_=Math.imul(Lt,Nt),y=y+Math.imul(fe,tt)|0,n=(n=n+Math.imul(fe,xt)|0)+Math.imul(He,tt)|0,_=_+Math.imul(He,xt)|0,y=y+Math.imul(Y,Kt)|0,n=(n=n+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,_=_+Math.imul(z,Re)|0,y=y+Math.imul(ae,ce)|0,n=(n=n+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,_=_+Math.imul(we,ve)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,_=_+Math.imul(Ie,Ht)|0,y=y+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,_=_+Math.imul(q,nt)|0,y=y+Math.imul(Se,Ee)|0,n=(n=n+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(ue,lt)|0,n=(n=n+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0,_=_+Math.imul(xe,Ct)|0;var yt=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,$t)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,$t)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(Wt,Ot),n=(n=Math.imul(Wt,Nt))+Math.imul(Gt,Ot)|0,_=Math.imul(Gt,Nt),y=y+Math.imul(et,tt)|0,n=(n=n+Math.imul(et,xt)|0)+Math.imul(Lt,tt)|0,_=_+Math.imul(Lt,xt)|0,y=y+Math.imul(fe,Kt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,_=_+Math.imul(He,Re)|0,y=y+Math.imul(Y,ce)|0,n=(n=n+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,_=_+Math.imul(z,ve)|0,y=y+Math.imul(ae,mt)|0,n=(n=n+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,_=_+Math.imul(we,Ht)|0,y=y+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ie,nt)|0,y=y+Math.imul(Ce,Ee)|0,n=(n=n+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,_=_+Math.imul(q,Ge)|0,y=y+Math.imul(Se,lt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(ue,Jt)|0,n=(n=n+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0,_=_+Math.imul(xe,$t)|0;var re=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,ai)|0)+(n>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Wt,tt),n=(n=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,_=Math.imul(Gt,xt),y=y+Math.imul(et,Kt)|0,n=(n=n+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,_=_+Math.imul(Lt,Re)|0,y=y+Math.imul(fe,ce)|0,n=(n=n+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,_=_+Math.imul(He,ve)|0,y=y+Math.imul(Y,mt)|0,n=(n=n+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,_=_+Math.imul(z,Ht)|0,y=y+Math.imul(ae,Ne)|0,n=(n=n+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,_=_+Math.imul(we,nt)|0,y=y+Math.imul(ut,Ee)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,_=_+Math.imul(Ie,Ge)|0,y=y+Math.imul(Ce,lt)|0,n=(n=n+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,_=_+Math.imul(q,Ct)|0,y=y+Math.imul(Se,Jt)|0,n=(n=n+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,$t)|0;var qe=(I+(y=y+Math.imul(ue,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;I=((_=_+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(Wt,Kt),n=(n=Math.imul(Wt,Re))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Re),y=y+Math.imul(et,ce)|0,n=(n=n+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,_=_+Math.imul(Lt,ve)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,_=_+Math.imul(He,Ht)|0,y=y+Math.imul(Y,Ne)|0,n=(n=n+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,_=_+Math.imul(z,nt)|0,y=y+Math.imul(ae,Ee)|0,n=(n=n+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,_=_+Math.imul(we,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,Ct)|0,y=y+Math.imul(Ce,Jt)|0,n=(n=n+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,_=_+Math.imul(q,$t)|0;var bt=(I+(y=y+Math.imul(Se,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,ai)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Wt,ce),n=(n=Math.imul(Wt,ve))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,ve),y=y+Math.imul(et,mt)|0,n=(n=n+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,_=_+Math.imul(Lt,Ht)|0,y=y+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,_=_+Math.imul(He,nt)|0,y=y+Math.imul(Y,Ee)|0,n=(n=n+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,_=_+Math.imul(z,Ge)|0,y=y+Math.imul(ae,lt)|0,n=(n=n+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,_=_+Math.imul(we,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,_=_+Math.imul(Ie,$t)|0;var Vt=(I+(y=y+Math.imul(Ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0))<<13)|0;I=((_=_+Math.imul(q,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(Wt,mt),n=(n=Math.imul(Wt,Ht))+Math.imul(Gt,mt)|0,_=Math.imul(Gt,Ht),y=y+Math.imul(et,Ne)|0,n=(n=n+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,_=_+Math.imul(Lt,nt)|0,y=y+Math.imul(fe,Ee)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,_=_+Math.imul(He,Ge)|0,y=y+Math.imul(Y,lt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,_=_+Math.imul(z,Ct)|0,y=y+Math.imul(ae,Jt)|0,n=(n=n+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,_=_+Math.imul(we,$t)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0))<<13)|0;I=((_=_+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Wt,Ne),n=(n=Math.imul(Wt,nt))+Math.imul(Gt,Ne)|0,_=Math.imul(Gt,nt),y=y+Math.imul(et,Ee)|0,n=(n=n+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,_=_+Math.imul(Lt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,_=_+Math.imul(He,Ct)|0,y=y+Math.imul(Y,Jt)|0,n=(n=n+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,_=_+Math.imul(z,$t)|0;var wi=(I+(y=y+Math.imul(ae,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0))<<13)|0;I=((_=_+Math.imul(we,ai)|0)+(n>>>13)|0)+(wi>>>26)|0,wi&=67108863,y=Math.imul(Wt,Ee),n=(n=Math.imul(Wt,Ge))+Math.imul(Gt,Ee)|0,_=Math.imul(Gt,Ge),y=y+Math.imul(et,lt)|0,n=(n=n+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,_=_+Math.imul(Lt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,_=_+Math.imul(He,$t)|0;var Xi=(I+(y=y+Math.imul(Y,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0))<<13)|0;I=((_=_+Math.imul(z,ai)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Wt,lt),n=(n=Math.imul(Wt,Ct))+Math.imul(Gt,lt)|0,_=Math.imul(Gt,Ct),y=y+Math.imul(et,Jt)|0,n=(n=n+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,_=_+Math.imul(Lt,$t)|0;var Zi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0))<<13)|0;I=((_=_+Math.imul(He,ai)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Wt,Jt),n=(n=Math.imul(Wt,$t))+Math.imul(Gt,Jt)|0,_=Math.imul(Gt,$t);var on=(I+(y=y+Math.imul(et,hi)|0)|0)+((8191&(n=(n=n+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0))<<13)|0;I=((_=_+Math.imul(Lt,ai)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var mn=(I+(y=Math.imul(Wt,hi))|0)+((8191&(n=(n=Math.imul(Wt,ai))+Math.imul(Gt,hi)|0))<<13)|0;return I=((_=Math.imul(Gt,ai))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,T[0]=Ji,T[1]=Gi,T[2]=zi,T[3]=Ui,T[4]=Be,T[5]=Tt,T[6]=_e,T[7]=Ke,T[8]=yt,T[9]=re,T[10]=qe,T[11]=bt,T[12]=Vt,T[13]=bi,T[14]=wi,T[15]=Xi,T[16]=Zi,T[17]=on,T[18]=mn,0!==I&&(T[19]=I,u.length++),u};function W(C,i,r){return(new j).mulp(C,i,r)}function j(C,i){this.x=C,this.y=i}Math.imul||(E=k),s.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function U(C,i,r){r.negative=i.negative^C.negative,r.length=C.length+i.length;for(var u=0,c=0,v=0;v<r.length-1;v++){var T=c;c=0;for(var I=67108863&u,y=Math.min(v,i.length-1),n=Math.max(0,v-C.length+1);n<=y;n++){var H=(0|C.words[v-n])*(0|i.words[n]),J=67108863&H;I=67108863&(J=J+I|0),c+=(T=(T=T+(H/67108864|0)|0)+(J>>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):W(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=s.prototype._countBits(i)-1,c=0;c<i;c++)r[c]=this.revBin(c,u,i);return r},j.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var c=0,v=0;v<r;v++)c|=(1&i)<<r-v-1,i>>=1;return c},j.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I<T;I++)c[I]=r[i[I]],v[I]=u[i[I]]},j.prototype.transform=function(i,r,u,c,v,T){this.permute(T,i,r,u,c,v);for(var I=1;I<v;I<<=1)for(var y=I<<1,n=Math.cos(2*Math.PI/y),_=Math.sin(2*Math.PI/y),B=0;B<v;B+=y)for(var N=n,H=_,J=0;J<I;J++){var ue=u[B+J],xe=c[B+J],Pe=u[B+J+I],Se=c[B+J+I],Q=N*Pe-H*Se;Se=N*Se+H*Pe,u[B+J]=ue+(Pe=Q),c[B+J]=xe+Se,u[B+J+I]=ue-Pe,c[B+J+I]=xe-Se,J!==y&&(Q=n*N-_*H,H=n*H+_*N,N=Q)}},j.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),c=1&u,v=0;for(u=u/2|0;u;u>>>=1)v++;return 1<<v+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c<u/2;c++){var v=i[c];i[c]=i[u-c-1],i[u-c-1]=v,v=r[c],r[c]=-r[u-c-1],r[u-c-1]=-v}},j.prototype.normalize13b=function(i,r){for(var u=0,c=0;c<r/2;c++){var v=8192*Math.round(i[2*c+1]/r)+Math.round(i[2*c]/r)+u;i[c]=67108863&v,u=v<67108864?0:v/67108864|0}return i},j.prototype.convert13b=function(i,r,u,c){for(var v=0,T=0;T<r;T++)u[2*T]=8191&(v+=0|i[T]),u[2*T+1]=8191&(v>>>=13),v>>>=13;for(T=2*r;T<c;++T)u[T]=0;f(0===v),f(0==(-8192&v))},j.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},j.prototype.mulp=function(i,r,u){var c=2*this.guessLen13b(i.length,r.length),v=this.makeRBT(c),T=this.stub(c),I=new Array(c),y=new Array(c),n=new Array(c),_=new Array(c),B=new Array(c),N=new Array(c),H=u.words;H.length=c,this.convert13b(i.words,i.length,I,c),this.convert13b(r.words,r.length,_,c),this.transform(I,T,y,n,c,v),this.transform(_,T,B,N,c,v);for(var J=0;J<c;J++){var ue=y[J]*B[J]-n[J]*N[J];n[J]=y[J]*N[J]+n[J]*B[J],y[J]=ue}return this.conjugate(y,n,c),this.transform(y,n,H,T,c,v),this.conjugate(H,T,c),this.normalize13b(H,c),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},s.prototype.mul=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},s.prototype.mulf=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),W(this,i,r)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var c=(0|this.words[u])*i,v=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,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 r=function S(C){for(var i=new Array(C.bitLength()),r=0;r<i.length;r++){var c=r%26;i[r]=(C.words[r/26|0]&1<<c)>>>c}return i}(i);if(0===r.length)return new s(1);for(var u=this,c=0;c<r.length&&0===r[c];c++,u=u.sqr());if(++c<r.length)for(var v=u.sqr();c<r.length;c++,v=v.sqr())0!==r[c]&&(u=u.mul(v));return u},s.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v<this.length;v++){var I=this.words[v]&c;this.words[v]=(0|this.words[v])-I<<r|T,T=I>>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v<u;v++)this.words[v]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,r,u){var c;f("number"==typeof i&&i>=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<<v,y=u;if(c-=T,c=Math.max(0,c),y){for(var n=0;n<T;n++)y.words[n]=this.words[n];y.length=T}if(0!==T)if(this.length>T)for(this.length-=T,n=0;n<this.length;n++)this.words[n]=this.words[n+T];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-v|B>>>v,_=B&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,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){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},s.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return f("number"==typeof i),f(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 r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+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,r,u){var v;this._expand(i.length+u);var T,I=0;for(v=0;v<i.length;v++){T=(0|this.words[v+u])+I;var y=(0|i.words[v])*r;I=((T-=67108863&y)>>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v<this.length-u;v++)I=(T=(0|this.words[v+u])+I)>>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v<this.length;v++)I=(T=-(0|this.words[v])+I)>>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new s(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=c.clone()._ishlnsubmul(v,1,y);0===B.negative&&(c=B,n&&(n.words[y]=1));for(var N=y-1;N>=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},s.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{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,r);var c,v,T},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 r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},s.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=new s(0),I=new s(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,J=1;0==(u.words[0]&J)&&H<26;++H,J<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},s.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(B=0===r.cmpn(1)?c:v).cmpn(0)<0&&B.iadd(i),B},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},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){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=c,this;for(var v=c,T=u;0!==v&&T<this.length;T++){var I=0|this.words[T];v=(I+=v)>>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:c<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 r=this.ucmp(i);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){c<v?r=-1:c>v&&(r=1);break}}return r},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 $(i)},s.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function ee(C,i){this.name=C,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 de(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(C){if("string"==typeof C){var i=s._prime(C);this.m=i.p,this.prime=i}else f(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function ge(C){$.call(this,C),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,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(de,ee),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v<c;v++)r.words[v]=i.words[v];if(r.length=c,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(r.words[r.length++]=T&u,v=10;v<i.length;v++){var I=0|i.words[v];i.words[v-10]=(I&u)<<4|T>>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var c=0|i.words[u];i.words[u]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},M(te,ee),M(ie,ee),M(le,ee),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var c=19*(0|i.words[u])+r,v=67108863&c;c>>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},s._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new te;else if("p192"===i)r=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return ne[i]=r,r},$.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},$.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},$.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},$.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},$.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},$.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},$.prototype.isqr=function(i){return this.imul(i,i.clone())},$.prototype.sqr=function(i){return this.mul(i,i)},$.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new s(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var J=N,ue=0;0!==J.cmp(T);ue++)J=J.redSqr();f(ue<H);var xe=this.pow(_,new s(1).iushln(H-ue-1));B=B.redMul(xe),_=xe.redSqr(),N=N.redMul(_),H=ue}return B},$.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},$.prototype.pow=function(i,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return i.clone();var c=new Array(16);c[0]=new s(1).toRed(this),c[1]=i;for(var v=2;v<c.length;v++)c[v]=this.mul(c[v-1],i);var T=c[0],I=0,y=0,n=r.bitLength()%26;for(0===n&&(n=26),v=r.length-1;v>=0;v--){for(var _=r.words[v],B=n-1;B>=0;B--){var N=_>>B&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===B)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},$.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},$.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},s.mont=function(i){return new ge(i)},M(ge,$),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new s(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},4901:ze=>{"use strict";var K={single_source_shortest_paths:function(p,t,e){var f={},M={};M[t]=0;var b,d,R,h,L,D,s=K.PriorityQueue.make();for(s.push(t,0);!s.empty();)for(R in h=(b=s.pop()).cost,L=p[d=b.value]||{})L.hasOwnProperty(R)&&(D=h+L[R],(void 0===M[R]||M[R]>D)&&(M[R]=D,s.push(R,D),f[R]=d));if(void 0!==e&&void 0===M[e]){var E=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(E)}return f},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],f=t;f;)e.push(f),f=p[f];return e.reverse(),e},find_path:function(p,t,e){var f=K.single_source_shortest_paths(p,t,e);return K.extract_shortest_path_from_predecessor_list(f,e)},PriorityQueue:{make:function(p){var f,t=K.PriorityQueue,e={};for(f in p=p||{},t)t.hasOwnProperty(f)&&(e[f]=t[f]);return e.queue=[],e.sorter=p.sorter||t.default_sorter,e},default_sorter:function(p,t){return p.cost-t.cost},push:function(p,t){this.queue.push({value:p,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ze.exports=K},7715:(ze,K,p)=>{"use strict";var t=K;t.version=p(8597).i8,t.utils=p(1970),t.rand=p(7950),t.curve=p(6270),t.curves=p(2916),t.ec=p(7626),t.eddsa=p(1885)},7902:(ze,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.getNAF,M=e.getJSF,s=e.assert;function b(R,h){this.type=R,this.p=new t(h.p,16),this.red=h.prime?t.red(h.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=h.n&&new t(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(R,h){this.curve=R,this.type=h,this.precomputed=null}ze.exports=b,b.prototype.point=function(){throw new Error("Not implemented")},b.prototype.validate=function(){throw new Error("Not implemented")},b.prototype._fixedNafMul=function(h,L){s(h.precomputed);var w=h._getDoubles(),D=f(L,1,this._bitLength),S=(1<<w.step+1)-(w.step%2==0?2:1);S/=3;var E,U,k=[];for(E=0;E<D.length;E+=w.step){U=0;for(var W=E+w.step-1;W>=E;W--)U=(U<<1)+D[W];k.push(U)}for(var j=this.jpoint(null,null,null),ne=this.jpoint(null,null,null),ee=S;ee>0;ee--){for(E=0;E<k.length;E++)(U=k[E])===ee?ne=ne.mixedAdd(w.points[E]):U===-ee&&(ne=ne.mixedAdd(w.points[E].neg()));j=j.add(ne)}return j.toP()},b.prototype._wnafMul=function(h,L){for(var w=4,D=h._getNAFPoints(w),S=D.points,k=f(L,w=D.wnd,this._bitLength),E=this.jpoint(null,null,null),U=k.length-1;U>=0;U--){for(var W=0;U>=0&&0===k[U];U--)W++;if(U>=0&&W++,E=E.dblp(W),U<0)break;var j=k[U];s(0!==j),E="affine"===h.type?E.mixedAdd(j>0?S[j-1>>1]:S[-j-1>>1].neg()):E.add(j>0?S[j-1>>1]:S[-j-1>>1].neg())}return"affine"===h.type?E.toP():E},b.prototype._wnafMulAdd=function(h,L,w,D,S){var j,ne,ee,k=this._wnafT1,E=this._wnafT2,U=this._wnafT3,W=0;for(j=0;j<D;j++){var de=(ee=L[j])._getNAFPoints(h);k[j]=de.wnd,E[j]=de.points}for(j=D-1;j>=1;j-=2){var te=j-1,ie=j;if(1===k[te]&&1===k[ie]){var le=[L[te],null,null,L[ie]];0===L[te].y.cmp(L[ie].y)?(le[1]=L[te].add(L[ie]),le[2]=L[te].toJ().mixedAdd(L[ie].neg())):0===L[te].y.cmp(L[ie].y.redNeg())?(le[1]=L[te].toJ().mixedAdd(L[ie]),le[2]=L[te].add(L[ie].neg())):(le[1]=L[te].toJ().mixedAdd(L[ie]),le[2]=L[te].toJ().mixedAdd(L[ie].neg()));var $=[-3,-1,-5,-7,0,7,5,1,3],ge=M(w[te],w[ie]);for(W=Math.max(ge[0].length,W),U[te]=new Array(W),U[ie]=new Array(W),ne=0;ne<W;ne++)U[te][ne]=$[3*(1+(0|ge[0][ne]))+(1+(0|ge[1][ne]))],U[ie][ne]=0,E[te]=le}else U[te]=f(w[te],k[te],this._bitLength),U[ie]=f(w[ie],k[ie],this._bitLength),W=Math.max(U[te].length,W),W=Math.max(U[ie].length,W)}var r=this.jpoint(null,null,null),u=this._wnafT4;for(j=W;j>=0;j--){for(var c=0;j>=0;){var v=!0;for(ne=0;ne<D;ne++)u[ne]=0|U[ne][j],0!==u[ne]&&(v=!1);if(!v)break;c++,j--}if(j>=0&&c++,r=r.dblp(c),j<0)break;for(ne=0;ne<D;ne++){var T=u[ne];0!==T&&(T>0?ee=E[ne][T-1>>1]:T<0&&(ee=E[ne][-T-1>>1].neg()),r="affine"===ee.type?r.mixedAdd(ee):r.add(ee))}}for(j=0;j<D;j++)E[j]=null;return S?r:r.toP()},b.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},b.prototype.decodePoint=function(h,L){h=e.toArray(h,L);var w=this.p.byteLength();if((4===h[0]||6===h[0]||7===h[0])&&h.length-1==2*w)return 6===h[0]?s(h[h.length-1]%2==0):7===h[0]&&s(h[h.length-1]%2==1),this.point(h.slice(1,1+w),h.slice(1+w,1+2*w));if((2===h[0]||3===h[0])&&h.length-1===w)return this.pointFromX(h.slice(1,1+w),3===h[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(h){return this.encode(h,!0)},d.prototype._encode=function(h){var L=this.curve.p.byteLength(),w=this.getX().toArray("be",L);return h?[this.getY().isEven()?2:3].concat(w):[4].concat(w,this.getY().toArray("be",L))},d.prototype.encode=function(h,L){return e.encode(this._encode(L),h)},d.prototype.precompute=function(h){if(this.precomputed)return this;var L={doubles:null,naf:null,beta:null};return L.naf=this._getNAFPoints(8),L.doubles=this._getDoubles(4,h),L.beta=this._getBeta(),this.precomputed=L,this},d.prototype._hasDoubles=function(h){if(!this.precomputed)return!1;var L=this.precomputed.doubles;return!!L&&L.points.length>=Math.ceil((h.bitLength()+1)/L.step)},d.prototype._getDoubles=function(h,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var w=[this],D=this,S=0;S<L;S+=h){for(var k=0;k<h;k++)D=D.dbl();w.push(D)}return{step:h,points:w}},d.prototype._getNAFPoints=function(h){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var L=[this],w=(1<<h)-1,D=1===w?null:this.dbl(),S=1;S<w;S++)L[S]=L[S-1].add(D);return{wnd:h,points:L}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(h){for(var L=this,w=0;w<h;w++)L=L.dbl();return L}},3835:(ze,K,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),s=t.assert;function b(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,M.call(this,"edwards",R),this.a=new e(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(R.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|R.c)}function d(R,h,L,w,D){M.BasePoint.call(this,R,"projective"),null===h&&null===L&&null===w?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(h,16),this.y=new e(L,16),this.z=w?new e(w,16):this.curve.one,this.t=D&&new e(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}f(b,M),ze.exports=b,b.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},b.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},b.prototype.jpoint=function(h,L,w,D){return this.point(h,L,w,D)},b.prototype.pointFromX=function(h,L){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=this.c2.redSub(this.a.redMul(w)),S=this.one.redSub(this.c2.redMul(this.d).redMul(w)),k=D.redMul(S.redInvm()),E=k.redSqrt();if(0!==E.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var U=E.fromRed().isOdd();return(L&&!U||!L&&U)&&(E=E.redNeg()),this.point(h,E)},b.prototype.pointFromY=function(h,L){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=w.redSub(this.c2),S=w.redMul(this.d).redMul(this.c2).redSub(this.a),k=D.redMul(S.redInvm());if(0===k.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,h)}var E=k.redSqrt();if(0!==E.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return E.fromRed().isOdd()!==L&&(E=E.redNeg()),this.point(E,h)},b.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var L=h.x.redSqr(),w=h.y.redSqr(),D=L.redMul(this.a).redAdd(w),S=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(w)));return 0===D.cmp(S)},f(d,M.BasePoint),b.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},b.prototype.point=function(h,L,w,D){return new d(this,h,L,w,D)},d.fromJSON=function(h,L){return new d(h,L[0],L[1],L[2])},d.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)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var h=this.x.redSqr(),L=this.y.redSqr(),w=this.z.redSqr();w=w.redIAdd(w);var D=this.curve._mulA(h),S=this.x.redAdd(this.y).redSqr().redISub(h).redISub(L),k=D.redAdd(L),E=k.redSub(w),U=D.redSub(L),W=S.redMul(E),j=k.redMul(U),ne=S.redMul(U),ee=E.redMul(k);return this.curve.point(W,j,ee,ne)},d.prototype._projDbl=function(){var D,S,k,E,U,W,h=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var j=(E=this.curve._mulA(L)).redAdd(w);this.zOne?(D=h.redSub(L).redSub(w).redMul(j.redSub(this.curve.two)),S=j.redMul(E.redSub(w)),k=j.redSqr().redSub(j).redSub(j)):(U=this.z.redSqr(),W=j.redSub(U).redISub(U),D=h.redSub(L).redISub(w).redMul(W),S=j.redMul(E.redSub(w)),k=j.redMul(W))}else E=L.redAdd(w),U=this.curve._mulC(this.z).redSqr(),W=E.redSub(U).redSub(U),D=this.curve._mulC(h.redISub(E)).redMul(W),S=this.curve._mulC(E).redMul(L.redISub(w)),k=E.redMul(W);return this.curve.point(D,S,k)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var L=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),w=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),D=this.t.redMul(this.curve.dd).redMul(h.t),S=this.z.redMul(h.z.redAdd(h.z)),k=w.redSub(L),E=S.redSub(D),U=S.redAdd(D),W=w.redAdd(L),j=k.redMul(E),ne=U.redMul(W),ee=k.redMul(W),de=E.redMul(U);return this.curve.point(j,ne,de,ee)},d.prototype._projAdd=function(h){var ne,ee,L=this.z.redMul(h.z),w=L.redSqr(),D=this.x.redMul(h.x),S=this.y.redMul(h.y),k=this.curve.d.redMul(D).redMul(S),E=w.redSub(k),U=w.redAdd(k),W=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(D).redISub(S),j=L.redMul(E).redMul(W);return this.curve.twisted?(ne=L.redMul(U).redMul(S.redSub(this.curve._mulA(D))),ee=E.redMul(U)):(ne=L.redMul(U).redMul(S.redSub(D)),ee=this.curve._mulC(E).redMul(U)),this.curve.point(j,ne,ee)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,L,w){return this.curve._wnafMulAdd(1,[this,L],[h,w],2,!1)},d.prototype.jmulAdd=function(h,L,w){return this.curve._wnafMulAdd(1,[this,L],[h,w],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(h){return this===h||0===this.getX().cmp(h.getX())&&0===this.getY().cmp(h.getY())},d.prototype.eqXToP=function(h){var L=h.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var w=h.clone(),D=this.curve.redN.redMul(this.z);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(D),0===this.x.cmp(L))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(ze,K,p)=>{"use strict";var t=K;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(ze,K,p)=>{"use strict";var t=p(7433),e=p(3894),f=p(7902),M=p(1970);function s(d){f.call(this,"mont",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function b(d,R,h){f.BasePoint.call(this,d,"projective"),null===R&&null===h?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(R,16),this.z=new t(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(s,f),ze.exports=s,s.prototype.validate=function(R){var h=R.normalize().x,L=h.redSqr(),w=L.redMul(h).redAdd(L.redMul(this.a)).redAdd(h);return 0===w.redSqrt().redSqr().cmp(w)},e(b,f.BasePoint),s.prototype.decodePoint=function(R,h){return this.point(M.toArray(R,h),1)},s.prototype.point=function(R,h){return new b(this,R,h)},s.prototype.pointFromJSON=function(R){return b.fromJSON(this,R)},b.prototype.precompute=function(){},b.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},b.fromJSON=function(R,h){return new b(R,h[0],h[1]||R.one)},b.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)+">"},b.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},b.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),D=h.redSub(w),S=h.redMul(w),k=D.redMul(w.redAdd(this.curve.a24.redMul(D)));return this.curve.point(S,k)},b.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.diffAdd=function(R,h){var L=this.x.redAdd(this.z),w=this.x.redSub(this.z),D=R.x.redAdd(R.z),k=R.x.redSub(R.z).redMul(L),E=D.redMul(w),U=h.z.redMul(k.redAdd(E).redSqr()),W=h.x.redMul(k.redISub(E).redSqr());return this.curve.point(U,W)},b.prototype.mul=function(R){for(var h=R.clone(),L=this,w=this.curve.point(null,null),S=[];0!==h.cmpn(0);h.iushrn(1))S.push(h.andln(1));for(var k=S.length-1;k>=0;k--)0===S[k]?(L=L.diffAdd(w,this),w=w.dbl()):(w=L.diffAdd(w,this),L=L.dbl());return w},b.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},b.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},b.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(ze,K,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),s=t.assert;function b(h){M.call(this,"short",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(h,L,w,D){M.BasePoint.call(this,h,"affine"),null===L&&null===w?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(L,16),this.y=new e(w,16),D&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function R(h,L,w,D){M.BasePoint.call(this,h,"jacobian"),null===L&&null===w&&null===D?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(L,16),this.y=new e(w,16),this.z=new e(D,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}f(b,M),ze.exports=b,b.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var w,D;if(L.beta)w=new e(L.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);w=(w=S[0].cmp(S[1])<0?S[0]:S[1]).toRed(this.red)}if(L.lambda)D=new e(L.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(w))?D=k[0]:s(0===this.g.mul(D=k[1]).x.cmp(this.g.x.redMul(w)))}return{beta:w,lambda:D,basis:L.basis?L.basis.map(function(U){return{a:new e(U.a,16),b:new e(U.b,16)}}):this._getEndoBasis(D)}}},b.prototype._getEndoRoots=function(L){var w=L===this.p?this.red:e.mont(L),D=new e(2).toRed(w).redInvm(),S=D.redNeg(),k=new e(3).toRed(w).redNeg().redSqrt().redMul(D);return[S.redAdd(k).fromRed(),S.redSub(k).fromRed()]},b.prototype._getEndoBasis=function(L){for(var j,ne,ee,de,te,ie,le,ge,C,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=L,S=this.n.clone(),k=new e(1),E=new e(0),U=new e(0),W=new e(1),$=0;0!==D.cmpn(0);){var i=S.div(D);ge=S.sub(i.mul(D)),C=U.sub(i.mul(k));var r=W.sub(i.mul(E));if(!ee&&ge.cmp(w)<0)j=le.neg(),ne=k,ee=ge.neg(),de=C;else if(ee&&2==++$)break;le=ge,S=D,D=ge,U=k,k=C,W=E,E=r}te=ge.neg(),ie=C;var u=ee.sqr().add(de.sqr());return te.sqr().add(ie.sqr()).cmp(u)>=0&&(te=j,ie=ne),ee.negative&&(ee=ee.neg(),de=de.neg()),te.negative&&(te=te.neg(),ie=ie.neg()),[{a:ee,b:de},{a:te,b:ie}]},b.prototype._endoSplit=function(L){var w=this.endo.basis,D=w[0],S=w[1],k=S.b.mul(L).divRound(this.n),E=D.b.neg().mul(L).divRound(this.n),U=k.mul(D.a),W=E.mul(S.a),j=k.mul(D.b),ne=E.mul(S.b);return{k1:L.sub(U).sub(W),k2:j.add(ne).neg()}},b.prototype.pointFromX=function(L,w){(L=new e(L,16)).red||(L=L.toRed(this.red));var D=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),S=D.redSqrt();if(0!==S.redSqr().redSub(D).cmp(this.zero))throw new Error("invalid point");var k=S.fromRed().isOdd();return(w&&!k||!w&&k)&&(S=S.redNeg()),this.point(L,S)},b.prototype.validate=function(L){if(L.inf)return!0;var w=L.x,D=L.y,S=this.a.redMul(w),k=w.redSqr().redMul(w).redIAdd(S).redIAdd(this.b);return 0===D.redSqr().redISub(k).cmpn(0)},b.prototype._endoWnafMulAdd=function(L,w,D){for(var S=this._endoWnafT1,k=this._endoWnafT2,E=0;E<L.length;E++){var U=this._endoSplit(w[E]),W=L[E],j=W._getBeta();U.k1.negative&&(U.k1.ineg(),W=W.neg(!0)),U.k2.negative&&(U.k2.ineg(),j=j.neg(!0)),S[2*E]=W,S[2*E+1]=j,k[2*E]=U.k1,k[2*E+1]=U.k2}for(var ne=this._wnafMulAdd(1,S,k,2*E,D),ee=0;ee<2*E;ee++)S[ee]=null,k[ee]=null;return ne},f(d,M.BasePoint),b.prototype.point=function(L,w,D){return new d(this,L,w,D)},b.prototype.pointFromJSON=function(L,w){return d.fromJSON(this,L,w)},d.prototype._getBeta=function(){if(this.curve.endo){var L=this.precomputed;if(L&&L.beta)return L.beta;var w=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(L){var D=this.curve,S=function(k){return D.point(k.x.redMul(D.endo.beta),k.y)};L.beta=w,w.precomputed={beta:null,naf:L.naf&&{wnd:L.naf.wnd,points:L.naf.points.map(S)},doubles:L.doubles&&{step:L.doubles.step,points:L.doubles.points.map(S)}}}return w}},d.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]},d.fromJSON=function(L,w,D){"string"==typeof w&&(w=JSON.parse(w));var S=L.point(w[0],w[1],D);if(!w[2])return S;function k(U){return L.point(U[0],U[1],D)}var E=w[2];return S.precomputed={beta:null,doubles:E.doubles&&{step:E.doubles.step,points:[S].concat(E.doubles.points.map(k))},naf:E.naf&&{wnd:E.naf.wnd,points:[S].concat(E.naf.points.map(k))}},S},d.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)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var w=this.y.redSub(L.y);0!==w.cmpn(0)&&(w=w.redMul(this.x.redSub(L.x).redInvm()));var D=w.redSqr().redISub(this.x).redISub(L.x),S=w.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,S)},d.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var w=this.curve.a,D=this.x.redSqr(),S=L.redInvm(),k=D.redAdd(D).redIAdd(D).redIAdd(w).redMul(S),E=k.redSqr().redISub(this.x.redAdd(this.x)),U=k.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,U)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(L){return L=new e(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},d.prototype.mulAdd=function(L,w,D){var S=[this,w],k=[L,D];return this.curve.endo?this.curve._endoWnafMulAdd(S,k):this.curve._wnafMulAdd(1,S,k,2)},d.prototype.jmulAdd=function(L,w,D){var S=[this,w],k=[L,D];return this.curve.endo?this.curve._endoWnafMulAdd(S,k,!0):this.curve._wnafMulAdd(1,S,k,2,!0)},d.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},d.prototype.neg=function(L){if(this.inf)return this;var w=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var D=this.precomputed,S=function(k){return k.neg()};w.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(S)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(S)}}}return w},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(R,M.BasePoint),b.prototype.jpoint=function(L,w,D){return new R(this,L,w,D)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),w=L.redSqr(),D=this.x.redMul(w),S=this.y.redMul(w).redMul(L);return this.curve.point(D,S)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var w=L.z.redSqr(),D=this.z.redSqr(),S=this.x.redMul(w),k=L.x.redMul(D),E=this.y.redMul(w.redMul(L.z)),U=L.y.redMul(D.redMul(this.z)),W=S.redSub(k),j=E.redSub(U);if(0===W.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ne=W.redSqr(),ee=ne.redMul(W),de=S.redMul(ne),te=j.redSqr().redIAdd(ee).redISub(de).redISub(de),ie=j.redMul(de.redISub(te)).redISub(E.redMul(ee)),le=this.z.redMul(L.z).redMul(W);return this.curve.jpoint(te,ie,le)},R.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var w=this.z.redSqr(),D=this.x,S=L.x.redMul(w),k=this.y,E=L.y.redMul(w).redMul(this.z),U=D.redSub(S),W=k.redSub(E);if(0===U.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var j=U.redSqr(),ne=j.redMul(U),ee=D.redMul(j),de=W.redSqr().redIAdd(ne).redISub(ee).redISub(ee),te=W.redMul(ee.redISub(de)).redISub(k.redMul(ne)),ie=this.z.redMul(U);return this.curve.jpoint(de,te,ie)},R.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var w;if(this.curve.zeroA||this.curve.threeA){var D=this;for(w=0;w<L;w++)D=D.dbl();return D}var S=this.curve.a,k=this.curve.tinv,E=this.x,U=this.y,W=this.z,j=W.redSqr().redSqr(),ne=U.redAdd(U);for(w=0;w<L;w++){var ee=E.redSqr(),de=ne.redSqr(),te=de.redSqr(),ie=ee.redAdd(ee).redIAdd(ee).redIAdd(S.redMul(j)),le=E.redMul(de),$=ie.redSqr().redISub(le.redAdd(le)),ge=le.redISub($),C=ie.redMul(ge);C=C.redIAdd(C).redISub(te);var i=ne.redMul(W);w+1<L&&(j=j.redMul(te)),E=$,W=i,ne=C}return this.curve.jpoint(E,ne.redMul(k),W)},R.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},R.prototype._zeroDbl=function(){var L,w,D;if(this.zOne){var S=this.x.redSqr(),k=this.y.redSqr(),E=k.redSqr(),U=this.x.redAdd(k).redSqr().redISub(S).redISub(E);U=U.redIAdd(U);var W=S.redAdd(S).redIAdd(S),j=W.redSqr().redISub(U).redISub(U),ne=E.redIAdd(E);ne=(ne=ne.redIAdd(ne)).redIAdd(ne),L=j,w=W.redMul(U.redISub(j)).redISub(ne),D=this.y.redAdd(this.y)}else{var ee=this.x.redSqr(),de=this.y.redSqr(),te=de.redSqr(),ie=this.x.redAdd(de).redSqr().redISub(ee).redISub(te);ie=ie.redIAdd(ie);var le=ee.redAdd(ee).redIAdd(ee),$=le.redSqr(),ge=te.redIAdd(te);ge=(ge=ge.redIAdd(ge)).redIAdd(ge),L=$.redISub(ie).redISub(ie),w=le.redMul(ie.redISub(L)).redISub(ge),D=(D=this.y.redMul(this.z)).redIAdd(D)}return this.curve.jpoint(L,w,D)},R.prototype._threeDbl=function(){var L,w,D;if(this.zOne){var S=this.x.redSqr(),k=this.y.redSqr(),E=k.redSqr(),U=this.x.redAdd(k).redSqr().redISub(S).redISub(E);U=U.redIAdd(U);var W=S.redAdd(S).redIAdd(S).redIAdd(this.curve.a),j=W.redSqr().redISub(U).redISub(U);L=j;var ne=E.redIAdd(E);ne=(ne=ne.redIAdd(ne)).redIAdd(ne),w=W.redMul(U.redISub(j)).redISub(ne),D=this.y.redAdd(this.y)}else{var ee=this.z.redSqr(),de=this.y.redSqr(),te=this.x.redMul(de),ie=this.x.redSub(ee).redMul(this.x.redAdd(ee));ie=ie.redAdd(ie).redIAdd(ie);var le=te.redIAdd(te),$=(le=le.redIAdd(le)).redAdd(le);L=ie.redSqr().redISub($),D=this.y.redAdd(this.z).redSqr().redISub(de).redISub(ee);var ge=de.redSqr();ge=(ge=(ge=ge.redIAdd(ge)).redIAdd(ge)).redIAdd(ge),w=ie.redMul(le.redISub(L)).redISub(ge)}return this.curve.jpoint(L,w,D)},R.prototype._dbl=function(){var L=this.curve.a,w=this.x,D=this.y,S=this.z,k=S.redSqr().redSqr(),E=w.redSqr(),U=D.redSqr(),W=E.redAdd(E).redIAdd(E).redIAdd(L.redMul(k)),j=w.redAdd(w),ne=(j=j.redIAdd(j)).redMul(U),ee=W.redSqr().redISub(ne.redAdd(ne)),de=ne.redISub(ee),te=U.redSqr();te=(te=(te=te.redIAdd(te)).redIAdd(te)).redIAdd(te);var ie=W.redMul(de).redISub(te),le=D.redAdd(D).redMul(S);return this.curve.jpoint(ee,ie,le)},R.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var L=this.x.redSqr(),w=this.y.redSqr(),D=this.z.redSqr(),S=w.redSqr(),k=L.redAdd(L).redIAdd(L),E=k.redSqr(),U=this.x.redAdd(w).redSqr().redISub(L).redISub(S),W=(U=(U=(U=U.redIAdd(U)).redAdd(U).redIAdd(U)).redISub(E)).redSqr(),j=S.redIAdd(S);j=(j=(j=j.redIAdd(j)).redIAdd(j)).redIAdd(j);var ne=k.redIAdd(U).redSqr().redISub(E).redISub(W).redISub(j),ee=w.redMul(ne);ee=(ee=ee.redIAdd(ee)).redIAdd(ee);var de=this.x.redMul(W).redISub(ee);de=(de=de.redIAdd(de)).redIAdd(de);var te=this.y.redMul(ne.redMul(j.redISub(ne)).redISub(U.redMul(W)));te=(te=(te=te.redIAdd(te)).redIAdd(te)).redIAdd(te);var ie=this.z.redAdd(U).redSqr().redISub(D).redISub(W);return this.curve.jpoint(de,te,ie)},R.prototype.mul=function(L,w){return L=new e(L,w),this.curve._wnafMul(this,L)},R.prototype.eq=function(L){if("affine"===L.type)return this.eq(L.toJ());if(this===L)return!0;var w=this.z.redSqr(),D=L.z.redSqr();if(0!==this.x.redMul(D).redISub(L.x.redMul(w)).cmpn(0))return!1;var S=w.redMul(this.z),k=D.redMul(L.z);return 0===this.y.redMul(k).redISub(L.y.redMul(S)).cmpn(0)},R.prototype.eqXToP=function(L){var w=this.z.redSqr(),D=L.toRed(this.curve.red).redMul(w);if(0===this.x.cmp(D))return!0;for(var S=L.clone(),k=this.curve.redN.redMul(w);;){if(S.iadd(this.curve.n),S.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(k),0===this.x.cmp(D))return!0}},R.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)+">"},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(ze,K,p)=>{"use strict";var R,t=K,e=p(7084),f=p(6270),s=p(1970).assert;function b(h){this.curve="short"===h.type?new f.short(h):"edwards"===h.type?new f.edwards(h):new f.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,L){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var w=new b(L);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:w}),w}})}t.PresetCurve=b,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=p(5150)}catch(h){R=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(ze,K,p)=>{"use strict";var t=p(7433),e=p(2438),f=p(1970),M=p(2916),s=p(7950),b=f.assert,d=p(1259),R=p(5957);function h(L){if(!(this instanceof h))return new h(L);"string"==typeof L&&(b(Object.prototype.hasOwnProperty.call(M,L),"Unknown curve "+L),L=M[L]),L instanceof M.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}ze.exports=h,h.prototype.keyPair=function(w){return new d(this,w)},h.prototype.keyFromPrivate=function(w,D){return d.fromPrivate(this,w,D)},h.prototype.keyFromPublic=function(w,D){return d.fromPublic(this,w,D)},h.prototype.genKeyPair=function(w){w||(w={});for(var D=new e({hash:this.hash,pers:w.pers,persEnc:w.persEnc||"utf8",entropy:w.entropy||s(this.hash.hmacStrength),entropyEnc:w.entropy&&w.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),k=this.n.sub(new t(2));;){var E=new t(D.generate(S));if(!(E.cmp(k)>0))return E.iaddn(1),this.keyFromPrivate(E)}},h.prototype._truncateToN=function(w,D){var S=8*w.byteLength()-this.n.bitLength();return S>0&&(w=w.ushrn(S)),!D&&w.cmp(this.n)>=0?w.sub(this.n):w},h.prototype.sign=function(w,D,S,k){"object"==typeof S&&(k=S,S=null),k||(k={}),D=this.keyFromPrivate(D,S),w=this._truncateToN(new t(w,16));for(var E=this.n.byteLength(),U=D.getPrivate().toArray("be",E),W=w.toArray("be",E),j=new e({hash:this.hash,entropy:U,nonce:W,pers:k.pers,persEnc:k.persEnc||"utf8"}),ne=this.n.sub(new t(1)),ee=0;;ee++){var de=k.k?k.k(ee):new t(j.generate(this.n.byteLength()));if(!((de=this._truncateToN(de,!0)).cmpn(1)<=0||de.cmp(ne)>=0)){var te=this.g.mul(de);if(!te.isInfinity()){var ie=te.getX(),le=ie.umod(this.n);if(0!==le.cmpn(0)){var $=de.invm(this.n).mul(le.mul(D.getPrivate()).iadd(w));if(0!==($=$.umod(this.n)).cmpn(0)){var ge=(te.getY().isOdd()?1:0)|(0!==ie.cmp(le)?2:0);return k.canonical&&$.cmp(this.nh)>0&&($=this.n.sub($),ge^=1),new R({r:le,s:$,recoveryParam:ge})}}}}}},h.prototype.verify=function(w,D,S,k){w=this._truncateToN(new t(w,16)),S=this.keyFromPublic(S,k);var E=(D=new R(D,"hex")).r,U=D.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||U.cmpn(1)<0||U.cmp(this.n)>=0)return!1;var ee,W=U.invm(this.n),j=W.mul(w).umod(this.n),ne=W.mul(E).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(j,S.getPublic(),ne)).isInfinity()&&ee.eqXToP(E):!(ee=this.g.mulAdd(j,S.getPublic(),ne)).isInfinity()&&0===ee.getX().umod(this.n).cmp(E)},h.prototype.recoverPubKey=function(L,w,D,S){b((3&D)===D,"The recovery param is more than two bits"),w=new R(w,S);var k=this.n,E=new t(L),U=w.r,W=w.s,j=1&D,ne=D>>1;if(U.cmp(this.curve.p.umod(this.curve.n))>=0&&ne)throw new Error("Unable to find sencond key candinate");U=this.curve.pointFromX(ne?U.add(this.curve.n):U,j);var ee=w.r.invm(k),de=k.sub(E).mul(ee).umod(k),te=W.mul(ee).umod(k);return this.g.mulAdd(de,U,te)},h.prototype.getKeyRecoveryParam=function(L,w,D,S){if(null!==(w=new R(w,S)).recoveryParam)return w.recoveryParam;for(var k=0;k<4;k++){var E;try{E=this.recoverPubKey(L,w,k)}catch(U){continue}if(E.eq(D))return k}throw new Error("Unable to find valid recovery factor")}},1259:(ze,K,p)=>{"use strict";var t=p(7433),f=p(1970).assert;function M(s,b){this.ec=s,this.priv=null,this.pub=null,b.priv&&this._importPrivate(b.priv,b.privEnc),b.pub&&this._importPublic(b.pub,b.pubEnc)}ze.exports=M,M.fromPublic=function(b,d,R){return d instanceof M?d:new M(b,{pub:d,pubEnc:R})},M.fromPrivate=function(b,d,R){return d instanceof M?d:new M(b,{priv:d,privEnc:R})},M.prototype.validate=function(){var b=this.getPublic();return b.isInfinity()?{result:!1,reason:"Invalid public key"}:b.validate()?b.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},M.prototype.getPublic=function(b,d){return"string"==typeof b&&(d=b,b=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,b):this.pub},M.prototype.getPrivate=function(b){return"hex"===b?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(b,d){this.priv=new t(b,d||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(b,d){if(b.x||b.y)return"mont"===this.ec.curve.type?f(b.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&f(b.x&&b.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(b.x,b.y));this.pub=this.ec.curve.decodePoint(b,d)},M.prototype.derive=function(b){return b.validate()||f(b.validate(),"public point not validated"),b.mul(this.priv).getX()},M.prototype.sign=function(b,d,R){return this.ec.sign(b,this,d,R)},M.prototype.verify=function(b,d){return this.ec.verify(b,d,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(ze,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert;function M(h,L){if(h instanceof M)return h;this._importDER(h,L)||(f(h.r&&h.s,"Signature without r or s"),this.r=new t(h.r,16),this.s=new t(h.s,16),this.recoveryParam=void 0===h.recoveryParam?null:h.recoveryParam)}function s(){this.place=0}function b(h,L){var w=h[L.place++];if(!(128&w))return w;var D=15&w;if(0===D||D>4)return!1;for(var S=0,k=0,E=L.place;k<D;k++,E++)S<<=8,S|=h[E],S>>>=0;return!(S<=127)&&(L.place=E,S)}function d(h){for(var L=0,w=h.length-1;!h[L]&&!(128&h[L+1])&&L<w;)L++;return 0===L?h:h.slice(L)}function R(h,L){if(L<128)h.push(L);else{var w=1+(Math.log(L)/Math.LN2>>>3);for(h.push(128|w);--w;)h.push(L>>>(w<<3)&255);h.push(L)}}ze.exports=M,M.prototype._importDER=function(L,w){L=e.toArray(L,w);var D=new s;if(48!==L[D.place++])return!1;var S=b(L,D);if(!1===S||S+D.place!==L.length||2!==L[D.place++])return!1;var k=b(L,D);if(!1===k)return!1;var E=L.slice(D.place,k+D.place);if(D.place+=k,2!==L[D.place++])return!1;var U=b(L,D);if(!1===U||L.length!==U+D.place)return!1;var W=L.slice(D.place,U+D.place);if(0===E[0]){if(!(128&E[1]))return!1;E=E.slice(1)}if(0===W[0]){if(!(128&W[1]))return!1;W=W.slice(1)}return this.r=new t(E),this.s=new t(W),this.recoveryParam=null,!0},M.prototype.toDER=function(L){var w=this.r.toArray(),D=this.s.toArray();for(128&w[0]&&(w=[0].concat(w)),128&D[0]&&(D=[0].concat(D)),w=d(w),D=d(D);!(D[0]||128&D[1]);)D=D.slice(1);var S=[2];R(S,w.length),(S=S.concat(w)).push(2),R(S,D.length);var k=S.concat(D),E=[48];return R(E,k.length),E=E.concat(k),e.encode(E,L)}},1885:(ze,K,p)=>{"use strict";var t=p(7084),e=p(2916),f=p(1970),M=f.assert,s=f.parseBytes,b=p(7535),d=p(8241);function R(h){if(M("ed25519"===h,"only tested with ed25519 so far"),!(this instanceof R))return new R(h);this.curve=h=e[h].curve,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=t.sha512}ze.exports=R,R.prototype.sign=function(L,w){L=s(L);var D=this.keyFromSecret(w),S=this.hashInt(D.messagePrefix(),L),k=this.g.mul(S),E=this.encodePoint(k),U=this.hashInt(E,D.pubBytes(),L).mul(D.priv()),W=S.add(U).umod(this.curve.n);return this.makeSignature({R:k,S:W,Rencoded:E})},R.prototype.verify=function(L,w,D){L=s(L),w=this.makeSignature(w);var S=this.keyFromPublic(D),k=this.hashInt(w.Rencoded(),S.pubBytes(),L),E=this.g.mul(w.S());return w.R().add(S.pub().mul(k)).eq(E)},R.prototype.hashInt=function(){for(var L=this.hash(),w=0;w<arguments.length;w++)L.update(arguments[w]);return f.intFromLE(L.digest()).umod(this.curve.n)},R.prototype.keyFromPublic=function(L){return b.fromPublic(this,L)},R.prototype.keyFromSecret=function(L){return b.fromSecret(this,L)},R.prototype.makeSignature=function(L){return L instanceof d?L:new d(this,L)},R.prototype.encodePoint=function(L){var w=L.getY().toArray("le",this.encodingLength);return w[this.encodingLength-1]|=L.getX().isOdd()?128:0,w},R.prototype.decodePoint=function(L){var w=(L=f.parseBytes(L)).length-1,D=L.slice(0,w).concat(-129&L[w]),S=0!=(128&L[w]),k=f.intFromLE(D);return this.curve.pointFromY(k,S)},R.prototype.encodeInt=function(L){return L.toArray("le",this.encodingLength)},R.prototype.decodeInt=function(L){return f.intFromLE(L)},R.prototype.isPoint=function(L){return L instanceof this.pointClass}},7535:(ze,K,p)=>{"use strict";var t=p(1970),e=t.assert,f=t.parseBytes,M=t.cachedProperty;function s(b,d){this.eddsa=b,this._secret=f(d.secret),b.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=f(d.pub)}s.fromPublic=function(d,R){return R instanceof s?R:new s(d,{pub:R})},s.fromSecret=function(d,R){return R instanceof s?R:new s(d,{secret:R})},s.prototype.secret=function(){return this._secret},M(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(s,"privBytes",function(){var d=this.eddsa,R=this.hash(),h=d.encodingLength-1,L=R.slice(0,d.encodingLength);return L[0]&=248,L[h]&=127,L[h]|=64,L}),M(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(d){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},s.prototype.verify=function(d,R){return this.eddsa.verify(d,R,this)},s.prototype.getSecret=function(d){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),d)},s.prototype.getPublic=function(d){return t.encode(this.pubBytes(),d)},ze.exports=s},8241:(ze,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert,M=e.cachedProperty,s=e.parseBytes;function b(d,R){this.eddsa=d,"object"!=typeof R&&(R=s(R)),Array.isArray(R)&&(R={R:R.slice(0,d.encodingLength),S:R.slice(d.encodingLength)}),f(R.R&&R.S,"Signature without R or S"),d.isPoint(R.R)&&(this._R=R.R),R.S instanceof t&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}M(b,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(b,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(b,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(b,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),b.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},b.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},ze.exports=b},5150:ze=>{ze.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:(ze,K,p)=>{"use strict";var t=K,e=p(7433),f=p(2391),M=p(8195);t.assert=f,t.toArray=M.toArray,t.zero2=M.zero2,t.toHex=M.toHex,t.encode=M.encode,t.getNAF=function s(L,w,D){var S=new Array(Math.max(L.bitLength(),D)+1);S.fill(0);for(var k=1<<w+1,E=L.clone(),U=0;U<S.length;U++){var W,j=E.andln(k-1);E.isOdd()?E.isubn(W=j>(k>>1)-1?(k>>1)-j:j):W=0,S[U]=W,E.iushrn(1)}return S},t.getJSF=function b(L,w){var D=[[],[]];L=L.clone(),w=w.clone();for(var E,S=0,k=0;L.cmpn(-S)>0||w.cmpn(-k)>0;){var j,ne,U=L.andln(3)+S&3,W=w.andln(3)+k&3;3===U&&(U=-1),3===W&&(W=-1),j=0==(1&U)?0:3!=(E=L.andln(7)+S&7)&&5!==E||2!==W?U:-U,D[0].push(j),ne=0==(1&W)?0:3!=(E=w.andln(7)+k&7)&&5!==E||2!==U?W:-W,D[1].push(ne),2*S===j+1&&(S=1-S),2*k===ne+1&&(k=1-k),L.iushrn(1),w.iushrn(1)}return D},t.cachedProperty=function d(L,w,D){var S="_"+w;L.prototype[w]=function(){return void 0!==this[S]?this[S]:this[S]=D.call(this)}},t.parseBytes=function R(L){return"string"==typeof L?t.toArray(L,"hex"):L},t.intFromLE=function h(L){return new e(L,"hex","le")}},7433:function(ze,K,p){!function(t,e){"use strict";function f(C,i){if(!C)throw new Error(i||"Assertion failed")}function M(C,i){C.super_=i;var r=function(){};r.prototype=i.prototype,C.prototype=new r,C.prototype.constructor=C}function s(C,i,r){if(s.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,null!==C&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(C||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(C){}function d(C,i){var r=C.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(C,i,r){var u=d(C,r);return r-1>=i&&(u|=d(C,r-1)<<4),u}function h(C,i,r,u){for(var c=0,v=Math.min(C.length,r),T=i;T<v;T++){var I=C.charCodeAt(T)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}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,r){return i.cmp(r)>0?i:r},s.min=function(i,r){return i.cmp(r)<0?i:r},s.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<i.length&&(16===r?this._parseHex(i,c,u):(this._parseBase(i,r,c),"le"===u&&this._initArray(this.toArray(),r,u)))},s.prototype._initNumber=function(i,r,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):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},s.prototype._initArray=function(i,r,u){if(f("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 c=0;c<this.length;c++)this.words[c]=0;var v,T,I=0;if("be"===u)for(c=i.length-1,v=0;c>=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c<i.length;c+=3)this.words[v]|=(T=i[c]|i[c+1]<<8|i[c+2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},s.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,v=0,T=0;if("be"===u)for(c=i.length-1;c>=r;c-=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c<i.length;c+=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_<y;_+=c)n=h(i,_,_+c,r),this.imuln(v),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var B=1;for(n=h(i,_,i.length,r),_=0;_<I;_++)B*=r;this.imuln(B),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 r=0;r<this.length;r++)i.words[r]=this.words[r];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 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"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(C,i,r){r.negative=i.negative^C.negative;var u=C.length+i.length|0;r.length=u,u=u-1|0;var c=0|C.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=y>>>26,B=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-C.length+1);H<=N;H++)_+=(T=(c=0|C.words[n-H|0])*(v=0|i.words[H])+B)/67108864|0,B=67108863&T;r.words[n]=0|B,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}s.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T<this.length;T++){var I=this.words[T],y=(16777215&(I<<c|v)).toString(16);u=0!=(v=I>>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},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&&f(!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,r){return f(void 0!==b),this.toArrayLike(b,i,r)},s.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},s.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n<v;n++)I[n]=0}else{for(n=0;n<v-c;n++)I[n]=0;for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[v-n-1]=y}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},s.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},s.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);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 r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},s.prototype.ior=function(i){return f(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 r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},s.prototype.iand=function(i){return f(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 r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;c<u.length;c++)this.words[c]=r.words[c]^u.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},s.prototype.ixor=function(i){return f(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){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return u>0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<c:this.words[u]&~(1<<c),this.strip()},s.prototype.iadd=function(i){var r,u,c;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T<c.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+(0|c.words[T])+v),v=r>>>26;for(;0!==v&&T<u.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+v),v=r>>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;T<u.length;T++)this.words[T]=u.words[T];return this},s.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):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 r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I<v.length;I++)T=(r=(0|c.words[I])-(0|v.words[I])+T)>>26,this.words[I]=67108863&r;for(;0!==T&&I<c.length;I++)T=(r=(0|c.words[I])+T)>>26,this.words[I]=67108863&r;if(0===T&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var E=function(i,r,u){var y,n,_,c=i.words,v=r.words,T=u.words,I=0,B=0|c[0],N=8191&B,H=B>>>13,J=0|c[1],ue=8191&J,xe=J>>>13,Pe=0|c[2],Se=8191&Pe,Q=Pe>>>13,Ue=0|c[3],Ce=8191&Ue,q=Ue>>>13,Ae=0|c[4],ut=8191&Ae,Ie=Ae>>>13,De=0|c[5],ae=8191&De,we=De>>>13,ye=0|c[6],Y=8191&ye,z=ye>>>13,be=0|c[7],fe=8191&be,He=be>>>13,pt=0|c[8],et=8191&pt,Lt=pt>>>13,di=0|c[9],Wt=8191&di,Gt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],tt=8191&gt,xt=gt>>>13,ei=0|v[2],Kt=8191&ei,Re=ei>>>13,Oe=0|v[3],ce=8191&Oe,ve=Oe>>>13,ht=0|v[4],mt=8191&ht,Ht=ht>>>13,it=0|v[5],Ne=8191&it,nt=it>>>13,Xe=0|v[6],Ee=8191&Xe,Ge=Xe>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,$t=mi>>>13,Ki=0|v[9],hi=8191&Ki,ai=Ki>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(ue,Ot),n=(n=Math.imul(ue,Nt))+Math.imul(xe,Ot)|0,_=Math.imul(xe,Nt);var Gi=(I+(y=y+Math.imul(N,tt)|0)|0)+((8191&(n=(n=n+Math.imul(N,xt)|0)+Math.imul(H,tt)|0))<<13)|0;I=((_=_+Math.imul(H,xt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,y=Math.imul(Se,Ot),n=(n=Math.imul(Se,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(ue,tt)|0,n=(n=n+Math.imul(ue,xt)|0)+Math.imul(xe,tt)|0,_=_+Math.imul(xe,xt)|0;var zi=(I+(y=y+Math.imul(N,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,y=Math.imul(Ce,Ot),n=(n=Math.imul(Ce,Nt))+Math.imul(q,Ot)|0,_=Math.imul(q,Nt),y=y+Math.imul(Se,tt)|0,n=(n=n+Math.imul(Se,xt)|0)+Math.imul(Q,tt)|0,_=_+Math.imul(Q,xt)|0,y=y+Math.imul(ue,Kt)|0,n=(n=n+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0,_=_+Math.imul(xe,Re)|0;var Ui=(I+(y=y+Math.imul(N,ce)|0)|0)+((8191&(n=(n=n+Math.imul(N,ve)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,ve)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Ie,Ot)|0,_=Math.imul(Ie,Nt),y=y+Math.imul(Ce,tt)|0,n=(n=n+Math.imul(Ce,xt)|0)+Math.imul(q,tt)|0,_=_+Math.imul(q,xt)|0,y=y+Math.imul(Se,Kt)|0,n=(n=n+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(ue,ce)|0,n=(n=n+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0,_=_+Math.imul(xe,ve)|0;var Be=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ht)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,y=Math.imul(ae,Ot),n=(n=Math.imul(ae,Nt))+Math.imul(we,Ot)|0,_=Math.imul(we,Nt),y=y+Math.imul(ut,tt)|0,n=(n=n+Math.imul(ut,xt)|0)+Math.imul(Ie,tt)|0,_=_+Math.imul(Ie,xt)|0,y=y+Math.imul(Ce,Kt)|0,n=(n=n+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,_=_+Math.imul(q,Re)|0,y=y+Math.imul(Se,ce)|0,n=(n=n+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,_=_+Math.imul(Q,ve)|0,y=y+Math.imul(ue,mt)|0,n=(n=n+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0,_=_+Math.imul(xe,Ht)|0;var Tt=(I+(y=y+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,nt)|0)+Math.imul(H,Ne)|0))<<13)|0;I=((_=_+Math.imul(H,nt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Y,Ot),n=(n=Math.imul(Y,Nt))+Math.imul(z,Ot)|0,_=Math.imul(z,Nt),y=y+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,xt)|0)+Math.imul(we,tt)|0,_=_+Math.imul(we,xt)|0,y=y+Math.imul(ut,Kt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,_=_+Math.imul(Ie,Re)|0,y=y+Math.imul(Ce,ce)|0,n=(n=n+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,_=_+Math.imul(q,ve)|0,y=y+Math.imul(Se,mt)|0,n=(n=n+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ht)|0,y=y+Math.imul(ue,Ne)|0,n=(n=n+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0,_=_+Math.imul(xe,nt)|0;var _e=(I+(y=y+Math.imul(N,Ee)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ee)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(He,Ot)|0,_=Math.imul(He,Nt),y=y+Math.imul(Y,tt)|0,n=(n=n+Math.imul(Y,xt)|0)+Math.imul(z,tt)|0,_=_+Math.imul(z,xt)|0,y=y+Math.imul(ae,Kt)|0,n=(n=n+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,_=_+Math.imul(we,Re)|0,y=y+Math.imul(ut,ce)|0,n=(n=n+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,_=_+Math.imul(Ie,ve)|0,y=y+Math.imul(Ce,mt)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,_=_+Math.imul(q,Ht)|0,y=y+Math.imul(Se,Ne)|0,n=(n=n+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,_=_+Math.imul(Q,nt)|0,y=y+Math.imul(ue,Ee)|0,n=(n=n+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0,_=_+Math.imul(xe,Ge)|0;var Ke=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,y=Math.imul(et,Ot),n=(n=Math.imul(et,Nt))+Math.imul(Lt,Ot)|0,_=Math.imul(Lt,Nt),y=y+Math.imul(fe,tt)|0,n=(n=n+Math.imul(fe,xt)|0)+Math.imul(He,tt)|0,_=_+Math.imul(He,xt)|0,y=y+Math.imul(Y,Kt)|0,n=(n=n+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,_=_+Math.imul(z,Re)|0,y=y+Math.imul(ae,ce)|0,n=(n=n+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,_=_+Math.imul(we,ve)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,_=_+Math.imul(Ie,Ht)|0,y=y+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,_=_+Math.imul(q,nt)|0,y=y+Math.imul(Se,Ee)|0,n=(n=n+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(ue,lt)|0,n=(n=n+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0,_=_+Math.imul(xe,Ct)|0;var yt=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,$t)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,$t)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(Wt,Ot),n=(n=Math.imul(Wt,Nt))+Math.imul(Gt,Ot)|0,_=Math.imul(Gt,Nt),y=y+Math.imul(et,tt)|0,n=(n=n+Math.imul(et,xt)|0)+Math.imul(Lt,tt)|0,_=_+Math.imul(Lt,xt)|0,y=y+Math.imul(fe,Kt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,_=_+Math.imul(He,Re)|0,y=y+Math.imul(Y,ce)|0,n=(n=n+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,_=_+Math.imul(z,ve)|0,y=y+Math.imul(ae,mt)|0,n=(n=n+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,_=_+Math.imul(we,Ht)|0,y=y+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ie,nt)|0,y=y+Math.imul(Ce,Ee)|0,n=(n=n+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,_=_+Math.imul(q,Ge)|0,y=y+Math.imul(Se,lt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(ue,Jt)|0,n=(n=n+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0,_=_+Math.imul(xe,$t)|0;var re=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,ai)|0)+(n>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Wt,tt),n=(n=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,_=Math.imul(Gt,xt),y=y+Math.imul(et,Kt)|0,n=(n=n+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,_=_+Math.imul(Lt,Re)|0,y=y+Math.imul(fe,ce)|0,n=(n=n+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,_=_+Math.imul(He,ve)|0,y=y+Math.imul(Y,mt)|0,n=(n=n+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,_=_+Math.imul(z,Ht)|0,y=y+Math.imul(ae,Ne)|0,n=(n=n+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,_=_+Math.imul(we,nt)|0,y=y+Math.imul(ut,Ee)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,_=_+Math.imul(Ie,Ge)|0,y=y+Math.imul(Ce,lt)|0,n=(n=n+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,_=_+Math.imul(q,Ct)|0,y=y+Math.imul(Se,Jt)|0,n=(n=n+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,$t)|0;var qe=(I+(y=y+Math.imul(ue,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;I=((_=_+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(Wt,Kt),n=(n=Math.imul(Wt,Re))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Re),y=y+Math.imul(et,ce)|0,n=(n=n+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,_=_+Math.imul(Lt,ve)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,_=_+Math.imul(He,Ht)|0,y=y+Math.imul(Y,Ne)|0,n=(n=n+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,_=_+Math.imul(z,nt)|0,y=y+Math.imul(ae,Ee)|0,n=(n=n+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,_=_+Math.imul(we,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,Ct)|0,y=y+Math.imul(Ce,Jt)|0,n=(n=n+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,_=_+Math.imul(q,$t)|0;var bt=(I+(y=y+Math.imul(Se,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,ai)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Wt,ce),n=(n=Math.imul(Wt,ve))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,ve),y=y+Math.imul(et,mt)|0,n=(n=n+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,_=_+Math.imul(Lt,Ht)|0,y=y+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,_=_+Math.imul(He,nt)|0,y=y+Math.imul(Y,Ee)|0,n=(n=n+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,_=_+Math.imul(z,Ge)|0,y=y+Math.imul(ae,lt)|0,n=(n=n+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,_=_+Math.imul(we,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,_=_+Math.imul(Ie,$t)|0;var Vt=(I+(y=y+Math.imul(Ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0))<<13)|0;I=((_=_+Math.imul(q,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(Wt,mt),n=(n=Math.imul(Wt,Ht))+Math.imul(Gt,mt)|0,_=Math.imul(Gt,Ht),y=y+Math.imul(et,Ne)|0,n=(n=n+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,_=_+Math.imul(Lt,nt)|0,y=y+Math.imul(fe,Ee)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,_=_+Math.imul(He,Ge)|0,y=y+Math.imul(Y,lt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,_=_+Math.imul(z,Ct)|0,y=y+Math.imul(ae,Jt)|0,n=(n=n+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,_=_+Math.imul(we,$t)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0))<<13)|0;I=((_=_+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Wt,Ne),n=(n=Math.imul(Wt,nt))+Math.imul(Gt,Ne)|0,_=Math.imul(Gt,nt),y=y+Math.imul(et,Ee)|0,n=(n=n+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,_=_+Math.imul(Lt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,_=_+Math.imul(He,Ct)|0,y=y+Math.imul(Y,Jt)|0,n=(n=n+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,_=_+Math.imul(z,$t)|0;var wi=(I+(y=y+Math.imul(ae,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0))<<13)|0;I=((_=_+Math.imul(we,ai)|0)+(n>>>13)|0)+(wi>>>26)|0,wi&=67108863,y=Math.imul(Wt,Ee),n=(n=Math.imul(Wt,Ge))+Math.imul(Gt,Ee)|0,_=Math.imul(Gt,Ge),y=y+Math.imul(et,lt)|0,n=(n=n+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,_=_+Math.imul(Lt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,_=_+Math.imul(He,$t)|0;var Xi=(I+(y=y+Math.imul(Y,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0))<<13)|0;I=((_=_+Math.imul(z,ai)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Wt,lt),n=(n=Math.imul(Wt,Ct))+Math.imul(Gt,lt)|0,_=Math.imul(Gt,Ct),y=y+Math.imul(et,Jt)|0,n=(n=n+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,_=_+Math.imul(Lt,$t)|0;var Zi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0))<<13)|0;I=((_=_+Math.imul(He,ai)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Wt,Jt),n=(n=Math.imul(Wt,$t))+Math.imul(Gt,Jt)|0,_=Math.imul(Gt,$t);var on=(I+(y=y+Math.imul(et,hi)|0)|0)+((8191&(n=(n=n+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0))<<13)|0;I=((_=_+Math.imul(Lt,ai)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var mn=(I+(y=Math.imul(Wt,hi))|0)+((8191&(n=(n=Math.imul(Wt,ai))+Math.imul(Gt,hi)|0))<<13)|0;return I=((_=Math.imul(Gt,ai))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,T[0]=Ji,T[1]=Gi,T[2]=zi,T[3]=Ui,T[4]=Be,T[5]=Tt,T[6]=_e,T[7]=Ke,T[8]=yt,T[9]=re,T[10]=qe,T[11]=bt,T[12]=Vt,T[13]=bi,T[14]=wi,T[15]=Xi,T[16]=Zi,T[17]=on,T[18]=mn,0!==I&&(T[19]=I,u.length++),u};function W(C,i,r){return(new j).mulp(C,i,r)}function j(C,i){this.x=C,this.y=i}Math.imul||(E=k),s.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function U(C,i,r){r.negative=i.negative^C.negative,r.length=C.length+i.length;for(var u=0,c=0,v=0;v<r.length-1;v++){var T=c;c=0;for(var I=67108863&u,y=Math.min(v,i.length-1),n=Math.max(0,v-C.length+1);n<=y;n++){var H=(0|C.words[v-n])*(0|i.words[n]),J=67108863&H;I=67108863&(J=J+I|0),c+=(T=(T=T+(H/67108864|0)|0)+(J>>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):W(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=s.prototype._countBits(i)-1,c=0;c<i;c++)r[c]=this.revBin(c,u,i);return r},j.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var c=0,v=0;v<r;v++)c|=(1&i)<<r-v-1,i>>=1;return c},j.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I<T;I++)c[I]=r[i[I]],v[I]=u[i[I]]},j.prototype.transform=function(i,r,u,c,v,T){this.permute(T,i,r,u,c,v);for(var I=1;I<v;I<<=1)for(var y=I<<1,n=Math.cos(2*Math.PI/y),_=Math.sin(2*Math.PI/y),B=0;B<v;B+=y)for(var N=n,H=_,J=0;J<I;J++){var ue=u[B+J],xe=c[B+J],Pe=u[B+J+I],Se=c[B+J+I],Q=N*Pe-H*Se;Se=N*Se+H*Pe,u[B+J]=ue+(Pe=Q),c[B+J]=xe+Se,u[B+J+I]=ue-Pe,c[B+J+I]=xe-Se,J!==y&&(Q=n*N-_*H,H=n*H+_*N,N=Q)}},j.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),c=1&u,v=0;for(u=u/2|0;u;u>>>=1)v++;return 1<<v+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c<u/2;c++){var v=i[c];i[c]=i[u-c-1],i[u-c-1]=v,v=r[c],r[c]=-r[u-c-1],r[u-c-1]=-v}},j.prototype.normalize13b=function(i,r){for(var u=0,c=0;c<r/2;c++){var v=8192*Math.round(i[2*c+1]/r)+Math.round(i[2*c]/r)+u;i[c]=67108863&v,u=v<67108864?0:v/67108864|0}return i},j.prototype.convert13b=function(i,r,u,c){for(var v=0,T=0;T<r;T++)u[2*T]=8191&(v+=0|i[T]),u[2*T+1]=8191&(v>>>=13),v>>>=13;for(T=2*r;T<c;++T)u[T]=0;f(0===v),f(0==(-8192&v))},j.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},j.prototype.mulp=function(i,r,u){var c=2*this.guessLen13b(i.length,r.length),v=this.makeRBT(c),T=this.stub(c),I=new Array(c),y=new Array(c),n=new Array(c),_=new Array(c),B=new Array(c),N=new Array(c),H=u.words;H.length=c,this.convert13b(i.words,i.length,I,c),this.convert13b(r.words,r.length,_,c),this.transform(I,T,y,n,c,v),this.transform(_,T,B,N,c,v);for(var J=0;J<c;J++){var ue=y[J]*B[J]-n[J]*N[J];n[J]=y[J]*N[J]+n[J]*B[J],y[J]=ue}return this.conjugate(y,n,c),this.transform(y,n,H,T,c,v),this.conjugate(H,T,c),this.normalize13b(H,c),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},s.prototype.mul=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},s.prototype.mulf=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),W(this,i,r)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var c=(0|this.words[u])*i,v=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,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 r=function S(C){for(var i=new Array(C.bitLength()),r=0;r<i.length;r++){var c=r%26;i[r]=(C.words[r/26|0]&1<<c)>>>c}return i}(i);if(0===r.length)return new s(1);for(var u=this,c=0;c<r.length&&0===r[c];c++,u=u.sqr());if(++c<r.length)for(var v=u.sqr();c<r.length;c++,v=v.sqr())0!==r[c]&&(u=u.mul(v));return u},s.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v<this.length;v++){var I=this.words[v]&c;this.words[v]=(0|this.words[v])-I<<r|T,T=I>>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v<u;v++)this.words[v]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,r,u){var c;f("number"==typeof i&&i>=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<<v,y=u;if(c-=T,c=Math.max(0,c),y){for(var n=0;n<T;n++)y.words[n]=this.words[n];y.length=T}if(0!==T)if(this.length>T)for(this.length-=T,n=0;n<this.length;n++)this.words[n]=this.words[n+T];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-v|B>>>v,_=B&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,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){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},s.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return f("number"==typeof i),f(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 r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+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,r,u){var v;this._expand(i.length+u);var T,I=0;for(v=0;v<i.length;v++){T=(0|this.words[v+u])+I;var y=(0|i.words[v])*r;I=((T-=67108863&y)>>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v<this.length-u;v++)I=(T=(0|this.words[v+u])+I)>>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v<this.length;v++)I=(T=-(0|this.words[v])+I)>>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new s(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=c.clone()._ishlnsubmul(v,1,y);0===B.negative&&(c=B,n&&(n.words[y]=1));for(var N=y-1;N>=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},s.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{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,r);var c,v,T},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 r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},s.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=new s(0),I=new s(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,J=1;0==(u.words[0]&J)&&H<26;++H,J<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},s.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(B=0===r.cmpn(1)?c:v).cmpn(0)<0&&B.iadd(i),B},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},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){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=c,this;for(var v=c,T=u;0!==v&&T<this.length;T++){var I=0|this.words[T];v=(I+=v)>>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:c<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 r=this.ucmp(i);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){c<v?r=-1:c>v&&(r=1);break}}return r},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 $(i)},s.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function ee(C,i){this.name=C,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 de(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(C){if("string"==typeof C){var i=s._prime(C);this.m=i.p,this.prime=i}else f(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function ge(C){$.call(this,C),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,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(de,ee),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v<c;v++)r.words[v]=i.words[v];if(r.length=c,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(r.words[r.length++]=T&u,v=10;v<i.length;v++){var I=0|i.words[v];i.words[v-10]=(I&u)<<4|T>>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var c=0|i.words[u];i.words[u]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},M(te,ee),M(ie,ee),M(le,ee),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var c=19*(0|i.words[u])+r,v=67108863&c;c>>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},s._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new te;else if("p192"===i)r=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return ne[i]=r,r},$.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},$.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},$.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},$.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},$.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},$.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},$.prototype.isqr=function(i){return this.imul(i,i.clone())},$.prototype.sqr=function(i){return this.mul(i,i)},$.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new s(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var J=N,ue=0;0!==J.cmp(T);ue++)J=J.redSqr();f(ue<H);var xe=this.pow(_,new s(1).iushln(H-ue-1));B=B.redMul(xe),_=xe.redSqr(),N=N.redMul(_),H=ue}return B},$.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},$.prototype.pow=function(i,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return i.clone();var c=new Array(16);c[0]=new s(1).toRed(this),c[1]=i;for(var v=2;v<c.length;v++)c[v]=this.mul(c[v-1],i);var T=c[0],I=0,y=0,n=r.bitLength()%26;for(0===n&&(n=26),v=r.length-1;v>=0;v--){for(var _=r.words[v],B=n-1;B>=0;B--){var N=_>>B&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===B)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},$.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},$.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},s.mont=function(i){return new ge(i)},M(ge,$),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new s(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},8419:ze=>{"use strict";ze.exports=function(p){for(var t=[],e=p.length,f=0;f<e;f++){var M=p.charCodeAt(f);if(M>=55296&&M<=56319&&e>f+1){var s=p.charCodeAt(f+1);s>=56320&&s<=57343&&(M=1024*(M-55296)+s-56320+65536,f+=1)}M<128?t.push(M):M<2048?(t.push(M>>6|192),t.push(63&M|128)):M<55296||M>=57344&&M<65536?(t.push(M>>12|224),t.push(M>>6&63|128),t.push(63&M|128)):M>=65536&&M<=1114111?(t.push(M>>18|240),t.push(M>>12&63|128),t.push(M>>6&63|128),t.push(63&M|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:ze=>{"use strict";var t,K="object"==typeof Reflect?Reflect:null,p=K&&"function"==typeof K.apply?K.apply:function(ee,de,te){return Function.prototype.apply.call(ee,de,te)};t=K&&"function"==typeof K.ownKeys?K.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var f=Number.isNaN||function(ee){return ee!=ee};function M(){M.init.call(this)}ze.exports=M,ze.exports.once=function U(ne,ee){return new Promise(function(de,te){function ie($){ne.removeListener(ee,le),te($)}function le(){"function"==typeof ne.removeListener&&ne.removeListener("error",ie),de([].slice.call(arguments))}j(ne,ee,le,{once:!0}),"error"!==ee&&function W(ne,ee,de){"function"==typeof ne.on&&j(ne,"error",ee,de)}(ne,ie,{once:!0})})},M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var s=10;function b(ne){if("function"!=typeof ne)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ne)}function d(ne){return void 0===ne._maxListeners?M.defaultMaxListeners:ne._maxListeners}function R(ne,ee,de,te){var ie,le,$;if(b(de),void 0===(le=ne._events)?(le=ne._events=Object.create(null),ne._eventsCount=0):(void 0!==le.newListener&&(ne.emit("newListener",ee,de.listener?de.listener:de),le=ne._events),$=le[ee]),void 0===$)$=le[ee]=de,++ne._eventsCount;else if("function"==typeof $?$=le[ee]=te?[de,$]:[$,de]:te?$.unshift(de):$.push(de),(ie=d(ne))>0&&$.length>ie&&!$.warned){$.warned=!0;var ge=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");ge.name="MaxListenersExceededWarning",ge.emitter=ne,ge.type=ee,ge.count=$.length,function e(ne){console&&console.warn&&console.warn(ne)}(ge)}return ne}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function L(ne,ee,de){var te={fired:!1,wrapFn:void 0,target:ne,type:ee,listener:de},ie=h.bind(te);return ie.listener=de,te.wrapFn=ie,ie}function w(ne,ee,de){var te=ne._events;if(void 0===te)return[];var ie=te[ee];return void 0===ie?[]:"function"==typeof ie?de?[ie.listener||ie]:[ie]:de?function E(ne){for(var ee=new Array(ne.length),de=0;de<ee.length;++de)ee[de]=ne[de].listener||ne[de];return ee}(ie):S(ie,ie.length)}function D(ne){var ee=this._events;if(void 0!==ee){var de=ee[ne];if("function"==typeof de)return 1;if(void 0!==de)return de.length}return 0}function S(ne,ee){for(var de=new Array(ee),te=0;te<ee;++te)de[te]=ne[te];return de}function j(ne,ee,de,te){if("function"==typeof ne.on)te.once?ne.once(ee,de):ne.on(ee,de);else{if("function"!=typeof ne.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ne);ne.addEventListener(ee,function ie(le){te.once&&ne.removeEventListener(ee,ie),de(le)})}}Object.defineProperty(M,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(ne){if("number"!=typeof ne||ne<0||f(ne))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ne+".");s=ne}}),M.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},M.prototype.setMaxListeners=function(ee){if("number"!=typeof ee||ee<0||f(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},M.prototype.getMaxListeners=function(){return d(this)},M.prototype.emit=function(ee){for(var de=[],te=1;te<arguments.length;te++)de.push(arguments[te]);var ie="error"===ee,le=this._events;if(void 0!==le)ie=ie&&void 0===le.error;else if(!ie)return!1;if(ie){var $;if(de.length>0&&($=de[0]),$ instanceof Error)throw $;var ge=new Error("Unhandled error."+($?" ("+$.message+")":""));throw ge.context=$,ge}var C=le[ee];if(void 0===C)return!1;if("function"==typeof C)p(C,this,de);else{var i=C.length,r=S(C,i);for(te=0;te<i;++te)p(r[te],this,de)}return!0},M.prototype.on=M.prototype.addListener=function(ee,de){return R(this,ee,de,!1)},M.prototype.prependListener=function(ee,de){return R(this,ee,de,!0)},M.prototype.once=function(ee,de){return b(de),this.on(ee,L(this,ee,de)),this},M.prototype.prependOnceListener=function(ee,de){return b(de),this.prependListener(ee,L(this,ee,de)),this},M.prototype.off=M.prototype.removeListener=function(ee,de){var te,ie,le,$,ge;if(b(de),void 0===(ie=this._events))return this;if(void 0===(te=ie[ee]))return this;if(te===de||te.listener===de)0==--this._eventsCount?this._events=Object.create(null):(delete ie[ee],ie.removeListener&&this.emit("removeListener",ee,te.listener||de));else if("function"!=typeof te){for(le=-1,$=te.length-1;$>=0;$--)if(te[$]===de||te[$].listener===de){ge=te[$].listener,le=$;break}if(le<0)return this;0===le?te.shift():function k(ne,ee){for(;ee+1<ne.length;ee++)ne[ee]=ne[ee+1];ne.pop()}(te,le),1===te.length&&(ie[ee]=te[0]),void 0!==ie.removeListener&&this.emit("removeListener",ee,ge||de)}return this},M.prototype.removeAllListeners=function(ee){var de,te,ie;if(void 0===(te=this._events))return this;if(void 0===te.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==te[ee]&&(0==--this._eventsCount?this._events=Object.create(null):delete te[ee]),this;if(0===arguments.length){var $,le=Object.keys(te);for(ie=0;ie<le.length;++ie)"removeListener"!==($=le[ie])&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(de=te[ee]))this.removeListener(ee,de);else if(void 0!==de)for(ie=de.length-1;ie>=0;ie--)this.removeListener(ee,de[ie]);return this},M.prototype.listeners=function(ee){return w(this,ee,!0)},M.prototype.rawListeners=function(ee){return w(this,ee,!1)},M.listenerCount=function(ne,ee){return"function"==typeof ne.listenerCount?ne.listenerCount(ee):D.call(ne,ee)},M.prototype.listenerCount=D,M.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(ze,K,p)=>{var t=p(3502).Buffer,e=p(8095);ze.exports=function f(M,s,b,d){if(t.isBuffer(M)||(M=t.from(M,"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 R=b/8,h=t.alloc(R),L=t.alloc(d||0),w=t.alloc(0);R>0||d>0;){var D=new e;D.update(w),D.update(M),s&&D.update(s),w=D.digest();var S=0;if(R>0){var k=h.length-R;S=Math.min(R,w.length),w.copy(h,k,0,S),R-=S}if(S<w.length&&d>0){var E=L.length-d,U=Math.min(d,w.length-S);w.copy(L,E,S,S+U),d-=U}}return w.fill(0),{key:h,iv:L}}},9650:(ze,K,p)=>{"use strict";var t=p(8444).Buffer,e=p(5685).Transform;function s(b){e.call(this),this._block=t.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(s,e),s.prototype._transform=function(b,d,R){var h=null;try{this.update(b,d)}catch(L){h=L}R(h)},s.prototype._flush=function(b){var d=null;try{this.push(this.digest())}catch(R){d=R}b(d)},s.prototype.update=function(b,d){if(function M(b,d){if(!t.isBuffer(b)&&"string"!=typeof b)throw new TypeError(d+" must be a string or a buffer")}(b,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(b)||(b=t.from(b,d));for(var R=this._block,h=0;this._blockOffset+b.length-h>=this._blockSize;){for(var L=this._blockOffset;L<this._blockSize;)R[L++]=b[h++];this._update(),this._blockOffset=0}for(;h<b.length;)R[this._blockOffset++]=b[h++];for(var w=0,D=8*b.length;D>0;++w)this._length[w]+=D,(D=this._length[w]/4294967296|0)>0&&(this._length[w]-=4294967296*D);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==b&&(d=d.toString(b)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return d},s.prototype._digest=function(){throw new Error("_digest is not implemented")},ze.exports=s},8444:(ze,K,p)=>{var t=p(3172),e=t.Buffer;function f(s,b){for(var d in s)b[d]=s[d]}function M(s,b,d){return e(s,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?ze.exports=t:(f(t,K),K.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(s,b,d){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,b,d)},M.alloc=function(s,b,d){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=e(s);return void 0!==b?"string"==typeof d?R.fill(b,d):R.fill(b):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},7084:(ze,K,p)=>{var t=K;t.utils=p(9299),t.common=p(3800),t.sha=p(4962),t.ripemd=p(9458),t.hmac=p(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(ze,K,p)=>{"use strict";var t=p(9299),e=p(2391);function f(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}K.BlockHash=f,f.prototype.update=function(s,b){if(s=t.toArray(s,b),this.pending=this.pending?this.pending.concat(s):s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var d=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-d,s.length),0===this.pending.length&&(this.pending=null),s=t.join32(s,0,s.length-d,this.endian);for(var R=0;R<s.length;R+=this._delta32)this._update(s,R,R+this._delta32)}return this},f.prototype.digest=function(s){return this.update(this._pad()),e(null===this.pending),this._digest(s)},f.prototype._pad=function(){var s=this.pendingTotal,b=this._delta8,d=b-(s+this.padLength)%b,R=new Array(d+this.padLength);R[0]=128;for(var h=1;h<d;h++)R[h]=0;if(s<<=3,"big"===this.endian){for(var L=8;L<this.padLength;L++)R[h++]=0;R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=s>>>24&255,R[h++]=s>>>16&255,R[h++]=s>>>8&255,R[h++]=255&s}else for(R[h++]=255&s,R[h++]=s>>>8&255,R[h++]=s>>>16&255,R[h++]=s>>>24&255,R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=0,L=8;L<this.padLength;L++)R[h++]=0;return R}},2194:(ze,K,p)=>{"use strict";var t=p(9299),e=p(2391);function f(M,s,b){if(!(this instanceof f))return new f(M,s,b);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(s,b))}ze.exports=f,f.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),e(s.length<=this.blockSize);for(var b=s.length;b<this.blockSize;b++)s.push(0);for(b=0;b<s.length;b++)s[b]^=54;for(this.inner=(new this.Hash).update(s),b=0;b<s.length;b++)s[b]^=106;this.outer=(new this.Hash).update(s)},f.prototype.update=function(s,b){return this.inner.update(s,b),this},f.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},9458:(ze,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=t.rotl32,M=t.sum32,s=t.sum32_3,b=t.sum32_4,d=e.BlockHash;function R(){if(!(this instanceof R))return new R;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(U,W,j,ne){return U<=15?W^j^ne:U<=31?W&j|~W&ne:U<=47?(W|~j)^ne:U<=63?W&ne|j&~ne:W^(j|~ne)}function w(U){return U<=15?1352829926:U<=31?1548603684:U<=47?1836072691:U<=63?2053994217:0}t.inherits(R,d),K.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(W,j){for(var ne=this.h[0],ee=this.h[1],de=this.h[2],te=this.h[3],ie=this.h[4],le=ne,$=ee,ge=de,C=te,i=ie,r=0;r<80;r++){var u=M(f(b(ne,h(r,ee,de,te),W[D[r]+j],(U=r)<=15?0:U<=31?1518500249:U<=47?1859775393:U<=63?2400959708:2840853838),k[r]),ie);ne=ie,ie=te,te=f(de,10),de=ee,ee=u,u=M(f(b(le,h(79-r,$,ge,C),W[S[r]+j],w(r)),E[r]),i),le=i,i=C,C=f(ge,10),ge=$,$=u}var U;u=s(this.h[1],de,C),this.h[1]=s(this.h[2],te,i),this.h[2]=s(this.h[3],ie,le),this.h[3]=s(this.h[4],ne,$),this.h[4]=s(this.h[0],ee,ge),this.h[0]=u},R.prototype._digest=function(W){return"hex"===W?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var D=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[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:(ze,K,p)=>{"use strict";K.sha1=p(9007),K.sha224=p(55),K.sha256=p(9342),K.sha384=p(8634),K.sha512=p(39)},9007:(ze,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=t.rotl32,s=t.sum32,b=t.sum32_5,d=f.ft_1,R=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(L,R),ze.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(D,S){for(var k=this.W,E=0;E<16;E++)k[E]=D[S+E];for(;E<k.length;E++)k[E]=M(k[E-3]^k[E-8]^k[E-14]^k[E-16],1);var U=this.h[0],W=this.h[1],j=this.h[2],ne=this.h[3],ee=this.h[4];for(E=0;E<k.length;E++){var de=~~(E/20),te=b(M(U,5),d(de,W,j,ne),ee,k[E],h[de]);ee=ne,ne=j,j=M(W,30),W=U,U=te}this.h[0]=s(this.h[0],U),this.h[1]=s(this.h[1],W),this.h[2]=s(this.h[2],j),this.h[3]=s(this.h[3],ne),this.h[4]=s(this.h[4],ee)},L.prototype._digest=function(D){return"hex"===D?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},55:(ze,K,p)=>{"use strict";var t=p(9299),e=p(9342);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(f,e),ze.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(ze,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=p(2391),s=t.sum32,b=t.sum32_4,d=t.sum32_5,R=f.ch32,h=f.maj32,L=f.s0_256,w=f.s1_256,D=f.g0_256,S=f.g1_256,k=e.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function U(){if(!(this instanceof U))return new U;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}t.inherits(U,k),ze.exports=U,U.blockSize=512,U.outSize=256,U.hmacStrength=192,U.padLength=64,U.prototype._update=function(j,ne){for(var ee=this.W,de=0;de<16;de++)ee[de]=j[ne+de];for(;de<ee.length;de++)ee[de]=b(S(ee[de-2]),ee[de-7],D(ee[de-15]),ee[de-16]);var te=this.h[0],ie=this.h[1],le=this.h[2],$=this.h[3],ge=this.h[4],C=this.h[5],i=this.h[6],r=this.h[7];for(M(this.k.length===ee.length),de=0;de<ee.length;de++){var u=d(r,w(ge),R(ge,C,i),this.k[de],ee[de]),c=s(L(te),h(te,ie,le));r=i,i=C,C=ge,ge=s($,u),$=le,le=ie,ie=te,te=s(u,c)}this.h[0]=s(this.h[0],te),this.h[1]=s(this.h[1],ie),this.h[2]=s(this.h[2],le),this.h[3]=s(this.h[3],$),this.h[4]=s(this.h[4],ge),this.h[5]=s(this.h[5],C),this.h[6]=s(this.h[6],i),this.h[7]=s(this.h[7],r)},U.prototype._digest=function(j){return"hex"===j?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},8634:(ze,K,p)=>{"use strict";var t=p(9299),e=p(39);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(f,e),ze.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(ze,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(2391),M=t.rotr64_hi,s=t.rotr64_lo,b=t.shr64_hi,d=t.shr64_lo,R=t.sum64,h=t.sum64_hi,L=t.sum64_lo,w=t.sum64_4_hi,D=t.sum64_4_lo,S=t.sum64_5_hi,k=t.sum64_5_lo,E=e.BlockHash,U=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function W(){if(!(this instanceof W))return new W;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=U,this.W=new Array(160)}function j(u,c,v,T,I){var y=u&v^~u&I;return y<0&&(y+=4294967296),y}function ne(u,c,v,T,I,y){var n=c&T^~c&y;return n<0&&(n+=4294967296),n}function ee(u,c,v,T,I){var y=u&v^u&I^v&I;return y<0&&(y+=4294967296),y}function de(u,c,v,T,I,y){var n=c&T^c&y^T&y;return n<0&&(n+=4294967296),n}function te(u,c){var y=M(u,c,28)^M(c,u,2)^M(c,u,7);return y<0&&(y+=4294967296),y}function ie(u,c){var y=s(u,c,28)^s(c,u,2)^s(c,u,7);return y<0&&(y+=4294967296),y}function le(u,c){var y=M(u,c,14)^M(u,c,18)^M(c,u,9);return y<0&&(y+=4294967296),y}function $(u,c){var y=s(u,c,14)^s(u,c,18)^s(c,u,9);return y<0&&(y+=4294967296),y}function ge(u,c){var y=M(u,c,1)^M(u,c,8)^b(u,c,7);return y<0&&(y+=4294967296),y}function C(u,c){var y=s(u,c,1)^s(u,c,8)^d(u,c,7);return y<0&&(y+=4294967296),y}function i(u,c){var y=M(u,c,19)^M(c,u,29)^b(u,c,6);return y<0&&(y+=4294967296),y}function r(u,c){var y=s(u,c,19)^s(c,u,29)^d(u,c,6);return y<0&&(y+=4294967296),y}t.inherits(W,E),ze.exports=W,W.blockSize=1024,W.outSize=512,W.hmacStrength=192,W.padLength=128,W.prototype._prepareBlock=function(c,v){for(var T=this.W,I=0;I<32;I++)T[I]=c[v+I];for(;I<T.length;I+=2){var y=i(T[I-4],T[I-3]),n=r(T[I-4],T[I-3]),_=T[I-14],B=T[I-13],N=ge(T[I-30],T[I-29]),H=C(T[I-30],T[I-29]),J=T[I-32],ue=T[I-31];T[I]=w(y,n,_,B,N,H,J,ue),T[I+1]=D(y,n,_,B,N,H,J,ue)}},W.prototype._update=function(c,v){this._prepareBlock(c,v);var T=this.W,I=this.h[0],y=this.h[1],n=this.h[2],_=this.h[3],B=this.h[4],N=this.h[5],H=this.h[6],J=this.h[7],ue=this.h[8],xe=this.h[9],Pe=this.h[10],Se=this.h[11],Q=this.h[12],Ue=this.h[13],Ce=this.h[14],q=this.h[15];f(this.k.length===T.length);for(var Ae=0;Ae<T.length;Ae+=2){var ut=Ce,Ie=q,De=le(ue,xe),ae=$(ue,xe),we=j(ue,0,Pe,0,Q),ye=ne(0,xe,0,Se,0,Ue),Y=this.k[Ae],z=this.k[Ae+1],be=T[Ae],fe=T[Ae+1],He=S(ut,Ie,De,ae,we,ye,Y,z,be,fe),pt=k(ut,Ie,De,ae,we,ye,Y,z,be,fe);ut=te(I,y),Ie=ie(I,y),De=ee(I,0,n,0,B),ae=de(0,y,0,_,0,N);var et=h(ut,Ie,De,ae),Lt=L(ut,Ie,De,ae);Ce=Q,q=Ue,Q=Pe,Ue=Se,Pe=ue,Se=xe,ue=h(H,J,He,pt),xe=L(J,J,He,pt),H=B,J=N,B=n,N=_,n=I,_=y,I=h(He,pt,et,Lt),y=L(He,pt,et,Lt)}R(this.h,0,I,y),R(this.h,2,n,_),R(this.h,4,B,N),R(this.h,6,H,J),R(this.h,8,ue,xe),R(this.h,10,Pe,Se),R(this.h,12,Q,Ue),R(this.h,14,Ce,q)},W.prototype._digest=function(c){return"hex"===c?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},3113:(ze,K,p)=>{"use strict";var e=p(9299).rotr32;function M(w,D,S){return w&D^~w&S}function s(w,D,S){return w&D^w&S^D&S}function b(w,D,S){return w^D^S}K.ft_1=function f(w,D,S,k){return 0===w?M(D,S,k):1===w||3===w?b(D,S,k):2===w?s(D,S,k):void 0},K.ch32=M,K.maj32=s,K.p32=b,K.s0_256=function d(w){return e(w,2)^e(w,13)^e(w,22)},K.s1_256=function R(w){return e(w,6)^e(w,11)^e(w,25)},K.g0_256=function h(w){return e(w,7)^e(w,18)^w>>>3},K.g1_256=function L(w){return e(w,17)^e(w,19)^w>>>10}},9299:(ze,K,p)=>{"use strict";var t=p(2391),e=p(3894);function f(r,u){return!(55296!=(64512&r.charCodeAt(u))||u<0||u+1>=r.length)&&56320==(64512&r.charCodeAt(u+1))}function b(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function R(r){return 1===r.length?"0"+r:r}function h(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}K.inherits=e,K.toArray=function M(r,u){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(u){if("hex"===u)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),T=0;T<r.length;T+=2)c.push(parseInt(r[T]+r[T+1],16))}else for(var v=0,T=0;T<r.length;T++){var I=r.charCodeAt(T);I<128?c[v++]=I:I<2048?(c[v++]=I>>6|192,c[v++]=63&I|128):f(r,T)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++T)),c[v++]=I>>18|240,c[v++]=I>>12&63|128,c[v++]=I>>6&63|128,c[v++]=63&I|128):(c[v++]=I>>12|224,c[v++]=I>>6&63|128,c[v++]=63&I|128)}else for(T=0;T<r.length;T++)c[T]=0|r[T];return c},K.toHex=function s(r){for(var u="",c=0;c<r.length;c++)u+=R(r[c].toString(16));return u},K.htonl=b,K.toHex32=function d(r,u){for(var c="",v=0;v<r.length;v++){var T=r[v];"little"===u&&(T=b(T)),c+=h(T.toString(16))}return c},K.zero2=R,K.zero8=h,K.join32=function L(r,u,c,v){var T=c-u;t(T%4==0);for(var I=new Array(T/4),y=0,n=u;y<I.length;y++,n+=4)I[y]=("big"===v?r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3]:r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n])>>>0;return I},K.split32=function w(r,u){for(var c=new Array(4*r.length),v=0,T=0;v<r.length;v++,T+=4){var I=r[v];"big"===u?(c[T]=I>>>24,c[T+1]=I>>>16&255,c[T+2]=I>>>8&255,c[T+3]=255&I):(c[T+3]=I>>>24,c[T+2]=I>>>16&255,c[T+1]=I>>>8&255,c[T]=255&I)}return c},K.rotr32=function D(r,u){return r>>>u|r<<32-u},K.rotl32=function S(r,u){return r<<u|r>>>32-u},K.sum32=function k(r,u){return r+u>>>0},K.sum32_3=function E(r,u,c){return r+u+c>>>0},K.sum32_4=function U(r,u,c,v){return r+u+c+v>>>0},K.sum32_5=function W(r,u,c,v,T){return r+u+c+v+T>>>0},K.sum64=function j(r,u,c,v){var y=v+r[u+1]>>>0;r[u]=(y<v?1:0)+c+r[u]>>>0,r[u+1]=y},K.sum64_hi=function ne(r,u,c,v){return(u+v>>>0<u?1:0)+r+c>>>0},K.sum64_lo=function ee(r,u,c,v){return u+v>>>0},K.sum64_4_hi=function de(r,u,c,v,T,I,y,n){var _=0,B=u;return _+=(B=B+v>>>0)<u?1:0,_+=(B=B+I>>>0)<I?1:0,r+c+T+y+(_+=(B=B+n>>>0)<n?1:0)>>>0},K.sum64_4_lo=function te(r,u,c,v,T,I,y,n){return u+v+I+n>>>0},K.sum64_5_hi=function ie(r,u,c,v,T,I,y,n,_,B){var N=0,H=u;return N+=(H=H+v>>>0)<u?1:0,N+=(H=H+I>>>0)<I?1:0,N+=(H=H+n>>>0)<n?1:0,r+c+T+y+_+(N+=(H=H+B>>>0)<B?1:0)>>>0},K.sum64_5_lo=function le(r,u,c,v,T,I,y,n,_,B){return u+v+I+n+B>>>0},K.rotr64_hi=function $(r,u,c){return(u<<32-c|r>>>c)>>>0},K.rotr64_lo=function ge(r,u,c){return(r<<32-c|u>>>c)>>>0},K.shr64_hi=function C(r,u,c){return r>>>c},K.shr64_lo=function i(r,u,c){return(r<<32-c|u>>>c)>>>0}},2438:(ze,K,p)=>{"use strict";var t=p(7084),e=p(8195),f=p(2391);function M(s){if(!(this instanceof M))return new M(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 b=e.toArray(s.entropy,s.entropyEnc||"hex"),d=e.toArray(s.nonce,s.nonceEnc||"hex"),R=e.toArray(s.pers,s.persEnc||"hex");f(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,d,R)}ze.exports=M,M.prototype._init=function(b,d,R){var h=b.concat(d).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L<this.V.length;L++)this.K[L]=0,this.V[L]=1;this._update(h),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},M.prototype._update=function(b){var d=this._hmac().update(this.V).update([0]);b&&(d=d.update(b)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),b&&(this.K=this._hmac().update(this.V).update([1]).update(b).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(b,d,R,h){"string"!=typeof d&&(h=R,R=d,d=null),b=e.toArray(b,d),R=e.toArray(R,h),f(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(b.concat(R||[])),this._reseed=1},M.prototype.generate=function(b,d,R,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(h=R,R=d,d=null),R&&(R=e.toArray(R,h||"hex"),this._update(R));for(var L=[];L.length<b;)this.V=this._hmac().update(this.V).digest(),L=L.concat(this.V);var w=L.slice(0,b);return this._update(R),this._reseed++,e.encode(w,d)}},8461:(ze,K)=>{K.read=function(p,t,e,f,M){var s,b,d=8*M-f-1,R=(1<<d)-1,h=R>>1,L=-7,w=e?M-1:0,D=e?-1:1,S=p[t+w];for(w+=D,s=S&(1<<-L)-1,S>>=-L,L+=d;L>0;s=256*s+p[t+w],w+=D,L-=8);for(b=s&(1<<-L)-1,s>>=-L,L+=f;L>0;b=256*b+p[t+w],w+=D,L-=8);if(0===s)s=1-h;else{if(s===R)return b?NaN:1/0*(S?-1:1);b+=Math.pow(2,f),s-=h}return(S?-1:1)*b*Math.pow(2,s-f)},K.write=function(p,t,e,f,M,s){var b,d,R,h=8*s-M-1,L=(1<<h)-1,w=L>>1,D=23===M?Math.pow(2,-24)-Math.pow(2,-77):0,S=f?0:s-1,k=f?1:-1,E=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,b=L):(b=Math.floor(Math.log(t)/Math.LN2),t*(R=Math.pow(2,-b))<1&&(b--,R*=2),(t+=b+w>=1?D/R:D*Math.pow(2,1-w))*R>=2&&(b++,R/=2),b+w>=L?(d=0,b=L):b+w>=1?(d=(t*R-1)*Math.pow(2,M),b+=w):(d=t*Math.pow(2,w-1)*Math.pow(2,M),b=0));M>=8;p[e+S]=255&d,S+=k,d/=256,M-=8);for(b=b<<M|d,h+=M;h>0;p[e+S]=255&b,S+=k,b/=256,h-=8);p[e+S-k]|=128*E}},3894:ze=>{ze.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var e=function(){};e.prototype=t.prototype,p.prototype=new e,p.prototype.constructor=p}}},717:(ze,K,p)=>{"use strict";var t=p(623);function e(f){return!0===t(f)&&"[object Object]"===Object.prototype.toString.call(f)}ze.exports=function(M){var s,b;return!(!1===e(M)||(s=M.constructor,"function"!=typeof s)||(b=s.prototype,!1===e(b))||!1===b.hasOwnProperty("isPrototypeOf"))}},623:ze=>{"use strict";ze.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:ze=>{var K=Object.prototype.toString;function p(h){return"function"==typeof h.constructor?h.constructor.name:null}ze.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var w=typeof L;if("boolean"===w)return"boolean";if("string"===w)return"string";if("number"===w)return"number";if("symbol"===w)return"symbol";if("function"===w)return function s(h,L){return"GeneratorFunction"===p(h)}(L)?"generatorfunction":"function";if(function t(h){return Array.isArray?Array.isArray(h):h instanceof Array}(L))return"array";if(function R(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(L))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function f(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(L))return"date";if(function e(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(L))return"error";if(function M(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(L))return"regexp";switch(p(L)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function b(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(L))return"generator";switch(w=K.call(L)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return w.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(ze,K,p)=>{"use strict";var t=p(3894),e=p(9650),f=p(3502).Buffer,M=new Array(16);function s(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function b(w,D){return w<<D|w>>>32-D}function d(w,D,S,k,E,U,W){return b(w+(D&S|~D&k)+E+U|0,W)+D|0}function R(w,D,S,k,E,U,W){return b(w+(D&k|S&~k)+E+U|0,W)+D|0}function h(w,D,S,k,E,U,W){return b(w+(D^S^k)+E+U|0,W)+D|0}function L(w,D,S,k,E,U,W){return b(w+(S^(D|~k))+E+U|0,W)+D|0}t(s,e),s.prototype._update=function(){for(var w=M,D=0;D<16;++D)w[D]=this._block.readInt32LE(4*D);var S=this._a,k=this._b,E=this._c,U=this._d;S=d(S,k,E,U,w[0],3614090360,7),U=d(U,S,k,E,w[1],3905402710,12),E=d(E,U,S,k,w[2],606105819,17),k=d(k,E,U,S,w[3],3250441966,22),S=d(S,k,E,U,w[4],4118548399,7),U=d(U,S,k,E,w[5],1200080426,12),E=d(E,U,S,k,w[6],2821735955,17),k=d(k,E,U,S,w[7],4249261313,22),S=d(S,k,E,U,w[8],1770035416,7),U=d(U,S,k,E,w[9],2336552879,12),E=d(E,U,S,k,w[10],4294925233,17),k=d(k,E,U,S,w[11],2304563134,22),S=d(S,k,E,U,w[12],1804603682,7),U=d(U,S,k,E,w[13],4254626195,12),E=d(E,U,S,k,w[14],2792965006,17),S=R(S,k=d(k,E,U,S,w[15],1236535329,22),E,U,w[1],4129170786,5),U=R(U,S,k,E,w[6],3225465664,9),E=R(E,U,S,k,w[11],643717713,14),k=R(k,E,U,S,w[0],3921069994,20),S=R(S,k,E,U,w[5],3593408605,5),U=R(U,S,k,E,w[10],38016083,9),E=R(E,U,S,k,w[15],3634488961,14),k=R(k,E,U,S,w[4],3889429448,20),S=R(S,k,E,U,w[9],568446438,5),U=R(U,S,k,E,w[14],3275163606,9),E=R(E,U,S,k,w[3],4107603335,14),k=R(k,E,U,S,w[8],1163531501,20),S=R(S,k,E,U,w[13],2850285829,5),U=R(U,S,k,E,w[2],4243563512,9),E=R(E,U,S,k,w[7],1735328473,14),S=h(S,k=R(k,E,U,S,w[12],2368359562,20),E,U,w[5],4294588738,4),U=h(U,S,k,E,w[8],2272392833,11),E=h(E,U,S,k,w[11],1839030562,16),k=h(k,E,U,S,w[14],4259657740,23),S=h(S,k,E,U,w[1],2763975236,4),U=h(U,S,k,E,w[4],1272893353,11),E=h(E,U,S,k,w[7],4139469664,16),k=h(k,E,U,S,w[10],3200236656,23),S=h(S,k,E,U,w[13],681279174,4),U=h(U,S,k,E,w[0],3936430074,11),E=h(E,U,S,k,w[3],3572445317,16),k=h(k,E,U,S,w[6],76029189,23),S=h(S,k,E,U,w[9],3654602809,4),U=h(U,S,k,E,w[12],3873151461,11),E=h(E,U,S,k,w[15],530742520,16),S=L(S,k=h(k,E,U,S,w[2],3299628645,23),E,U,w[0],4096336452,6),U=L(U,S,k,E,w[7],1126891415,10),E=L(E,U,S,k,w[14],2878612391,15),k=L(k,E,U,S,w[5],4237533241,21),S=L(S,k,E,U,w[12],1700485571,6),U=L(U,S,k,E,w[3],2399980690,10),E=L(E,U,S,k,w[10],4293915773,15),k=L(k,E,U,S,w[1],2240044497,21),S=L(S,k,E,U,w[8],1873313359,6),U=L(U,S,k,E,w[15],4264355552,10),E=L(E,U,S,k,w[6],2734768916,15),k=L(k,E,U,S,w[13],1309151649,21),S=L(S,k,E,U,w[4],4149444226,6),U=L(U,S,k,E,w[11],3174756917,10),E=L(E,U,S,k,w[2],718787259,15),k=L(k,E,U,S,w[9],3951481745,21),this._a=this._a+S|0,this._b=this._b+k|0,this._c=this._c+E|0,this._d=this._d+U|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=f.allocUnsafe(16);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w},ze.exports=s},7079:(ze,K,p)=>{var t=p(1378),e=p(7950);function f(M){this.rand=M||new e.Rand}ze.exports=f,f.create=function(s){return new f(s)},f.prototype._randbelow=function(s){var b=s.bitLength(),d=Math.ceil(b/8);do{var R=new t(this.rand.generate(d))}while(R.cmp(s)>=0);return R},f.prototype._randrange=function(s,b){var d=b.sub(s);return s.add(this._randbelow(d))},f.prototype.test=function(s,b,d){var R=s.bitLength(),h=t.mont(s),L=new t(1).toRed(h);b||(b=Math.max(1,R/48|0));for(var w=s.subn(1),D=0;!w.testn(D);D++);for(var S=s.shrn(D),k=w.toRed(h);b>0;b--){var U=this._randrange(new t(2),w);d&&d(U);var W=U.toRed(h).redPow(S);if(0!==W.cmp(L)&&0!==W.cmp(k)){for(var j=1;j<D;j++){if(0===(W=W.redSqr()).cmp(L))return!1;if(0===W.cmp(k))break}if(j===D)return!1}}return!0},f.prototype.getDivisor=function(s,b){var d=s.bitLength(),R=t.mont(s),h=new t(1).toRed(R);b||(b=Math.max(1,d/48|0));for(var L=s.subn(1),w=0;!L.testn(w);w++);for(var D=s.shrn(w),S=L.toRed(R);b>0;b--){var k=this._randrange(new t(2),L),E=s.gcd(k);if(0!==E.cmpn(1))return E;var U=k.toRed(R).redPow(D);if(0!==U.cmp(h)&&0!==U.cmp(S)){for(var W=1;W<w;W++){if(0===(U=U.redSqr()).cmp(h))return U.fromRed().subn(1).gcd(s);if(0===U.cmp(S))break}if(W===w)return(U=U.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},1378:function(ze,K,p){!function(t,e){"use strict";function f(C,i){if(!C)throw new Error(i||"Assertion failed")}function M(C,i){C.super_=i;var r=function(){};r.prototype=i.prototype,C.prototype=new r,C.prototype.constructor=C}function s(C,i,r){if(s.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,null!==C&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(C||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(6619).Buffer}catch(C){}function d(C,i){var r=C.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(C,i,r){var u=d(C,r);return r-1>=i&&(u|=d(C,r-1)<<4),u}function h(C,i,r,u){for(var c=0,v=Math.min(C.length,r),T=i;T<v;T++){var I=C.charCodeAt(T)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}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,r){return i.cmp(r)>0?i:r},s.min=function(i,r){return i.cmp(r)<0?i:r},s.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<i.length&&(16===r?this._parseHex(i,c,u):(this._parseBase(i,r,c),"le"===u&&this._initArray(this.toArray(),r,u)))},s.prototype._initNumber=function(i,r,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):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},s.prototype._initArray=function(i,r,u){if(f("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 c=0;c<this.length;c++)this.words[c]=0;var v,T,I=0;if("be"===u)for(c=i.length-1,v=0;c>=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c<i.length;c+=3)this.words[v]|=(T=i[c]|i[c+1]<<8|i[c+2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},s.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,v=0,T=0;if("be"===u)for(c=i.length-1;c>=r;c-=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c<i.length;c+=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_<y;_+=c)n=h(i,_,_+c,r),this.imuln(v),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var B=1;for(n=h(i,_,i.length,r),_=0;_<I;_++)B*=r;this.imuln(B),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 r=0;r<this.length;r++)i.words[r]=this.words[r];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 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"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(C,i,r){r.negative=i.negative^C.negative;var u=C.length+i.length|0;r.length=u,u=u-1|0;var c=0|C.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=y>>>26,B=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-C.length+1);H<=N;H++)_+=(T=(c=0|C.words[n-H|0])*(v=0|i.words[H])+B)/67108864|0,B=67108863&T;r.words[n]=0|B,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}s.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T<this.length;T++){var I=this.words[T],y=(16777215&(I<<c|v)).toString(16);u=0!=(v=I>>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},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&&f(!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,r){return f(void 0!==b),this.toArrayLike(b,i,r)},s.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},s.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n<v;n++)I[n]=0}else{for(n=0;n<v-c;n++)I[n]=0;for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[v-n-1]=y}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},s.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},s.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);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 r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},s.prototype.ior=function(i){return f(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 r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},s.prototype.iand=function(i){return f(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 r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;c<u.length;c++)this.words[c]=r.words[c]^u.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},s.prototype.ixor=function(i){return f(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){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return u>0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<c:this.words[u]&~(1<<c),this.strip()},s.prototype.iadd=function(i){var r,u,c;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T<c.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+(0|c.words[T])+v),v=r>>>26;for(;0!==v&&T<u.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+v),v=r>>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;T<u.length;T++)this.words[T]=u.words[T];return this},s.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):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 r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I<v.length;I++)T=(r=(0|c.words[I])-(0|v.words[I])+T)>>26,this.words[I]=67108863&r;for(;0!==T&&I<c.length;I++)T=(r=(0|c.words[I])+T)>>26,this.words[I]=67108863&r;if(0===T&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var E=function(i,r,u){var y,n,_,c=i.words,v=r.words,T=u.words,I=0,B=0|c[0],N=8191&B,H=B>>>13,J=0|c[1],ue=8191&J,xe=J>>>13,Pe=0|c[2],Se=8191&Pe,Q=Pe>>>13,Ue=0|c[3],Ce=8191&Ue,q=Ue>>>13,Ae=0|c[4],ut=8191&Ae,Ie=Ae>>>13,De=0|c[5],ae=8191&De,we=De>>>13,ye=0|c[6],Y=8191&ye,z=ye>>>13,be=0|c[7],fe=8191&be,He=be>>>13,pt=0|c[8],et=8191&pt,Lt=pt>>>13,di=0|c[9],Wt=8191&di,Gt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],tt=8191&gt,xt=gt>>>13,ei=0|v[2],Kt=8191&ei,Re=ei>>>13,Oe=0|v[3],ce=8191&Oe,ve=Oe>>>13,ht=0|v[4],mt=8191&ht,Ht=ht>>>13,it=0|v[5],Ne=8191&it,nt=it>>>13,Xe=0|v[6],Ee=8191&Xe,Ge=Xe>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,$t=mi>>>13,Ki=0|v[9],hi=8191&Ki,ai=Ki>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(ue,Ot),n=(n=Math.imul(ue,Nt))+Math.imul(xe,Ot)|0,_=Math.imul(xe,Nt);var Gi=(I+(y=y+Math.imul(N,tt)|0)|0)+((8191&(n=(n=n+Math.imul(N,xt)|0)+Math.imul(H,tt)|0))<<13)|0;I=((_=_+Math.imul(H,xt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,y=Math.imul(Se,Ot),n=(n=Math.imul(Se,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(ue,tt)|0,n=(n=n+Math.imul(ue,xt)|0)+Math.imul(xe,tt)|0,_=_+Math.imul(xe,xt)|0;var zi=(I+(y=y+Math.imul(N,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,y=Math.imul(Ce,Ot),n=(n=Math.imul(Ce,Nt))+Math.imul(q,Ot)|0,_=Math.imul(q,Nt),y=y+Math.imul(Se,tt)|0,n=(n=n+Math.imul(Se,xt)|0)+Math.imul(Q,tt)|0,_=_+Math.imul(Q,xt)|0,y=y+Math.imul(ue,Kt)|0,n=(n=n+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0,_=_+Math.imul(xe,Re)|0;var Ui=(I+(y=y+Math.imul(N,ce)|0)|0)+((8191&(n=(n=n+Math.imul(N,ve)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,ve)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Ie,Ot)|0,_=Math.imul(Ie,Nt),y=y+Math.imul(Ce,tt)|0,n=(n=n+Math.imul(Ce,xt)|0)+Math.imul(q,tt)|0,_=_+Math.imul(q,xt)|0,y=y+Math.imul(Se,Kt)|0,n=(n=n+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(ue,ce)|0,n=(n=n+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0,_=_+Math.imul(xe,ve)|0;var Be=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ht)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,y=Math.imul(ae,Ot),n=(n=Math.imul(ae,Nt))+Math.imul(we,Ot)|0,_=Math.imul(we,Nt),y=y+Math.imul(ut,tt)|0,n=(n=n+Math.imul(ut,xt)|0)+Math.imul(Ie,tt)|0,_=_+Math.imul(Ie,xt)|0,y=y+Math.imul(Ce,Kt)|0,n=(n=n+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,_=_+Math.imul(q,Re)|0,y=y+Math.imul(Se,ce)|0,n=(n=n+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,_=_+Math.imul(Q,ve)|0,y=y+Math.imul(ue,mt)|0,n=(n=n+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0,_=_+Math.imul(xe,Ht)|0;var Tt=(I+(y=y+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,nt)|0)+Math.imul(H,Ne)|0))<<13)|0;I=((_=_+Math.imul(H,nt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Y,Ot),n=(n=Math.imul(Y,Nt))+Math.imul(z,Ot)|0,_=Math.imul(z,Nt),y=y+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,xt)|0)+Math.imul(we,tt)|0,_=_+Math.imul(we,xt)|0,y=y+Math.imul(ut,Kt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,_=_+Math.imul(Ie,Re)|0,y=y+Math.imul(Ce,ce)|0,n=(n=n+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,_=_+Math.imul(q,ve)|0,y=y+Math.imul(Se,mt)|0,n=(n=n+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ht)|0,y=y+Math.imul(ue,Ne)|0,n=(n=n+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0,_=_+Math.imul(xe,nt)|0;var _e=(I+(y=y+Math.imul(N,Ee)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ee)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(He,Ot)|0,_=Math.imul(He,Nt),y=y+Math.imul(Y,tt)|0,n=(n=n+Math.imul(Y,xt)|0)+Math.imul(z,tt)|0,_=_+Math.imul(z,xt)|0,y=y+Math.imul(ae,Kt)|0,n=(n=n+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,_=_+Math.imul(we,Re)|0,y=y+Math.imul(ut,ce)|0,n=(n=n+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,_=_+Math.imul(Ie,ve)|0,y=y+Math.imul(Ce,mt)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,_=_+Math.imul(q,Ht)|0,y=y+Math.imul(Se,Ne)|0,n=(n=n+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,_=_+Math.imul(Q,nt)|0,y=y+Math.imul(ue,Ee)|0,n=(n=n+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0,_=_+Math.imul(xe,Ge)|0;var Ke=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,y=Math.imul(et,Ot),n=(n=Math.imul(et,Nt))+Math.imul(Lt,Ot)|0,_=Math.imul(Lt,Nt),y=y+Math.imul(fe,tt)|0,n=(n=n+Math.imul(fe,xt)|0)+Math.imul(He,tt)|0,_=_+Math.imul(He,xt)|0,y=y+Math.imul(Y,Kt)|0,n=(n=n+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,_=_+Math.imul(z,Re)|0,y=y+Math.imul(ae,ce)|0,n=(n=n+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,_=_+Math.imul(we,ve)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,_=_+Math.imul(Ie,Ht)|0,y=y+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,_=_+Math.imul(q,nt)|0,y=y+Math.imul(Se,Ee)|0,n=(n=n+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(ue,lt)|0,n=(n=n+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0,_=_+Math.imul(xe,Ct)|0;var yt=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,$t)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,$t)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(Wt,Ot),n=(n=Math.imul(Wt,Nt))+Math.imul(Gt,Ot)|0,_=Math.imul(Gt,Nt),y=y+Math.imul(et,tt)|0,n=(n=n+Math.imul(et,xt)|0)+Math.imul(Lt,tt)|0,_=_+Math.imul(Lt,xt)|0,y=y+Math.imul(fe,Kt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,_=_+Math.imul(He,Re)|0,y=y+Math.imul(Y,ce)|0,n=(n=n+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,_=_+Math.imul(z,ve)|0,y=y+Math.imul(ae,mt)|0,n=(n=n+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,_=_+Math.imul(we,Ht)|0,y=y+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ie,nt)|0,y=y+Math.imul(Ce,Ee)|0,n=(n=n+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,_=_+Math.imul(q,Ge)|0,y=y+Math.imul(Se,lt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(ue,Jt)|0,n=(n=n+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0,_=_+Math.imul(xe,$t)|0;var re=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,ai)|0)+(n>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Wt,tt),n=(n=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,_=Math.imul(Gt,xt),y=y+Math.imul(et,Kt)|0,n=(n=n+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,_=_+Math.imul(Lt,Re)|0,y=y+Math.imul(fe,ce)|0,n=(n=n+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,_=_+Math.imul(He,ve)|0,y=y+Math.imul(Y,mt)|0,n=(n=n+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,_=_+Math.imul(z,Ht)|0,y=y+Math.imul(ae,Ne)|0,n=(n=n+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,_=_+Math.imul(we,nt)|0,y=y+Math.imul(ut,Ee)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,_=_+Math.imul(Ie,Ge)|0,y=y+Math.imul(Ce,lt)|0,n=(n=n+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,_=_+Math.imul(q,Ct)|0,y=y+Math.imul(Se,Jt)|0,n=(n=n+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,$t)|0;var qe=(I+(y=y+Math.imul(ue,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;I=((_=_+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(Wt,Kt),n=(n=Math.imul(Wt,Re))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Re),y=y+Math.imul(et,ce)|0,n=(n=n+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,_=_+Math.imul(Lt,ve)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,_=_+Math.imul(He,Ht)|0,y=y+Math.imul(Y,Ne)|0,n=(n=n+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,_=_+Math.imul(z,nt)|0,y=y+Math.imul(ae,Ee)|0,n=(n=n+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,_=_+Math.imul(we,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,Ct)|0,y=y+Math.imul(Ce,Jt)|0,n=(n=n+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,_=_+Math.imul(q,$t)|0;var bt=(I+(y=y+Math.imul(Se,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,ai)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Wt,ce),n=(n=Math.imul(Wt,ve))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,ve),y=y+Math.imul(et,mt)|0,n=(n=n+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,_=_+Math.imul(Lt,Ht)|0,y=y+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,_=_+Math.imul(He,nt)|0,y=y+Math.imul(Y,Ee)|0,n=(n=n+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,_=_+Math.imul(z,Ge)|0,y=y+Math.imul(ae,lt)|0,n=(n=n+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,_=_+Math.imul(we,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,_=_+Math.imul(Ie,$t)|0;var Vt=(I+(y=y+Math.imul(Ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0))<<13)|0;I=((_=_+Math.imul(q,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(Wt,mt),n=(n=Math.imul(Wt,Ht))+Math.imul(Gt,mt)|0,_=Math.imul(Gt,Ht),y=y+Math.imul(et,Ne)|0,n=(n=n+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,_=_+Math.imul(Lt,nt)|0,y=y+Math.imul(fe,Ee)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,_=_+Math.imul(He,Ge)|0,y=y+Math.imul(Y,lt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,_=_+Math.imul(z,Ct)|0,y=y+Math.imul(ae,Jt)|0,n=(n=n+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,_=_+Math.imul(we,$t)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0))<<13)|0;I=((_=_+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Wt,Ne),n=(n=Math.imul(Wt,nt))+Math.imul(Gt,Ne)|0,_=Math.imul(Gt,nt),y=y+Math.imul(et,Ee)|0,n=(n=n+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,_=_+Math.imul(Lt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,_=_+Math.imul(He,Ct)|0,y=y+Math.imul(Y,Jt)|0,n=(n=n+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,_=_+Math.imul(z,$t)|0;var wi=(I+(y=y+Math.imul(ae,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0))<<13)|0;I=((_=_+Math.imul(we,ai)|0)+(n>>>13)|0)+(wi>>>26)|0,wi&=67108863,y=Math.imul(Wt,Ee),n=(n=Math.imul(Wt,Ge))+Math.imul(Gt,Ee)|0,_=Math.imul(Gt,Ge),y=y+Math.imul(et,lt)|0,n=(n=n+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,_=_+Math.imul(Lt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,_=_+Math.imul(He,$t)|0;var Xi=(I+(y=y+Math.imul(Y,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0))<<13)|0;I=((_=_+Math.imul(z,ai)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Wt,lt),n=(n=Math.imul(Wt,Ct))+Math.imul(Gt,lt)|0,_=Math.imul(Gt,Ct),y=y+Math.imul(et,Jt)|0,n=(n=n+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,_=_+Math.imul(Lt,$t)|0;var Zi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0))<<13)|0;I=((_=_+Math.imul(He,ai)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Wt,Jt),n=(n=Math.imul(Wt,$t))+Math.imul(Gt,Jt)|0,_=Math.imul(Gt,$t);var on=(I+(y=y+Math.imul(et,hi)|0)|0)+((8191&(n=(n=n+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0))<<13)|0;I=((_=_+Math.imul(Lt,ai)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var mn=(I+(y=Math.imul(Wt,hi))|0)+((8191&(n=(n=Math.imul(Wt,ai))+Math.imul(Gt,hi)|0))<<13)|0;return I=((_=Math.imul(Gt,ai))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,T[0]=Ji,T[1]=Gi,T[2]=zi,T[3]=Ui,T[4]=Be,T[5]=Tt,T[6]=_e,T[7]=Ke,T[8]=yt,T[9]=re,T[10]=qe,T[11]=bt,T[12]=Vt,T[13]=bi,T[14]=wi,T[15]=Xi,T[16]=Zi,T[17]=on,T[18]=mn,0!==I&&(T[19]=I,u.length++),u};function W(C,i,r){return(new j).mulp(C,i,r)}function j(C,i){this.x=C,this.y=i}Math.imul||(E=k),s.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function U(C,i,r){r.negative=i.negative^C.negative,r.length=C.length+i.length;for(var u=0,c=0,v=0;v<r.length-1;v++){var T=c;c=0;for(var I=67108863&u,y=Math.min(v,i.length-1),n=Math.max(0,v-C.length+1);n<=y;n++){var H=(0|C.words[v-n])*(0|i.words[n]),J=67108863&H;I=67108863&(J=J+I|0),c+=(T=(T=T+(H/67108864|0)|0)+(J>>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):W(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=s.prototype._countBits(i)-1,c=0;c<i;c++)r[c]=this.revBin(c,u,i);return r},j.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var c=0,v=0;v<r;v++)c|=(1&i)<<r-v-1,i>>=1;return c},j.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I<T;I++)c[I]=r[i[I]],v[I]=u[i[I]]},j.prototype.transform=function(i,r,u,c,v,T){this.permute(T,i,r,u,c,v);for(var I=1;I<v;I<<=1)for(var y=I<<1,n=Math.cos(2*Math.PI/y),_=Math.sin(2*Math.PI/y),B=0;B<v;B+=y)for(var N=n,H=_,J=0;J<I;J++){var ue=u[B+J],xe=c[B+J],Pe=u[B+J+I],Se=c[B+J+I],Q=N*Pe-H*Se;Se=N*Se+H*Pe,u[B+J]=ue+(Pe=Q),c[B+J]=xe+Se,u[B+J+I]=ue-Pe,c[B+J+I]=xe-Se,J!==y&&(Q=n*N-_*H,H=n*H+_*N,N=Q)}},j.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),c=1&u,v=0;for(u=u/2|0;u;u>>>=1)v++;return 1<<v+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c<u/2;c++){var v=i[c];i[c]=i[u-c-1],i[u-c-1]=v,v=r[c],r[c]=-r[u-c-1],r[u-c-1]=-v}},j.prototype.normalize13b=function(i,r){for(var u=0,c=0;c<r/2;c++){var v=8192*Math.round(i[2*c+1]/r)+Math.round(i[2*c]/r)+u;i[c]=67108863&v,u=v<67108864?0:v/67108864|0}return i},j.prototype.convert13b=function(i,r,u,c){for(var v=0,T=0;T<r;T++)u[2*T]=8191&(v+=0|i[T]),u[2*T+1]=8191&(v>>>=13),v>>>=13;for(T=2*r;T<c;++T)u[T]=0;f(0===v),f(0==(-8192&v))},j.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},j.prototype.mulp=function(i,r,u){var c=2*this.guessLen13b(i.length,r.length),v=this.makeRBT(c),T=this.stub(c),I=new Array(c),y=new Array(c),n=new Array(c),_=new Array(c),B=new Array(c),N=new Array(c),H=u.words;H.length=c,this.convert13b(i.words,i.length,I,c),this.convert13b(r.words,r.length,_,c),this.transform(I,T,y,n,c,v),this.transform(_,T,B,N,c,v);for(var J=0;J<c;J++){var ue=y[J]*B[J]-n[J]*N[J];n[J]=y[J]*N[J]+n[J]*B[J],y[J]=ue}return this.conjugate(y,n,c),this.transform(y,n,H,T,c,v),this.conjugate(H,T,c),this.normalize13b(H,c),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},s.prototype.mul=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},s.prototype.mulf=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),W(this,i,r)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var c=(0|this.words[u])*i,v=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,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 r=function S(C){for(var i=new Array(C.bitLength()),r=0;r<i.length;r++){var c=r%26;i[r]=(C.words[r/26|0]&1<<c)>>>c}return i}(i);if(0===r.length)return new s(1);for(var u=this,c=0;c<r.length&&0===r[c];c++,u=u.sqr());if(++c<r.length)for(var v=u.sqr();c<r.length;c++,v=v.sqr())0!==r[c]&&(u=u.mul(v));return u},s.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v<this.length;v++){var I=this.words[v]&c;this.words[v]=(0|this.words[v])-I<<r|T,T=I>>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v<u;v++)this.words[v]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,r,u){var c;f("number"==typeof i&&i>=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<<v,y=u;if(c-=T,c=Math.max(0,c),y){for(var n=0;n<T;n++)y.words[n]=this.words[n];y.length=T}if(0!==T)if(this.length>T)for(this.length-=T,n=0;n<this.length;n++)this.words[n]=this.words[n+T];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-v|B>>>v,_=B&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,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){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},s.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return f("number"==typeof i),f(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 r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+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,r,u){var v;this._expand(i.length+u);var T,I=0;for(v=0;v<i.length;v++){T=(0|this.words[v+u])+I;var y=(0|i.words[v])*r;I=((T-=67108863&y)>>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v<this.length-u;v++)I=(T=(0|this.words[v+u])+I)>>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v<this.length;v++)I=(T=-(0|this.words[v])+I)>>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new s(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=c.clone()._ishlnsubmul(v,1,y);0===B.negative&&(c=B,n&&(n.words[y]=1));for(var N=y-1;N>=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},s.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{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,r);var c,v,T},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 r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},s.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=new s(0),I=new s(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,J=1;0==(u.words[0]&J)&&H<26;++H,J<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},s.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(B=0===r.cmpn(1)?c:v).cmpn(0)<0&&B.iadd(i),B},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},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){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=c,this;for(var v=c,T=u;0!==v&&T<this.length;T++){var I=0|this.words[T];v=(I+=v)>>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:c<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 r=this.ucmp(i);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){c<v?r=-1:c>v&&(r=1);break}}return r},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 $(i)},s.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function ee(C,i){this.name=C,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 de(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(C){if("string"==typeof C){var i=s._prime(C);this.m=i.p,this.prime=i}else f(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function ge(C){$.call(this,C),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,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(de,ee),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v<c;v++)r.words[v]=i.words[v];if(r.length=c,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(r.words[r.length++]=T&u,v=10;v<i.length;v++){var I=0|i.words[v];i.words[v-10]=(I&u)<<4|T>>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var c=0|i.words[u];i.words[u]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},M(te,ee),M(ie,ee),M(le,ee),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var c=19*(0|i.words[u])+r,v=67108863&c;c>>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},s._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new te;else if("p192"===i)r=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return ne[i]=r,r},$.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},$.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},$.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},$.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},$.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},$.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},$.prototype.isqr=function(i){return this.imul(i,i.clone())},$.prototype.sqr=function(i){return this.mul(i,i)},$.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new s(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var J=N,ue=0;0!==J.cmp(T);ue++)J=J.redSqr();f(ue<H);var xe=this.pow(_,new s(1).iushln(H-ue-1));B=B.redMul(xe),_=xe.redSqr(),N=N.redMul(_),H=ue}return B},$.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},$.prototype.pow=function(i,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return i.clone();var c=new Array(16);c[0]=new s(1).toRed(this),c[1]=i;for(var v=2;v<c.length;v++)c[v]=this.mul(c[v-1],i);var T=c[0],I=0,y=0,n=r.bitLength()%26;for(0===n&&(n=26),v=r.length-1;v>=0;v--){for(var _=r.words[v],B=n-1;B>=0;B--){var N=_>>B&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===B)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},$.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},$.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},s.mont=function(i){return new ge(i)},M(ge,$),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new s(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},2391:ze=>{function K(p,t){if(!p)throw new Error(t||"Assertion failed")}ze.exports=K,K.equal=function(t,e,f){if(t!=e)throw new Error(f||"Assertion failed: "+t+" != "+e)}},8195:(ze,K)=>{"use strict";var p=K;function e(M){return 1===M.length?"0"+M:M}function f(M){for(var s="",b=0;b<M.length;b++)s+=e(M[b].toString(16));return s}p.toArray=function t(M,s){if(Array.isArray(M))return M.slice();if(!M)return[];var b=[];if("string"!=typeof M){for(var d=0;d<M.length;d++)b[d]=0|M[d];return b}if("hex"===s)for((M=M.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(M="0"+M),d=0;d<M.length;d+=2)b.push(parseInt(M[d]+M[d+1],16));else for(d=0;d<M.length;d++){var R=M.charCodeAt(d),h=R>>8,L=255&R;h?b.push(h,L):b.push(L)}return b},p.zero2=e,p.toHex=f,p.encode=function(s,b){return"hex"===b?f(s):s}},5768:(ze,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(K,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(ze,K,p)=>{"use strict";var t=p(7977);K.certificate=p(2390);var e=t.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});K.RSAPrivateKey=e;var f=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});K.RSAPublicKey=f;var M=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});K.PublicKey=M;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())}),b=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});K.PrivateKey=b;var d=t.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});K.EncryptedPrivateKey=d;var R=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())});K.DSAPrivateKey=R,K.DSAparam=t.define("DSAparam",function(){this.int()});var h=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});K.ECPrivateKey=h;var L=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});K.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(ze,K,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),b=t.define("RelativeDistinguishedName",function(){this.setof(f)}),d=t.define("RDNSequence",function(){this.seqof(b)}),R=t.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),h=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),L=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),w=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(R),this.key("validity").use(h),this.key("subject").use(R),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(L).optional())}),D=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});ze.exports=D},5269:(ze,K,p)=>{var t=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=p(347),s=p(4330),b=p(3502).Buffer;ze.exports=function(d,R){var w,h=d.toString(),L=h.match(t);if(L){var S="aes"+L[1],k=b.from(L[2],"hex"),E=b.from(L[3].replace(/[\r\n]/g,""),"base64"),U=M(R,k.slice(0,8),parseInt(L[1],10)).key,W=[],j=s.createDecipheriv(S,U,k);W.push(j.update(E)),W.push(j.final()),w=b.concat(W)}else{var D=h.match(f);w=b.from(D[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(e)[1],data:w}}},2772:(ze,K,p)=>{var t=p(2999),e=p(2562),f=p(5269),M=p(4330),s=p(9357),b=p(3502).Buffer;function d(h){var L;"object"==typeof h&&!b.isBuffer(h)&&(L=h.passphrase,h=h.key),"string"==typeof h&&(h=b.from(h));var k,E,w=f(h,L),D=w.tag,S=w.data;switch(D){case"CERTIFICATE":E=t.certificate.decode(S,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=t.PublicKey.decode(S,"der")),k=E.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=t.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":S=function R(h,L){var w=h.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=e[h.algorithm.decrypt.cipher.algo.join(".")],k=h.algorithm.decrypt.cipher.iv,E=h.subjectPrivateKey,U=parseInt(S.split("-")[1],10)/8,W=s.pbkdf2Sync(L,w,D,U,"sha1"),j=M.createDecipheriv(S,W,k),ne=[];return ne.push(j.update(E)),ne.push(j.final()),b.concat(ne)}(S=t.EncryptedPrivateKey.decode(S,"der"),L);case"PRIVATE KEY":switch(k=(E=t.PrivateKey.decode(S,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:t.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=t.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(S,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(S,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(S,"der")};case"EC PRIVATE KEY":return{curve:(S=t.ECPrivateKey.decode(S,"der")).parameters.value,privateKey:S.privateKey};default:throw new Error("unknown key type "+D)}}ze.exports=d,d.signature=t.signature},9357:(ze,K,p)=>{K.pbkdf2=p(415),K.pbkdf2Sync=p(7472)},415:(ze,K,p)=>{var b,w,t=p(3502).Buffer,e=p(2697),f=p(8867),M=p(7472),s=p(4566),d=global.crypto&&global.crypto.subtle,R={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function D(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function S(E,U,W,j,ne){return d.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return d.deriveBits({name:"PBKDF2",salt:U,iterations:W,hash:{name:ne}},ee,j<<3)}).then(function(ee){return t.from(ee)})}ze.exports=function(E,U,W,j,ne,ee){"function"==typeof ne&&(ee=ne,ne=void 0);var de=R[(ne=ne||"sha1").toLowerCase()];if(de&&"function"==typeof global.Promise){if(e(W,j),E=s(E,f,"Password"),U=s(U,f,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function k(E,U){E.then(function(W){D()(function(){U(null,W)})},function(W){D()(function(){U(W)})})}(function L(E){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[E])return h[E];var U=S(b=b||t.alloc(8),b,10,128,E).then(function(){return!0}).catch(function(){return!1});return h[E]=U,U}(de).then(function(te){return te?S(E,U,W,j,de):M(E,U,W,j,ne)}),ee)}else D()(function(){var te;try{te=M(E,U,W,j,ne)}catch(ie){return ee(ie)}ee(null,te)})}},8867:ze=>{var K;K=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",ze.exports=K},2697:ze=>{var K=Math.pow(2,30)-1;ze.exports=function(p,t){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>K||t!=t)throw new TypeError("Bad key length")}},7472:(ze,K,p)=>{var t=p(5640),e=p(5634),f=p(5244),M=p(3502).Buffer,s=p(2697),b=p(8867),d=p(4566),R=M.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(S,k,E){var U=function w(S){return"rmd160"===S||"ripemd160"===S?function E(U){return(new e).update(U).digest()}:"md5"===S?t:function k(U){return f(S).update(U).digest()}}(S),W="sha512"===S||"sha384"===S?128:64;k.length>W?k=U(k):k.length<W&&(k=M.concat([k,R],W));for(var j=M.allocUnsafe(W+h[S]),ne=M.allocUnsafe(W+h[S]),ee=0;ee<W;ee++)j[ee]=54^k[ee],ne[ee]=92^k[ee];var de=M.allocUnsafe(W+E+4);j.copy(de,0,0,W),this.ipad1=de,this.ipad2=j,this.opad=ne,this.alg=S,this.blocksize=W,this.hash=U,this.size=h[S]}L.prototype.run=function(S,k){return S.copy(k,this.blocksize),this.hash(k).copy(this.opad,this.blocksize),this.hash(this.opad)},ze.exports=function D(S,k,E,U,W){s(E,U);var j=new L(W=W||"sha1",S=d(S,b,"Password"),(k=d(k,b,"Salt")).length),ne=M.allocUnsafe(U),ee=M.allocUnsafe(k.length+4);k.copy(ee,0,0,k.length);for(var de=0,te=h[W],ie=Math.ceil(U/te),le=1;le<=ie;le++){ee.writeUInt32BE(le,k.length);for(var $=j.run(ee,j.ipad1),ge=$,C=1;C<E;C++){ge=j.run(ge,j.ipad2);for(var i=0;i<te;i++)$[i]^=ge[i]}$.copy(ne,de),de+=te}return ne}},4566:(ze,K,p)=>{var t=p(3502).Buffer;ze.exports=function(e,f,M){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,f);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},3701:(ze,K,p)=>{K.publicEncrypt=p(6562),K.privateDecrypt=p(6705),K.privateEncrypt=function(e,f){return K.publicEncrypt(e,f,!0)},K.publicDecrypt=function(e,f){return K.privateDecrypt(e,f,!0)}},6945:(ze,K,p)=>{var t=p(6386),e=p(3502).Buffer;function f(M){var s=e.allocUnsafe(4);return s.writeUInt32BE(M,0),s}ze.exports=function(M,s){for(var R,b=e.alloc(0),d=0;b.length<s;)R=f(d++),b=e.concat([b,t("sha1").update(M).update(R).digest()]);return b.slice(0,s)}},2057:function(ze,K,p){!function(t,e){"use strict";function f(C,i){if(!C)throw new Error(i||"Assertion failed")}function M(C,i){C.super_=i;var r=function(){};r.prototype=i.prototype,C.prototype=new r,C.prototype.constructor=C}function s(C,i,r){if(s.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,null!==C&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(C||0,i||10,r||"be"))}var b;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{b="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7108).Buffer}catch(C){}function d(C,i){var r=C.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(C,i,r){var u=d(C,r);return r-1>=i&&(u|=d(C,r-1)<<4),u}function h(C,i,r,u){for(var c=0,v=Math.min(C.length,r),T=i;T<v;T++){var I=C.charCodeAt(T)-48;c*=u,c+=I>=49?I-49+10:I>=17?I-17+10:I}return c}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,r){return i.cmp(r)>0?i:r},s.min=function(i,r){return i.cmp(r)<0?i:r},s.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c<i.length&&(16===r?this._parseHex(i,c,u):(this._parseBase(i,r,c),"le"===u&&this._initArray(this.toArray(),r,u)))},s.prototype._initNumber=function(i,r,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):(f(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),r,u)},s.prototype._initArray=function(i,r,u){if(f("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 c=0;c<this.length;c++)this.words[c]=0;var v,T,I=0;if("be"===u)for(c=i.length-1,v=0;c>=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c<i.length;c+=3)this.words[v]|=(T=i[c]|i[c+1]<<8|i[c+2]<<16)<<I&67108863,this.words[v+1]=T>>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},s.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var I,v=0,T=0;if("be"===u)for(c=i.length-1;c>=r;c-=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c<i.length;c+=2)I=R(i,r,c)<<v,this.words[T]|=67108863&I,v>=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_<y;_+=c)n=h(i,_,_+c,r),this.imuln(v),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var B=1;for(n=h(i,_,i.length,r),_=0;_<I;_++)B*=r;this.imuln(B),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 r=0;r<this.length;r++)i.words[r]=this.words[r];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 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"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(C,i,r){r.negative=i.negative^C.negative;var u=C.length+i.length|0;r.length=u,u=u-1|0;var c=0|C.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=y>>>26,B=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-C.length+1);H<=N;H++)_+=(T=(c=0|C.words[n-H|0])*(v=0|i.words[H])+B)/67108864|0,B=67108863&T;r.words[n]=0|B,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}s.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T<this.length;T++){var I=this.words[T],y=(16777215&(I<<c|v)).toString(16);u=0!=(v=I>>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var N=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},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&&f(!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,r){return f(void 0!==b),this.toArrayLike(b,i,r)},s.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},s.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n<v;n++)I[n]=0}else{for(n=0;n<v-c;n++)I[n]=0;for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[v-n-1]=y}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var r=i,u=0;return r>=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},s.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},s.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;r<this.length;r++){var u=this._zeroBits(this.words[r]);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 r=0;r<i.length;r++)this.words[r]=this.words[r]|i.words[r];return this.strip()},s.prototype.ior=function(i){return f(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 r;r=this.length>i.length?i:this;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=r.length,this.strip()},s.prototype.iand=function(i){return f(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 r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;c<u.length;c++)this.words[c]=r.words[c]^u.words[c];if(this!==r)for(;c<r.length;c++)this.words[c]=r.words[c];return this.length=r.length,this.strip()},s.prototype.ixor=function(i){return f(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){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c<r;c++)this.words[c]=67108863&~this.words[c];return u>0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<<c:this.words[u]&~(1<<c),this.strip()},s.prototype.iadd=function(i){var r,u,c;if(0!==this.negative&&0===i.negative)return this.negative=0,r=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,r=this.isub(i),i.negative=1,r._normSign();this.length>i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T<c.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+(0|c.words[T])+v),v=r>>>26;for(;0!==v&&T<u.length;T++)this.words[T]=67108863&(r=(0|u.words[T])+v),v=r>>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;T<u.length;T++)this.words[T]=u.words[T];return this},s.prototype.add=function(i){var r;return 0!==i.negative&&0===this.negative?(i.negative=0,r=this.sub(i),i.negative^=1,r):0===i.negative&&0!==this.negative?(this.negative=0,r=i.sub(this),this.negative=1,r):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 r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I<v.length;I++)T=(r=(0|c.words[I])-(0|v.words[I])+T)>>26,this.words[I]=67108863&r;for(;0!==T&&I<c.length;I++)T=(r=(0|c.words[I])+T)>>26,this.words[I]=67108863&r;if(0===T&&I<c.length&&c!==this)for(;I<c.length;I++)this.words[I]=c.words[I];return this.length=Math.max(this.length,I),c!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var E=function(i,r,u){var y,n,_,c=i.words,v=r.words,T=u.words,I=0,B=0|c[0],N=8191&B,H=B>>>13,J=0|c[1],ue=8191&J,xe=J>>>13,Pe=0|c[2],Se=8191&Pe,Q=Pe>>>13,Ue=0|c[3],Ce=8191&Ue,q=Ue>>>13,Ae=0|c[4],ut=8191&Ae,Ie=Ae>>>13,De=0|c[5],ae=8191&De,we=De>>>13,ye=0|c[6],Y=8191&ye,z=ye>>>13,be=0|c[7],fe=8191&be,He=be>>>13,pt=0|c[8],et=8191&pt,Lt=pt>>>13,di=0|c[9],Wt=8191&di,Gt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],tt=8191&gt,xt=gt>>>13,ei=0|v[2],Kt=8191&ei,Re=ei>>>13,Oe=0|v[3],ce=8191&Oe,ve=Oe>>>13,ht=0|v[4],mt=8191&ht,Ht=ht>>>13,it=0|v[5],Ne=8191&it,nt=it>>>13,Xe=0|v[6],Ee=8191&Xe,Ge=Xe>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,$t=mi>>>13,Ki=0|v[9],hi=8191&Ki,ai=Ki>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(ue,Ot),n=(n=Math.imul(ue,Nt))+Math.imul(xe,Ot)|0,_=Math.imul(xe,Nt);var Gi=(I+(y=y+Math.imul(N,tt)|0)|0)+((8191&(n=(n=n+Math.imul(N,xt)|0)+Math.imul(H,tt)|0))<<13)|0;I=((_=_+Math.imul(H,xt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,y=Math.imul(Se,Ot),n=(n=Math.imul(Se,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(ue,tt)|0,n=(n=n+Math.imul(ue,xt)|0)+Math.imul(xe,tt)|0,_=_+Math.imul(xe,xt)|0;var zi=(I+(y=y+Math.imul(N,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,y=Math.imul(Ce,Ot),n=(n=Math.imul(Ce,Nt))+Math.imul(q,Ot)|0,_=Math.imul(q,Nt),y=y+Math.imul(Se,tt)|0,n=(n=n+Math.imul(Se,xt)|0)+Math.imul(Q,tt)|0,_=_+Math.imul(Q,xt)|0,y=y+Math.imul(ue,Kt)|0,n=(n=n+Math.imul(ue,Re)|0)+Math.imul(xe,Kt)|0,_=_+Math.imul(xe,Re)|0;var Ui=(I+(y=y+Math.imul(N,ce)|0)|0)+((8191&(n=(n=n+Math.imul(N,ve)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,ve)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Ie,Ot)|0,_=Math.imul(Ie,Nt),y=y+Math.imul(Ce,tt)|0,n=(n=n+Math.imul(Ce,xt)|0)+Math.imul(q,tt)|0,_=_+Math.imul(q,xt)|0,y=y+Math.imul(Se,Kt)|0,n=(n=n+Math.imul(Se,Re)|0)+Math.imul(Q,Kt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(ue,ce)|0,n=(n=n+Math.imul(ue,ve)|0)+Math.imul(xe,ce)|0,_=_+Math.imul(xe,ve)|0;var Be=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ht)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ht)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,y=Math.imul(ae,Ot),n=(n=Math.imul(ae,Nt))+Math.imul(we,Ot)|0,_=Math.imul(we,Nt),y=y+Math.imul(ut,tt)|0,n=(n=n+Math.imul(ut,xt)|0)+Math.imul(Ie,tt)|0,_=_+Math.imul(Ie,xt)|0,y=y+Math.imul(Ce,Kt)|0,n=(n=n+Math.imul(Ce,Re)|0)+Math.imul(q,Kt)|0,_=_+Math.imul(q,Re)|0,y=y+Math.imul(Se,ce)|0,n=(n=n+Math.imul(Se,ve)|0)+Math.imul(Q,ce)|0,_=_+Math.imul(Q,ve)|0,y=y+Math.imul(ue,mt)|0,n=(n=n+Math.imul(ue,Ht)|0)+Math.imul(xe,mt)|0,_=_+Math.imul(xe,Ht)|0;var Tt=(I+(y=y+Math.imul(N,Ne)|0)|0)+((8191&(n=(n=n+Math.imul(N,nt)|0)+Math.imul(H,Ne)|0))<<13)|0;I=((_=_+Math.imul(H,nt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(Y,Ot),n=(n=Math.imul(Y,Nt))+Math.imul(z,Ot)|0,_=Math.imul(z,Nt),y=y+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,xt)|0)+Math.imul(we,tt)|0,_=_+Math.imul(we,xt)|0,y=y+Math.imul(ut,Kt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Ie,Kt)|0,_=_+Math.imul(Ie,Re)|0,y=y+Math.imul(Ce,ce)|0,n=(n=n+Math.imul(Ce,ve)|0)+Math.imul(q,ce)|0,_=_+Math.imul(q,ve)|0,y=y+Math.imul(Se,mt)|0,n=(n=n+Math.imul(Se,Ht)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ht)|0,y=y+Math.imul(ue,Ne)|0,n=(n=n+Math.imul(ue,nt)|0)+Math.imul(xe,Ne)|0,_=_+Math.imul(xe,nt)|0;var _e=(I+(y=y+Math.imul(N,Ee)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ee)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(He,Ot)|0,_=Math.imul(He,Nt),y=y+Math.imul(Y,tt)|0,n=(n=n+Math.imul(Y,xt)|0)+Math.imul(z,tt)|0,_=_+Math.imul(z,xt)|0,y=y+Math.imul(ae,Kt)|0,n=(n=n+Math.imul(ae,Re)|0)+Math.imul(we,Kt)|0,_=_+Math.imul(we,Re)|0,y=y+Math.imul(ut,ce)|0,n=(n=n+Math.imul(ut,ve)|0)+Math.imul(Ie,ce)|0,_=_+Math.imul(Ie,ve)|0,y=y+Math.imul(Ce,mt)|0,n=(n=n+Math.imul(Ce,Ht)|0)+Math.imul(q,mt)|0,_=_+Math.imul(q,Ht)|0,y=y+Math.imul(Se,Ne)|0,n=(n=n+Math.imul(Se,nt)|0)+Math.imul(Q,Ne)|0,_=_+Math.imul(Q,nt)|0,y=y+Math.imul(ue,Ee)|0,n=(n=n+Math.imul(ue,Ge)|0)+Math.imul(xe,Ee)|0,_=_+Math.imul(xe,Ge)|0;var Ke=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,y=Math.imul(et,Ot),n=(n=Math.imul(et,Nt))+Math.imul(Lt,Ot)|0,_=Math.imul(Lt,Nt),y=y+Math.imul(fe,tt)|0,n=(n=n+Math.imul(fe,xt)|0)+Math.imul(He,tt)|0,_=_+Math.imul(He,xt)|0,y=y+Math.imul(Y,Kt)|0,n=(n=n+Math.imul(Y,Re)|0)+Math.imul(z,Kt)|0,_=_+Math.imul(z,Re)|0,y=y+Math.imul(ae,ce)|0,n=(n=n+Math.imul(ae,ve)|0)+Math.imul(we,ce)|0,_=_+Math.imul(we,ve)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ht)|0)+Math.imul(Ie,mt)|0,_=_+Math.imul(Ie,Ht)|0,y=y+Math.imul(Ce,Ne)|0,n=(n=n+Math.imul(Ce,nt)|0)+Math.imul(q,Ne)|0,_=_+Math.imul(q,nt)|0,y=y+Math.imul(Se,Ee)|0,n=(n=n+Math.imul(Se,Ge)|0)+Math.imul(Q,Ee)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(ue,lt)|0,n=(n=n+Math.imul(ue,Ct)|0)+Math.imul(xe,lt)|0,_=_+Math.imul(xe,Ct)|0;var yt=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,$t)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,$t)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(Wt,Ot),n=(n=Math.imul(Wt,Nt))+Math.imul(Gt,Ot)|0,_=Math.imul(Gt,Nt),y=y+Math.imul(et,tt)|0,n=(n=n+Math.imul(et,xt)|0)+Math.imul(Lt,tt)|0,_=_+Math.imul(Lt,xt)|0,y=y+Math.imul(fe,Kt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(He,Kt)|0,_=_+Math.imul(He,Re)|0,y=y+Math.imul(Y,ce)|0,n=(n=n+Math.imul(Y,ve)|0)+Math.imul(z,ce)|0,_=_+Math.imul(z,ve)|0,y=y+Math.imul(ae,mt)|0,n=(n=n+Math.imul(ae,Ht)|0)+Math.imul(we,mt)|0,_=_+Math.imul(we,Ht)|0,y=y+Math.imul(ut,Ne)|0,n=(n=n+Math.imul(ut,nt)|0)+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ie,nt)|0,y=y+Math.imul(Ce,Ee)|0,n=(n=n+Math.imul(Ce,Ge)|0)+Math.imul(q,Ee)|0,_=_+Math.imul(q,Ge)|0,y=y+Math.imul(Se,lt)|0,n=(n=n+Math.imul(Se,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(ue,Jt)|0,n=(n=n+Math.imul(ue,$t)|0)+Math.imul(xe,Jt)|0,_=_+Math.imul(xe,$t)|0;var re=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,ai)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,ai)|0)+(n>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(Wt,tt),n=(n=Math.imul(Wt,xt))+Math.imul(Gt,tt)|0,_=Math.imul(Gt,xt),y=y+Math.imul(et,Kt)|0,n=(n=n+Math.imul(et,Re)|0)+Math.imul(Lt,Kt)|0,_=_+Math.imul(Lt,Re)|0,y=y+Math.imul(fe,ce)|0,n=(n=n+Math.imul(fe,ve)|0)+Math.imul(He,ce)|0,_=_+Math.imul(He,ve)|0,y=y+Math.imul(Y,mt)|0,n=(n=n+Math.imul(Y,Ht)|0)+Math.imul(z,mt)|0,_=_+Math.imul(z,Ht)|0,y=y+Math.imul(ae,Ne)|0,n=(n=n+Math.imul(ae,nt)|0)+Math.imul(we,Ne)|0,_=_+Math.imul(we,nt)|0,y=y+Math.imul(ut,Ee)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Ie,Ee)|0,_=_+Math.imul(Ie,Ge)|0,y=y+Math.imul(Ce,lt)|0,n=(n=n+Math.imul(Ce,Ct)|0)+Math.imul(q,lt)|0,_=_+Math.imul(q,Ct)|0,y=y+Math.imul(Se,Jt)|0,n=(n=n+Math.imul(Se,$t)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,$t)|0;var qe=(I+(y=y+Math.imul(ue,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ue,ai)|0)+Math.imul(xe,hi)|0))<<13)|0;I=((_=_+Math.imul(xe,ai)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(Wt,Kt),n=(n=Math.imul(Wt,Re))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Re),y=y+Math.imul(et,ce)|0,n=(n=n+Math.imul(et,ve)|0)+Math.imul(Lt,ce)|0,_=_+Math.imul(Lt,ve)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ht)|0)+Math.imul(He,mt)|0,_=_+Math.imul(He,Ht)|0,y=y+Math.imul(Y,Ne)|0,n=(n=n+Math.imul(Y,nt)|0)+Math.imul(z,Ne)|0,_=_+Math.imul(z,nt)|0,y=y+Math.imul(ae,Ee)|0,n=(n=n+Math.imul(ae,Ge)|0)+Math.imul(we,Ee)|0,_=_+Math.imul(we,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Ie,lt)|0,_=_+Math.imul(Ie,Ct)|0,y=y+Math.imul(Ce,Jt)|0,n=(n=n+Math.imul(Ce,$t)|0)+Math.imul(q,Jt)|0,_=_+Math.imul(q,$t)|0;var bt=(I+(y=y+Math.imul(Se,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Se,ai)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,ai)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(Wt,ce),n=(n=Math.imul(Wt,ve))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,ve),y=y+Math.imul(et,mt)|0,n=(n=n+Math.imul(et,Ht)|0)+Math.imul(Lt,mt)|0,_=_+Math.imul(Lt,Ht)|0,y=y+Math.imul(fe,Ne)|0,n=(n=n+Math.imul(fe,nt)|0)+Math.imul(He,Ne)|0,_=_+Math.imul(He,nt)|0,y=y+Math.imul(Y,Ee)|0,n=(n=n+Math.imul(Y,Ge)|0)+Math.imul(z,Ee)|0,_=_+Math.imul(z,Ge)|0,y=y+Math.imul(ae,lt)|0,n=(n=n+Math.imul(ae,Ct)|0)+Math.imul(we,lt)|0,_=_+Math.imul(we,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,$t)|0)+Math.imul(Ie,Jt)|0,_=_+Math.imul(Ie,$t)|0;var Vt=(I+(y=y+Math.imul(Ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ce,ai)|0)+Math.imul(q,hi)|0))<<13)|0;I=((_=_+Math.imul(q,ai)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(Wt,mt),n=(n=Math.imul(Wt,Ht))+Math.imul(Gt,mt)|0,_=Math.imul(Gt,Ht),y=y+Math.imul(et,Ne)|0,n=(n=n+Math.imul(et,nt)|0)+Math.imul(Lt,Ne)|0,_=_+Math.imul(Lt,nt)|0,y=y+Math.imul(fe,Ee)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(He,Ee)|0,_=_+Math.imul(He,Ge)|0,y=y+Math.imul(Y,lt)|0,n=(n=n+Math.imul(Y,Ct)|0)+Math.imul(z,lt)|0,_=_+Math.imul(z,Ct)|0,y=y+Math.imul(ae,Jt)|0,n=(n=n+Math.imul(ae,$t)|0)+Math.imul(we,Jt)|0,_=_+Math.imul(we,$t)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,ai)|0)+Math.imul(Ie,hi)|0))<<13)|0;I=((_=_+Math.imul(Ie,ai)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Wt,Ne),n=(n=Math.imul(Wt,nt))+Math.imul(Gt,Ne)|0,_=Math.imul(Gt,nt),y=y+Math.imul(et,Ee)|0,n=(n=n+Math.imul(et,Ge)|0)+Math.imul(Lt,Ee)|0,_=_+Math.imul(Lt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(He,lt)|0,_=_+Math.imul(He,Ct)|0,y=y+Math.imul(Y,Jt)|0,n=(n=n+Math.imul(Y,$t)|0)+Math.imul(z,Jt)|0,_=_+Math.imul(z,$t)|0;var wi=(I+(y=y+Math.imul(ae,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ae,ai)|0)+Math.imul(we,hi)|0))<<13)|0;I=((_=_+Math.imul(we,ai)|0)+(n>>>13)|0)+(wi>>>26)|0,wi&=67108863,y=Math.imul(Wt,Ee),n=(n=Math.imul(Wt,Ge))+Math.imul(Gt,Ee)|0,_=Math.imul(Gt,Ge),y=y+Math.imul(et,lt)|0,n=(n=n+Math.imul(et,Ct)|0)+Math.imul(Lt,lt)|0,_=_+Math.imul(Lt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,$t)|0)+Math.imul(He,Jt)|0,_=_+Math.imul(He,$t)|0;var Xi=(I+(y=y+Math.imul(Y,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Y,ai)|0)+Math.imul(z,hi)|0))<<13)|0;I=((_=_+Math.imul(z,ai)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Wt,lt),n=(n=Math.imul(Wt,Ct))+Math.imul(Gt,lt)|0,_=Math.imul(Gt,Ct),y=y+Math.imul(et,Jt)|0,n=(n=n+Math.imul(et,$t)|0)+Math.imul(Lt,Jt)|0,_=_+Math.imul(Lt,$t)|0;var Zi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,ai)|0)+Math.imul(He,hi)|0))<<13)|0;I=((_=_+Math.imul(He,ai)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Wt,Jt),n=(n=Math.imul(Wt,$t))+Math.imul(Gt,Jt)|0,_=Math.imul(Gt,$t);var on=(I+(y=y+Math.imul(et,hi)|0)|0)+((8191&(n=(n=n+Math.imul(et,ai)|0)+Math.imul(Lt,hi)|0))<<13)|0;I=((_=_+Math.imul(Lt,ai)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var mn=(I+(y=Math.imul(Wt,hi))|0)+((8191&(n=(n=Math.imul(Wt,ai))+Math.imul(Gt,hi)|0))<<13)|0;return I=((_=Math.imul(Gt,ai))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,T[0]=Ji,T[1]=Gi,T[2]=zi,T[3]=Ui,T[4]=Be,T[5]=Tt,T[6]=_e,T[7]=Ke,T[8]=yt,T[9]=re,T[10]=qe,T[11]=bt,T[12]=Vt,T[13]=bi,T[14]=wi,T[15]=Xi,T[16]=Zi,T[17]=on,T[18]=mn,0!==I&&(T[19]=I,u.length++),u};function W(C,i,r){return(new j).mulp(C,i,r)}function j(C,i){this.x=C,this.y=i}Math.imul||(E=k),s.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function U(C,i,r){r.negative=i.negative^C.negative,r.length=C.length+i.length;for(var u=0,c=0,v=0;v<r.length-1;v++){var T=c;c=0;for(var I=67108863&u,y=Math.min(v,i.length-1),n=Math.max(0,v-C.length+1);n<=y;n++){var H=(0|C.words[v-n])*(0|i.words[n]),J=67108863&H;I=67108863&(J=J+I|0),c+=(T=(T=T+(H/67108864|0)|0)+(J>>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):W(this,i,r),u},j.prototype.makeRBT=function(i){for(var r=new Array(i),u=s.prototype._countBits(i)-1,c=0;c<i;c++)r[c]=this.revBin(c,u,i);return r},j.prototype.revBin=function(i,r,u){if(0===i||i===u-1)return i;for(var c=0,v=0;v<r;v++)c|=(1&i)<<r-v-1,i>>=1;return c},j.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I<T;I++)c[I]=r[i[I]],v[I]=u[i[I]]},j.prototype.transform=function(i,r,u,c,v,T){this.permute(T,i,r,u,c,v);for(var I=1;I<v;I<<=1)for(var y=I<<1,n=Math.cos(2*Math.PI/y),_=Math.sin(2*Math.PI/y),B=0;B<v;B+=y)for(var N=n,H=_,J=0;J<I;J++){var ue=u[B+J],xe=c[B+J],Pe=u[B+J+I],Se=c[B+J+I],Q=N*Pe-H*Se;Se=N*Se+H*Pe,u[B+J]=ue+(Pe=Q),c[B+J]=xe+Se,u[B+J+I]=ue-Pe,c[B+J+I]=xe-Se,J!==y&&(Q=n*N-_*H,H=n*H+_*N,N=Q)}},j.prototype.guessLen13b=function(i,r){var u=1|Math.max(r,i),c=1&u,v=0;for(u=u/2|0;u;u>>>=1)v++;return 1<<v+1+c},j.prototype.conjugate=function(i,r,u){if(!(u<=1))for(var c=0;c<u/2;c++){var v=i[c];i[c]=i[u-c-1],i[u-c-1]=v,v=r[c],r[c]=-r[u-c-1],r[u-c-1]=-v}},j.prototype.normalize13b=function(i,r){for(var u=0,c=0;c<r/2;c++){var v=8192*Math.round(i[2*c+1]/r)+Math.round(i[2*c]/r)+u;i[c]=67108863&v,u=v<67108864?0:v/67108864|0}return i},j.prototype.convert13b=function(i,r,u,c){for(var v=0,T=0;T<r;T++)u[2*T]=8191&(v+=0|i[T]),u[2*T+1]=8191&(v>>>=13),v>>>=13;for(T=2*r;T<c;++T)u[T]=0;f(0===v),f(0==(-8192&v))},j.prototype.stub=function(i){for(var r=new Array(i),u=0;u<i;u++)r[u]=0;return r},j.prototype.mulp=function(i,r,u){var c=2*this.guessLen13b(i.length,r.length),v=this.makeRBT(c),T=this.stub(c),I=new Array(c),y=new Array(c),n=new Array(c),_=new Array(c),B=new Array(c),N=new Array(c),H=u.words;H.length=c,this.convert13b(i.words,i.length,I,c),this.convert13b(r.words,r.length,_,c),this.transform(I,T,y,n,c,v),this.transform(_,T,B,N,c,v);for(var J=0;J<c;J++){var ue=y[J]*B[J]-n[J]*N[J];n[J]=y[J]*N[J]+n[J]*B[J],y[J]=ue}return this.conjugate(y,n,c),this.transform(y,n,H,T,c,v),this.conjugate(H,T,c),this.normalize13b(H,c),u.negative=i.negative^r.negative,u.length=i.length+r.length,u.strip()},s.prototype.mul=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),this.mulTo(i,r)},s.prototype.mulf=function(i){var r=new s(null);return r.words=new Array(this.length+i.length),W(this,i,r)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){f("number"==typeof i),f(i<67108864);for(var r=0,u=0;u<this.length;u++){var c=(0|this.words[u])*i,v=(67108863&c)+(67108863&r);r>>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,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 r=function S(C){for(var i=new Array(C.bitLength()),r=0;r<i.length;r++){var c=r%26;i[r]=(C.words[r/26|0]&1<<c)>>>c}return i}(i);if(0===r.length)return new s(1);for(var u=this,c=0;c<r.length&&0===r[c];c++,u=u.sqr());if(++c<r.length)for(var v=u.sqr();c<r.length;c++,v=v.sqr())0!==r[c]&&(u=u.mul(v));return u},s.prototype.iushln=function(i){f("number"==typeof i&&i>=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v<this.length;v++){var I=this.words[v]&c;this.words[v]=(0|this.words[v])-I<<r|T,T=I>>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v<u;v++)this.words[v]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return f(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,r,u){var c;f("number"==typeof i&&i>=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<<v,y=u;if(c-=T,c=Math.max(0,c),y){for(var n=0;n<T;n++)y.words[n]=this.words[n];y.length=T}if(0!==T)if(this.length>T)for(this.length-=T,n=0;n<this.length;n++)this.words[n]=this.words[n+T];else this.words[0]=0,this.length=1;var _=0;for(n=this.length-1;n>=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-v|B>>>v,_=B&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,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){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<<r))},s.prototype.imaskn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return f("number"==typeof i),f(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 r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+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,r,u){var v;this._expand(i.length+u);var T,I=0;for(v=0;v<i.length;v++){T=(0|this.words[v+u])+I;var y=(0|i.words[v])*r;I=((T-=67108863&y)>>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v<this.length-u;v++)I=(T=(0|this.words[v+u])+I)>>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v<this.length;v++)I=(T=-(0|this.words[v])+I)>>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new s(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=c.clone()._ishlnsubmul(v,1,y);0===B.negative&&(c=B,n&&(n.words[y]=1));for(var N=y-1;N>=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},s.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{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,r);var c,v,T},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 r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},s.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=new s(0),I=new s(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var B=0,N=1;0==(r.words[0]&N)&&B<26;++B,N<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,J=1;0==(u.words[0]&J)&&H<26;++H,J<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},s.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var B,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new s(1),v=new s(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(B=0===r.cmpn(1)?c:v).cmpn(0)<0&&B.iadd(i),B},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},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){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<<r;if(this.length<=u)return this._expand(u+1),this.words[u]|=c,this;for(var v=c,T=u;0!==v&&T<this.length;T++){var I=0|this.words[T];v=(I+=v)>>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:c<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 r=this.ucmp(i);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var r=0,u=this.length-1;u>=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){c<v?r=-1:c>v&&(r=1);break}}return r},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 $(i)},s.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return f(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 f(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ne={k256:null,p224:null,p192:null,p25519:null};function ee(C,i){this.name=C,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 de(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(C){if("string"==typeof C){var i=s._prime(C);this.m=i.p,this.prime=i}else f(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function ge(C){$.call(this,C),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,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u<this.n?-1:r.ucmp(this.p);return 0===c?(r.words[0]=0,r.length=1):c>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(de,ee),de.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v<c;v++)r.words[v]=i.words[v];if(r.length=c,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(r.words[r.length++]=T&u,v=10;v<i.length;v++){var I=0|i.words[v];i.words[v-10]=(I&u)<<4|T>>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},de.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u<i.length;u++){var c=0|i.words[u];i.words[u]=67108863&(r+=977*c),r=64*c+(r/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},M(te,ee),M(ie,ee),M(le,ee),le.prototype.imulK=function(i){for(var r=0,u=0;u<i.length;u++){var c=19*(0|i.words[u])+r,v=67108863&c;c>>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},s._prime=function(i){if(ne[i])return ne[i];var r;if("k256"===i)r=new de;else if("p224"===i)r=new te;else if("p192"===i)r=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new le}return ne[i]=r,r},$.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},$.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},$.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},$.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},$.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},$.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},$.prototype.isqr=function(i){return this.imul(i,i.clone())},$.prototype.sqr=function(i){return this.mul(i,i)},$.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new s(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var J=N,ue=0;0!==J.cmp(T);ue++)J=J.redSqr();f(ue<H);var xe=this.pow(_,new s(1).iushln(H-ue-1));B=B.redMul(xe),_=xe.redSqr(),N=N.redMul(_),H=ue}return B},$.prototype.invm=function(i){var r=i._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},$.prototype.pow=function(i,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return i.clone();var c=new Array(16);c[0]=new s(1).toRed(this),c[1]=i;for(var v=2;v<c.length;v++)c[v]=this.mul(c[v-1],i);var T=c[0],I=0,y=0,n=r.bitLength()%26;for(0===n&&(n=26),v=r.length-1;v>=0;v--){for(var _=r.words[v],B=n-1;B>=0;B--){var N=_>>B&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===B)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},$.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},$.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},s.mont=function(i){return new ge(i)},M(ge,$),ge.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ge.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},ge.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new s(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},ge.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(ze=p.nmd(ze),this)},6705:(ze,K,p)=>{var t=p(2772),e=p(6945),f=p(9401),M=p(2057),s=p(8466),b=p(6386),d=p(8651),R=p(3502).Buffer;ze.exports=function(S,k,E){var U;U=S.padding?S.padding:E?1:4;var ne,W=t(S),j=W.modulus.byteLength();if(k.length>j||new M(k).cmp(W.modulus)>=0)throw new Error("decryption error");ne=E?d(new M(k),W):s(k,W);var ee=R.alloc(j-ne.length);if(ne=R.concat([ee,ne],j),4===U)return function h(D,S){var k=D.modulus.byteLength(),E=b("sha1").update(R.alloc(0)).digest(),U=E.length;if(0!==S[0])throw new Error("decryption error");var W=S.slice(1,U+1),j=S.slice(U+1),ne=f(W,e(j,U)),ee=f(j,e(ne,k-U-1));if(function w(D,S){D=R.from(D),S=R.from(S);var k=0,E=D.length;D.length!==S.length&&(k++,E=Math.min(D.length,S.length));for(var U=-1;++U<E;)k+=D[U]^S[U];return k}(E,ee.slice(0,U)))throw new Error("decryption error");for(var de=U;0===ee[de];)de++;if(1!==ee[de++])throw new Error("decryption error");return ee.slice(de)}(W,ne);if(1===U)return function L(D,S,k){for(var E=S.slice(0,2),U=2,W=0;0!==S[U++];)if(U>=S.length){W++;break}var j=S.slice(2,U-1);if(("0002"!==E.toString("hex")&&!k||"0001"!==E.toString("hex")&&k)&&W++,j.length<8&&W++,W)throw new Error("decryption error");return S.slice(U)}(0,ne,E);if(3===U)return ne;throw new Error("unknown padding")}},6562:(ze,K,p)=>{var t=p(2772),e=p(3753),f=p(6386),M=p(6945),s=p(9401),b=p(2057),d=p(8651),R=p(8466),h=p(3502).Buffer;ze.exports=function(k,E,U){var W;W=k.padding?k.padding:U?1:4;var ne,j=t(k);if(4===W)ne=function L(S,k){var E=S.modulus.byteLength(),U=k.length,W=f("sha1").update(h.alloc(0)).digest(),j=W.length,ne=2*j;if(U>E-ne-2)throw new Error("message too long");var ee=h.alloc(E-U-ne-2),de=E-j-1,te=e(j),ie=s(h.concat([W,ee,h.alloc(1,1),k],de),M(te,de)),le=s(te,M(ie,j));return new b(h.concat([h.alloc(1),le,ie],E))}(j,E);else if(1===W)ne=function w(S,k,E){var j,U=k.length,W=S.modulus.byteLength();if(U>W-11)throw new Error("message too long");return j=E?h.alloc(W-U-3,255):function D(S){for(var j,k=h.allocUnsafe(S),E=0,U=e(2*S),W=0;E<S;)W===U.length&&(U=e(2*S),W=0),(j=U[W++])&&(k[E++]=j);return k}(W-U-3),new b(h.concat([h.from([0,E?1:2]),j,h.alloc(1),k],W))}(j,E,U);else{if(3!==W)throw new Error("unknown padding");if((ne=new b(E)).cmp(j.modulus)>=0)throw new Error("data too long for modulus")}return U?R(ne,j):d(ne,j)}},8651:(ze,K,p)=>{var t=p(2057),e=p(3502).Buffer;ze.exports=function f(M,s){return e.from(M.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed().toArray())}},9401:ze=>{ze.exports=function(p,t){for(var e=p.length,f=-1;++f<e;)p[f]^=t[f];return p}},3259:(ze,K,p)=>{const t=p(8695),e=p(1465),f=p(3210),M=p(2334);function s(b,d,R,h,L){const w=[].slice.call(arguments,1),D=w.length,S="function"==typeof w[D-1];if(!S&&!t())throw new Error("Callback required as last argument");if(!S){if(D<1)throw new Error("Too few arguments provided");return 1===D?(R=d,d=h=void 0):2===D&&!d.getContext&&(h=R,R=d,d=void 0),new Promise(function(k,E){try{const U=e.create(R,h);k(b(U,d,h))}catch(U){E(U)}})}if(D<2)throw new Error("Too few arguments provided");2===D?(L=R,R=d,d=h=void 0):3===D&&(d.getContext&&void 0===L?(L=h,h=void 0):(L=h,h=R,R=d,d=void 0));try{const k=e.create(R,h);L(null,b(k,d,h))}catch(k){L(k)}}K.create=e.create,K.toCanvas=s.bind(null,f.render),K.toDataURL=s.bind(null,f.renderToDataURL),K.toString=s.bind(null,function(b,d,R){return M.render(b,R)})},8695:ze=>{ze.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(ze,K,p)=>{const t=p(4792).getSymbolSize;K.getRowColCoords=function(f){if(1===f)return[];const M=Math.floor(f/7)+2,s=t(f),b=145===s?26:2*Math.ceil((s-13)/(2*M-2)),d=[s-7];for(let R=1;R<M-1;R++)d[R]=d[R-1]-b;return d.push(6),d.reverse()},K.getPositions=function(f){const M=[],s=K.getRowColCoords(f),b=s.length;for(let d=0;d<b;d++)for(let R=0;R<b;R++)0===d&&0===R||0===d&&R===b-1||d===b-1&&0===R||M.push([s[d],s[R]]);return M}},2424:(ze,K,p)=>{const t=p(4016),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function f(M){this.mode=t.ALPHANUMERIC,this.data=M}f.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(s){let b;for(b=0;b+2<=this.data.length;b+=2){let d=45*e.indexOf(this.data[b]);d+=e.indexOf(this.data[b+1]),s.put(d,11)}this.data.length%2&&s.put(e.indexOf(this.data[b]),6)},ze.exports=f},2118:ze=>{function K(){this.buffer=[],this.length=0}K.prototype={get:function(p){const t=Math.floor(p/8);return 1==(this.buffer[t]>>>7-p%8&1)},put:function(p,t){for(let e=0;e<t;e++)this.putBit(1==(p>>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),p&&(this.buffer[t]|=128>>>this.length%8),this.length++}},ze.exports=K},4425:ze=>{function K(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}K.prototype.set=function(p,t,e,f){const M=p*this.size+t;this.data[M]=e,f&&(this.reservedBit[M]=!0)},K.prototype.get=function(p,t){return this.data[p*this.size+t]},K.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},K.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},ze.exports=K},5663:(ze,K,p)=>{const t=p(8419),e=p(4016);function f(M){this.mode=e.BYTE,"string"==typeof M&&(M=t(M)),this.data=new Uint8Array(M)}f.getBitsLength=function(s){return 8*s},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){for(let s=0,b=this.data.length;s<b;s++)M.put(this.data[s],8)},ze.exports=f},4655:(ze,K,p)=>{const t=p(2259),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],f=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];K.getBlocksCount=function(s,b){switch(b){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}},K.getTotalCodewordsCount=function(s,b){switch(b){case t.L:return f[4*(s-1)+0];case t.M:return f[4*(s-1)+1];case t.Q:return f[4*(s-1)+2];case t.H:return f[4*(s-1)+3];default:return}}},2259:(ze,K)=>{K.L={bit:1},K.M={bit:0},K.Q={bit:3},K.H={bit:2},K.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},K.from=function(e,f){if(K.isValid(e))return e;try{return function p(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return K.L;case"m":case"medium":return K.M;case"q":case"quartile":return K.Q;case"h":case"high":return K.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch(M){return f}}},3114:(ze,K,p)=>{const t=p(4792).getSymbolSize;K.getPositions=function(M){const s=t(M);return[[0,0],[s-7,0],[0,s-7]]}},7078:(ze,K,p)=>{const t=p(4792),M=t.getBCHDigit(1335);K.getEncodedBits=function(b,d){const R=b.bit<<3|d;let h=R<<10;for(;t.getBCHDigit(h)-M>=0;)h^=1335<<t.getBCHDigit(h)-M;return 21522^(R<<10|h)}},5339:(ze,K)=>{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let f=1;for(let M=0;M<255;M++)p[M]=f,t[f]=M,f<<=1,256&f&&(f^=285);for(let M=255;M<512;M++)p[M]=p[M-255]})(),K.log=function(f){if(f<1)throw new Error("log("+f+")");return t[f]},K.exp=function(f){return p[f]},K.mul=function(f,M){return 0===f||0===M?0:p[t[f]+t[M]]}},4388:(ze,K,p)=>{const t=p(4016),e=p(4792);function f(M){this.mode=t.KANJI,this.data=M}f.getBitsLength=function(s){return 13*s},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){let s;for(s=0;s<this.data.length;s++){let b=e.toSJIS(this.data[s]);if(b>=33088&&b<=40956)b-=33088;else{if(!(b>=57408&&b<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");b-=49472}b=192*(b>>>8&255)+(255&b),M.put(b,13)}},ze.exports=f},3667:(ze,K)=>{K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,f,M){switch(e){case K.Patterns.PATTERN000:return(f+M)%2==0;case K.Patterns.PATTERN001:return f%2==0;case K.Patterns.PATTERN010:return M%3==0;case K.Patterns.PATTERN011:return(f+M)%3==0;case K.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(M/3))%2==0;case K.Patterns.PATTERN101:return f*M%2+f*M%3==0;case K.Patterns.PATTERN110:return(f*M%2+f*M%3)%2==0;case K.Patterns.PATTERN111:return(f*M%3+(f+M)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}K.isValid=function(f){return null!=f&&""!==f&&!isNaN(f)&&f>=0&&f<=7},K.from=function(f){return K.isValid(f)?parseInt(f,10):void 0},K.getPenaltyN1=function(f){const M=f.size;let s=0,b=0,d=0,R=null,h=null;for(let L=0;L<M;L++){b=d=0,R=h=null;for(let w=0;w<M;w++){let D=f.get(L,w);D===R?b++:(b>=5&&(s+=b-5+3),R=D,b=1),D=f.get(w,L),D===h?d++:(d>=5&&(s+=d-5+3),h=D,d=1)}b>=5&&(s+=b-5+3),d>=5&&(s+=d-5+3)}return s},K.getPenaltyN2=function(f){const M=f.size;let s=0;for(let b=0;b<M-1;b++)for(let d=0;d<M-1;d++){const R=f.get(b,d)+f.get(b,d+1)+f.get(b+1,d)+f.get(b+1,d+1);(4===R||0===R)&&s++}return 3*s},K.getPenaltyN3=function(f){const M=f.size;let s=0,b=0,d=0;for(let R=0;R<M;R++){b=d=0;for(let h=0;h<M;h++)b=b<<1&2047|f.get(R,h),h>=10&&(1488===b||93===b)&&s++,d=d<<1&2047|f.get(h,R),h>=10&&(1488===d||93===d)&&s++}return 40*s},K.getPenaltyN4=function(f){let M=0;const s=f.data.length;for(let d=0;d<s;d++)M+=f.data[d];return 10*Math.abs(Math.ceil(100*M/s/5)-10)},K.applyMask=function(f,M){const s=M.size;for(let b=0;b<s;b++)for(let d=0;d<s;d++)M.isReserved(d,b)||M.xor(d,b,t(f,d,b))},K.getBestMask=function(f,M){const s=Object.keys(K.Patterns).length;let b=0,d=1/0;for(let R=0;R<s;R++){M(R),K.applyMask(R,f);const h=K.getPenaltyN1(f)+K.getPenaltyN2(f)+K.getPenaltyN3(f)+K.getPenaltyN4(f);K.applyMask(R,f),h<d&&(d=h,b=R)}return b}},4016:(ze,K,p)=>{const t=p(4406),e=p(2699);K.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},K.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},K.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},K.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},K.MIXED={bit:-1},K.getCharCountIndicator=function(s,b){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(b))throw new Error("Invalid version: "+b);return b>=1&&b<10?s.ccBits[0]:b<27?s.ccBits[1]:s.ccBits[2]},K.getBestModeForData=function(s){return e.testNumeric(s)?K.NUMERIC:e.testAlphanumeric(s)?K.ALPHANUMERIC:e.testKanji(s)?K.KANJI:K.BYTE},K.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},K.isValid=function(s){return s&&s.bit&&s.ccBits},K.from=function(s,b){if(K.isValid(s))return s;try{return function f(M){if("string"!=typeof M)throw new Error("Param is not a string");switch(M.toLowerCase()){case"numeric":return K.NUMERIC;case"alphanumeric":return K.ALPHANUMERIC;case"kanji":return K.KANJI;case"byte":return K.BYTE;default:throw new Error("Unknown mode: "+M)}}(s)}catch(d){return b}}},7783:(ze,K,p)=>{const t=p(4016);function e(f){this.mode=t.NUMERIC,this.data=f.toString()}e.getBitsLength=function(M){return 10*Math.floor(M/3)+(M%3?M%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(M){let s,b,d;for(s=0;s+3<=this.data.length;s+=3)b=this.data.substr(s,3),d=parseInt(b,10),M.put(d,10);const R=this.data.length-s;R>0&&(b=this.data.substr(s),d=parseInt(b,10),M.put(d,3*R+1))},ze.exports=e},1106:(ze,K,p)=>{const t=p(5339);K.mul=function(f,M){const s=new Uint8Array(f.length+M.length-1);for(let b=0;b<f.length;b++)for(let d=0;d<M.length;d++)s[b+d]^=t.mul(f[b],M[d]);return s},K.mod=function(f,M){let s=new Uint8Array(f);for(;s.length-M.length>=0;){const b=s[0];for(let R=0;R<M.length;R++)s[R]^=t.mul(M[R],b);let d=0;for(;d<s.length&&0===s[d];)d++;s=s.slice(d)}return s},K.generateECPolynomial=function(f){let M=new Uint8Array([1]);for(let s=0;s<f;s++)M=K.mul(M,new Uint8Array([1,t.exp(s)]));return M}},1465:(ze,K,p)=>{const t=p(4792),e=p(2259),f=p(2118),M=p(4425),s=p(6221),b=p(3114),d=p(3667),R=p(4655),h=p(2636),L=p(2088),w=p(7078),D=p(4016),S=p(2033);function j(ie,le,$){const ge=ie.size,C=w.getEncodedBits(le,$);let i,r;for(i=0;i<15;i++)r=1==(C>>i&1),ie.set(i<6?i:i<8?i+1:ge-15+i,8,r,!0),ie.set(8,i<8?ge-i-1:i<9?15-i-1+1:15-i-1,r,!0);ie.set(ge-8,8,1,!0)}function te(ie,le,$,ge){let C;if(Array.isArray(ie))C=S.fromArray(ie);else{if("string"!=typeof ie)throw new Error("Invalid data");{let v=le;if(!v){const T=S.rawSplit(ie);v=L.getBestVersionForData(T,$)}C=S.fromString(ie,v||40)}}const i=L.getBestVersionForData(C,$);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(le){if(le<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 le=i;const r=function ee(ie,le,$){const ge=new f;$.forEach(function(c){ge.put(c.mode.bit,4),ge.put(c.getLength(),D.getCharCountIndicator(c.mode,ie)),c.write(ge)});const r=8*(t.getSymbolTotalCodewords(ie)-R.getTotalCodewordsCount(ie,le));for(ge.getLengthInBits()+4<=r&&ge.put(0,4);ge.getLengthInBits()%8!=0;)ge.putBit(0);const u=(r-ge.getLengthInBits())/8;for(let c=0;c<u;c++)ge.put(c%2?17:236,8);return function de(ie,le,$){const ge=t.getSymbolTotalCodewords(le),i=ge-R.getTotalCodewordsCount(le,$),r=R.getBlocksCount(le,$),c=r-ge%r,v=Math.floor(ge/r),T=Math.floor(i/r),I=T+1,y=v-T,n=new h(y);let _=0;const B=new Array(r),N=new Array(r);let H=0;const J=new Uint8Array(ie.buffer);for(let Q=0;Q<r;Q++){const Ue=Q<c?T:I;B[Q]=J.slice(_,_+Ue),N[Q]=n.encode(B[Q]),_+=Ue,H=Math.max(H,Ue)}const ue=new Uint8Array(ge);let Pe,Se,xe=0;for(Pe=0;Pe<H;Pe++)for(Se=0;Se<r;Se++)Pe<B[Se].length&&(ue[xe++]=B[Se][Pe]);for(Pe=0;Pe<y;Pe++)for(Se=0;Se<r;Se++)ue[xe++]=N[Se][Pe];return ue}(ge,ie,le)}(le,$,C),u=t.getSymbolSize(le),c=new M(u);return function k(ie,le){const $=ie.size,ge=b.getPositions(le);for(let C=0;C<ge.length;C++){const i=ge[C][0],r=ge[C][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||$<=i+u))for(let c=-1;c<=7;c++)r+c<=-1||$<=r+c||ie.set(i+u,r+c,u>=0&&u<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===u||6===u)||u>=2&&u<=4&&c>=2&&c<=4,!0)}}(c,le),function E(ie){const le=ie.size;for(let $=8;$<le-8;$++){const ge=$%2==0;ie.set($,6,ge,!0),ie.set(6,$,ge,!0)}}(c),function U(ie,le){const $=s.getPositions(le);for(let ge=0;ge<$.length;ge++){const C=$[ge][0],i=$[ge][1];for(let r=-2;r<=2;r++)for(let u=-2;u<=2;u++)ie.set(C+r,i+u,-2===r||2===r||-2===u||2===u||0===r&&0===u,!0)}}(c,le),j(c,$,0),le>=7&&function W(ie,le){const $=ie.size,ge=L.getEncodedBits(le);let C,i,r;for(let u=0;u<18;u++)C=Math.floor(u/3),i=u%3+$-8-3,r=1==(ge>>u&1),ie.set(C,i,r,!0),ie.set(i,C,r,!0)}(c,le),function ne(ie,le){const $=ie.size;let ge=-1,C=$-1,i=7,r=0;for(let u=$-1;u>0;u-=2)for(6===u&&u--;;){for(let c=0;c<2;c++)if(!ie.isReserved(C,u-c)){let v=!1;r<le.length&&(v=1==(le[r]>>>i&1)),ie.set(C,u-c,v),i--,-1===i&&(r++,i=7)}if(C+=ge,C<0||$<=C){C-=ge,ge=-ge;break}}}(c,r),isNaN(ge)&&(ge=d.getBestMask(c,j.bind(null,c,$))),d.applyMask(ge,c),j(c,$,ge),{modules:c,version:le,errorCorrectionLevel:$,maskPattern:ge,segments:C}}K.create=function(le,$){if(void 0===le||""===le)throw new Error("No input text");let C,i,ge=e.M;return void 0!==$&&(ge=e.from($.errorCorrectionLevel,e.M),C=L.from($.version),i=d.from($.maskPattern),$.toSJISFunc&&t.setToSJISFunction($.toSJISFunc)),te(le,C,ge,i)}},2636:(ze,K,p)=>{const t=p(1106);function e(f){this.genPoly=void 0,this.degree=f,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(M){this.degree=M,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(M){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(M.length+this.degree);s.set(M);const b=t.mod(s,this.genPoly),d=this.degree-b.length;if(d>0){const R=new Uint8Array(this.degree);return R.set(b,d),R}return b},ze.exports=e},2699:(ze,K)=>{const p="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const f="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";K.KANJI=new RegExp(e,"g"),K.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),K.BYTE=new RegExp(f,"g"),K.NUMERIC=new RegExp(p,"g"),K.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const M=new RegExp("^"+e+"$"),s=new RegExp("^"+p+"$"),b=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");K.testKanji=function(R){return M.test(R)},K.testNumeric=function(R){return s.test(R)},K.testAlphanumeric=function(R){return b.test(R)}},2033:(ze,K,p)=>{const t=p(4016),e=p(7783),f=p(2424),M=p(5663),s=p(4388),b=p(2699),d=p(4792),R=p(4901);function h(W){return unescape(encodeURIComponent(W)).length}function L(W,j,ne){const ee=[];let de;for(;null!==(de=W.exec(ne));)ee.push({data:de[0],index:de.index,mode:j,length:de[0].length});return ee}function w(W){const j=L(b.NUMERIC,t.NUMERIC,W),ne=L(b.ALPHANUMERIC,t.ALPHANUMERIC,W);let ee,de;return d.isKanjiModeEnabled()?(ee=L(b.BYTE,t.BYTE,W),de=L(b.KANJI,t.KANJI,W)):(ee=L(b.BYTE_KANJI,t.BYTE,W),de=[]),j.concat(ne,ee,de).sort(function(ie,le){return ie.index-le.index}).map(function(ie){return{data:ie.data,mode:ie.mode,length:ie.length}})}function D(W,j){switch(j){case t.NUMERIC:return e.getBitsLength(W);case t.ALPHANUMERIC:return f.getBitsLength(W);case t.KANJI:return s.getBitsLength(W);case t.BYTE:return M.getBitsLength(W)}}function U(W,j){let ne;const ee=t.getBestModeForData(W);if(ne=t.from(j,ee),ne!==t.BYTE&&ne.bit<ee.bit)throw new Error('"'+W+'" cannot be encoded with mode '+t.toString(ne)+".\n Suggested mode is: "+t.toString(ee));switch(ne===t.KANJI&&!d.isKanjiModeEnabled()&&(ne=t.BYTE),ne){case t.NUMERIC:return new e(W);case t.ALPHANUMERIC:return new f(W);case t.KANJI:return new s(W);case t.BYTE:return new M(W)}}K.fromArray=function(j){return j.reduce(function(ne,ee){return"string"==typeof ee?ne.push(U(ee,null)):ee.data&&ne.push(U(ee.data,ee.mode)),ne},[])},K.fromString=function(j,ne){const de=function k(W){const j=[];for(let ne=0;ne<W.length;ne++){const ee=W[ne];switch(ee.mode){case t.NUMERIC:j.push([ee,{data:ee.data,mode:t.ALPHANUMERIC,length:ee.length},{data:ee.data,mode:t.BYTE,length:ee.length}]);break;case t.ALPHANUMERIC:j.push([ee,{data:ee.data,mode:t.BYTE,length:ee.length}]);break;case t.KANJI:j.push([ee,{data:ee.data,mode:t.BYTE,length:h(ee.data)}]);break;case t.BYTE:j.push([{data:ee.data,mode:t.BYTE,length:h(ee.data)}])}}return j}(w(j,d.isKanjiModeEnabled())),te=function E(W,j){const ne={},ee={start:{}};let de=["start"];for(let te=0;te<W.length;te++){const ie=W[te],le=[];for(let $=0;$<ie.length;$++){const ge=ie[$],C=""+te+$;le.push(C),ne[C]={node:ge,lastCount:0},ee[C]={};for(let i=0;i<de.length;i++){const r=de[i];ne[r]&&ne[r].node.mode===ge.mode?(ee[r][C]=D(ne[r].lastCount+ge.length,ge.mode)-D(ne[r].lastCount,ge.mode),ne[r].lastCount+=ge.length):(ne[r]&&(ne[r].lastCount=ge.length),ee[r][C]=D(ge.length,ge.mode)+4+t.getCharCountIndicator(ge.mode,j))}}de=le}for(let te=0;te<de.length;te++)ee[de[te]].end=0;return{map:ee,table:ne}}(de,ne),ie=R.find_path(te.map,"start","end"),le=[];for(let $=1;$<ie.length-1;$++)le.push(te.table[ie[$]].node);return K.fromArray(function S(W){return W.reduce(function(j,ne){const ee=j.length-1>=0?j[j.length-1]:null;return ee&&ee.mode===ne.mode?(j[j.length-1].data+=ne.data,j):(j.push(ne),j)},[])}(le))},K.rawSplit=function(j){return K.fromArray(w(j,d.isKanjiModeEnabled()))}},4792:(ze,K)=>{let p;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];K.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return 4*f+17},K.getSymbolTotalCodewords=function(f){return t[f]},K.getBCHDigit=function(e){let f=0;for(;0!==e;)f++,e>>>=1;return f},K.setToSJISFunction=function(f){if("function"!=typeof f)throw new Error('"toSJISFunc" is not a valid function.');p=f},K.isKanjiModeEnabled=function(){return void 0!==p},K.toSJIS=function(f){return p(f)}},4406:(ze,K)=>{K.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(ze,K,p)=>{const t=p(4792),e=p(4655),f=p(2259),M=p(4016),s=p(4406),d=t.getBCHDigit(7973);function h(D,S){return M.getCharCountIndicator(D,S)+4}function L(D,S){let k=0;return D.forEach(function(E){k+=h(E.mode,S)+E.getBitsLength()}),k}K.from=function(S,k){return s.isValid(S)?parseInt(S,10):k},K.getCapacity=function(S,k,E){if(!s.isValid(S))throw new Error("Invalid QR Code version");void 0===E&&(E=M.BYTE);const j=8*(t.getSymbolTotalCodewords(S)-e.getTotalCodewordsCount(S,k));if(E===M.MIXED)return j;const ne=j-h(E,S);switch(E){case M.NUMERIC:return Math.floor(ne/10*3);case M.ALPHANUMERIC:return Math.floor(ne/11*2);case M.KANJI:return Math.floor(ne/13);default:return Math.floor(ne/8)}},K.getBestVersionForData=function(S,k){let E;const U=f.from(k,f.M);if(Array.isArray(S)){if(S.length>1)return function w(D,S){for(let k=1;k<=40;k++)if(L(D,k)<=K.getCapacity(k,S,M.MIXED))return k}(S,U);if(0===S.length)return 1;E=S[0]}else E=S;return function R(D,S,k){for(let E=1;E<=40;E++)if(S<=K.getCapacity(E,k,D))return E}(E.mode,E.getLength(),U)},K.getEncodedBits=function(S){if(!s.isValid(S)||S<7)throw new Error("Invalid QR Code version");let k=S<<12;for(;t.getBCHDigit(k)-d>=0;)k^=7973<<t.getBCHDigit(k)-d;return S<<12|k}},3210:(ze,K,p)=>{const t=p(6355);K.render=function(s,b,d){let R=d,h=b;void 0===R&&(!b||!b.getContext)&&(R=b,b=void 0),b||(h=function f(){try{return document.createElement("canvas")}catch(M){throw new Error("You need to specify a canvas element")}}()),R=t.getOptions(R);const L=t.getImageWidth(s.modules.size,R),w=h.getContext("2d"),D=w.createImageData(L,L);return t.qrToImageData(D.data,s,R),function e(M,s,b){M.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=b,s.width=b,s.style.height=b+"px",s.style.width=b+"px"}(w,h,L),w.putImageData(D,0,0),h},K.renderToDataURL=function(s,b,d){let R=d;return void 0===R&&(!b||!b.getContext)&&(R=b,b=void 0),R||(R={}),K.render(s,b,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(ze,K,p)=>{const t=p(6355);function e(s,b){const d=s.a/255,R=b+'="'+s.hex+'"';return d<1?R+" "+b+'-opacity="'+d.toFixed(2).slice(1)+'"':R}function f(s,b,d){let R=s+b;return void 0!==d&&(R+=" "+d),R}K.render=function(b,d,R){const h=t.getOptions(d),L=b.modules.size,w=b.modules.data,D=L+2*h.margin,S=h.color.light.a?"<path "+e(h.color.light,"fill")+' d="M0 0h'+D+"v"+D+'H0z"/>':"",k="<path "+e(h.color.dark,"stroke")+' d="'+function M(s,b,d){let R="",h=0,L=!1,w=0;for(let D=0;D<s.length;D++){const S=Math.floor(D%b),k=Math.floor(D/b);!S&&!L&&(L=!0),s[D]?(w++,D>0&&S>0&&s[D-1]||(R+=L?f("M",S+d,.5+k+d):f("m",h,0),h=0,L=!1),S+1<b&&s[D+1]||(R+=f("h",w),w=0)):h++}return R}(w,L,h.margin)+'"/>',W='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+'viewBox="0 0 '+D+" "+D+'" shape-rendering="crispEdges">'+S+k+"</svg>\n";return"function"==typeof R&&R(null,W),W}},6355:(ze,K)=>{function p(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(M){return[M,M]}))),6===e.length&&e.push("F","F");const f=parseInt(e.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:255&f,hex:"#"+e.slice(0,6).join("")}}K.getOptions=function(e){e||(e={}),e.color||(e.color={});const M=e.width&&e.width>=21?e.width:void 0;return{width:M,scale:M?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:p(e.color.dark||"#000000ff"),light:p(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},K.getScale=function(e,f){return f.width&&f.width>=e+2*f.margin?f.width/(e+2*f.margin):f.scale},K.getImageWidth=function(e,f){const M=K.getScale(e,f);return Math.floor((e+2*f.margin)*M)},K.qrToImageData=function(e,f,M){const s=f.modules.size,b=f.modules.data,d=K.getScale(s,M),R=Math.floor((s+2*M.margin)*d),h=M.margin*d,L=[M.color.light,M.color.dark];for(let w=0;w<R;w++)for(let D=0;D<R;D++){let S=4*(w*R+D),k=M.color.light;w>=h&&D>=h&&w<R-h&&D<R-h&&(k=L[b[Math.floor((w-h)/d)*s+Math.floor((D-h)/d)]?1:0]),e[S++]=k.r,e[S++]=k.g,e[S++]=k.b,e[S]=k.a}}},3753:(ze,K,p)=>{"use strict";var t=65536,M=p(3502).Buffer,s=global.crypto||global.msCrypto;ze.exports=s&&s.getRandomValues?function b(d,R){if(d>4294967295)throw new RangeError("requested too many random bytes");var h=M.allocUnsafe(d);if(d>0)if(d>t)for(var L=0;L<d;L+=t)s.getRandomValues(h.slice(L,L+t));else s.getRandomValues(h);return"function"==typeof R?process.nextTick(function(){R(null,h)}):h}:function f(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(ze,K,p)=>{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=p(3502),f=p(3753),M=e.Buffer,s=e.kMaxLength,b=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function R(S,k){if("number"!=typeof S||S!=S)throw new TypeError("offset must be a number");if(S>d||S<0)throw new TypeError("offset must be a uint32");if(S>s||S>k)throw new RangeError("offset out of range")}function h(S,k,E){if("number"!=typeof S||S!=S)throw new TypeError("size must be a number");if(S>d||S<0)throw new TypeError("size must be a uint32");if(S+k>E||S>s)throw new RangeError("buffer too small")}function w(S,k,E,U){if(process.browser){var j=new Uint8Array(S.buffer,k,E);return b.getRandomValues(j),U?void process.nextTick(function(){U(null,S)}):S}if(!U)return f(E).copy(S,k),S;f(E,function(ee,de){if(ee)return U(ee);de.copy(S,k),U(null,S)})}b&&b.getRandomValues||!process.browser?(K.randomFill=function L(S,k,E,U){if(!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)U=k,k=0,E=S.length;else if("function"==typeof E)U=E,E=S.length-k;else if("function"!=typeof U)throw new TypeError('"cb" argument must be a function');return R(k,S.length),h(E,k,S.length),w(S,k,E,U)},K.randomFillSync=function D(S,k,E){if(void 0===k&&(k=0),!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(k,S.length),void 0===E&&(E=S.length-k),h(E,k,S.length),w(S,k,E)}):(K.randomFill=t,K.randomFillSync=t)},891:ze=>{"use strict";var p={};function t(b,d,R){R||(R=Error);var L=function(w){function D(S,k,E){return w.call(this,function h(w,D,S){return"string"==typeof d?d:d(w,D,S)}(S,k,E))||this}return function K(b,d){b.prototype=Object.create(d.prototype),b.prototype.constructor=b,b.__proto__=d}(D,w),D}(R);L.prototype.name=R.name,L.prototype.code=b,p[b]=L}function e(b,d){if(Array.isArray(b)){var R=b.length;return b=b.map(function(h){return String(h)}),R>2?"one of ".concat(d," ").concat(b.slice(0,R-1).join(", "),", or ")+b[R-1]:2===R?"one of ".concat(d," ").concat(b[0]," or ").concat(b[1]):"of ".concat(d," ").concat(b[0])}return"of ".concat(d," ").concat(String(b))}t("ERR_INVALID_OPT_VALUE",function(b,d){return'The value "'+d+'" is invalid for option "'+b+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(b,d,R){var h,L;if("string"==typeof d&&function f(b,d,R){return b.substr(!R||R<0?0:+R,d.length)===d}(d,"not ")?(h="must not be",d=d.replace(/^not /,"")):h="must be",function M(b,d,R){return(void 0===R||R>b.length)&&(R=b.length),b.substring(R-d.length,R)===d}(b," argument"))L="The ".concat(b," ").concat(h," ").concat(e(d,"type"));else{var w=function s(b,d,R){return"number"!=typeof R&&(R=0),!(R+d.length>b.length)&&-1!==b.indexOf(d,R)}(b,".")?"property":"argument";L='The "'.concat(b,'" ').concat(w," ").concat(h," ").concat(e(d,"type"))}return L+". Received type ".concat(typeof R)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ze.exports.q=p},1339:(ze,K,p)=>{"use strict";var t=Object.keys||function(L){var w=[];for(var D in L)w.push(D);return w};ze.exports=d;var e=p(3154),f=p(520);p(3894)(d,e);for(var M=t(f.prototype),s=0;s<M.length;s++){var b=M[s];d.prototype[b]||(d.prototype[b]=f.prototype[b])}function d(L){if(!(this instanceof d))return new d(L);e.call(this,L),f.call(this,L),this.allowHalfOpen=!0,L&&(!1===L.readable&&(this.readable=!1),!1===L.writable&&(this.writable=!1),!1===L.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",R)))}function R(){this._writableState.ended||process.nextTick(h,this)}function h(L){L.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.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:(ze,K,p)=>{"use strict";ze.exports=e;var t=p(6025);function e(f){if(!(this instanceof e))return new e(f);t.call(this,f)}p(3894)(e,t),e.prototype._transform=function(f,M,s){s(null,f)}},3154:(ze,K,p)=>{"use strict";var t;ze.exports=C,C.ReadableState=ge,p(9069);var L,f=function(Ae,ut){return Ae.listeners(ut).length},M=p(4970),s=p(3172).Buffer,b=global.Uint8Array||function(){},h=p(4616);L=h&&h.debuglog?h.debuglog("stream"):function(){};var ee,de,te,w=p(5019),D=p(1920),k=p(7102).getHighWaterMark,E=p(891).q,U=E.ERR_INVALID_ARG_TYPE,W=E.ERR_STREAM_PUSH_AFTER_EOF,j=E.ERR_METHOD_NOT_IMPLEMENTED,ne=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(C,M);var ie=D.errorOrDestroy,le=["error","close","destroy","pause","resume"];function ge(q,Ae,ut){t=t||p(1339),"boolean"!=typeof ut&&(ut=Ae instanceof t),this.objectMode=!!(q=q||{}).objectMode,ut&&(this.objectMode=this.objectMode||!!q.readableObjectMode),this.highWaterMark=k(this,q,"readableHighWaterMark",ut),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!==q.emitClose,this.autoDestroy=!!q.autoDestroy,this.destroyed=!1,this.defaultEncoding=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(ee||(ee=p(3054).s),this.decoder=new ee(q.encoding),this.encoding=q.encoding)}function C(q){if(t=t||p(1339),!(this instanceof C))return new C(q);this._readableState=new ge(q,this,this instanceof t),this.readable=!0,q&&("function"==typeof q.read&&(this._read=q.read),"function"==typeof q.destroy&&(this._destroy=q.destroy)),M.call(this)}function i(q,Ae,ut,Ie,De){L("readableAddChunk",Ae);var we,ae=q._readableState;if(null===Ae)ae.reading=!1,function I(q,Ae){if(L("onEofChunk"),!Ae.ended){if(Ae.decoder){var ut=Ae.decoder.end();ut&&ut.length&&(Ae.buffer.push(ut),Ae.length+=Ae.objectMode?1:ut.length)}Ae.ended=!0,Ae.sync?y(q):(Ae.needReadable=!1,Ae.emittedReadable||(Ae.emittedReadable=!0,n(q)))}}(q,ae);else if(De||(we=function u(q,Ae){var ut;return!function R(q){return s.isBuffer(q)||q instanceof b}(Ae)&&"string"!=typeof Ae&&void 0!==Ae&&!q.objectMode&&(ut=new U("chunk",["string","Buffer","Uint8Array"],Ae)),ut}(ae,Ae)),we)ie(q,we);else if(ae.objectMode||Ae&&Ae.length>0)if("string"!=typeof Ae&&!ae.objectMode&&Object.getPrototypeOf(Ae)!==s.prototype&&(Ae=function d(q){return s.from(q)}(Ae)),Ie)ae.endEmitted?ie(q,new ne):r(q,ae,Ae,!0);else if(ae.ended)ie(q,new W);else{if(ae.destroyed)return!1;ae.reading=!1,ae.decoder&&!ut?(Ae=ae.decoder.write(Ae),ae.objectMode||0!==Ae.length?r(q,ae,Ae,!1):_(q,ae)):r(q,ae,Ae,!1)}else Ie||(ae.reading=!1,_(q,ae));return!ae.ended&&(ae.length<ae.highWaterMark||0===ae.length)}function r(q,Ae,ut,Ie){Ae.flowing&&0===Ae.length&&!Ae.sync?(Ae.awaitDrain=0,q.emit("data",ut)):(Ae.length+=Ae.objectMode?1:ut.length,Ie?Ae.buffer.unshift(ut):Ae.buffer.push(ut),Ae.needReadable&&y(q)),_(q,Ae)}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(Ae){!this._readableState||(this._readableState.destroyed=Ae)}}),C.prototype.destroy=D.destroy,C.prototype._undestroy=D.undestroy,C.prototype._destroy=function(q,Ae){Ae(q)},C.prototype.push=function(q,Ae){var Ie,ut=this._readableState;return ut.objectMode?Ie=!0:"string"==typeof q&&((Ae=Ae||ut.defaultEncoding)!==ut.encoding&&(q=s.from(q,Ae),Ae=""),Ie=!0),i(this,q,Ae,!1,Ie)},C.prototype.unshift=function(q){return i(this,q,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(q){ee||(ee=p(3054).s);var Ae=new ee(q);this._readableState.decoder=Ae,this._readableState.encoding=this._readableState.decoder.encoding;for(var ut=this._readableState.buffer.head,Ie="";null!==ut;)Ie+=Ae.write(ut.data),ut=ut.next;return this._readableState.buffer.clear(),""!==Ie&&this._readableState.buffer.push(Ie),this._readableState.length=Ie.length,this};var c=1073741824;function T(q,Ae){return q<=0||0===Ae.length&&Ae.ended?0:Ae.objectMode?1:q!=q?Ae.flowing&&Ae.length?Ae.buffer.head.data.length:Ae.length:(q>Ae.highWaterMark&&(Ae.highWaterMark=function v(q){return q>=c?q=c:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}(q)),q<=Ae.length?q:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}function y(q){var Ae=q._readableState;L("emitReadable",Ae.needReadable,Ae.emittedReadable),Ae.needReadable=!1,Ae.emittedReadable||(L("emitReadable",Ae.flowing),Ae.emittedReadable=!0,process.nextTick(n,q))}function n(q){var Ae=q._readableState;L("emitReadable_",Ae.destroyed,Ae.length,Ae.ended),!Ae.destroyed&&(Ae.length||Ae.ended)&&(q.emit("readable"),Ae.emittedReadable=!1),Ae.needReadable=!Ae.flowing&&!Ae.ended&&Ae.length<=Ae.highWaterMark,Pe(q)}function _(q,Ae){Ae.readingMore||(Ae.readingMore=!0,process.nextTick(B,q,Ae))}function B(q,Ae){for(;!Ae.reading&&!Ae.ended&&(Ae.length<Ae.highWaterMark||Ae.flowing&&0===Ae.length);){var ut=Ae.length;if(L("maybeReadMore read 0"),q.read(0),ut===Ae.length)break}Ae.readingMore=!1}function H(q){var Ae=q._readableState;Ae.readableListening=q.listenerCount("readable")>0,Ae.resumeScheduled&&!Ae.paused?Ae.flowing=!0:q.listenerCount("data")>0&&q.resume()}function J(q){L("readable nexttick read 0"),q.read(0)}function xe(q,Ae){L("resume",Ae.reading),Ae.reading||q.read(0),Ae.resumeScheduled=!1,q.emit("resume"),Pe(q),Ae.flowing&&!Ae.reading&&q.read(0)}function Pe(q){var Ae=q._readableState;for(L("flow",Ae.flowing);Ae.flowing&&null!==q.read(););}function Se(q,Ae){return 0===Ae.length?null:(Ae.objectMode?ut=Ae.buffer.shift():!q||q>=Ae.length?(ut=Ae.decoder?Ae.buffer.join(""):1===Ae.buffer.length?Ae.buffer.first():Ae.buffer.concat(Ae.length),Ae.buffer.clear()):ut=Ae.buffer.consume(q,Ae.decoder),ut);var ut}function Q(q){var Ae=q._readableState;L("endReadable",Ae.endEmitted),Ae.endEmitted||(Ae.ended=!0,process.nextTick(Ue,Ae,q))}function Ue(q,Ae){if(L("endReadableNT",q.endEmitted,q.length),!q.endEmitted&&0===q.length&&(q.endEmitted=!0,Ae.readable=!1,Ae.emit("end"),q.autoDestroy)){var ut=Ae._writableState;(!ut||ut.autoDestroy&&ut.finished)&&Ae.destroy()}}function Ce(q,Ae){for(var ut=0,Ie=q.length;ut<Ie;ut++)if(q[ut]===Ae)return ut;return-1}C.prototype.read=function(q){L("read",q),q=parseInt(q,10);var Ae=this._readableState,ut=q;if(0!==q&&(Ae.emittedReadable=!1),0===q&&Ae.needReadable&&((0!==Ae.highWaterMark?Ae.length>=Ae.highWaterMark:Ae.length>0)||Ae.ended))return L("read: emitReadable",Ae.length,Ae.ended),0===Ae.length&&Ae.ended?Q(this):y(this),null;if(0===(q=T(q,Ae))&&Ae.ended)return 0===Ae.length&&Q(this),null;var De,Ie=Ae.needReadable;return L("need readable",Ie),(0===Ae.length||Ae.length-q<Ae.highWaterMark)&&L("length less than watermark",Ie=!0),Ae.ended||Ae.reading?L("reading or ended",Ie=!1):Ie&&(L("do read"),Ae.reading=!0,Ae.sync=!0,0===Ae.length&&(Ae.needReadable=!0),this._read(Ae.highWaterMark),Ae.sync=!1,Ae.reading||(q=T(ut,Ae))),null===(De=q>0?Se(q,Ae):null)?(Ae.needReadable=Ae.length<=Ae.highWaterMark,q=0):(Ae.length-=q,Ae.awaitDrain=0),0===Ae.length&&(Ae.ended||(Ae.needReadable=!0),ut!==q&&Ae.ended&&Q(this)),null!==De&&this.emit("data",De),De},C.prototype._read=function(q){ie(this,new j("_read()"))},C.prototype.pipe=function(q,Ae){var ut=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=q;break;case 1:Ie.pipes=[Ie.pipes,q];break;default:Ie.pipes.push(q)}Ie.pipesCount+=1,L("pipe count=%d opts=%j",Ie.pipesCount,Ae);var ae=Ae&&!1===Ae.end||q===process.stdout||q===process.stderr?Lt:ye;function ye(){L("onend"),q.end()}Ie.endEmitted?process.nextTick(ae):ut.once("end",ae),q.on("unpipe",function we(di,Wt){L("onunpipe"),di===ut&&Wt&&!1===Wt.hasUnpiped&&(Wt.hasUnpiped=!0,function be(){L("cleanup"),q.removeListener("close",pt),q.removeListener("finish",et),q.removeListener("drain",Y),q.removeListener("error",He),q.removeListener("unpipe",we),ut.removeListener("end",ye),ut.removeListener("end",Lt),ut.removeListener("data",fe),z=!0,Ie.awaitDrain&&(!q._writableState||q._writableState.needDrain)&&Y()}())});var Y=function N(q){return function(){var ut=q._readableState;L("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,0===ut.awaitDrain&&f(q,"data")&&(ut.flowing=!0,Pe(q))}}(ut);q.on("drain",Y);var z=!1;function fe(di){L("ondata");var Wt=q.write(di);L("dest.write",Wt),!1===Wt&&((1===Ie.pipesCount&&Ie.pipes===q||Ie.pipesCount>1&&-1!==Ce(Ie.pipes,q))&&!z&&(L("false write response, pause",Ie.awaitDrain),Ie.awaitDrain++),ut.pause())}function He(di){L("onerror",di),Lt(),q.removeListener("error",He),0===f(q,"error")&&ie(q,di)}function pt(){q.removeListener("finish",et),Lt()}function et(){L("onfinish"),q.removeListener("close",pt),Lt()}function Lt(){L("unpipe"),ut.unpipe(q)}return ut.on("data",fe),function $(q,Ae,ut){if("function"==typeof q.prependListener)return q.prependListener(Ae,ut);q._events&&q._events[Ae]?Array.isArray(q._events[Ae])?q._events[Ae].unshift(ut):q._events[Ae]=[ut,q._events[Ae]]:q.on(Ae,ut)}(q,"error",He),q.once("close",pt),q.once("finish",et),q.emit("pipe",ut),Ie.flowing||(L("pipe resume"),ut.resume()),q},C.prototype.unpipe=function(q){var Ae=this._readableState,ut={hasUnpiped:!1};if(0===Ae.pipesCount)return this;if(1===Ae.pipesCount)return q&&q!==Ae.pipes||(q||(q=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,q&&q.emit("unpipe",this,ut)),this;if(!q){var Ie=Ae.pipes,De=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var ae=0;ae<De;ae++)Ie[ae].emit("unpipe",this,{hasUnpiped:!1});return this}var we=Ce(Ae.pipes,q);return-1===we||(Ae.pipes.splice(we,1),Ae.pipesCount-=1,1===Ae.pipesCount&&(Ae.pipes=Ae.pipes[0]),q.emit("unpipe",this,ut)),this},C.prototype.addListener=C.prototype.on=function(q,Ae){var ut=M.prototype.on.call(this,q,Ae),Ie=this._readableState;return"data"===q?(Ie.readableListening=this.listenerCount("readable")>0,!1!==Ie.flowing&&this.resume()):"readable"===q&&!Ie.endEmitted&&!Ie.readableListening&&(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,L("on readable",Ie.length,Ie.reading),Ie.length?y(this):Ie.reading||process.nextTick(J,this)),ut},C.prototype.removeListener=function(q,Ae){var ut=M.prototype.removeListener.call(this,q,Ae);return"readable"===q&&process.nextTick(H,this),ut},C.prototype.removeAllListeners=function(q){var Ae=M.prototype.removeAllListeners.apply(this,arguments);return("readable"===q||void 0===q)&&process.nextTick(H,this),Ae},C.prototype.resume=function(){var q=this._readableState;return q.flowing||(L("resume"),q.flowing=!q.readableListening,function ue(q,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,process.nextTick(xe,q,Ae))}(this,q)),q.paused=!1,this},C.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(q){var Ae=this,ut=this._readableState,Ie=!1;for(var De in q.on("end",function(){if(L("wrapped end"),ut.decoder&&!ut.ended){var we=ut.decoder.end();we&&we.length&&Ae.push(we)}Ae.push(null)}),q.on("data",function(we){L("wrapped data"),ut.decoder&&(we=ut.decoder.write(we)),ut.objectMode&&null==we||!(ut.objectMode||we&&we.length)||Ae.push(we)||(Ie=!0,q.pause())}),q)void 0===this[De]&&"function"==typeof q[De]&&(this[De]=function(ye){return function(){return q[ye].apply(q,arguments)}}(De));for(var ae=0;ae<le.length;ae++)q.on(le[ae],this.emit.bind(this,le[ae]));return this._read=function(we){L("wrapped _read",we),Ie&&(Ie=!1,q.resume())},this},"function"==typeof Symbol&&(C.prototype[Symbol.asyncIterator]=function(){return void 0===de&&(de=p(3872)),de(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ae){this._readableState&&(this._readableState.flowing=Ae)}}),C._fromList=Se,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(C.from=function(q,Ae){return void 0===te&&(te=p(7412)),te(C,q,Ae)})},6025:(ze,K,p)=>{"use strict";ze.exports=R;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,f=t.ERR_MULTIPLE_CALLBACK,M=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,b=p(1339);function d(w,D){var S=this._transformState;S.transforming=!1;var k=S.writecb;if(null===k)return this.emit("error",new f);S.writechunk=null,S.writecb=null,null!=D&&this.push(D),k(w);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function R(w){if(!(this instanceof R))return new R(w);b.call(this,w),this._transformState={afterTransform:d.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",h)}function h(){var w=this;"function"!=typeof this._flush||this._readableState.destroyed?L(this,null,null):this._flush(function(D,S){L(w,D,S)})}function L(w,D,S){if(D)return w.emit("error",D);if(null!=S&&w.push(S),w._writableState.length)throw new s;if(w._transformState.transforming)throw new M;return w.push(null)}p(3894)(R,b),R.prototype.push=function(w,D){return this._transformState.needTransform=!1,b.prototype.push.call(this,w,D)},R.prototype._transform=function(w,D,S){S(new e("_transform()"))},R.prototype._write=function(w,D,S){var k=this._transformState;if(k.writecb=S,k.writechunk=w,k.writeencoding=D,!k.transforming){var E=this._readableState;(k.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},R.prototype._read=function(w){var D=this._transformState;null===D.writechunk||D.transforming?D.needTransform=!0:(D.transforming=!0,this._transform(D.writechunk,D.writeencoding,D.afterTransform))},R.prototype._destroy=function(w,D){b.prototype._destroy.call(this,w,function(S){D(S)})}},520:(ze,K,p)=>{"use strict";function e(Pe){var Se=this;this.next=null,this.entry=null,this.finish=function(){!function xe(Pe,Se,Q){var Ue=Pe.entry;for(Pe.entry=null;Ue;){var Ce=Ue.callback;Se.pendingcb--,Ce(Q),Ue=Ue.next}Se.corkedRequestsFree.next=Pe}(Se,Pe)}}var f;ze.exports=ge,ge.WritableState=le;var $,M={deprecate:p(4364)},s=p(4970),b=p(3172).Buffer,d=global.Uint8Array||function(){},L=p(1920),D=p(7102).getHighWaterMark,S=p(891).q,k=S.ERR_INVALID_ARG_TYPE,E=S.ERR_METHOD_NOT_IMPLEMENTED,U=S.ERR_MULTIPLE_CALLBACK,W=S.ERR_STREAM_CANNOT_PIPE,j=S.ERR_STREAM_DESTROYED,ne=S.ERR_STREAM_NULL_VALUES,ee=S.ERR_STREAM_WRITE_AFTER_END,de=S.ERR_UNKNOWN_ENCODING,te=L.errorOrDestroy;function ie(){}function le(Pe,Se,Q){f=f||p(1339),"boolean"!=typeof Q&&(Q=Se instanceof f),this.objectMode=!!(Pe=Pe||{}).objectMode,Q&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode),this.highWaterMark=D(this,Pe,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Pe.decodeStrings),this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ce){!function I(Pe,Se){var Q=Pe._writableState,Ue=Q.sync,Ce=Q.writecb;if("function"!=typeof Ce)throw new U;if(function T(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}(Q),Se)!function v(Pe,Se,Q,Ue,Ce){--Se.pendingcb,Q?(process.nextTick(Ce,Ue),process.nextTick(J,Pe,Se),Pe._writableState.errorEmitted=!0,te(Pe,Ue)):(Ce(Ue),Pe._writableState.errorEmitted=!0,te(Pe,Ue),J(Pe,Se))}(Pe,Q,Ue,Se,Ce);else{var q=B(Q)||Pe.destroyed;!q&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&_(Pe,Q),Ue?process.nextTick(y,Pe,Q,q,Ce):y(Pe,Q,q,Ce)}}(Se,Ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Pe.emitClose,this.autoDestroy=!!Pe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function ge(Pe){var Se=this instanceof(f=f||p(1339));if(!Se&&!$.call(ge,this))return new ge(Pe);this._writableState=new le(Pe,this,Se),this.writable=!0,Pe&&("function"==typeof Pe.write&&(this._write=Pe.write),"function"==typeof Pe.writev&&(this._writev=Pe.writev),"function"==typeof Pe.destroy&&(this._destroy=Pe.destroy),"function"==typeof Pe.final&&(this._final=Pe.final)),s.call(this)}function c(Pe,Se,Q,Ue,Ce,q,Ae){Se.writelen=Ue,Se.writecb=Ae,Se.writing=!0,Se.sync=!0,Se.destroyed?Se.onwrite(new j("write")):Q?Pe._writev(Ce,Se.onwrite):Pe._write(Ce,q,Se.onwrite),Se.sync=!1}function y(Pe,Se,Q,Ue){Q||function n(Pe,Se){0===Se.length&&Se.needDrain&&(Se.needDrain=!1,Pe.emit("drain"))}(Pe,Se),Se.pendingcb--,Ue(),J(Pe,Se)}function _(Pe,Se){Se.bufferProcessing=!0;var Q=Se.bufferedRequest;if(Pe._writev&&Q&&Q.next){var Ce=new Array(Se.bufferedRequestCount),q=Se.corkedRequestsFree;q.entry=Q;for(var Ae=0,ut=!0;Q;)Ce[Ae]=Q,Q.isBuf||(ut=!1),Q=Q.next,Ae+=1;Ce.allBuffers=ut,c(Pe,Se,!0,Se.length,Ce,"",q.finish),Se.pendingcb++,Se.lastBufferedRequest=null,q.next?(Se.corkedRequestsFree=q.next,q.next=null):Se.corkedRequestsFree=new e(Se),Se.bufferedRequestCount=0}else{for(;Q;){var Ie=Q.chunk;if(c(Pe,Se,!1,Se.objectMode?1:Ie.length,Ie,Q.encoding,Q.callback),Q=Q.next,Se.bufferedRequestCount--,Se.writing)break}null===Q&&(Se.lastBufferedRequest=null)}Se.bufferedRequest=Q,Se.bufferProcessing=!1}function B(Pe){return Pe.ending&&0===Pe.length&&null===Pe.bufferedRequest&&!Pe.finished&&!Pe.writing}function N(Pe,Se){Pe._final(function(Q){Se.pendingcb--,Q&&te(Pe,Q),Se.prefinished=!0,Pe.emit("prefinish"),J(Pe,Se)})}function J(Pe,Se){var Q=B(Se);if(Q&&(function H(Pe,Se){!Se.prefinished&&!Se.finalCalled&&("function"!=typeof Pe._final||Se.destroyed?(Se.prefinished=!0,Pe.emit("prefinish")):(Se.pendingcb++,Se.finalCalled=!0,process.nextTick(N,Pe,Se)))}(Pe,Se),0===Se.pendingcb&&(Se.finished=!0,Pe.emit("finish"),Se.autoDestroy))){var Ue=Pe._readableState;(!Ue||Ue.autoDestroy&&Ue.endEmitted)&&Pe.destroy()}return Q}p(3894)(ge,s),le.prototype.getBuffer=function(){for(var Se=this.bufferedRequest,Q=[];Se;)Q.push(Se),Se=Se.next;return Q},function(){try{Object.defineProperty(le.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(ge,Symbol.hasInstance,{value:function(Se){return!!$.call(this,Se)||this===ge&&Se&&Se._writableState instanceof le}})):$=function(Se){return Se instanceof this},ge.prototype.pipe=function(){te(this,new W)},ge.prototype.write=function(Pe,Se,Q){var Ue=this._writableState,Ce=!1,q=!Ue.objectMode&&function h(Pe){return b.isBuffer(Pe)||Pe instanceof d}(Pe);return q&&!b.isBuffer(Pe)&&(Pe=function R(Pe){return b.from(Pe)}(Pe)),"function"==typeof Se&&(Q=Se,Se=null),q?Se="buffer":Se||(Se=Ue.defaultEncoding),"function"!=typeof Q&&(Q=ie),Ue.ending?function C(Pe,Se){var Q=new ee;te(Pe,Q),process.nextTick(Se,Q)}(this,Q):(q||function i(Pe,Se,Q,Ue){var Ce;return null===Q?Ce=new ne:"string"!=typeof Q&&!Se.objectMode&&(Ce=new k("chunk",["string","Buffer"],Q)),!Ce||(te(Pe,Ce),process.nextTick(Ue,Ce),!1)}(this,Ue,Pe,Q))&&(Ue.pendingcb++,Ce=function u(Pe,Se,Q,Ue,Ce,q){if(!Q){var Ae=function r(Pe,Se,Q){return!Pe.objectMode&&!1!==Pe.decodeStrings&&"string"==typeof Se&&(Se=b.from(Se,Q)),Se}(Se,Ue,Ce);Ue!==Ae&&(Q=!0,Ce="buffer",Ue=Ae)}var ut=Se.objectMode?1:Ue.length;Se.length+=ut;var Ie=Se.length<Se.highWaterMark;if(Ie||(Se.needDrain=!0),Se.writing||Se.corked){var De=Se.lastBufferedRequest;Se.lastBufferedRequest={chunk:Ue,encoding:Ce,isBuf:Q,callback:q,next:null},De?De.next=Se.lastBufferedRequest:Se.bufferedRequest=Se.lastBufferedRequest,Se.bufferedRequestCount+=1}else c(Pe,Se,!1,ut,Ue,Ce,q);return Ie}(this,Ue,q,Pe,Se,Q)),Ce},ge.prototype.cork=function(){this._writableState.corked++},ge.prototype.uncork=function(){var Pe=this._writableState;Pe.corked&&(Pe.corked--,!Pe.writing&&!Pe.corked&&!Pe.bufferProcessing&&Pe.bufferedRequest&&_(this,Pe))},ge.prototype.setDefaultEncoding=function(Se){if("string"==typeof Se&&(Se=Se.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Se+"").toLowerCase())>-1))throw new de(Se);return this._writableState.defaultEncoding=Se,this},Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ge.prototype._write=function(Pe,Se,Q){Q(new E("_write()"))},ge.prototype._writev=null,ge.prototype.end=function(Pe,Se,Q){var Ue=this._writableState;return"function"==typeof Pe?(Q=Pe,Pe=null,Se=null):"function"==typeof Se&&(Q=Se,Se=null),null!=Pe&&this.write(Pe,Se),Ue.corked&&(Ue.corked=1,this.uncork()),Ue.ending||function ue(Pe,Se,Q){Se.ending=!0,J(Pe,Se),Q&&(Se.finished?process.nextTick(Q):Pe.once("finish",Q)),Se.ended=!0,Pe.writable=!1}(this,Ue,Q),this},Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Se){!this._writableState||(this._writableState.destroyed=Se)}}),ge.prototype.destroy=L.destroy,ge.prototype._undestroy=L.undestroy,ge.prototype._destroy=function(Pe,Se){Se(Pe)}},3872:(ze,K,p)=>{"use strict";var t;function e(j,ne,ee){return ne in j?Object.defineProperty(j,ne,{value:ee,enumerable:!0,configurable:!0,writable:!0}):j[ne]=ee,j}var f=p(7542),M=Symbol("lastResolve"),s=Symbol("lastReject"),b=Symbol("error"),d=Symbol("ended"),R=Symbol("lastPromise"),h=Symbol("handlePromise"),L=Symbol("stream");function w(j,ne){return{value:j,done:ne}}function D(j){var ne=j[M];if(null!==ne){var ee=j[L].read();null!==ee&&(j[R]=null,j[M]=null,j[s]=null,ne(w(ee,!1)))}}function S(j){process.nextTick(D,j)}var E=Object.getPrototypeOf(function(){}),U=Object.setPrototypeOf((e(t={get stream(){return this[L]},next:function(){var ne=this,ee=this[b];if(null!==ee)return Promise.reject(ee);if(this[d])return Promise.resolve(w(void 0,!0));if(this[L].destroyed)return new Promise(function(le,$){process.nextTick(function(){ne[b]?$(ne[b]):le(w(void 0,!0))})});var te,de=this[R];if(de)te=new Promise(function k(j,ne){return function(ee,de){j.then(function(){ne[d]?ee(w(void 0,!0)):ne[h](ee,de)},de)}}(de,this));else{var ie=this[L].read();if(null!==ie)return Promise.resolve(w(ie,!1));te=new Promise(this[h])}return this[R]=te,te}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var ne=this;return new Promise(function(ee,de){ne[L].destroy(null,function(te){te?de(te):ee(w(void 0,!0))})})}),t),E);ze.exports=function(ne){var ee,de=Object.create(U,(e(ee={},L,{value:ne,writable:!0}),e(ee,M,{value:null,writable:!0}),e(ee,s,{value:null,writable:!0}),e(ee,b,{value:null,writable:!0}),e(ee,d,{value:ne._readableState.endEmitted,writable:!0}),e(ee,h,{value:function(ie,le){var $=de[L].read();$?(de[R]=null,de[M]=null,de[s]=null,ie(w($,!1))):(de[M]=ie,de[s]=le)},writable:!0}),ee));return de[R]=null,f(ne,function(te){if(te&&"ERR_STREAM_PREMATURE_CLOSE"!==te.code){var ie=de[s];return null!==ie&&(de[R]=null,de[M]=null,de[s]=null,ie(te)),void(de[b]=te)}var le=de[M];null!==le&&(de[R]=null,de[M]=null,de[s]=null,le(w(void 0,!0))),de[d]=!0}),ne.on("readable",S.bind(null,de)),de}},5019:(ze,K,p)=>{"use strict";function t(S,k){var E=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);k&&(U=U.filter(function(W){return Object.getOwnPropertyDescriptor(S,W).enumerable})),E.push.apply(E,U)}return E}function f(S,k,E){return k in S?Object.defineProperty(S,k,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[k]=E,S}function s(S,k){for(var E=0;E<k.length;E++){var U=k[E];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(S,U.key,U)}}var R=p(3172).Buffer,L=p(2361).inspect,w=L&&L.custom||"inspect";function D(S,k,E){R.prototype.copy.call(S,k,E)}ze.exports=function(){function S(){(function M(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")})(this,S),this.head=null,this.tail=null,this.length=0}return function b(S,k,E){k&&s(S.prototype,k),E&&s(S,E)}(S,[{key:"push",value:function(E){var U={data:E,next:null};this.length>0?this.tail.next=U:this.head=U,this.tail=U,++this.length}},{key:"unshift",value:function(E){var U={data:E,next:this.head};0===this.length&&(this.tail=U),this.head=U,++this.length}},{key:"shift",value:function(){if(0!==this.length){var E=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(0===this.length)return"";for(var U=this.head,W=""+U.data;U=U.next;)W+=E+U.data;return W}},{key:"concat",value:function(E){if(0===this.length)return R.alloc(0);for(var U=R.allocUnsafe(E>>>0),W=this.head,j=0;W;)D(W.data,U,j),j+=W.data.length,W=W.next;return U}},{key:"consume",value:function(E,U){var W;return E<this.head.data.length?(W=this.head.data.slice(0,E),this.head.data=this.head.data.slice(E)):W=E===this.head.data.length?this.shift():U?this._getString(E):this._getBuffer(E),W}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(E){var U=this.head,W=1,j=U.data;for(E-=j.length;U=U.next;){var ne=U.data,ee=E>ne.length?ne.length:E;if(j+=ee===ne.length?ne:ne.slice(0,E),0==(E-=ee)){ee===ne.length?(++W,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ne.slice(ee));break}++W}return this.length-=W,j}},{key:"_getBuffer",value:function(E){var U=R.allocUnsafe(E),W=this.head,j=1;for(W.data.copy(U),E-=W.data.length;W=W.next;){var ne=W.data,ee=E>ne.length?ne.length:E;if(ne.copy(U,U.length-E,0,ee),0==(E-=ee)){ee===ne.length?(++j,this.head=W.next?W.next:this.tail=null):(this.head=W,W.data=ne.slice(ee));break}++j}return this.length-=j,U}},{key:w,value:function(E,U){return L(this,function e(S){for(var k=1;k<arguments.length;k++){var E=null!=arguments[k]?arguments[k]:{};k%2?t(Object(E),!0).forEach(function(U){f(S,U,E[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(E)):t(Object(E)).forEach(function(U){Object.defineProperty(S,U,Object.getOwnPropertyDescriptor(E,U))})}return S}({},U,{depth:0,customInspect:!1}))}}]),S}()},1920:ze=>{"use strict";function p(s,b){f(s,b),t(s)}function t(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function f(s,b){s.emit("error",b)}ze.exports={destroy:function K(s,b){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(b?b(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(f,this,s)):process.nextTick(f,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(L){!b&&L?d._writableState?d._writableState.errorEmitted?process.nextTick(t,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,L)):process.nextTick(p,d,L):b?(process.nextTick(t,d),b(L)):process.nextTick(t,d)}),this)},undestroy:function e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function M(s,b){var d=s._readableState,R=s._writableState;d&&d.autoDestroy||R&&R.autoDestroy?s.destroy(b):s.emit("error",b)}}},7542:(ze,K,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}ze.exports=function s(b,d,R){if("function"==typeof d)return s(b,null,d);d||(d={}),R=function e(b){var d=!1;return function(){if(!d){d=!0;for(var R=arguments.length,h=new Array(R),L=0;L<R;L++)h[L]=arguments[L];b.apply(this,h)}}}(R||f);var h=d.readable||!1!==d.readable&&b.readable,L=d.writable||!1!==d.writable&&b.writable,w=function(){b.writable||S()},D=b._writableState&&b._writableState.finished,S=function(){L=!1,D=!0,h||R.call(b)},k=b._readableState&&b._readableState.endEmitted,E=function(){h=!1,k=!0,L||R.call(b)},U=function(ee){R.call(b,ee)},W=function(){var ee;return h&&!k?((!b._readableState||!b._readableState.ended)&&(ee=new t),R.call(b,ee)):L&&!D?((!b._writableState||!b._writableState.ended)&&(ee=new t),R.call(b,ee)):void 0},j=function(){b.req.on("finish",S)};return function M(b){return b.setHeader&&"function"==typeof b.abort}(b)?(b.on("complete",S),b.on("abort",W),b.req?j():b.on("request",j)):L&&!b._writableState&&(b.on("end",w),b.on("close",w)),b.on("end",E),b.on("finish",S),!1!==d.error&&b.on("error",U),b.on("close",W),function(){b.removeListener("complete",S),b.removeListener("abort",W),b.removeListener("request",j),b.req&&b.req.removeListener("finish",S),b.removeListener("end",w),b.removeListener("close",w),b.removeListener("finish",S),b.removeListener("end",E),b.removeListener("error",U),b.removeListener("close",W)}}},7412:ze=>{ze.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(ze,K,p)=>{"use strict";var t,f=p(891).q,M=f.ERR_MISSING_ARGS,s=f.ERR_STREAM_DESTROYED;function b(S){if(S)throw S}function R(S,k,E,U){U=function e(S){var k=!1;return function(){k||(k=!0,S.apply(void 0,arguments))}}(U);var W=!1;S.on("close",function(){W=!0}),void 0===t&&(t=p(7542)),t(S,{readable:k,writable:E},function(ne){if(ne)return U(ne);W=!0,U()});var j=!1;return function(ne){if(!W&&!j){if(j=!0,function d(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();U(ne||new s("pipe"))}}}function h(S){S()}function L(S,k){return S.pipe(k)}function w(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():b}ze.exports=function D(){for(var S=arguments.length,k=new Array(S),E=0;E<S;E++)k[E]=arguments[E];var U=w(k);if(Array.isArray(k[0])&&(k=k[0]),k.length<2)throw new M("streams");var W,j=k.map(function(ne,ee){var de=ee<k.length-1;return R(ne,de,ee>0,function(ie){W||(W=ie),ie&&j.forEach(h),!de&&(j.forEach(h),U(W))})});return k.reduce(L)}},7102:(ze,K,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;ze.exports={getHighWaterMark:function f(M,s,b,d){var R=function e(M,s,b){return null!=M.highWaterMark?M.highWaterMark:s?M[b]:null}(s,d,b);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new t(d?b:"highWaterMark",R);return Math.floor(R)}return M.objectMode?16:16384}}},4970:(ze,K,p)=>{ze.exports=p(9069).EventEmitter},5685:(ze,K,p)=>{(K=ze.exports=p(3154)).Stream=K,K.Readable=K,K.Writable=p(520),K.Duplex=p(1339),K.Transform=p(6025),K.PassThrough=p(6071),K.finished=p(7542),K.pipeline=p(954)},5634:(ze,K,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),f=p(9650),M=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],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function w(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function D(j,ne){return j<<ne|j>>>32-ne}function S(j,ne,ee,de,te,ie,le,$){return D(j+(ne^ee^de)+ie+le|0,$)+te|0}function k(j,ne,ee,de,te,ie,le,$){return D(j+(ne&ee|~ne&de)+ie+le|0,$)+te|0}function E(j,ne,ee,de,te,ie,le,$){return D(j+((ne|~ee)^de)+ie+le|0,$)+te|0}function U(j,ne,ee,de,te,ie,le,$){return D(j+(ne&de|ee&~de)+ie+le|0,$)+te|0}function W(j,ne,ee,de,te,ie,le,$){return D(j+(ne^(ee|~de))+ie+le|0,$)+te|0}e(w,f),w.prototype._update=function(){for(var j=M,ne=0;ne<16;++ne)j[ne]=this._block.readInt32LE(4*ne);for(var ee=0|this._a,de=0|this._b,te=0|this._c,ie=0|this._d,le=0|this._e,$=0|this._a,ge=0|this._b,C=0|this._c,i=0|this._d,r=0|this._e,u=0;u<80;u+=1){var c,v;u<16?(c=S(ee,de,te,ie,le,j[s[u]],h[0],d[u]),v=W($,ge,C,i,r,j[b[u]],L[0],R[u])):u<32?(c=k(ee,de,te,ie,le,j[s[u]],h[1],d[u]),v=U($,ge,C,i,r,j[b[u]],L[1],R[u])):u<48?(c=E(ee,de,te,ie,le,j[s[u]],h[2],d[u]),v=E($,ge,C,i,r,j[b[u]],L[2],R[u])):u<64?(c=U(ee,de,te,ie,le,j[s[u]],h[3],d[u]),v=k($,ge,C,i,r,j[b[u]],L[3],R[u])):(c=W(ee,de,te,ie,le,j[s[u]],h[4],d[u]),v=S($,ge,C,i,r,j[b[u]],L[4],R[u])),ee=le,le=ie,ie=D(te,10),te=de,de=c,$=r,r=i,i=D(C,10),C=ge,ge=v}var T=this._b+te+i|0;this._b=this._c+ie+r|0,this._c=this._d+le+$|0,this._d=this._e+ee+ge|0,this._e=this._a+de+C|0,this._a=T},w.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var j=t.alloc?t.alloc(20):new t(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},ze.exports=w},1135:(ze,K,p)=>{"use strict";p.d(K,{X:()=>e});var t=p(7579);class e extends t.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const s=super._subscribe(M);return!s.closed&&M.next(this._value),s}getValue(){const{hasError:M,thrownError:s,_value:b}=this;if(M)throw s;return this._throwIfClosed(),b}next(M){super.next(this._value=M)}}},8306:(ze,K,p)=>{"use strict";p.d(K,{y:()=>L});var t=p(930),e=p(727),f=p(8822),M=p(4671);var d=p(2416),R=p(576),h=p(2806);let L=(()=>{class k{constructor(U){U&&(this._subscribe=U)}lift(U){const W=new k;return W.source=this,W.operator=U,W}subscribe(U,W,j){const ne=function S(k){return k&&k instanceof t.Lv||function D(k){return k&&(0,R.m)(k.next)&&(0,R.m)(k.error)&&(0,R.m)(k.complete)}(k)&&(0,e.Nn)(k)}(U)?U:new t.Hp(U,W,j);return(0,h.x)(()=>{const{operator:ee,source:de}=this;ne.add(ee?ee.call(ne,de):de?this._subscribe(ne):this._trySubscribe(ne))}),ne}_trySubscribe(U){try{return this._subscribe(U)}catch(W){U.error(W)}}forEach(U,W){return new(W=w(W))((j,ne)=>{const ee=new t.Hp({next:de=>{try{U(de)}catch(te){ne(te),ee.unsubscribe()}},error:ne,complete:j});this.subscribe(ee)})}_subscribe(U){var W;return null===(W=this.source)||void 0===W?void 0:W.subscribe(U)}[f.L](){return this}pipe(...U){return function b(k){return 0===k.length?M.y:1===k.length?k[0]:function(U){return k.reduce((W,j)=>j(W),U)}}(U)(this)}toPromise(U){return new(U=w(U))((W,j)=>{let ne;this.subscribe(ee=>ne=ee,ee=>j(ee),()=>W(ne))})}}return k.create=E=>new k(E),k})();function w(k){var E;return null!==(E=null!=k?k:d.v.Promise)&&void 0!==E?E:Promise}},4707:(ze,K,p)=>{"use strict";p.d(K,{t:()=>f});var t=p(7579),e=p(6063);class f extends t.x{constructor(s=1/0,b=1/0,d=e.l){super(),this._bufferSize=s,this._windowTime=b,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,b)}next(s){const{isStopped:b,_buffer:d,_infiniteTimeWindow:R,_timestampProvider:h,_windowTime:L}=this;b||(d.push(s),!R&&d.push(h.now()+L)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(s),{_infiniteTimeWindow:d,_buffer:R}=this,h=R.slice();for(let L=0;L<h.length&&!s.closed;L+=d?1:2)s.next(h[L]);return this._checkFinalizedStatuses(s),b}_trimBuffer(){const{_bufferSize:s,_timestampProvider:b,_buffer:d,_infiniteTimeWindow:R}=this,h=(R?1:2)*s;if(s<1/0&&h<d.length&&d.splice(0,d.length-h),!R){const L=b.now();let w=0;for(let D=1;D<d.length&&d[D]<=L;D+=2)w=D;w&&d.splice(0,w+1)}}}},7579:(ze,K,p)=>{"use strict";p.d(K,{u:()=>R,x:()=>d});var t=p(8306),e=p(727);const M=(0,p(3888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=p(8737),b=p(2806);let d=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const D=new R(this,this);return D.operator=w,D}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const D of this.currentObservers)D.next(w)}})}error(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:D}=this;for(;D.length;)D.shift().error(w)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:D,isStopped:S,observers:k}=this;return D||S?e.Lc:(this.currentObservers=null,k.push(w),new e.w0(()=>{this.currentObservers=null,(0,s.P)(k,w)}))}_checkFinalizedStatuses(w){const{hasError:D,thrownError:S,isStopped:k}=this;D?w.error(S):k&&w.complete()}asObservable(){const w=new t.y;return w.source=this,w}}return h.create=(L,w)=>new R(L,w),h})();class R extends d{constructor(L,w){super(),this.destination=L,this.source=w}next(L){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===D||D.call(w,L)}error(L){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===D||D.call(w,L)}complete(){var L,w;null===(w=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===w||w.call(L)}_subscribe(L){var w,D;return null!==(D=null===(w=this.source)||void 0===w?void 0:w.subscribe(L))&&void 0!==D?D:e.Lc}}},930:(ze,K,p)=>{"use strict";p.d(K,{Hp:()=>U,Lv:()=>D});var t=p(576),e=p(727),f=p(2416),M=p(7849),s=p(5032);const b=h("C",void 0,void 0);function h(de,te,ie){return{kind:de,value:te,error:ie}}var L=p(3410),w=p(2806);class D extends e.w0{constructor(te){super(),this.isStopped=!1,te?(this.destination=te,(0,e.Nn)(te)&&te.add(this)):this.destination=ee}static create(te,ie,le){return new U(te,ie,le)}next(te){this.isStopped?ne(function R(de){return h("N",de,void 0)}(te),this):this._next(te)}error(te){this.isStopped?ne(function d(de){return h("E",void 0,de)}(te),this):(this.isStopped=!0,this._error(te))}complete(){this.isStopped?ne(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(te){this.destination.next(te)}_error(te){try{this.destination.error(te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const S=Function.prototype.bind;function k(de,te){return S.call(de,te)}class E{constructor(te){this.partialObserver=te}next(te){const{partialObserver:ie}=this;if(ie.next)try{ie.next(te)}catch(le){W(le)}}error(te){const{partialObserver:ie}=this;if(ie.error)try{ie.error(te)}catch(le){W(le)}else W(te)}complete(){const{partialObserver:te}=this;if(te.complete)try{te.complete()}catch(ie){W(ie)}}}class U extends D{constructor(te,ie,le){let $;if(super(),(0,t.m)(te)||!te)$={next:null!=te?te:void 0,error:null!=ie?ie:void 0,complete:null!=le?le:void 0};else{let ge;this&&f.v.useDeprecatedNextContext?(ge=Object.create(te),ge.unsubscribe=()=>this.unsubscribe(),$={next:te.next&&k(te.next,ge),error:te.error&&k(te.error,ge),complete:te.complete&&k(te.complete,ge)}):$=te}this.destination=new E($)}}function W(de){f.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(de):(0,M.h)(de)}function ne(de,te){const{onStoppedNotification:ie}=f.v;ie&&L.z.setTimeout(()=>ie(de,te))}const ee={closed:!0,next:s.Z,error:function j(de){throw de},complete:s.Z}},727:(ze,K,p)=>{"use strict";p.d(K,{Lc:()=>b,w0:()=>s,Nn:()=>d});var t=p(576);const f=(0,p(3888).d)(h=>function(w){h(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((D,S)=>`${S+1}) ${D.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(8737);class s{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const k of w)k.remove(this);else w.remove(this);const{initialTeardown:D}=this;if((0,t.m)(D))try{D()}catch(k){L=k instanceof f?k.errors:[k]}const{_finalizers:S}=this;if(S){this._finalizers=null;for(const k of S)try{R(k)}catch(E){L=null!=L?L:[],E instanceof f?L=[...L,...E.errors]:L.push(E)}}if(L)throw new f(L)}}add(L){var w;if(L&&L!==this)if(this.closed)R(L);else{if(L instanceof s){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(L)}}_hasParent(L){const{_parentage:w}=this;return w===L||Array.isArray(w)&&w.includes(L)}_addParent(L){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(L),w):w?[w,L]:L}_removeParent(L){const{_parentage:w}=this;w===L?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,L)}remove(L){const{_finalizers:w}=this;w&&(0,M.P)(w,L),L instanceof s&&L._removeParent(this)}}s.EMPTY=(()=>{const h=new s;return h.closed=!0,h})();const b=s.EMPTY;function d(h){return h instanceof s||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function R(h){(0,t.m)(h)?h():h.unsubscribe()}},2416:(ze,K,p)=>{"use strict";p.d(K,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(ze,K,p)=>{"use strict";p.d(K,{a:()=>L});var t=p(8306),e=p(4742),f=p(457),M=p(4671),s=p(3268),b=p(3269),d=p(1810),R=p(5403),h=p(9672);function L(...S){const k=(0,b.yG)(S),E=(0,b.jO)(S),{args:U,keys:W}=(0,e.D)(S);if(0===U.length)return(0,f.D)([],k);const j=new t.y(function w(S,k,E=M.y){return U=>{D(k,()=>{const{length:W}=S,j=new Array(W);let ne=W,ee=W;for(let de=0;de<W;de++)D(k,()=>{const te=(0,f.D)(S[de],k);let ie=!1;te.subscribe((0,R.x)(U,le=>{j[de]=le,ie||(ie=!0,ee--),ee||U.next(E(j.slice()))},()=>{--ne||U.complete()}))},U)},U)}}(U,k,W?ne=>(0,d.n)(W,ne):M.y));return E?j.pipe((0,s.Z)(E)):j}function D(S,k,E){S?(0,h.f)(E,S,k):k()}},7272:(ze,K,p)=>{"use strict";p.d(K,{z:()=>s});var t=p(8189),f=p(3269),M=p(457);function s(...b){return function e(){return(0,t.J)(1)}()((0,M.D)(b,(0,f.yG)(b)))}},9770:(ze,K,p)=>{"use strict";p.d(K,{P:()=>f});var t=p(8306),e=p(8421);function f(M){return new t.y(s=>{(0,e.Xf)(M()).subscribe(s)})}},515:(ze,K,p)=>{"use strict";p.d(K,{E:()=>e});const e=new(p(8306).y)(s=>s.complete())},4128:(ze,K,p)=>{"use strict";p.d(K,{D:()=>R});var t=p(8306),e=p(4742),f=p(8421),M=p(3269),s=p(5403),b=p(3268),d=p(1810);function R(...h){const L=(0,M.jO)(h),{args:w,keys:D}=(0,e.D)(h),S=new t.y(k=>{const{length:E}=w;if(!E)return void k.complete();const U=new Array(E);let W=E,j=E;for(let ne=0;ne<E;ne++){let ee=!1;(0,f.Xf)(w[ne]).subscribe((0,s.x)(k,de=>{ee||(ee=!0,j--),U[ne]=de},()=>W--,void 0,()=>{(!W||!ee)&&(j||k.next(D?(0,d.n)(D,U):U),k.complete())}))}});return L?S.pipe((0,b.Z)(L)):S}},457:(ze,K,p)=>{"use strict";p.d(K,{D:()=>ie});var t=p(8421),e=p(5363),f=p(4482);function M(le,$=0){return(0,f.e)((ge,C)=>{C.add(le.schedule(()=>ge.subscribe(C),$))})}var d=p(8306),h=p(2202),L=p(576),w=p(9672);function S(le,$){if(!le)throw new Error("Iterable cannot be null");return new d.y(ge=>{(0,w.f)(ge,$,()=>{const C=le[Symbol.asyncIterator]();(0,w.f)(ge,$,()=>{C.next().then(i=>{i.done?ge.complete():ge.next(i.value)})},0,!0)})})}var k=p(3670),E=p(8239),U=p(1144),W=p(6495),j=p(2206),ne=p(4532),ee=p(3260);function ie(le,$){return $?function te(le,$){if(null!=le){if((0,k.c)(le))return function s(le,$){return(0,t.Xf)(le).pipe(M($),(0,e.Q)($))}(le,$);if((0,U.z)(le))return function R(le,$){return new d.y(ge=>{let C=0;return $.schedule(function(){C===le.length?ge.complete():(ge.next(le[C++]),ge.closed||this.schedule())})})}(le,$);if((0,E.t)(le))return function b(le,$){return(0,t.Xf)(le).pipe(M($),(0,e.Q)($))}(le,$);if((0,j.D)(le))return S(le,$);if((0,W.T)(le))return function D(le,$){return new d.y(ge=>{let C;return(0,w.f)(ge,$,()=>{C=le[h.h](),(0,w.f)(ge,$,()=>{let i,r;try{({value:i,done:r}=C.next())}catch(u){return void ge.error(u)}r?ge.complete():ge.next(i)},0,!0)}),()=>(0,L.m)(null==C?void 0:C.return)&&C.return()})}(le,$);if((0,ee.L)(le))return function de(le,$){return S((0,ee.Q)(le),$)}(le,$)}throw(0,ne.z)(le)}(le,$):(0,t.Xf)(le)}},4968:(ze,K,p)=>{"use strict";p.d(K,{R:()=>L});var t=p(8421),e=p(8306),f=p(5577),M=p(1144),s=p(576),b=p(3268);const d=["addListener","removeListener"],R=["addEventListener","removeEventListener"],h=["on","off"];function L(E,U,W,j){if((0,s.m)(W)&&(j=W,W=void 0),j)return L(E,U,W).pipe((0,b.Z)(j));const[ne,ee]=function k(E){return(0,s.m)(E.addEventListener)&&(0,s.m)(E.removeEventListener)}(E)?R.map(de=>te=>E[de](U,te,W)):function D(E){return(0,s.m)(E.addListener)&&(0,s.m)(E.removeListener)}(E)?d.map(w(E,U)):function S(E){return(0,s.m)(E.on)&&(0,s.m)(E.off)}(E)?h.map(w(E,U)):[];if(!ne&&(0,M.z)(E))return(0,f.z)(de=>L(de,U,W))((0,t.Xf)(E));if(!ne)throw new TypeError("Invalid event target");return new e.y(de=>{const te=(...ie)=>de.next(1<ie.length?ie:ie[0]);return ne(te),()=>ee(te)})}function w(E,U){return W=>j=>E[W](U,j)}},8421:(ze,K,p)=>{"use strict";p.d(K,{Xf:()=>S});var t=p(655),e=p(1144),f=p(8239),M=p(8306),s=p(3670),b=p(2206),d=p(4532),R=p(6495),h=p(3260),L=p(576),w=p(7849),D=p(8822);function S(de){if(de instanceof M.y)return de;if(null!=de){if((0,s.c)(de))return function k(de){return new M.y(te=>{const ie=de[D.L]();if((0,L.m)(ie.subscribe))return ie.subscribe(te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(de);if((0,e.z)(de))return function E(de){return new M.y(te=>{for(let ie=0;ie<de.length&&!te.closed;ie++)te.next(de[ie]);te.complete()})}(de);if((0,f.t)(de))return function U(de){return new M.y(te=>{de.then(ie=>{te.closed||(te.next(ie),te.complete())},ie=>te.error(ie)).then(null,w.h)})}(de);if((0,b.D)(de))return j(de);if((0,R.T)(de))return function W(de){return new M.y(te=>{for(const ie of de)if(te.next(ie),te.closed)return;te.complete()})}(de);if((0,h.L)(de))return function ne(de){return j((0,h.Q)(de))}(de)}throw(0,d.z)(de)}function j(de){return new M.y(te=>{(function ee(de,te){var ie,le,$,ge;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ie=(0,t.KL)(de);!(le=yield ie.next()).done;)if(te.next(le.value),te.closed)return}catch(C){$={error:C}}finally{try{le&&!le.done&&(ge=ie.return)&&(yield ge.call(ie))}finally{if($)throw $.error}}te.complete()})})(de,te).catch(ie=>te.error(ie))})}},6451:(ze,K,p)=>{"use strict";p.d(K,{T:()=>b});var t=p(8189),e=p(8421),f=p(515),M=p(3269),s=p(457);function b(...d){const R=(0,M.yG)(d),h=(0,M._6)(d,1/0),L=d;return L.length?1===L.length?(0,e.Xf)(L[0]):(0,t.J)(h)((0,s.D)(L,R)):f.E}},9646:(ze,K,p)=>{"use strict";p.d(K,{of:()=>f});var t=p(3269),e=p(457);function f(...M){const s=(0,t.yG)(M);return(0,e.D)(M,s)}},2843:(ze,K,p)=>{"use strict";p.d(K,{_:()=>f});var t=p(8306),e=p(576);function f(M,s){const b=(0,e.m)(M)?M:()=>M,d=R=>R.error(b());return new t.y(s?R=>s.schedule(d,0,R):d)}},2805:(ze,K,p)=>{"use strict";p.d(K,{H:()=>s});var t=p(8306),e=p(4986),f=p(3532),M=p(1165);function s(b=0,d,R=e.P){let h=-1;return null!=d&&((0,f.K)(d)?R=d:h=d),new t.y(L=>{let w=(0,M.q)(b)?+b-R.now():b;w<0&&(w=0);let D=0;return R.schedule(function(){L.closed||(L.next(D++),0<=h?this.schedule(void 0,h):L.complete())},w)})}},5403:(ze,K,p)=>{"use strict";p.d(K,{Q:()=>f,x:()=>e});var t=p(930);function e(M,s,b,d,R){return new f(M,s,b,d,R)}class f extends t.Lv{constructor(s,b,d,R,h,L){super(s),this.onFinalize=h,this.shouldUnsubscribe=L,this._next=b?function(w){try{b(w)}catch(D){s.error(D)}}:super._next,this._error=R?function(w){try{R(w)}catch(D){s.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(w){s.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},3601:(ze,K,p)=>{"use strict";p.d(K,{e:()=>d});var t=p(4986),e=p(4482),f=p(8421),M=p(5403),b=p(2805);function d(R,h=t.z){return function s(R){return(0,e.e)((h,L)=>{let w=!1,D=null,S=null,k=!1;const E=()=>{if(null==S||S.unsubscribe(),S=null,w){w=!1;const W=D;D=null,L.next(W)}k&&L.complete()},U=()=>{S=null,k&&L.complete()};h.subscribe((0,M.x)(L,W=>{w=!0,D=W,S||(0,f.Xf)(R(W)).subscribe(S=(0,M.x)(L,E,U))},()=>{k=!0,(!w||!S||S.closed)&&L.complete()}))})}(()=>(0,b.H)(R,h))}},262:(ze,K,p)=>{"use strict";p.d(K,{K:()=>M});var t=p(8421),e=p(5403),f=p(4482);function M(s){return(0,f.e)((b,d)=>{let L,R=null,h=!1;R=b.subscribe((0,e.x)(d,void 0,void 0,w=>{L=(0,t.Xf)(s(w,M(s)(b))),R?(R.unsubscribe(),R=null,L.subscribe(d)):h=!0})),h&&(R.unsubscribe(),R=null,L.subscribe(d))})}},4351:(ze,K,p)=>{"use strict";p.d(K,{b:()=>f});var t=p(5577),e=p(576);function f(M,s){return(0,e.m)(s)?(0,t.z)(M,s,1):(0,t.z)(M,1)}},8372:(ze,K,p)=>{"use strict";p.d(K,{b:()=>M});var t=p(4986),e=p(4482),f=p(5403);function M(s,b=t.z){return(0,e.e)((d,R)=>{let h=null,L=null,w=null;const D=()=>{if(h){h.unsubscribe(),h=null;const k=L;L=null,R.next(k)}};function S(){const k=w+s,E=b.now();if(E<k)return h=this.schedule(void 0,k-E),void R.add(h);D()}d.subscribe((0,f.x)(R,k=>{L=k,w=b.now(),h||(h=b.schedule(S,s),R.add(h))},()=>{D(),R.complete()},void 0,()=>{L=h=null}))})}},6590:(ze,K,p)=>{"use strict";p.d(K,{d:()=>f});var t=p(4482),e=p(5403);function f(M){return(0,t.e)((s,b)=>{let d=!1;s.subscribe((0,e.x)(b,R=>{d=!0,b.next(R)},()=>{d||b.next(M),b.complete()}))})}},4086:(ze,K,p)=>{"use strict";p.d(K,{g:()=>h});var t=p(4986),e=p(7272),f=p(5698),M=p(8502),s=p(9718),b=p(5577);function d(L,w){return w?D=>(0,e.z)(w.pipe((0,f.q)(1),(0,M.l)()),D.pipe(d(L))):(0,b.z)((D,S)=>L(D,S).pipe((0,f.q)(1),(0,s.h)(D)))}var R=p(2805);function h(L,w=t.z){const D=(0,R.H)(L,w);return d(()=>D)}},1884:(ze,K,p)=>{"use strict";p.d(K,{x:()=>M});var t=p(4671),e=p(4482),f=p(5403);function M(b,d=t.y){return b=null!=b?b:s,(0,e.e)((R,h)=>{let L,w=!0;R.subscribe((0,f.x)(h,D=>{const S=d(D);(w||!b(L,S))&&(w=!1,L=S,h.next(D))}))})}function s(b,d){return b===d}},9300:(ze,K,p)=>{"use strict";p.d(K,{h:()=>f});var t=p(4482),e=p(5403);function f(M,s){return(0,t.e)((b,d)=>{let R=0;b.subscribe((0,e.x)(d,h=>M.call(s,h,R++)&&d.next(h)))})}},8746:(ze,K,p)=>{"use strict";p.d(K,{x:()=>e});var t=p(4482);function e(f){return(0,t.e)((M,s)=>{try{M.subscribe(s)}finally{s.add(f)}})}},590:(ze,K,p)=>{"use strict";p.d(K,{P:()=>d});var t=p(6805),e=p(9300),f=p(5698),M=p(6590),s=p(8068),b=p(4671);function d(R,h){const L=arguments.length>=2;return w=>w.pipe(R?(0,e.h)((D,S)=>R(D,S,w)):b.y,(0,f.q)(1),L?(0,M.d)(h):(0,s.T)(()=>new t.K))}},8502:(ze,K,p)=>{"use strict";p.d(K,{l:()=>M});var t=p(4482),e=p(5403),f=p(5032);function M(){return(0,t.e)((s,b)=>{s.subscribe((0,e.x)(b,f.Z))})}},4004:(ze,K,p)=>{"use strict";p.d(K,{U:()=>f});var t=p(4482),e=p(5403);function f(M,s){return(0,t.e)((b,d)=>{let R=0;b.subscribe((0,e.x)(d,h=>{d.next(M.call(s,h,R++))}))})}},9718:(ze,K,p)=>{"use strict";p.d(K,{h:()=>e});var t=p(4004);function e(f){return(0,t.U)(()=>f)}},8189:(ze,K,p)=>{"use strict";p.d(K,{J:()=>f});var t=p(5577),e=p(4671);function f(M=1/0){return(0,t.z)(e.y,M)}},5577:(ze,K,p)=>{"use strict";p.d(K,{z:()=>R});var t=p(4004),e=p(8421),f=p(4482),M=p(9672),s=p(5403),d=p(576);function R(h,L,w=1/0){return(0,d.m)(L)?R((D,S)=>(0,t.U)((k,E)=>L(D,k,S,E))((0,e.Xf)(h(D,S))),w):("number"==typeof L&&(w=L),(0,f.e)((D,S)=>function b(h,L,w,D,S,k,E,U){const W=[];let j=0,ne=0,ee=!1;const de=()=>{ee&&!W.length&&!j&&L.complete()},te=le=>j<D?ie(le):W.push(le),ie=le=>{k&&L.next(le),j++;let $=!1;(0,e.Xf)(w(le,ne++)).subscribe((0,s.x)(L,ge=>{null==S||S(ge),k?te(ge):L.next(ge)},()=>{$=!0},void 0,()=>{if($)try{for(j--;W.length&&j<D;){const ge=W.shift();E?(0,M.f)(L,E,()=>ie(ge)):ie(ge)}de()}catch(ge){L.error(ge)}}))};return h.subscribe((0,s.x)(L,te,()=>{ee=!0,de()})),()=>{null==U||U()}}(D,S,h,w)))}},5363:(ze,K,p)=>{"use strict";p.d(K,{Q:()=>M});var t=p(9672),e=p(4482),f=p(5403);function M(s,b=0){return(0,e.e)((d,R)=>{d.subscribe((0,f.x)(R,h=>(0,t.f)(R,s,()=>R.next(h),b),()=>(0,t.f)(R,s,()=>R.complete(),b),h=>(0,t.f)(R,s,()=>R.error(h),b)))})}},5026:(ze,K,p)=>{"use strict";p.d(K,{R:()=>M});var t=p(4482),e=p(5403);function f(s,b,d,R,h){return(L,w)=>{let D=d,S=b,k=0;L.subscribe((0,e.x)(w,E=>{const U=k++;S=D?s(S,E,U):(D=!0,E),R&&w.next(S)},h&&(()=>{D&&w.next(S),w.complete()})))}}function M(s,b){return(0,t.e)(f(s,b,arguments.length>=2,!0))}},3099:(ze,K,p)=>{"use strict";p.d(K,{B:()=>s});var t=p(8421),e=p(7579),f=p(930),M=p(4482);function s(d={}){const{connector:R=(()=>new e.x),resetOnError:h=!0,resetOnComplete:L=!0,resetOnRefCountZero:w=!0}=d;return D=>{let S,k,E,U=0,W=!1,j=!1;const ne=()=>{null==k||k.unsubscribe(),k=void 0},ee=()=>{ne(),S=E=void 0,W=j=!1},de=()=>{const te=S;ee(),null==te||te.unsubscribe()};return(0,M.e)((te,ie)=>{U++,!j&&!W&&ne();const le=E=null!=E?E:R();ie.add(()=>{U--,0===U&&!j&&!W&&(k=b(de,w))}),le.subscribe(ie),!S&&U>0&&(S=new f.Hp({next:$=>le.next($),error:$=>{j=!0,ne(),k=b(ee,h,$),le.error($)},complete:()=>{W=!0,ne(),k=b(ee,L),le.complete()}}),(0,t.Xf)(te).subscribe(S))})(D)}}function b(d,R,...h){if(!0===R)return void d();if(!1===R)return;const L=new f.Hp({next:()=>{L.unsubscribe(),d()}});return R(...h).subscribe(L)}},5684:(ze,K,p)=>{"use strict";p.d(K,{T:()=>e});var t=p(9300);function e(f){return(0,t.h)((M,s)=>f<=s)}},8675:(ze,K,p)=>{"use strict";p.d(K,{O:()=>M});var t=p(7272),e=p(3269),f=p(4482);function M(...s){const b=(0,e.yG)(s);return(0,f.e)((d,R)=>{(b?(0,t.z)(s,d,b):(0,t.z)(s,d)).subscribe(R)})}},3900:(ze,K,p)=>{"use strict";p.d(K,{w:()=>M});var t=p(8421),e=p(4482),f=p(5403);function M(s,b){return(0,e.e)((d,R)=>{let h=null,L=0,w=!1;const D=()=>w&&!h&&R.complete();d.subscribe((0,f.x)(R,S=>{null==h||h.unsubscribe();let k=0;const E=L++;(0,t.Xf)(s(S,E)).subscribe(h=(0,f.x)(R,U=>R.next(b?b(S,U,E,k++):U),()=>{h=null,D()}))},()=>{w=!0,D()}))})}},5698:(ze,K,p)=>{"use strict";p.d(K,{q:()=>M});var t=p(515),e=p(4482),f=p(5403);function M(s){return s<=0?()=>t.E:(0,e.e)((b,d)=>{let R=0;b.subscribe((0,f.x)(d,h=>{++R<=s&&(d.next(h),s<=R&&d.complete())}))})}},2722:(ze,K,p)=>{"use strict";p.d(K,{R:()=>s});var t=p(4482),e=p(5403),f=p(8421),M=p(5032);function s(b){return(0,t.e)((d,R)=>{(0,f.Xf)(b).subscribe((0,e.x)(R,()=>R.complete(),M.Z)),!R.closed&&d.subscribe(R)})}},8505:(ze,K,p)=>{"use strict";p.d(K,{b:()=>s});var t=p(576),e=p(4482),f=p(5403),M=p(4671);function s(b,d,R){const h=(0,t.m)(b)||d||R?{next:b,error:d,complete:R}:b;return h?(0,e.e)((L,w)=>{var D;null===(D=h.subscribe)||void 0===D||D.call(h);let S=!0;L.subscribe((0,f.x)(w,k=>{var E;null===(E=h.next)||void 0===E||E.call(h,k),w.next(k)},()=>{var k;S=!1,null===(k=h.complete)||void 0===k||k.call(h),w.complete()},k=>{var E;S=!1,null===(E=h.error)||void 0===E||E.call(h,k),w.error(k)},()=>{var k,E;S&&(null===(k=h.unsubscribe)||void 0===k||k.call(h)),null===(E=h.finalize)||void 0===E||E.call(h)}))}):M.y}},8068:(ze,K,p)=>{"use strict";p.d(K,{T:()=>M});var t=p(6805),e=p(4482),f=p(5403);function M(b=s){return(0,e.e)((d,R)=>{let h=!1;d.subscribe((0,f.x)(R,L=>{h=!0,R.next(L)},()=>h?R.complete():R.error(b())))})}function s(){return new t.K}},7414:(ze,K,p)=>{"use strict";p.d(K,{V:()=>h});var t=p(4986),e=p(1165),f=p(4482),M=p(8421),s=p(3888),b=p(5403),d=p(9672);const R=(0,s.d)(w=>function(S=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=S});function h(w,D){const{first:S,each:k,with:E=L,scheduler:U=(null!=D?D:t.z),meta:W=null}=(0,e.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==S&&null==k)throw new TypeError("No timeout provided.");return(0,f.e)((j,ne)=>{let ee,de,te=null,ie=0;const le=$=>{de=(0,d.f)(ne,U,()=>{try{ee.unsubscribe(),(0,M.Xf)(E({meta:W,lastValue:te,seen:ie})).subscribe(ne)}catch(ge){ne.error(ge)}},$)};ee=j.subscribe((0,b.x)(ne,$=>{null==de||de.unsubscribe(),ie++,ne.next(te=$),k>0&&le(k)},void 0,void 0,()=>{(null==de?void 0:de.closed)||null==de||de.unsubscribe(),te=null})),!ie&&le(null!=S?"number"==typeof S?S:+S-U.now():k)})}function L(w){throw new R(w)}},1365:(ze,K,p)=>{"use strict";p.d(K,{M:()=>d});var t=p(4482),e=p(5403),f=p(8421),M=p(4671),s=p(5032),b=p(3269);function d(...R){const h=(0,b.jO)(R);return(0,t.e)((L,w)=>{const D=R.length,S=new Array(D);let k=R.map(()=>!1),E=!1;for(let U=0;U<D;U++)(0,f.Xf)(R[U]).subscribe((0,e.x)(w,W=>{S[U]=W,!E&&!k[U]&&(k[U]=!0,(E=k.every(M.y))&&(k=null))},s.Z));L.subscribe((0,e.x)(w,U=>{if(E){const W=[U,...S];w.next(h?h(...W):W)}}))})}},4408:(ze,K,p)=>{"use strict";p.d(K,{o:()=>s});var t=p(727);class e extends t.w0{constructor(d,R){super()}schedule(d,R=0){return this}}const f={setInterval(b,d,...R){const{delegate:h}=f;return(null==h?void 0:h.setInterval)?h.setInterval(b,d,...R):setInterval(b,d,...R)},clearInterval(b){const{delegate:d}=f;return((null==d?void 0:d.clearInterval)||clearInterval)(b)},delegate:void 0};var M=p(8737);class s extends e{constructor(d,R){super(d,R),this.scheduler=d,this.work=R,this.pending=!1}schedule(d,R=0){var h;if(this.closed)return this;this.state=d;const L=this.id,w=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(w,L,R)),this.pending=!0,this.delay=R,this.id=null!==(h=this.id)&&void 0!==h?h:this.requestAsyncId(w,this.id,R),this}requestAsyncId(d,R,h=0){return f.setInterval(d.flush.bind(d,this),h)}recycleAsyncId(d,R,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return R;null!=R&&f.clearInterval(R)}execute(d,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(d,R);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,R){let L,h=!1;try{this.work(d)}catch(w){h=!0,L=w||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:d,scheduler:R}=this,{actions:h}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(h,this),null!=d&&(this.id=this.recycleAsyncId(R,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(ze,K,p)=>{"use strict";p.d(K,{v:()=>f});var t=p(6063);class e{constructor(s,b=e.now){this.schedulerActionCtor=s,this.now=b}schedule(s,b=0,d){return new this.schedulerActionCtor(this,s).schedule(d,b)}}e.now=t.l.now;class f extends e{constructor(s,b=e.now){super(s,b),this.actions=[],this._active=!1}flush(s){const{actions:b}=this;if(this._active)return void b.push(s);let d;this._active=!0;do{if(d=s.execute(s.state,s.delay))break}while(s=b.shift());if(this._active=!1,d){for(;s=b.shift();)s.unsubscribe();throw d}}}},3101:(ze,K,p)=>{"use strict";p.d(K,{E:()=>k});var t=p(4408);let f,e=1;const M={};function s(U){return U in M&&(delete M[U],!0)}const b={setImmediate(U){const W=e++;return M[W]=!0,f||(f=Promise.resolve()),f.then(()=>s(W)&&U()),W},clearImmediate(U){s(U)}},{setImmediate:R,clearImmediate:h}=b,L={setImmediate(...U){const{delegate:W}=L;return((null==W?void 0:W.setImmediate)||R)(...U)},clearImmediate(U){const{delegate:W}=L;return((null==W?void 0:W.clearImmediate)||h)(U)},delegate:void 0};var D=p(7565);const k=new class S extends D.v{flush(W){this._active=!0;const j=this._scheduled;this._scheduled=void 0;const{actions:ne}=this;let ee;W=W||ne.shift();do{if(ee=W.execute(W.state,W.delay))break}while((W=ne[0])&&W.id===j&&ne.shift());if(this._active=!1,ee){for(;(W=ne[0])&&W.id===j&&ne.shift();)W.unsubscribe();throw ee}}}(class w extends t.o{constructor(W,j){super(W,j),this.scheduler=W,this.work=j}requestAsyncId(W,j,ne=0){return null!==ne&&ne>0?super.requestAsyncId(W,j,ne):(W.actions.push(this),W._scheduled||(W._scheduled=L.setImmediate(W.flush.bind(W,void 0))))}recycleAsyncId(W,j,ne=0){var ee;if(null!=ne?ne>0:this.delay>0)return super.recycleAsyncId(W,j,ne);const{actions:de}=W;null!=j&&(null===(ee=de[de.length-1])||void 0===ee?void 0:ee.id)!==j&&(L.clearImmediate(j),W._scheduled=void 0)}})},4986:(ze,K,p)=>{"use strict";p.d(K,{P:()=>M,z:()=>f});var t=p(4408);const f=new(p(7565).v)(t.o),M=f},6063:(ze,K,p)=>{"use strict";p.d(K,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(ze,K,p)=>{"use strict";p.d(K,{N:()=>s});var t=p(4408),f=p(7565);const s=new class M extends f.v{}(class e extends t.o{constructor(R,h){super(R,h),this.scheduler=R,this.work=h}schedule(R,h=0){return h>0?super.schedule(R,h):(this.delay=h,this.state=R,this.scheduler.flush(this),this)}execute(R,h){return h>0||this.closed?super.execute(R,h):this._execute(R,h)}requestAsyncId(R,h,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(R,h,L):(R.flush(this),0)}})},3410:(ze,K,p)=>{"use strict";p.d(K,{z:()=>t});const t={setTimeout(e,f,...M){const{delegate:s}=t;return(null==s?void 0:s.setTimeout)?s.setTimeout(e,f,...M):setTimeout(e,f,...M)},clearTimeout(e){const{delegate:f}=t;return((null==f?void 0:f.clearTimeout)||clearTimeout)(e)},delegate:void 0}},2202:(ze,K,p)=>{"use strict";p.d(K,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(ze,K,p)=>{"use strict";p.d(K,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(ze,K,p)=>{"use strict";p.d(K,{K:()=>e});const e=(0,p(3888).d)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(ze,K,p)=>{"use strict";p.d(K,{_6:()=>b,jO:()=>M,yG:()=>s});var t=p(576),e=p(3532);function f(d){return d[d.length-1]}function M(d){return(0,t.m)(f(d))?d.pop():void 0}function s(d){return(0,e.K)(f(d))?d.pop():void 0}function b(d,R){return"number"==typeof f(d)?d.pop():R}},4742:(ze,K,p)=>{"use strict";p.d(K,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:e,prototype:f,keys:M}=Object;function s(d){if(1===d.length){const R=d[0];if(t(R))return{args:R,keys:null};if(function b(d){return d&&"object"==typeof d&&e(d)===f}(R)){const h=M(R);return{args:h.map(L=>R[L]),keys:h}}}return{args:d,keys:null}}},8737:(ze,K,p)=>{"use strict";function t(e,f){if(e){const M=e.indexOf(f);0<=M&&e.splice(M,1)}}p.d(K,{P:()=>t})},3888:(ze,K,p)=>{"use strict";function t(e){const M=e(s=>{Error.call(s),s.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(K,{d:()=>t})},1810:(ze,K,p)=>{"use strict";function t(e,f){return e.reduce((M,s,b)=>(M[s]=f[b],M),{})}p.d(K,{n:()=>t})},2806:(ze,K,p)=>{"use strict";p.d(K,{O:()=>M,x:()=>f});var t=p(2416);let e=null;function f(s){if(t.v.useDeprecatedSynchronousErrorHandling){const b=!e;if(b&&(e={errorThrown:!1,error:null}),s(),b){const{errorThrown:d,error:R}=e;if(e=null,d)throw R}}else s()}function M(s){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=s)}},9672:(ze,K,p)=>{"use strict";function t(e,f,M,s=0,b=!1){const d=f.schedule(function(){M(),b?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(d),!b)return d}p.d(K,{f:()=>t})},4671:(ze,K,p)=>{"use strict";function t(e){return e}p.d(K,{y:()=>t})},1144:(ze,K,p)=>{"use strict";p.d(K,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(ze,K,p)=>{"use strict";p.d(K,{D:()=>e});var t=p(576);function e(f){return Symbol.asyncIterator&&(0,t.m)(null==f?void 0:f[Symbol.asyncIterator])}},1165:(ze,K,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(K,{q:()=>t})},576:(ze,K,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(K,{m:()=>t})},3670:(ze,K,p)=>{"use strict";p.d(K,{c:()=>f});var t=p(8822),e=p(576);function f(M){return(0,e.m)(M[t.L])}},6495:(ze,K,p)=>{"use strict";p.d(K,{T:()=>f});var t=p(2202),e=p(576);function f(M){return(0,e.m)(null==M?void 0:M[t.h])}},5191:(ze,K,p)=>{"use strict";p.d(K,{b:()=>f});var t=p(8306),e=p(576);function f(M){return!!M&&(M instanceof t.y||(0,e.m)(M.lift)&&(0,e.m)(M.subscribe))}},8239:(ze,K,p)=>{"use strict";p.d(K,{t:()=>e});var t=p(576);function e(f){return(0,t.m)(null==f?void 0:f.then)}},3260:(ze,K,p)=>{"use strict";p.d(K,{L:()=>M,Q:()=>f});var t=p(655),e=p(576);function f(s){return(0,t.FC)(this,arguments,function*(){const d=s.getReader();try{for(;;){const{value:R,done:h}=yield(0,t.qq)(d.read());if(h)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(R)}}finally{d.releaseLock()}})}function M(s){return(0,e.m)(null==s?void 0:s.getReader)}},3532:(ze,K,p)=>{"use strict";p.d(K,{K:()=>e});var t=p(576);function e(f){return f&&(0,t.m)(f.schedule)}},4482:(ze,K,p)=>{"use strict";p.d(K,{A:()=>e,e:()=>f});var t=p(576);function e(M){return(0,t.m)(null==M?void 0:M.lift)}function f(M){return s=>{if(e(s))return s.lift(function(b){try{return M(b,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(ze,K,p)=>{"use strict";p.d(K,{Z:()=>M});var t=p(4004);const{isArray:e}=Array;function M(s){return(0,t.U)(b=>function f(s,b){return e(b)?s(...b):s(b)}(s,b))}},5032:(ze,K,p)=>{"use strict";function t(){}p.d(K,{Z:()=>t})},7849:(ze,K,p)=>{"use strict";p.d(K,{h:()=>f});var t=p(2416),e=p(3410);function f(M){e.z.setTimeout(()=>{const{onUnhandledError:s}=t.v;if(!s)throw M;s(M)})}},4532:(ze,K,p)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(K,{z:()=>t})},3502:(ze,K,p)=>{var t=p(3172),e=t.Buffer;function f(s,b){for(var d in s)b[d]=s[d]}function M(s,b,d){return e(s,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?ze.exports=t:(f(t,K),K.Buffer=M),f(e,M),M.from=function(s,b,d){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,b,d)},M.alloc=function(s,b,d){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=e(s);return void 0!==b?"string"==typeof d?R.fill(b,d):R.fill(b):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},2038:(ze,K,p)=>{"use strict";var M,t=p(3172),e=t.Buffer,f={};for(M in t)!t.hasOwnProperty(M)||"SlowBuffer"===M||"Buffer"===M||(f[M]=t[M]);var s=f.Buffer={};for(M in e)!e.hasOwnProperty(M)||"allocUnsafe"===M||"allocUnsafeSlow"===M||(s[M]=e[M]);if(f.Buffer.prototype=e.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(b,d,R){if("number"==typeof b)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof b);if(b&&void 0===b.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);return e(b,d,R)}),s.alloc||(s.alloc=function(b,d,R){if("number"!=typeof b)throw new TypeError('The "size" argument must be of type number. Received type '+typeof b);if(b<0||b>=2*(1<<30))throw new RangeError('The value "'+b+'" is invalid for option "size"');var h=e(b);return d&&0!==d.length?"string"==typeof R?h.fill(d,R):h.fill(d):h.fill(0),h}),!f.kStringMaxLength)try{f.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(b){}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),ze.exports=f},6692:(ze,K,p)=>{var t=p(3502).Buffer;function e(f,M){this._block=t.alloc(f),this._finalSize=M,this._blockSize=f,this._len=0}e.prototype.update=function(f,M){"string"==typeof f&&(f=t.from(f,M=M||"utf8"));for(var s=this._block,b=this._blockSize,d=f.length,R=this._len,h=0;h<d;){for(var L=R%b,w=Math.min(d-h,b-L),D=0;D<w;D++)s[L+D]=f[h+D];h+=w,(R+=w)%b==0&&this._update(s)}return this._len+=d,this},e.prototype.digest=function(f){var M=this._len%this._blockSize;this._block[M]=128,this._block.fill(0,M+1),M>=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 b=(4294967295&s)>>>0;this._block.writeUInt32BE((s-b)/4294967296,this._blockSize-8),this._block.writeUInt32BE(b,this._blockSize-4)}this._update(this._block);var R=this._hash();return f?R.toString(f):R},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ze.exports=e},5244:(ze,K,p)=>{var t=ze.exports=function(f){f=f.toLowerCase();var M=t[f];if(!M)throw new Error(f+" is not supported (we accept pull requests)");return new M};t.sha=p(8932),t.sha1=p(7736),t.sha224=p(5044),t.sha256=p(5014),t.sha384=p(6540),t.sha512=p(117)},8932:(ze,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function b(){this.init(),this._w=s,e.call(this,64,56)}function d(L){return L<<5|L>>>27}function R(L){return L<<30|L>>>2}function h(L,w,D,S){return 0===L?w&D|~w&S:2===L?w&D|w&S|D&S:w^D^S}t(b,e),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(L){for(var w=this._w,D=0|this._a,S=0|this._b,k=0|this._c,E=0|this._d,U=0|this._e,W=0;W<16;++W)w[W]=L.readInt32BE(4*W);for(;W<80;++W)w[W]=w[W-3]^w[W-8]^w[W-14]^w[W-16];for(var j=0;j<80;++j){var ne=~~(j/20),ee=d(D)+h(ne,S,k,E)+U+w[j]+M[ne]|0;U=E,E=k,k=R(S),S=D,D=ee}this._a=D+this._a|0,this._b=S+this._b|0,this._c=k+this._c|0,this._d=E+this._d|0,this._e=U+this._e|0},b.prototype._hash=function(){var L=f.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},ze.exports=b},7736:(ze,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function b(){this.init(),this._w=s,e.call(this,64,56)}function d(w){return w<<1|w>>>31}function R(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function L(w,D,S,k){return 0===w?D&S|~D&k:2===w?D&S|D&k|S&k:D^S^k}t(b,e),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(w){for(var D=this._w,S=0|this._a,k=0|this._b,E=0|this._c,U=0|this._d,W=0|this._e,j=0;j<16;++j)D[j]=w.readInt32BE(4*j);for(;j<80;++j)D[j]=d(D[j-3]^D[j-8]^D[j-14]^D[j-16]);for(var ne=0;ne<80;++ne){var ee=~~(ne/20),de=R(S)+L(ee,k,E,U)+W+D[ne]+M[ee]|0;W=U,U=E,E=h(k),k=S,S=de}this._a=S+this._a|0,this._b=k+this._b|0,this._c=E+this._c|0,this._d=U+this._d|0,this._e=W+this._e|0},b.prototype._hash=function(){var w=f.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},ze.exports=b},5044:(ze,K,p)=>{var t=p(3894),e=p(5014),f=p(6692),M=p(3502).Buffer,s=new Array(64);function b(){this.init(),this._w=s,f.call(this,64,56)}t(b,e),b.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},b.prototype._hash=function(){var d=M.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},ze.exports=b},5014:(ze,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function b(){this.init(),this._w=s,e.call(this,64,56)}function d(S,k,E){return E^S&(k^E)}function R(S,k,E){return S&k|E&(S|k)}function h(S){return(S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10)}function L(S){return(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7)}function w(S){return(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3}function D(S){return(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10}t(b,e),b.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},b.prototype._update=function(S){for(var k=this._w,E=0|this._a,U=0|this._b,W=0|this._c,j=0|this._d,ne=0|this._e,ee=0|this._f,de=0|this._g,te=0|this._h,ie=0;ie<16;++ie)k[ie]=S.readInt32BE(4*ie);for(;ie<64;++ie)k[ie]=D(k[ie-2])+k[ie-7]+w(k[ie-15])+k[ie-16]|0;for(var le=0;le<64;++le){var $=te+L(ne)+d(ne,ee,de)+M[le]+k[le]|0,ge=h(E)+R(E,U,W)|0;te=de,de=ee,ee=ne,ne=j+$|0,j=W,W=U,U=E,E=$+ge|0}this._a=E+this._a|0,this._b=U+this._b|0,this._c=W+this._c|0,this._d=j+this._d|0,this._e=ne+this._e|0,this._f=ee+this._f|0,this._g=de+this._g|0,this._h=te+this._h|0},b.prototype._hash=function(){var S=f.allocUnsafe(32);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S.writeInt32BE(this._h,28),S},ze.exports=b},6540:(ze,K,p)=>{var t=p(3894),e=p(117),f=p(6692),M=p(3502).Buffer,s=new Array(160);function b(){this.init(),this._w=s,f.call(this,128,112)}t(b,e),b.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},b.prototype._hash=function(){var d=M.allocUnsafe(48);function R(h,L,w){d.writeInt32BE(h,w),d.writeInt32BE(L,w+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),d},ze.exports=b},117:(ze,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function b(){this.init(),this._w=s,e.call(this,128,112)}function d(U,W,j){return j^U&(W^j)}function R(U,W,j){return U&W|j&(U|W)}function h(U,W){return(U>>>28|W<<4)^(W>>>2|U<<30)^(W>>>7|U<<25)}function L(U,W){return(U>>>14|W<<18)^(U>>>18|W<<14)^(W>>>9|U<<23)}function w(U,W){return(U>>>1|W<<31)^(U>>>8|W<<24)^U>>>7}function D(U,W){return(U>>>1|W<<31)^(U>>>8|W<<24)^(U>>>7|W<<25)}function S(U,W){return(U>>>19|W<<13)^(W>>>29|U<<3)^U>>>6}function k(U,W){return(U>>>19|W<<13)^(W>>>29|U<<3)^(U>>>6|W<<26)}function E(U,W){return U>>>0<W>>>0?1:0}t(b,e),b.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},b.prototype._update=function(U){for(var W=this._w,j=0|this._ah,ne=0|this._bh,ee=0|this._ch,de=0|this._dh,te=0|this._eh,ie=0|this._fh,le=0|this._gh,$=0|this._hh,ge=0|this._al,C=0|this._bl,i=0|this._cl,r=0|this._dl,u=0|this._el,c=0|this._fl,v=0|this._gl,T=0|this._hl,I=0;I<32;I+=2)W[I]=U.readInt32BE(4*I),W[I+1]=U.readInt32BE(4*I+4);for(;I<160;I+=2){var y=W[I-30],n=W[I-30+1],_=w(y,n),B=D(n,y),N=S(y=W[I-4],n=W[I-4+1]),H=k(n,y),xe=W[I-32],Pe=W[I-32+1],Se=B+W[I-14+1]|0,Q=_+W[I-14]+E(Se,B)|0;Q=(Q=Q+N+E(Se=Se+H|0,H)|0)+xe+E(Se=Se+Pe|0,Pe)|0,W[I]=Q,W[I+1]=Se}for(var Ue=0;Ue<160;Ue+=2){Q=W[Ue],Se=W[Ue+1];var Ce=R(j,ne,ee),q=R(ge,C,i),Ae=h(j,ge),ut=h(ge,j),Ie=L(te,u),De=L(u,te),ae=M[Ue],we=M[Ue+1],ye=d(te,ie,le),Y=d(u,c,v),z=T+De|0,be=$+Ie+E(z,T)|0;be=(be=(be=be+ye+E(z=z+Y|0,Y)|0)+ae+E(z=z+we|0,we)|0)+Q+E(z=z+Se|0,Se)|0;var fe=ut+q|0,He=Ae+Ce+E(fe,ut)|0;$=le,T=v,le=ie,v=c,ie=te,c=u,te=de+be+E(u=r+z|0,r)|0,de=ee,r=i,ee=ne,i=C,ne=j,C=ge,j=be+He+E(ge=z+fe|0,z)|0}this._al=this._al+ge|0,this._bl=this._bl+C|0,this._cl=this._cl+i|0,this._dl=this._dl+r|0,this._el=this._el+u|0,this._fl=this._fl+c|0,this._gl=this._gl+v|0,this._hl=this._hl+T|0,this._ah=this._ah+j+E(this._al,ge)|0,this._bh=this._bh+ne+E(this._bl,C)|0,this._ch=this._ch+ee+E(this._cl,i)|0,this._dh=this._dh+de+E(this._dl,r)|0,this._eh=this._eh+te+E(this._el,u)|0,this._fh=this._fh+ie+E(this._fl,c)|0,this._gh=this._gh+le+E(this._gl,v)|0,this._hh=this._hh+$+E(this._hl,T)|0},b.prototype._hash=function(){var U=f.allocUnsafe(64);function W(j,ne,ee){U.writeInt32BE(j,ee),U.writeInt32BE(ne,ee+4)}return W(this._ah,this._al,0),W(this._bh,this._bl,8),W(this._ch,this._cl,16),W(this._dh,this._dl,24),W(this._eh,this._el,32),W(this._fh,this._fl,40),W(this._gh,this._gl,48),W(this._hh,this._hl,56),U},ze.exports=b},8012:function(ze,K,p){!function(t){"use strict";var e={};ze.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),ze.exports=R):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=R);var f=[];!function(){function h(S){for(var k=Math.sqrt(S),E=2;E<=k;E++)if(!(S%E))return!1;return!0}for(var w=2,D=0;D<64;)h(w)&&(f[D]=4294967296*((S=Math.pow(w,1/3))-(0|S))|0,D++),w++;var S}();var b=[],d=function(h,L,w){for(var D=h[0],S=h[1],k=h[2],E=h[3],U=h[4],W=h[5],j=h[6],ne=h[7],ee=0;ee<64;ee++){if(ee<16)b[ee]=0|L[w+ee];else{var de=b[ee-15],ie=b[ee-2];b[ee]=((de<<25|de>>>7)^(de<<14|de>>>18)^de>>>3)+b[ee-7]+((ie<<15|ie>>>17)^(ie<<13|ie>>>19)^ie>>>10)+b[ee-16]}var ge=D&S^D&k^S&k,r=ne+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&W^~U&j)+f[ee]+b[ee];ne=j,j=W,W=U,U=E+r|0,E=k,k=S,S=D,D=r+(((D<<30|D>>>2)^(D<<19|D>>>13)^(D<<10|D>>>22))+ge)|0}h[0]=h[0]+D|0,h[1]=h[1]+S|0,h[2]=h[2]+k|0,h[3]=h[3]+E|0,h[4]=h[4]+U|0,h[5]=h[5]+W|0,h[6]=h[6]+j|0,h[7]=h[7]+ne|0};function R(h,L){h.constructor===String&&(h=e.convertString.UTF8.stringToBytes(h));var w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],D=function(h){for(var L=[],w=0,D=0;w<h.length;w++,D+=8)L[D>>>5]|=h[w]<<24-D%32;return L}(h),S=8*h.length;D[S>>5]|=128<<24-S%32,D[15+(S+64>>9<<4)]=S;for(var k=0;k<D.length;k+=16)d(w,D,k);var E=function(h){for(var L=[],w=0;w<32*h.length;w+=8)L.push(h[w>>>5]>>>24-w%32&255);return L}(w);return L&&L.asBytes?E:L&&L.asString?e.convertString.bytesToString(E):e.bytesToHex(E)}R.x2=function(h,L){return R(R(h,{asBytes:!0}),L)}}(this)},4315:(ze,K,p)=>{"use strict";const t=Symbol.prototype.valueOf,e=p(2872);ze.exports=function f(h,L){switch(e(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const L=h.length,w=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return h.copy(w),w}(h);case"symbol":return function R(h){return t?Object(t.call(h)):{}}(h);case"arraybuffer":return function s(h){const L=new h.constructor(h.byteLength);return new Uint8Array(L).set(new Uint8Array(h)),L}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function b(h,L){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function M(h){const L=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,w=new h.constructor(h.source,L);return w.lastIndex=h.lastIndex,w}(h);case"error":return Object.create(h);default:return h}}},295:(ze,K,p)=>{ze.exports=f;var t=p(9069).EventEmitter;function f(){t.call(this)}p(3894)(f,t),f.Readable=p(3154),f.Writable=p(520),f.Duplex=p(1339),f.Transform=p(6025),f.PassThrough=p(6071),f.finished=p(7542),f.pipeline=p(954),f.Stream=f,f.prototype.pipe=function(M,s){var b=this;function d(k){M.writable&&!1===M.write(k)&&b.pause&&b.pause()}function R(){b.readable&&b.resume&&b.resume()}b.on("data",d),M.on("drain",R),!M._isStdio&&(!s||!1!==s.end)&&(b.on("end",L),b.on("close",w));var h=!1;function L(){h||(h=!0,M.end())}function w(){h||(h=!0,"function"==typeof M.destroy&&M.destroy())}function D(k){if(S(),0===t.listenerCount(this,"error"))throw k}function S(){b.removeListener("data",d),M.removeListener("drain",R),b.removeListener("end",L),b.removeListener("close",w),b.removeListener("error",D),M.removeListener("error",D),b.removeListener("end",S),b.removeListener("close",S),M.removeListener("close",S)}return b.on("error",D),M.on("error",D),b.on("end",S),b.on("close",S),M.on("close",S),M.emit("pipe",b),M}},3054:(ze,K,p)=>{"use strict";var t=p(858).Buffer,e=t.isEncoding||function(j){switch((j=""+j)&&j.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(j){var ne;switch(this.encoding=function M(j){var ne=function f(j){if(!j)return"utf8";for(var ne;;)switch(j){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return j;default:if(ne)return;j=(""+j).toLowerCase(),ne=!0}}(j);if("string"!=typeof ne&&(t.isEncoding===e||!e(j)))throw new Error("Unknown encoding: "+j);return ne||j}(j),this.encoding){case"utf16le":this.text=D,this.end=S,ne=4;break;case"utf8":this.fillLast=h,ne=4;break;case"base64":this.text=k,this.end=E,ne=3;break;default:return this.write=U,void(this.end=W)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(ne)}function b(j){return j<=127?0:j>>5==6?2:j>>4==14?3:j>>3==30?4:j>>6==2?-1:-2}function h(j){var ne=this.lastTotal-this.lastNeed,ee=function R(j,ne,ee){if(128!=(192&ne[0]))return j.lastNeed=0,"\ufffd";if(j.lastNeed>1&&ne.length>1){if(128!=(192&ne[1]))return j.lastNeed=1,"\ufffd";if(j.lastNeed>2&&ne.length>2&&128!=(192&ne[2]))return j.lastNeed=2,"\ufffd"}}(this,j);return void 0!==ee?ee:this.lastNeed<=j.length?(j.copy(this.lastChar,ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(j.copy(this.lastChar,ne,0,j.length),void(this.lastNeed-=j.length))}function D(j,ne){if((j.length-ne)%2==0){var ee=j.toString("utf16le",ne);if(ee){var de=ee.charCodeAt(ee.length-1);if(de>=55296&&de<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",ne,j.length-1)}function S(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ne}function k(j,ne){var ee=(j.length-ne)%3;return 0===ee?j.toString("base64",ne):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=j[j.length-1]:(this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1]),j.toString("base64",ne,j.length-ee))}function E(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+this.lastChar.toString("base64",0,3-this.lastNeed):ne}function U(j){return j.toString(this.encoding)}function W(j){return j&&j.length?this.write(j):""}K.s=s,s.prototype.write=function(j){if(0===j.length)return"";var ne,ee;if(this.lastNeed){if(void 0===(ne=this.fillLast(j)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee<j.length?ne?ne+this.text(j,ee):this.text(j,ee):ne||""},s.prototype.end=function w(j){var ne=j&&j.length?this.write(j):"";return this.lastNeed?ne+"\ufffd":ne},s.prototype.text=function L(j,ne){var ee=function d(j,ne,ee){var de=ne.length-1;if(de<ee)return 0;var te=b(ne[de]);return te>=0?(te>0&&(j.lastNeed=te-1),te):--de<ee||-2===te?0:(te=b(ne[de]))>=0?(te>0&&(j.lastNeed=te-2),te):--de<ee||-2===te?0:(te=b(ne[de]))>=0?(te>0&&(2===te?te=0:j.lastNeed=te-3),te):0}(this,j,ne);if(!this.lastNeed)return j.toString("utf8",ne);this.lastTotal=ee;var de=j.length-(ee-this.lastNeed);return j.copy(this.lastChar,0,de),j.toString("utf8",ne,de)},s.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length}},858:(ze,K,p)=>{var t=p(3172),e=t.Buffer;function f(s,b){for(var d in s)b[d]=s[d]}function M(s,b,d){return e(s,b,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?ze.exports=t:(f(t,K),K.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(s,b,d){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,b,d)},M.alloc=function(s,b,d){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=e(s);return void 0!==b?"string"==typeof d?R.fill(b,d):R.fill(b):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},2167:(ze,K,p)=>{var t=p(4606);K.encode=t.encode,K.decode=t.decode},4606:(ze,K)=>{"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];K.encode=function(f){Buffer.isBuffer(f)||(f=new Buffer(f));for(var M=0,s=0,b=0,d=0,R=new Buffer(8*function e(f){var M=Math.floor(f.length/5);return f.length%5==0?M:M+1}(f));M<f.length;){var h=f[M];b>3?(d=(d=h&255>>b)<<(b=(b+5)%8)|(M+1<f.length?f[M+1]:0)>>8-b,M++):(d=h>>8-(b+5)&31,0==(b=(b+5)%8)&&M++),R[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),s++}for(M=s;M<R.length;M++)R[M]=61;return R},K.decode=function(f){var b,M=0,s=0,d=0;Buffer.isBuffer(f)||(f=new Buffer(f));for(var R=new Buffer(Math.ceil(5*f.length/8)),h=0;h<f.length&&61!==f[h];h++){var L=f[h]-48;if(!(L<t.length))throw new Error("Invalid input - it is not base32 encoded string");s=t[L],M<=3?0==(M=(M+5)%8)?(R[d]=b|=s,d++,b=0):b|=255&s<<8-M:(R[d]=b|=255&s>>>(M=(M+5)%8),d++,b=255&s<<8-M)}return R.slice(0,d)}},4364:ze=>{function p(t){try{if(!global.localStorage)return!1}catch(f){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}ze.exports=function K(t,e){if(p("noDeprecation"))return t;var f=!1;return function M(){if(!f){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),f=!0}return t.apply(this,arguments)}}},655:(ze,K,p)=>{"use strict";function s(i,r,u,c){var I,v=arguments.length,T=v<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,u):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(i,r,u,c);else for(var y=i.length-1;y>=0;y--)(I=i[y])&&(T=(v<3?I(T):v>3?I(r,u,T):I(r,u))||T);return v>3&&T&&Object.defineProperty(r,u,T),T}function R(i,r,u,c){return new(u||(u=Promise))(function(T,I){function y(B){try{_(c.next(B))}catch(N){I(N)}}function n(B){try{_(c.throw(B))}catch(N){I(N)}}function _(B){B.done?T(B.value):function v(T){return T instanceof u?T:new u(function(I){I(T)})}(B.value).then(y,n)}_((c=c.apply(i,r||[])).next())})}function W(i){return this instanceof W?(this.v=i,this):new W(i)}function j(i,r,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,c=u.apply(i,r||[]),T=[];return v={},I("next"),I("throw"),I("return"),v[Symbol.asyncIterator]=function(){return this},v;function I(H){c[H]&&(v[H]=function(J){return new Promise(function(ue,xe){T.push([H,J,ue,xe])>1||y(H,J)})})}function y(H,J){try{!function n(H){H.value instanceof W?Promise.resolve(H.value.v).then(_,B):N(T[0][2],H)}(c[H](J))}catch(ue){N(T[0][3],ue)}}function _(H){y("next",H)}function B(H){y("throw",H)}function N(H,J){H(J),T.shift(),T.length&&y(T[0][0],T[0][1])}}function ee(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function D(i){var r="function"==typeof Symbol&&Symbol.iterator,u=r&&i[r],c=0;if(u)return u.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u={},c("next"),c("throw"),c("return"),u[Symbol.asyncIterator]=function(){return this},u);function c(T){u[T]=i[T]&&function(I){return new Promise(function(y,n){!function v(T,I,y,n){Promise.resolve(n).then(function(_){T({value:_,done:y})},I)}(y,n,(I=i[T](I)).done,I.value)})}}}p.d(K,{FC:()=>j,KL:()=>ee,gn:()=>s,mG:()=>R,qq:()=>W})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(ze,K,p)=>{"use strict";p.d(K,{F4:()=>L,IO:()=>E,LC:()=>e,SB:()=>h,X$:()=>M,ZE:()=>ne,ZN:()=>j,_j:()=>t,eR:()=>w,jt:()=>s,k1:()=>ee,l3:()=>f,oB:()=>R,pV:()=>S,ru:()=>b,vP:()=>d});class t{}class e{}const f="*";function M(de,te){return{type:7,name:de,definitions:te,options:{}}}function s(de,te=null){return{type:4,styles:te,timings:de}}function b(de,te=null){return{type:3,steps:de,options:te}}function d(de,te=null){return{type:2,steps:de,options:te}}function R(de){return{type:6,styles:de,offset:null}}function h(de,te,ie){return{type:0,name:de,styles:te,options:ie}}function L(de){return{type:5,steps:de}}function w(de,te,ie=null){return{type:1,expr:de,animation:te,options:ie}}function S(de=null){return{type:9,options:de}}function E(de,te,ie=null){return{type:11,selector:de,animation:te,options:ie}}function W(de){Promise.resolve(null).then(de)}class j{constructor(te=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=te+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){W(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(te){this._position=this.totalTime?te*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(te){const ie="start"==te?this._onStartFns:this._onDoneFns;ie.forEach(le=>le()),ie.length=0}}class ne{constructor(te){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=te;let ie=0,le=0,$=0;const ge=this.players.length;0==ge?W(()=>this._onFinish()):this.players.forEach(C=>{C.onDone(()=>{++ie==ge&&this._onFinish()}),C.onDestroy(()=>{++le==ge&&this._onDestroy()}),C.onStart(()=>{++$==ge&&this._onStart()})}),this.totalTime=this.players.reduce((C,i)=>Math.max(C,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this.players.forEach(te=>te.init())}onStart(te){this._onStartFns.push(te)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(te=>te()),this._onStartFns=[])}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(te=>te.play())}pause(){this.players.forEach(te=>te.pause())}restart(){this.players.forEach(te=>te.restart())}finish(){this._onFinish(),this.players.forEach(te=>te.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(te=>te.destroy()),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this.players.forEach(te=>te.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(te){const ie=te*this.totalTime;this.players.forEach(le=>{const $=le.totalTime?Math.min(1,ie/le.totalTime):1;le.setPosition($)})}getPosition(){const te=this.players.reduce((ie,le)=>null===ie||le.totalTime>ie.totalTime?le:ie,null);return null!=te?te.getPosition():0}beforeDestroy(){this.players.forEach(te=>{te.beforeDestroy&&te.beforeDestroy()})}triggerCallback(te){const ie="start"==te?this._onStartFns:this._onDoneFns;ie.forEach(le=>le()),ie.length=0}}const ee="!"},5664:(ze,K,p)=>{"use strict";p.d(K,{$s:()=>C,Em:()=>v,Kd:()=>di,X6:()=>we,ic:()=>I,kH:()=>Nt,mK:()=>q,qV:()=>Ce,qm:()=>ei,rt:()=>Kt,s1:()=>c,tE:()=>Ot,yG:()=>ye});var t=p(9808),e=p(5e3),f=p(925),M=p(7579),s=p(727),b=p(1135),d=p(9646),R=p(1159),h=p(8505),L=p(8372),w=p(9300),D=p(4004),S=p(5698),k=p(5684),E=p(1884),U=p(2722),W=p(3191),j=p(7144);function te(Re,Oe){return(Re.getAttribute(Oe)||"").match(/\S+/g)||[]}const le="cdk-describedby-message",$="cdk-describedby-host";let ge=0,C=(()=>{class Re{constructor(ce,ve){this._platform=ve,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ge++,this._document=ce}describe(ce,ve,ht){if(!this._canBeDescribed(ce,ve))return;const mt=i(ve,ht);"string"!=typeof ve?(r(ve),this._messageRegistry.set(mt,{messageElement:ve,referenceCount:0})):this._messageRegistry.has(mt)||this._createMessageElement(ve,ht),this._isElementDescribedByMessage(ce,mt)||this._addMessageReference(ce,mt)}removeDescription(ce,ve,ht){var mt;if(!ve||!this._isElementNode(ce))return;const Ht=i(ve,ht);if(this._isElementDescribedByMessage(ce,Ht)&&this._removeMessageReference(ce,Ht),"string"==typeof ve){const it=this._messageRegistry.get(Ht);it&&0===it.referenceCount&&this._deleteMessageElement(Ht)}0===(null===(mt=this._messagesContainer)||void 0===mt?void 0:mt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var ce;const ve=this._document.querySelectorAll(`[${$}="${this._id}"]`);for(let ht=0;ht<ve.length;ht++)this._removeCdkDescribedByReferenceIds(ve[ht]),ve[ht].removeAttribute($);null===(ce=this._messagesContainer)||void 0===ce||ce.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(ce,ve){const ht=this._document.createElement("div");r(ht),ht.textContent=ce,ve&&ht.setAttribute("role",ve),this._createMessagesContainer(),this._messagesContainer.appendChild(ht),this._messageRegistry.set(i(ce,ve),{messageElement:ht,referenceCount:0})}_deleteMessageElement(ce){var ve,ht;null===(ht=null===(ve=this._messageRegistry.get(ce))||void 0===ve?void 0:ve.messageElement)||void 0===ht||ht.remove(),this._messageRegistry.delete(ce)}_createMessagesContainer(){if(this._messagesContainer)return;const ce="cdk-describedby-message-container",ve=this._document.querySelectorAll(`.${ce}[platform="server"]`);for(let mt=0;mt<ve.length;mt++)ve[mt].remove();const ht=this._document.createElement("div");ht.style.visibility="hidden",ht.classList.add(ce),ht.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ht.setAttribute("platform","server"),this._document.body.appendChild(ht),this._messagesContainer=ht}_removeCdkDescribedByReferenceIds(ce){const ve=te(ce,"aria-describedby").filter(ht=>0!=ht.indexOf(le));ce.setAttribute("aria-describedby",ve.join(" "))}_addMessageReference(ce,ve){const ht=this._messageRegistry.get(ve);(function ee(Re,Oe,ce){const ve=te(Re,Oe);ve.some(ht=>ht.trim()==ce.trim())||(ve.push(ce.trim()),Re.setAttribute(Oe,ve.join(" ")))})(ce,"aria-describedby",ht.messageElement.id),ce.setAttribute($,this._id),ht.referenceCount++}_removeMessageReference(ce,ve){const ht=this._messageRegistry.get(ve);ht.referenceCount--,function de(Re,Oe,ce){const ht=te(Re,Oe).filter(mt=>mt!=ce.trim());ht.length?Re.setAttribute(Oe,ht.join(" ")):Re.removeAttribute(Oe)}(ce,"aria-describedby",ht.messageElement.id),ce.removeAttribute($)}_isElementDescribedByMessage(ce,ve){const ht=te(ce,"aria-describedby"),mt=this._messageRegistry.get(ve),Ht=mt&&mt.messageElement.id;return!!Ht&&-1!=ht.indexOf(Ht)}_canBeDescribed(ce,ve){if(!this._isElementNode(ce))return!1;if(ve&&"object"==typeof ve)return!0;const ht=null==ve?"":`${ve}`.trim(),mt=ce.getAttribute("aria-label");return!(!ht||mt&&mt.trim()===ht)}_isElementNode(ce){return ce.nodeType===this._document.ELEMENT_NODE}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(t.K0),e.LFG(f.t4))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function i(Re,Oe){return"string"==typeof Re?`${Oe||""}/${Re}`:Re}function r(Re){Re.id||(Re.id=`${le}-${ge++}`)}class u{constructor(Oe){this._items=Oe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ce=>ce.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,Oe instanceof e.n_E&&Oe.changes.subscribe(ce=>{if(this._activeItem){const ht=ce.toArray().indexOf(this._activeItem);ht>-1&&ht!==this._activeItemIndex&&(this._activeItemIndex=ht)}})}skipPredicate(Oe){return this._skipPredicateFn=Oe,this}withWrap(Oe=!0){return this._wrap=Oe,this}withVerticalOrientation(Oe=!0){return this._vertical=Oe,this}withHorizontalOrientation(Oe){return this._horizontal=Oe,this}withAllowedModifierKeys(Oe){return this._allowedModifierKeys=Oe,this}withTypeAhead(Oe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(ce=>this._pressedLetters.push(ce)),(0,L.b)(Oe),(0,w.h)(()=>this._pressedLetters.length>0),(0,D.U)(()=>this._pressedLetters.join(""))).subscribe(ce=>{const ve=this._getItemsArray();for(let ht=1;ht<ve.length+1;ht++){const mt=(this._activeItemIndex+ht)%ve.length,Ht=ve[mt];if(!this._skipPredicateFn(Ht)&&0===Ht.getLabel().toUpperCase().trim().indexOf(ce)){this.setActiveItem(mt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Oe=!0){return this._homeAndEnd=Oe,this}setActiveItem(Oe){const ce=this._activeItem;this.updateActiveItem(Oe),this._activeItem!==ce&&this.change.next(this._activeItemIndex)}onKeydown(Oe){const ce=Oe.keyCode,ht=["altKey","ctrlKey","metaKey","shiftKey"].every(mt=>!Oe[mt]||this._allowedModifierKeys.indexOf(mt)>-1);switch(ce){case R.Mf:return void this.tabOut.next();case R.JH:if(this._vertical&&ht){this.setNextItemActive();break}return;case R.LH:if(this._vertical&&ht){this.setPreviousItemActive();break}return;case R.SV:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case R.oh:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case R.Sd:if(this._homeAndEnd&&ht){this.setFirstItemActive();break}return;case R.uR:if(this._homeAndEnd&&ht){this.setLastItemActive();break}return;default:return void((ht||(0,R.Vb)(Oe,"shiftKey"))&&(Oe.key&&1===Oe.key.length?this._letterKeyStream.next(Oe.key.toLocaleUpperCase()):(ce>=R.A&&ce<=R.Z||ce>=R.xE&&ce<=R.aO)&&this._letterKeyStream.next(String.fromCharCode(ce))))}this._pressedLetters=[],Oe.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Oe){const ce=this._getItemsArray(),ve="number"==typeof Oe?Oe:ce.indexOf(Oe),ht=ce[ve];this._activeItem=null==ht?null:ht,this._activeItemIndex=ve}_setActiveItemByDelta(Oe){this._wrap?this._setActiveInWrapMode(Oe):this._setActiveInDefaultMode(Oe)}_setActiveInWrapMode(Oe){const ce=this._getItemsArray();for(let ve=1;ve<=ce.length;ve++){const ht=(this._activeItemIndex+Oe*ve+ce.length)%ce.length;if(!this._skipPredicateFn(ce[ht]))return void this.setActiveItem(ht)}}_setActiveInDefaultMode(Oe){this._setActiveItemByIndex(this._activeItemIndex+Oe,Oe)}_setActiveItemByIndex(Oe,ce){const ve=this._getItemsArray();if(ve[Oe]){for(;this._skipPredicateFn(ve[Oe]);)if(!ve[Oe+=ce])return;this.setActiveItem(Oe)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class c extends u{setActiveItem(Oe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Oe),this.activeItem&&this.activeItem.setActiveStyles()}}class v extends u{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Oe){return this._origin=Oe,this}setActiveItem(Oe){super.setActiveItem(Oe),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Re{constructor(ce){this._platform=ce}isDisabled(ce){return ce.hasAttribute("disabled")}isVisible(ce){return function n(Re){return!!(Re.offsetWidth||Re.offsetHeight||"function"==typeof Re.getClientRects&&Re.getClientRects().length)}(ce)&&"visible"===getComputedStyle(ce).visibility}isTabbable(ce){if(!this._platform.isBrowser)return!1;const ve=function y(Re){try{return Re.frameElement}catch(Oe){return null}}(function Q(Re){return Re.ownerDocument&&Re.ownerDocument.defaultView||window}(ce));if(ve&&(-1===xe(ve)||!this.isVisible(ve)))return!1;let ht=ce.nodeName.toLowerCase(),mt=xe(ce);return ce.hasAttribute("contenteditable")?-1!==mt:!("iframe"===ht||"object"===ht||this._platform.WEBKIT&&this._platform.IOS&&!function Pe(Re){let Oe=Re.nodeName.toLowerCase(),ce="input"===Oe&&Re.type;return"text"===ce||"password"===ce||"select"===Oe||"textarea"===Oe}(ce))&&("audio"===ht?!!ce.hasAttribute("controls")&&-1!==mt:"video"===ht?-1!==mt&&(null!==mt||this._platform.FIREFOX||ce.hasAttribute("controls")):ce.tabIndex>=0)}isFocusable(ce,ve){return function Se(Re){return!function B(Re){return function H(Re){return"input"==Re.nodeName.toLowerCase()}(Re)&&"hidden"==Re.type}(Re)&&(function _(Re){let Oe=Re.nodeName.toLowerCase();return"input"===Oe||"select"===Oe||"button"===Oe||"textarea"===Oe}(Re)||function N(Re){return function J(Re){return"a"==Re.nodeName.toLowerCase()}(Re)&&Re.hasAttribute("href")}(Re)||Re.hasAttribute("contenteditable")||ue(Re))}(ce)&&!this.isDisabled(ce)&&((null==ve?void 0:ve.ignoreVisibility)||this.isVisible(ce))}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(f.t4))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function ue(Re){if(!Re.hasAttribute("tabindex")||void 0===Re.tabIndex)return!1;let Oe=Re.getAttribute("tabindex");return!(!Oe||isNaN(parseInt(Oe,10)))}function xe(Re){if(!ue(Re))return null;const Oe=parseInt(Re.getAttribute("tabindex")||"",10);return isNaN(Oe)?-1:Oe}class Ue{constructor(Oe,ce,ve,ht,mt=!1){this._element=Oe,this._checker=ce,this._ngZone=ve,this._document=ht,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,mt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Oe){this._enabled=Oe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}destroy(){const Oe=this._startAnchor,ce=this._endAnchor;Oe&&(Oe.removeEventListener("focus",this.startAnchorListener),Oe.remove()),ce&&(ce.removeEventListener("focus",this.endAnchorListener),ce.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Oe){return new Promise(ce=>{this._executeOnStable(()=>ce(this.focusInitialElement(Oe)))})}focusFirstTabbableElementWhenReady(Oe){return new Promise(ce=>{this._executeOnStable(()=>ce(this.focusFirstTabbableElement(Oe)))})}focusLastTabbableElementWhenReady(Oe){return new Promise(ce=>{this._executeOnStable(()=>ce(this.focusLastTabbableElement(Oe)))})}_getRegionBoundary(Oe){const ce=this._element.querySelectorAll(`[cdk-focus-region-${Oe}], [cdkFocusRegion${Oe}], [cdk-focus-${Oe}]`);return"start"==Oe?ce.length?ce[0]:this._getFirstTabbableElement(this._element):ce.length?ce[ce.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Oe){const ce=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ce){if(!this._checker.isFocusable(ce)){const ve=this._getFirstTabbableElement(ce);return null==ve||ve.focus(Oe),!!ve}return ce.focus(Oe),!0}return this.focusFirstTabbableElement(Oe)}focusFirstTabbableElement(Oe){const ce=this._getRegionBoundary("start");return ce&&ce.focus(Oe),!!ce}focusLastTabbableElement(Oe){const ce=this._getRegionBoundary("end");return ce&&ce.focus(Oe),!!ce}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;const ce=Oe.children;for(let ve=0;ve<ce.length;ve++){const ht=ce[ve].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ce[ve]):null;if(ht)return ht}return null}_getLastTabbableElement(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;const ce=Oe.children;for(let ve=ce.length-1;ve>=0;ve--){const ht=ce[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ce[ve]):null;if(ht)return ht}return null}_createAnchor(){const Oe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Oe),Oe.classList.add("cdk-visually-hidden"),Oe.classList.add("cdk-focus-trap-anchor"),Oe.setAttribute("aria-hidden","true"),Oe}_toggleAnchorTabIndex(Oe,ce){Oe?ce.setAttribute("tabindex","0"):ce.removeAttribute("tabindex")}toggleAnchors(Oe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}_executeOnStable(Oe){this._ngZone.isStable?Oe():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Oe)}}let Ce=(()=>{class Re{constructor(ce,ve,ht){this._checker=ce,this._ngZone=ve,this._document=ht}create(ce,ve=!1){return new Ue(ce,this._checker,this._ngZone,this._document,ve)}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(I),e.LFG(e.R0b),e.LFG(t.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),q=(()=>{class Re{constructor(ce,ve,ht){this._elementRef=ce,this._focusTrapFactory=ve,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ce){this.focusTrap.enabled=(0,W.Ig)(ce)}get autoCapture(){return this._autoCapture}set autoCapture(ce){this._autoCapture=(0,W.Ig)(ce)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ce){const ve=ce.autoCapture;ve&&!ve.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.Y36(e.SBq),e.Y36(Ce),e.Y36(t.K0))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Re})();function we(Re){return 0===Re.buttons||0===Re.offsetX&&0===Re.offsetY}function ye(Re){const Oe=Re.touches&&Re.touches[0]||Re.changedTouches&&Re.changedTouches[0];return!(!Oe||-1!==Oe.identifier||null!=Oe.radiusX&&1!==Oe.radiusX||null!=Oe.radiusY&&1!==Oe.radiusY)}const Y=new e.OlP("cdk-input-modality-detector-options"),z={ignoreKeys:[R.zL,R.jx,R.b2,R.MW,R.JU]},fe=(0,f.i$)({passive:!0,capture:!0});let He=(()=>{class Re{constructor(ce,ve,ht,mt){this._platform=ce,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=Ht=>{var it,Ne;(null===(Ne=null===(it=this._options)||void 0===it?void 0:it.ignoreKeys)||void 0===Ne?void 0:Ne.some(nt=>nt===Ht.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.sA)(Ht))},this._onMousedown=Ht=>{Date.now()-this._lastTouchMs<650||(this._modality.next(we(Ht)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.sA)(Ht))},this._onTouchstart=Ht=>{ye(Ht)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.sA)(Ht))},this._options=Object.assign(Object.assign({},z),mt),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,E.x)()),ce.isBrowser&&ve.runOutsideAngular(()=>{ht.addEventListener("keydown",this._onKeydown,fe),ht.addEventListener("mousedown",this._onMousedown,fe),ht.addEventListener("touchstart",this._onTouchstart,fe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fe),document.removeEventListener("mousedown",this._onMousedown,fe),document.removeEventListener("touchstart",this._onTouchstart,fe))}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(f.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(Y,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const pt=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function et(){return null}}),Lt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let di=(()=>{class Re{constructor(ce,ve,ht,mt){this._ngZone=ve,this._defaultOptions=mt,this._document=ht,this._liveElement=ce||this._createLiveElement()}announce(ce,...ve){const ht=this._defaultOptions;let mt,Ht;return 1===ve.length&&"number"==typeof ve[0]?Ht=ve[0]:[mt,Ht]=ve,this.clear(),clearTimeout(this._previousTimeout),mt||(mt=ht&&ht.politeness?ht.politeness:"polite"),null==Ht&&ht&&(Ht=ht.duration),this._liveElement.setAttribute("aria-live",mt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(it=>this._currentResolve=it)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ce,"number"==typeof Ht&&(this._previousTimeout=setTimeout(()=>this.clear(),Ht)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ce,ve;clearTimeout(this._previousTimeout),null===(ce=this._liveElement)||void 0===ce||ce.remove(),this._liveElement=null,null===(ve=this._currentResolve)||void 0===ve||ve.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ce="cdk-live-announcer-element",ve=this._document.getElementsByClassName(ce),ht=this._document.createElement("div");for(let mt=0;mt<ve.length;mt++)ve[mt].remove();return ht.classList.add(ce),ht.classList.add("cdk-visually-hidden"),ht.setAttribute("aria-atomic","true"),ht.setAttribute("aria-live","polite"),this._document.body.appendChild(ht),ht}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(pt,8),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(Lt,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const Gt=new e.OlP("cdk-focus-monitor-default-options"),ui=(0,f.i$)({passive:!0,capture:!0});let Ot=(()=>{class Re{constructor(ce,ve,ht,mt,Ht){this._ngZone=ce,this._platform=ve,this._inputModalityDetector=ht,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new M.x,this._rootNodeFocusAndBlurListener=it=>{const Ne=(0,f.sA)(it),nt="focus"===it.type?this._onFocus:this._onBlur;for(let Xe=Ne;Xe;Xe=Xe.parentElement)nt.call(this,it,Xe)},this._document=mt,this._detectionMode=(null==Ht?void 0:Ht.detectionMode)||0}monitor(ce,ve=!1){const ht=(0,W.fI)(ce);if(!this._platform.isBrowser||1!==ht.nodeType)return(0,d.of)(null);const mt=(0,f.kV)(ht)||this._getDocument(),Ht=this._elementInfo.get(ht);if(Ht)return ve&&(Ht.checkChildren=!0),Ht.subject;const it={checkChildren:ve,subject:new M.x,rootNode:mt};return this._elementInfo.set(ht,it),this._registerGlobalListeners(it),it.subject}stopMonitoring(ce){const ve=(0,W.fI)(ce),ht=this._elementInfo.get(ve);ht&&(ht.subject.complete(),this._setClasses(ve),this._elementInfo.delete(ve),this._removeGlobalListeners(ht))}focusVia(ce,ve,ht){const mt=(0,W.fI)(ce);mt===this._getDocument().activeElement?this._getClosestElementsInfo(mt).forEach(([it,Ne])=>this._originChanged(it,ve,Ne)):(this._setOrigin(ve),"function"==typeof mt.focus&&mt.focus(ht))}ngOnDestroy(){this._elementInfo.forEach((ce,ve)=>this.stopMonitoring(ve))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ce){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ce)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(ce){return 1===this._detectionMode||!!(null==ce?void 0:ce.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ce,ve){ce.classList.toggle("cdk-focused",!!ve),ce.classList.toggle("cdk-touch-focused","touch"===ve),ce.classList.toggle("cdk-keyboard-focused","keyboard"===ve),ce.classList.toggle("cdk-mouse-focused","mouse"===ve),ce.classList.toggle("cdk-program-focused","program"===ve)}_setOrigin(ce,ve=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ce,this._originFromTouchInteraction="touch"===ce&&ve,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ce,ve){const ht=this._elementInfo.get(ve),mt=(0,f.sA)(ce);!ht||!ht.checkChildren&&ve!==mt||this._originChanged(ve,this._getFocusOrigin(mt),ht)}_onBlur(ce,ve){const ht=this._elementInfo.get(ve);!ht||ht.checkChildren&&ce.relatedTarget instanceof Node&&ve.contains(ce.relatedTarget)||(this._setClasses(ve),this._emitOrigin(ht.subject,null))}_emitOrigin(ce,ve){this._ngZone.run(()=>ce.next(ve))}_registerGlobalListeners(ce){if(!this._platform.isBrowser)return;const ve=ce.rootNode,ht=this._rootNodeFocusListenerCount.get(ve)||0;ht||this._ngZone.runOutsideAngular(()=>{ve.addEventListener("focus",this._rootNodeFocusAndBlurListener,ui),ve.addEventListener("blur",this._rootNodeFocusAndBlurListener,ui)}),this._rootNodeFocusListenerCount.set(ve,ht+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,U.R)(this._stopInputModalityDetector)).subscribe(mt=>{this._setOrigin(mt,!0)}))}_removeGlobalListeners(ce){const ve=ce.rootNode;if(this._rootNodeFocusListenerCount.has(ve)){const ht=this._rootNodeFocusListenerCount.get(ve);ht>1?this._rootNodeFocusListenerCount.set(ve,ht-1):(ve.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ui),ve.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ui),this._rootNodeFocusListenerCount.delete(ve))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ce,ve,ht){this._setClasses(ce,ve),this._emitOrigin(ht.subject,ve),this._lastFocusOrigin=ve}_getClosestElementsInfo(ce){const ve=[];return this._elementInfo.forEach((ht,mt)=>{(mt===ce||ht.checkChildren&&mt.contains(ce))&&ve.push([mt,ht])}),ve}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(e.R0b),e.LFG(f.t4),e.LFG(He),e.LFG(t.K0,8),e.LFG(Gt,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Nt=(()=>{class Re{constructor(ce,ve){this._elementRef=ce,this._focusMonitor=ve,this.cdkFocusChange=new e.vpe}ngAfterViewInit(){const ce=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ce,1===ce.nodeType&&ce.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ve=>this.cdkFocusChange.emit(ve))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.Y36(e.SBq),e.Y36(Ot))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Re})();const gt="cdk-high-contrast-black-on-white",tt="cdk-high-contrast-white-on-black",xt="cdk-high-contrast-active";let ei=(()=>{class Re{constructor(ce,ve){this._platform=ce,this._document=ve}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ce=this._document.createElement("div");ce.style.backgroundColor="rgb(1,2,3)",ce.style.position="absolute",this._document.body.appendChild(ce);const ve=this._document.defaultView||window,ht=ve&&ve.getComputedStyle?ve.getComputedStyle(ce):null,mt=(ht&&ht.backgroundColor||"").replace(/ /g,"");switch(ce.remove(),mt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ce=this._document.body.classList;ce.remove(xt),ce.remove(gt),ce.remove(tt),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();1===ve?(ce.add(xt),ce.add(gt)):2===ve&&(ce.add(xt),ce.add(tt))}}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(f.t4),e.LFG(t.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Kt=(()=>{class Re{constructor(ce){ce._applyBodyHighContrastModeCssClasses()}}return Re.\u0275fac=function(ce){return new(ce||Re)(e.LFG(ei))},Re.\u0275mod=e.oAB({type:Re}),Re.\u0275inj=e.cJS({imports:[[j.Q8]]}),Re})()},226:(ze,K,p)=>{"use strict";p.d(K,{Is:()=>d,vT:()=>h});var t=p(5e3),e=p(9808);const f=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,t.f3M)(e.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class L{constructor(D){if(this.value="ltr",this.change=new t.vpe,D){const k=D.documentElement?D.documentElement.dir:null;this.value=function b(L){const w=(null==L?void 0:L.toLowerCase())||"";return"auto"===w&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((D.body?D.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(D){return new(D||L)(t.LFG(f,8))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),h=(()=>{class L{}return L.\u0275fac=function(D){return new(D||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({}),L})()},3191:(ze,K,p)=>{"use strict";p.d(K,{Eq:()=>s,HM:()=>b,Ig:()=>e,du:()=>R,fI:()=>d,su:()=>f,t6:()=>M});var t=p(5e3);function e(h){return null!=h&&"false"!=`${h}`}function f(h,L=0){return M(h)?Number(h):L}function M(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}function s(h){return Array.isArray(h)?h:[h]}function b(h){return null==h?"":"string"==typeof h?h:`${h}px`}function d(h){return h instanceof t.SBq?h.nativeElement:h}function R(h,L=/\s+/){const w=[];if(null!=h){const D=Array.isArray(h)?h:`${h}`.split(L);for(const S of D){const k=`${S}`.trim();k&&w.push(k)}}return w}},449:(ze,K,p)=>{"use strict";p.d(K,{A8:()=>L,Ov:()=>R,Z9:()=>M,eX:()=>d,k:()=>w,o2:()=>f,yy:()=>b});var t=p(7579),e=p(5e3);class f{}function M(D){return D&&"function"==typeof D.connect}class b{applyChanges(S,k,E,U,W){S.forEachOperation((j,ne,ee)=>{let de,te;if(null==j.previousIndex){const ie=E(j,ne,ee);de=k.createEmbeddedView(ie.templateRef,ie.context,ie.index),te=1}else null==ee?(k.remove(ne),te=3):(de=k.get(ne),k.move(de,ee),te=2);W&&W({context:null==de?void 0:de.context,operation:te,record:j})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(S,k,E,U,W){S.forEachOperation((j,ne,ee)=>{let de,te;null==j.previousIndex?(de=this._insertView(()=>E(j,ne,ee),ee,k,U(j)),te=de?1:0):null==ee?(this._detachAndCacheView(ne,k),te=3):(de=this._moveView(ne,ee,k,U(j)),te=2),W&&W({context:null==de?void 0:de.context,operation:te,record:j})})}detach(){for(const S of this._viewCache)S.destroy();this._viewCache=[]}_insertView(S,k,E,U){const W=this._insertViewFromCache(k,E);if(W)return void(W.context.$implicit=U);const j=S();return E.createEmbeddedView(j.templateRef,j.context,j.index)}_detachAndCacheView(S,k){const E=k.detach(S);this._maybeCacheView(E,k)}_moveView(S,k,E,U){const W=E.get(S);return E.move(W,k),W.context.$implicit=U,W}_maybeCacheView(S,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(S);else{const E=k.indexOf(S);-1===E?S.destroy():k.remove(E)}}_insertViewFromCache(S,k){const E=this._viewCache.pop();return E&&k.insert(E,S),E||null}}class R{constructor(S=!1,k,E=!0){this._multiple=S,this._emitChanges=E,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new t.x,k&&k.length&&(S?k.forEach(U=>this._markSelected(U)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...S){this._verifyValueAssignment(S),S.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...S){this._verifyValueAssignment(S),S.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(S){this.isSelected(S)?this.deselect(S):this.select(S)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(S){return this._selection.has(S)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(S){this._multiple&&this.selected&&this._selected.sort(S)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(S){this.isSelected(S)||(this._multiple||this._unmarkAll(),this._selection.add(S),this._emitChanges&&this._selectedToEmit.push(S))}_unmarkSelected(S){this.isSelected(S)&&(this._selection.delete(S),this._emitChanges&&this._deselectedToEmit.push(S))}_unmarkAll(){this.isEmpty()||this._selection.forEach(S=>this._unmarkSelected(S))}_verifyValueAssignment(S){}}let L=(()=>{class D{constructor(){this._listeners=[]}notify(k,E){for(let U of this._listeners)U(k,E)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(E=>k!==E)}}ngOnDestroy(){this._listeners=[]}}return D.\u0275fac=function(k){return new(k||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const w=new e.OlP("_ViewRepeater")},1159:(ze,K,p)=>{"use strict";p.d(K,{A:()=>N,JH:()=>ee,JU:()=>b,K5:()=>s,Ku:()=>S,LH:()=>j,L_:()=>D,MW:()=>di,Mf:()=>f,SV:()=>ne,Sd:()=>U,VM:()=>k,Vb:()=>Rt,Z:()=>Lt,ZH:()=>e,aO:()=>I,b2:()=>st,hY:()=>w,jx:()=>d,oh:()=>W,uR:()=>E,xE:()=>$,yY:()=>le,zL:()=>R});const e=8,f=9,s=13,b=16,d=17,R=18,w=27,D=32,S=33,k=34,E=35,U=36,W=37,j=38,ne=39,ee=40,le=46,$=48,I=57,N=65,Lt=90,di=91,st=224;function Rt(Zt,...fi){return fi.length?fi.some(Ni=>Zt[Ni]):Zt.altKey||Zt.shiftKey||Zt.ctrlKey||Zt.metaKey}},5113:(ze,K,p)=>{"use strict";p.d(K,{Yg:()=>ee,u3:()=>te,xu:()=>k});var t=p(5e3),e=p(3191),f=p(7579),M=p(9841),s=p(7272),b=p(8306),d=p(5698),R=p(5684),h=p(8372),L=p(4004),w=p(8675),D=p(2722),S=p(925);let k=(()=>{class ie{}return ie.\u0275fac=function($){return new($||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})();const E=new Set;let U,W=(()=>{class ie{constructor($){this._platform=$,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ne}matchMedia($){return(this._platform.WEBKIT||this._platform.BLINK)&&function j(ie){if(!E.has(ie))try{U||(U=document.createElement("style"),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${ie} {body{ }}`,0),E.add(ie))}catch(le){console.error(le)}}($),this._matchMedia($)}}return ie.\u0275fac=function($){return new($||ie)(t.LFG(S.t4))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function ne(ie){return{matches:"all"===ie||""===ie,media:ie,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class ie{constructor($,ge){this._mediaMatcher=$,this._zone=ge,this._queries=new Map,this._destroySubject=new f.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched($){return de((0,e.Eq)($)).some(C=>this._registerQuery(C).mql.matches)}observe($){const C=de((0,e.Eq)($)).map(r=>this._registerQuery(r).observable);let i=(0,M.a)(C);return i=(0,s.z)(i.pipe((0,d.q)(1)),i.pipe((0,R.T)(1),(0,h.b)(0))),i.pipe((0,L.U)(r=>{const u={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:v})=>{u.matches=u.matches||c,u.breakpoints[v]=c}),u}))}_registerQuery($){if(this._queries.has($))return this._queries.get($);const ge=this._mediaMatcher.matchMedia($),i={observable:new b.y(r=>{const u=c=>this._zone.run(()=>r.next(c));return ge.addListener(u),()=>{ge.removeListener(u)}}).pipe((0,w.O)(ge),(0,L.U)(({matches:r})=>({query:$,matches:r})),(0,D.R)(this._destroySubject)),mql:ge};return this._queries.set($,i),i}}return ie.\u0275fac=function($){return new($||ie)(t.LFG(W),t.LFG(t.R0b))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function de(ie){return ie.map(le=>le.split(",")).reduce((le,$)=>le.concat($)).map(le=>le.trim())}const te={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(ze,K,p)=>{"use strict";p.d(K,{Q8:()=>h,wD:()=>R});var t=p(3191),e=p(5e3),f=p(8306),M=p(7579),s=p(8372);let b=(()=>{class L{create(D){return"undefined"==typeof MutationObserver?null:new MutationObserver(D)}}return L.\u0275fac=function(D){return new(D||L)},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),d=(()=>{class L{constructor(D){this._mutationObserverFactory=D,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((D,S)=>this._cleanupObserver(S))}observe(D){const S=(0,t.fI)(D);return new f.y(k=>{const U=this._observeElement(S).subscribe(k);return()=>{U.unsubscribe(),this._unobserveElement(S)}})}_observeElement(D){if(this._observedElements.has(D))this._observedElements.get(D).count++;else{const S=new M.x,k=this._mutationObserverFactory.create(E=>S.next(E));k&&k.observe(D,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(D,{observer:k,stream:S,count:1})}return this._observedElements.get(D).stream}_unobserveElement(D){this._observedElements.has(D)&&(this._observedElements.get(D).count--,this._observedElements.get(D).count||this._cleanupObserver(D))}_cleanupObserver(D){if(this._observedElements.has(D)){const{observer:S,stream:k}=this._observedElements.get(D);S&&S.disconnect(),k.complete(),this._observedElements.delete(D)}}}return L.\u0275fac=function(D){return new(D||L)(e.LFG(b))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),R=(()=>{class L{constructor(D,S,k){this._contentObserver=D,this._elementRef=S,this._ngZone=k,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,t.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,t.su)(D),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?D.pipe((0,s.b)(this.debounce)):D).subscribe(this.event)})}_unsubscribe(){var D;null===(D=this._currentSubscription)||void 0===D||D.unsubscribe()}}return L.\u0275fac=function(D){return new(D||L)(e.Y36(d),e.Y36(e.SBq),e.Y36(e.R0b))},L.\u0275dir=e.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),h=(()=>{class L{}return L.\u0275fac=function(D){return new(D||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({providers:[b]}),L})()},9776:(ze,K,p)=>{"use strict";p.d(K,{pI:()=>ut,xu:()=>Ae,_G:()=>n,aV:()=>Ue,X_:()=>ge,Xj:()=>T,U8:()=>ae});var t=p(5303),e=p(9808),f=p(5e3),M=p(3191),s=p(925),b=p(226),d=p(7429),R=p(7579),h=p(727),L=p(6451),w=p(4482),D=p(5403),k=p(5698),E=p(2722),U=p(1159);const W=(0,s.Mq)();class j{constructor(Y,z){this._viewportRuler=Y,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const Y=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Y.style.left||"",this._previousHTMLStyles.top=Y.style.top||"",Y.style.left=(0,M.HM)(-this._previousScrollPosition.left),Y.style.top=(0,M.HM)(-this._previousScrollPosition.top),Y.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Y=this._document.documentElement,be=Y.style,fe=this._document.body.style,He=be.scrollBehavior||"",pt=fe.scrollBehavior||"";this._isEnabled=!1,be.left=this._previousHTMLStyles.left,be.top=this._previousHTMLStyles.top,Y.classList.remove("cdk-global-scrollblock"),W&&(be.scrollBehavior=fe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W&&(be.scrollBehavior=He,fe.scrollBehavior=pt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,be=this._viewportRuler.getViewportSize();return z.scrollHeight>be.height||z.scrollWidth>be.width}}class ee{constructor(Y,z,be,fe){this._scrollDispatcher=Y,this._ngZone=z,this._viewportRuler=be,this._config=fe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Y){this._overlayRef=Y}enable(){if(this._scrollSubscription)return;const Y=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Y.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Y.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class de{enable(){}disable(){}attach(){}}function te(ye,Y){return Y.some(z=>ye.bottom<z.top||ye.top>z.bottom||ye.right<z.left||ye.left>z.right)}function ie(ye,Y){return Y.some(z=>ye.top<z.top||ye.bottom>z.bottom||ye.left<z.left||ye.right>z.right)}class le{constructor(Y,z,be,fe){this._scrollDispatcher=Y,this._viewportRuler=z,this._ngZone=be,this._config=fe,this._scrollSubscription=null}attach(Y){this._overlayRef=Y}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 z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:be,height:fe}=this._viewportRuler.getViewportSize();te(z,[{width:be,height:fe,bottom:fe,right:be,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 $=(()=>{class ye{constructor(z,be,fe,He){this._scrollDispatcher=z,this._viewportRuler=be,this._ngZone=fe,this.noop=()=>new de,this.close=pt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,pt),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=pt=>new le(this._scrollDispatcher,this._viewportRuler,this._ngZone,pt),this._document=He}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG(t.mF),f.LFG(t.rL),f.LFG(f.R0b),f.LFG(e.K0))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();class ge{constructor(Y){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Y){const z=Object.keys(Y);for(const be of z)void 0!==Y[be]&&(this[be]=Y[be])}}}class r{constructor(Y,z){this.connectionPair=Y,this.scrollableViewProperties=z}}class v{constructor(Y,z,be,fe,He,pt,et,Lt,di){this._portalOutlet=Y,this._host=z,this._pane=be,this._config=fe,this._ngZone=He,this._keyboardDispatcher=pt,this._document=et,this._location=Lt,this._outsideClickDispatcher=di,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=h.w0.EMPTY,this._backdropClickHandler=Wt=>this._backdropClick.next(Wt),this._backdropTransitionendHandler=Wt=>{this._disposeBackdrop(Wt.target)},this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,fe.scrollStrategy&&(this._scrollStrategy=fe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=fe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Y){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const z=this._portalOutlet.attach(Y);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Y=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Y}dispose(){var Y;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(Y=this._host)||void 0===Y||Y.remove(),this._previousHostParent=this._pane=this._host=null,z&&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(Y){Y!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Y,this.hasAttached()&&(Y.attach(this),this.updatePosition()))}updateSize(Y){this._config=Object.assign(Object.assign({},this._config),Y),this._updateElementSize()}setDirection(Y){this._config=Object.assign(Object.assign({},this._config),{direction:Y}),this._updateElementDirection()}addPanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!0)}removePanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!1)}getDirection(){const Y=this._config.direction;return Y?"string"==typeof Y?Y:Y.value:"ltr"}updateScrollStrategy(Y){Y!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Y,this.hasAttached()&&(Y.attach(this),Y.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Y=this._pane.style;Y.width=(0,M.HM)(this._config.width),Y.height=(0,M.HM)(this._config.height),Y.minWidth=(0,M.HM)(this._config.minWidth),Y.minHeight=(0,M.HM)(this._config.minHeight),Y.maxWidth=(0,M.HM)(this._config.maxWidth),Y.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(Y){this._pane.style.pointerEvents=Y?"":"none"}_attachBackdrop(){const Y="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Y)})}):this._backdropElement.classList.add(Y)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Y=this._backdropElement;!Y||(Y.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Y.addEventListener("transitionend",this._backdropTransitionendHandler)}),Y.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Y)},500)))}_toggleClasses(Y,z,be){const fe=(0,M.Eq)(z||[]).filter(He=>!!He);fe.length&&(be?Y.classList.add(...fe):Y.classList.remove(...fe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Y=this._ngZone.onStable.pipe((0,E.R)((0,L.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Y.unsubscribe())})})}_disposeScrollStrategy(){const Y=this._scrollStrategy;Y&&(Y.disable(),Y.detach&&Y.detach())}_disposeBackdrop(Y){Y&&(Y.removeEventListener("click",this._backdropClickHandler),Y.removeEventListener("transitionend",this._backdropTransitionendHandler),Y.remove(),this._backdropElement===Y&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let T=(()=>{class ye{constructor(z,be){this._platform=be,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const fe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let He=0;He<fe.length;He++)fe[He].remove()}const be=this._document.createElement("div");be.classList.add(z),(0,s.Oy)()?be.setAttribute("platform","test"):this._platform.isBrowser||be.setAttribute("platform","server"),this._document.body.appendChild(be),this._containerElement=be}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG(e.K0),f.LFG(s.t4))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const I="cdk-overlay-connected-position-bounding-box",y=/([A-Za-z%]+)$/;class n{constructor(Y,z,be,fe,He){this._viewportRuler=z,this._document=be,this._platform=fe,this._overlayContainer=He,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 R.x,this._resizeSubscription=h.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Y)}get positions(){return this._preferredPositions}attach(Y){this._validatePositions(),Y.hostElement.classList.add(I),this._overlayRef=Y,this._boundingBox=Y.hostElement,this._pane=Y.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 Y=this._originRect,z=this._overlayRect,be=this._viewportRect,fe=this._containerRect,He=[];let pt;for(let et of this._preferredPositions){let Lt=this._getOriginPoint(Y,fe,et),di=this._getOverlayPoint(Lt,z,et),Wt=this._getOverlayFit(di,z,be,et);if(Wt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(et,Lt);this._canFitWithFlexibleDimensions(Wt,di,be)?He.push({position:et,origin:Lt,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Lt,et)}):(!pt||pt.overlayFit.visibleArea<Wt.visibleArea)&&(pt={overlayFit:Wt,overlayPoint:di,originPoint:Lt,position:et,overlayRect:z})}if(He.length){let et=null,Lt=-1;for(const di of He){const Wt=di.boundingBoxRect.width*di.boundingBoxRect.height*(di.position.weight||1);Wt>Lt&&(Lt=Wt,et=di)}return this._isPushed=!1,void this._applyPosition(et.position,et.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(pt.position,pt.originPoint);this._applyPosition(pt.position,pt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Y=this._lastPosition;if(Y){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const z=this._getOriginPoint(this._originRect,this._containerRect,Y);this._applyPosition(Y,z)}else this.apply()}withScrollableContainers(Y){return this._scrollables=Y,this}withPositions(Y){return this._preferredPositions=Y,-1===Y.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Y){return this._viewportMargin=Y,this}withFlexibleDimensions(Y=!0){return this._hasFlexibleDimensions=Y,this}withGrowAfterOpen(Y=!0){return this._growAfterOpen=Y,this}withPush(Y=!0){return this._canPush=Y,this}withLockedPosition(Y=!0){return this._positionLocked=Y,this}setOrigin(Y){return this._origin=Y,this}withDefaultOffsetX(Y){return this._offsetX=Y,this}withDefaultOffsetY(Y){return this._offsetY=Y,this}withTransformOriginOn(Y){return this._transformOriginSelector=Y,this}_getOriginPoint(Y,z,be){let fe,He;if("center"==be.originX)fe=Y.left+Y.width/2;else{const pt=this._isRtl()?Y.right:Y.left,et=this._isRtl()?Y.left:Y.right;fe="start"==be.originX?pt:et}return z.left<0&&(fe-=z.left),He="center"==be.originY?Y.top+Y.height/2:"top"==be.originY?Y.top:Y.bottom,z.top<0&&(He-=z.top),{x:fe,y:He}}_getOverlayPoint(Y,z,be){let fe,He;return fe="center"==be.overlayX?-z.width/2:"start"===be.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,He="center"==be.overlayY?-z.height/2:"top"==be.overlayY?0:-z.height,{x:Y.x+fe,y:Y.y+He}}_getOverlayFit(Y,z,be,fe){const He=N(z);let{x:pt,y:et}=Y,Lt=this._getOffset(fe,"x"),di=this._getOffset(fe,"y");Lt&&(pt+=Lt),di&&(et+=di);let ui=0-et,Ot=et+He.height-be.height,Nt=this._subtractOverflows(He.width,0-pt,pt+He.width-be.width),gt=this._subtractOverflows(He.height,ui,Ot),tt=Nt*gt;return{visibleArea:tt,isCompletelyWithinViewport:He.width*He.height===tt,fitsInViewportVertically:gt===He.height,fitsInViewportHorizontally:Nt==He.width}}_canFitWithFlexibleDimensions(Y,z,be){if(this._hasFlexibleDimensions){const fe=be.bottom-z.y,He=be.right-z.x,pt=B(this._overlayRef.getConfig().minHeight),et=B(this._overlayRef.getConfig().minWidth),di=Y.fitsInViewportHorizontally||null!=et&&et<=He;return(Y.fitsInViewportVertically||null!=pt&&pt<=fe)&&di}return!1}_pushOverlayOnScreen(Y,z,be){if(this._previousPushAmount&&this._positionLocked)return{x:Y.x+this._previousPushAmount.x,y:Y.y+this._previousPushAmount.y};const fe=N(z),He=this._viewportRect,pt=Math.max(Y.x+fe.width-He.width,0),et=Math.max(Y.y+fe.height-He.height,0),Lt=Math.max(He.top-be.top-Y.y,0),di=Math.max(He.left-be.left-Y.x,0);let Wt=0,Gt=0;return Wt=fe.width<=He.width?di||-pt:Y.x<this._viewportMargin?He.left-be.left-Y.x:0,Gt=fe.height<=He.height?Lt||-et:Y.y<this._viewportMargin?He.top-be.top-Y.y:0,this._previousPushAmount={x:Wt,y:Gt},{x:Y.x+Wt,y:Y.y+Gt}}_applyPosition(Y,z){if(this._setTransformOrigin(Y),this._setOverlayElementStyles(z,Y),this._setBoundingBoxStyles(z,Y),Y.panelClass&&this._addPanelClasses(Y.panelClass),this._lastPosition=Y,this._positionChanges.observers.length){const be=this._getScrollVisibility(),fe=new r(Y,be);this._positionChanges.next(fe)}this._isInitialRender=!1}_setTransformOrigin(Y){if(!this._transformOriginSelector)return;const z=this._boundingBox.querySelectorAll(this._transformOriginSelector);let be,fe=Y.overlayY;be="center"===Y.overlayX?"center":this._isRtl()?"start"===Y.overlayX?"right":"left":"start"===Y.overlayX?"left":"right";for(let He=0;He<z.length;He++)z[He].style.transformOrigin=`${be} ${fe}`}_calculateBoundingBoxRect(Y,z){const be=this._viewportRect,fe=this._isRtl();let He,pt,et,Wt,Gt,ui;if("top"===z.overlayY)pt=Y.y,He=be.height-pt+this._viewportMargin;else if("bottom"===z.overlayY)et=be.height-Y.y+2*this._viewportMargin,He=be.height-et+this._viewportMargin;else{const Ot=Math.min(be.bottom-Y.y+be.top,Y.y),Nt=this._lastBoundingBoxSize.height;He=2*Ot,pt=Y.y-Ot,He>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(pt=Y.y-Nt/2)}if("end"===z.overlayX&&!fe||"start"===z.overlayX&&fe)ui=be.width-Y.x+this._viewportMargin,Wt=Y.x-this._viewportMargin;else if("start"===z.overlayX&&!fe||"end"===z.overlayX&&fe)Gt=Y.x,Wt=be.right-Y.x;else{const Ot=Math.min(be.right-Y.x+be.left,Y.x),Nt=this._lastBoundingBoxSize.width;Wt=2*Ot,Gt=Y.x-Ot,Wt>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(Gt=Y.x-Nt/2)}return{top:pt,left:Gt,bottom:et,right:ui,width:Wt,height:He}}_setBoundingBoxStyles(Y,z){const be=this._calculateBoundingBoxRect(Y,z);!this._isInitialRender&&!this._growAfterOpen&&(be.height=Math.min(be.height,this._lastBoundingBoxSize.height),be.width=Math.min(be.width,this._lastBoundingBoxSize.width));const fe={};if(this._hasExactPosition())fe.top=fe.left="0",fe.bottom=fe.right=fe.maxHeight=fe.maxWidth="",fe.width=fe.height="100%";else{const He=this._overlayRef.getConfig().maxHeight,pt=this._overlayRef.getConfig().maxWidth;fe.height=(0,M.HM)(be.height),fe.top=(0,M.HM)(be.top),fe.bottom=(0,M.HM)(be.bottom),fe.width=(0,M.HM)(be.width),fe.left=(0,M.HM)(be.left),fe.right=(0,M.HM)(be.right),fe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",fe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",He&&(fe.maxHeight=(0,M.HM)(He)),pt&&(fe.maxWidth=(0,M.HM)(pt))}this._lastBoundingBoxSize=be,_(this._boundingBox.style,fe)}_resetBoundingBoxStyles(){_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Y,z){const be={},fe=this._hasExactPosition(),He=this._hasFlexibleDimensions,pt=this._overlayRef.getConfig();if(fe){const Wt=this._viewportRuler.getViewportScrollPosition();_(be,this._getExactOverlayY(z,Y,Wt)),_(be,this._getExactOverlayX(z,Y,Wt))}else be.position="static";let et="",Lt=this._getOffset(z,"x"),di=this._getOffset(z,"y");Lt&&(et+=`translateX(${Lt}px) `),di&&(et+=`translateY(${di}px)`),be.transform=et.trim(),pt.maxHeight&&(fe?be.maxHeight=(0,M.HM)(pt.maxHeight):He&&(be.maxHeight="")),pt.maxWidth&&(fe?be.maxWidth=(0,M.HM)(pt.maxWidth):He&&(be.maxWidth="")),_(this._pane.style,be)}_getExactOverlayY(Y,z,be){let fe={top:"",bottom:""},He=this._getOverlayPoint(z,this._overlayRect,Y);return this._isPushed&&(He=this._pushOverlayOnScreen(He,this._overlayRect,be)),"bottom"===Y.overlayY?fe.bottom=this._document.documentElement.clientHeight-(He.y+this._overlayRect.height)+"px":fe.top=(0,M.HM)(He.y),fe}_getExactOverlayX(Y,z,be){let pt,fe={left:"",right:""},He=this._getOverlayPoint(z,this._overlayRect,Y);return this._isPushed&&(He=this._pushOverlayOnScreen(He,this._overlayRect,be)),pt=this._isRtl()?"end"===Y.overlayX?"left":"right":"end"===Y.overlayX?"right":"left","right"===pt?fe.right=this._document.documentElement.clientWidth-(He.x+this._overlayRect.width)+"px":fe.left=(0,M.HM)(He.x),fe}_getScrollVisibility(){const Y=this._getOriginRect(),z=this._pane.getBoundingClientRect(),be=this._scrollables.map(fe=>fe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ie(Y,be),isOriginOutsideView:te(Y,be),isOverlayClipped:ie(z,be),isOverlayOutsideView:te(z,be)}}_subtractOverflows(Y,...z){return z.reduce((be,fe)=>be-Math.max(fe,0),Y)}_getNarrowedViewportRect(){const Y=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,be=this._viewportRuler.getViewportScrollPosition();return{top:be.top+this._viewportMargin,left:be.left+this._viewportMargin,right:be.left+Y-this._viewportMargin,bottom:be.top+z-this._viewportMargin,width:Y-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Y,z){return"x"===z?null==Y.offsetX?this._offsetX:Y.offsetX:null==Y.offsetY?this._offsetY:Y.offsetY}_validatePositions(){}_addPanelClasses(Y){this._pane&&(0,M.Eq)(Y).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Y=>{this._pane.classList.remove(Y)}),this._appliedPanelClasses=[])}_getOriginRect(){const Y=this._origin;if(Y instanceof f.SBq)return Y.nativeElement.getBoundingClientRect();if(Y instanceof Element)return Y.getBoundingClientRect();const z=Y.width||0,be=Y.height||0;return{top:Y.y,bottom:Y.y+be,left:Y.x,right:Y.x+z,height:be,width:z}}}function _(ye,Y){for(let z in Y)Y.hasOwnProperty(z)&&(ye[z]=Y[z]);return ye}function B(ye){if("number"!=typeof ye&&null!=ye){const[Y,z]=ye.split(y);return z&&"px"!==z?null:parseFloat(Y)}return ye||null}function N(ye){return{top:Math.floor(ye.top),right:Math.floor(ye.right),bottom:Math.floor(ye.bottom),left:Math.floor(ye.left),width:Math.floor(ye.width),height:Math.floor(ye.height)}}const H="cdk-global-overlay-wrapper";class J{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(Y){const z=Y.getConfig();this._overlayRef=Y,this._width&&!z.width&&Y.updateSize({width:this._width}),this._height&&!z.height&&Y.updateSize({height:this._height}),Y.hostElement.classList.add(H),this._isDisposed=!1}top(Y=""){return this._bottomOffset="",this._topOffset=Y,this._alignItems="flex-start",this}left(Y=""){return this._rightOffset="",this._leftOffset=Y,this._justifyContent="flex-start",this}bottom(Y=""){return this._topOffset="",this._bottomOffset=Y,this._alignItems="flex-end",this}right(Y=""){return this._leftOffset="",this._rightOffset=Y,this._justifyContent="flex-end",this}width(Y=""){return this._overlayRef?this._overlayRef.updateSize({width:Y}):this._width=Y,this}height(Y=""){return this._overlayRef?this._overlayRef.updateSize({height:Y}):this._height=Y,this}centerHorizontally(Y=""){return this.left(Y),this._justifyContent="center",this}centerVertically(Y=""){return this.top(Y),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Y=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,be=this._overlayRef.getConfig(),{width:fe,height:He,maxWidth:pt,maxHeight:et}=be,Lt=!("100%"!==fe&&"100vw"!==fe||pt&&"100%"!==pt&&"100vw"!==pt),di=!("100%"!==He&&"100vh"!==He||et&&"100%"!==et&&"100vh"!==et);Y.position=this._cssPosition,Y.marginLeft=Lt?"0":this._leftOffset,Y.marginTop=di?"0":this._topOffset,Y.marginBottom=this._bottomOffset,Y.marginRight=this._rightOffset,Lt?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=di?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Y=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,be=z.style;z.classList.remove(H),be.justifyContent=be.alignItems=Y.marginTop=Y.marginBottom=Y.marginLeft=Y.marginRight=Y.position="",this._overlayRef=null,this._isDisposed=!0}}let ue=(()=>{class ye{constructor(z,be,fe,He){this._viewportRuler=z,this._document=be,this._platform=fe,this._overlayContainer=He}global(){return new J}flexibleConnectedTo(z){return new n(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG(t.rL),f.LFG(e.K0),f.LFG(s.t4),f.LFG(T))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),xe=(()=>{class ye{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const be=this._attachedOverlays.indexOf(z);be>-1&&this._attachedOverlays.splice(be,1),0===this._attachedOverlays.length&&this.detach()}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG(e.K0))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Pe=(()=>{class ye extends xe{constructor(z,be){super(z),this._ngZone=be,this._keydownListener=fe=>{const He=this._attachedOverlays;for(let pt=He.length-1;pt>-1;pt--)if(He[pt]._keydownEvents.observers.length>0){const et=He[pt]._keydownEvents;this._ngZone?this._ngZone.run(()=>et.next(fe)):et.next(fe);break}}}add(z){super.add(z),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG(e.K0),f.LFG(f.R0b,8))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Se=(()=>{class ye extends xe{constructor(z,be,fe){super(z),this._platform=be,this._ngZone=fe,this._cursorStyleIsSet=!1,this._pointerDownListener=He=>{this._pointerDownEventTarget=(0,s.sA)(He)},this._clickListener=He=>{const pt=(0,s.sA)(He),et="click"===He.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:pt;this._pointerDownEventTarget=null;const Lt=this._attachedOverlays.slice();for(let di=Lt.length-1;di>-1;di--){const Wt=Lt[di];if(Wt._outsidePointerEvents.observers.length<1||!Wt.hasAttached())continue;if(Wt.overlayElement.contains(pt)||Wt.overlayElement.contains(et))break;const Gt=Wt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Gt.next(He)):Gt.next(He)}}}add(z){if(super.add(z),!this._isAttached){const be=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(be)):this._addEventListeners(be),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=be.style.cursor,be.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(z){z.addEventListener("pointerdown",this._pointerDownListener,!0),z.addEventListener("click",this._clickListener,!0),z.addEventListener("auxclick",this._clickListener,!0),z.addEventListener("contextmenu",this._clickListener,!0)}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG(e.K0),f.LFG(s.t4),f.LFG(f.R0b,8))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Q=0,Ue=(()=>{class ye{constructor(z,be,fe,He,pt,et,Lt,di,Wt,Gt,ui){this.scrollStrategies=z,this._overlayContainer=be,this._componentFactoryResolver=fe,this._positionBuilder=He,this._keyboardDispatcher=pt,this._injector=et,this._ngZone=Lt,this._document=di,this._directionality=Wt,this._location=Gt,this._outsideClickDispatcher=ui}create(z){const be=this._createHostElement(),fe=this._createPaneElement(be),He=this._createPortalOutlet(fe),pt=new ge(z);return pt.direction=pt.direction||this._directionality.value,new v(He,be,fe,pt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const be=this._document.createElement("div");return be.id="cdk-overlay-"+Q++,be.classList.add("cdk-overlay-pane"),z.appendChild(be),be}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new d.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ye.\u0275fac=function(z){return new(z||ye)(f.LFG($),f.LFG(T),f.LFG(f._Vd),f.LFG(ue),f.LFG(Pe),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(b.Is),f.LFG(e.Ye),f.LFG(Se))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Ce=[{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"}],q=new f.OlP("cdk-connected-overlay-scroll-strategy");let Ae=(()=>{class ye{constructor(z){this.elementRef=z}}return ye.\u0275fac=function(z){return new(z||ye)(f.Y36(f.SBq))},ye.\u0275dir=f.lG2({type:ye,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ye})(),ut=(()=>{class ye{constructor(z,be,fe,He,pt){this._overlay=z,this._dir=pt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w0.EMPTY,this._attachSubscription=h.w0.EMPTY,this._detachSubscription=h.w0.EMPTY,this._positionSubscription=h.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new f.vpe,this.positionChange=new f.vpe,this.attach=new f.vpe,this.detach=new f.vpe,this.overlayKeydown=new f.vpe,this.overlayOutsideClick=new f.vpe,this._templatePortal=new d.UE(be,fe),this._scrollStrategyFactory=He,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,M.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,M.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,M.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,M.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,M.Ig)(z)}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(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ce);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(be=>{this.overlayKeydown.next(be),be.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(be)&&(be.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(be=>{this.overlayOutsideClick.next(be)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),be=new ge({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(be.width=this.width),(this.height||0===this.height)&&(be.height=this.height),(this.minWidth||0===this.minWidth)&&(be.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(be.minHeight=this.minHeight),this.backdropClass&&(be.backdropClass=this.backdropClass),this.panelClass&&(be.panelClass=this.panelClass),be}_updatePositionStrategy(z){const be=this.positions.map(fe=>({originX:fe.originX,originY:fe.originY,overlayX:fe.overlayX,overlayY:fe.overlayY,offsetX:fe.offsetX||this.offsetX,offsetY:fe.offsetY||this.offsetY,panelClass:fe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(be).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ae?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function S(ye,Y=!1){return(0,w.e)((z,be)=>{let fe=0;z.subscribe((0,D.x)(be,He=>{const pt=ye(He,fe++);(pt||Y)&&be.next(He),!pt&&be.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ye.\u0275fac=function(z){return new(z||ye)(f.Y36(Ue),f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(q),f.Y36(b.Is,8))},ye.\u0275dir=f.lG2({type:ye,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[f.TTD]}),ye})();const De={provide:q,deps:[Ue],useFactory:function Ie(ye){return()=>ye.scrollStrategies.reposition()}};let ae=(()=>{class ye{}return ye.\u0275fac=function(z){return new(z||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Ue,De],imports:[[b.vT,d.eL,t.Cl],t.Cl]}),ye})()},925:(ze,K,p)=>{"use strict";p.d(K,{Mq:()=>k,Oy:()=>de,_i:()=>E,ht:()=>ne,i$:()=>w,kV:()=>j,qK:()=>R,sA:()=>ee,t4:()=>M});var t=p(5e3),e=p(9808);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(te){f=!1}let b,M=(()=>{class te{constructor(le){this._platformId=le,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!f)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return te.\u0275fac=function(le){return new(le||te)(t.LFG(t.Lbi))},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(d),b;let te=document.createElement("input");return b=new Set(d.filter(ie=>(te.setAttribute("type",ie),te.type===ie))),b}let h,D,S,U;function w(te){return function L(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?te:!!te.capture}function k(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1,S;if("scrollBehavior"in document.documentElement.style)S=!0;else{const te=Element.prototype.scrollTo;S=!!te&&!/\{\s*\[native code\]\s*\}/.test(te.toString())}}return S}function E(){if("object"!=typeof document||!document)return 0;if(null==D){const te=document.createElement("div"),ie=te.style;te.dir="rtl",ie.width="1px",ie.overflow="auto",ie.visibility="hidden",ie.pointerEvents="none",ie.position="absolute";const le=document.createElement("div"),$=le.style;$.width="2px",$.height="1px",te.appendChild(le),document.body.appendChild(te),D=0,0===te.scrollLeft&&(te.scrollLeft=1,D=0===te.scrollLeft?1:2),te.remove()}return D}function j(te){if(function W(){if(null==U){const te="undefined"!=typeof document?document.head:null;U=!(!te||!te.createShadowRoot&&!te.attachShadow)}return U}()){const ie=te.getRootNode?te.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&ie instanceof ShadowRoot)return ie}return null}function ne(){let te="undefined"!=typeof document&&document?document.activeElement:null;for(;te&&te.shadowRoot;){const ie=te.shadowRoot.activeElement;if(ie===te)break;te=ie}return te}function ee(te){return te.composedPath?te.composedPath()[0]:te.target}function de(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(ze,K,p)=>{"use strict";p.d(K,{C5:()=>L,Pl:()=>ne,UE:()=>w,eL:()=>de,en:()=>S,ig:()=>W,u0:()=>E});var t=p(5e3),e=p(9808);class h{attach(le){return this._attachedHost=le,le.attach(this)}detach(){let le=this._attachedHost;null!=le&&(this._attachedHost=null,le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(le){this._attachedHost=le}}class L extends h{constructor(le,$,ge,C){super(),this.component=le,this.viewContainerRef=$,this.injector=ge,this.componentFactoryResolver=C}}class w extends h{constructor(le,$,ge){super(),this.templateRef=le,this.viewContainerRef=$,this.context=ge}get origin(){return this.templateRef.elementRef}attach(le,$=this.context){return this.context=$,super.attach(le)}detach(){return this.context=void 0,super.detach()}}class D extends h{constructor(le){super(),this.element=le instanceof t.SBq?le.nativeElement:le}}class S{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(le){return le instanceof L?(this._attachedPortal=le,this.attachComponentPortal(le)):le instanceof w?(this._attachedPortal=le,this.attachTemplatePortal(le)):this.attachDomPortal&&le instanceof D?(this._attachedPortal=le,this.attachDomPortal(le)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(le){this._disposeFn=le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class E extends S{constructor(le,$,ge,C,i){super(),this.outletElement=le,this._componentFactoryResolver=$,this._appRef=ge,this._defaultInjector=C,this.attachDomPortal=r=>{const u=r.element,c=this._document.createComment("dom-portal");u.parentNode.insertBefore(c,u),this.outletElement.appendChild(u),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=i}attachComponentPortal(le){const ge=(le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(le.component);let C;return le.viewContainerRef?(C=le.viewContainerRef.createComponent(ge,le.viewContainerRef.length,le.injector||le.viewContainerRef.injector),this.setDisposeFn(()=>C.destroy())):(C=ge.create(le.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(C.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(C.hostView),C.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(C)),this._attachedPortal=le,C}attachTemplatePortal(le){let $=le.viewContainerRef,ge=$.createEmbeddedView(le.templateRef,le.context);return ge.rootNodes.forEach(C=>this.outletElement.appendChild(C)),ge.detectChanges(),this.setDisposeFn(()=>{let C=$.indexOf(ge);-1!==C&&$.remove(C)}),this._attachedPortal=le,ge}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(le){return le.hostView.rootNodes[0]}}let W=(()=>{class ie extends w{constructor($,ge){super($,ge)}}return ie.\u0275fac=function($){return new($||ie)(t.Y36(t.Rgc),t.Y36(t.s_b))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ie})(),ne=(()=>{class ie extends S{constructor($,ge,C){super(),this._componentFactoryResolver=$,this._viewContainerRef=ge,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const r=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),r.parentNode.insertBefore(u,r),this._getRootNode().appendChild(r),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},this._document=C}get portal(){return this._attachedPortal}set portal($){this.hasAttached()&&!$&&!this._isInitialized||(this.hasAttached()&&super.detach(),$&&super.attach($),this._attachedPortal=$||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal($){$.setAttachedHost(this);const ge=null!=$.viewContainerRef?$.viewContainerRef:this._viewContainerRef,i=($.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory($.component),r=ge.createComponent(i,ge.length,$.injector||ge.injector);return ge!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=$,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal($){$.setAttachedHost(this);const ge=this._viewContainerRef.createEmbeddedView($.templateRef,$.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=$,this._attachedRef=ge,this.attached.emit(ge),ge}_getRootNode(){const $=this._viewContainerRef.element.nativeElement;return $.nodeType===$.ELEMENT_NODE?$:$.parentNode}}return ie.\u0275fac=function($){return new($||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})(),de=(()=>{class ie{}return ie.\u0275fac=function($){return new($||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})()},5303:(ze,K,p)=>{"use strict";p.d(K,{PQ:()=>u,ZD:()=>B,mF:()=>r,Cl:()=>N,rL:()=>v});var t=p(3191),e=p(5e3),f=p(4408),M=p(727);const s={schedule(H){let J=requestAnimationFrame,ue=cancelAnimationFrame;const{delegate:xe}=s;xe&&(J=xe.requestAnimationFrame,ue=xe.cancelAnimationFrame);const Pe=J(Se=>{ue=void 0,H(Se)});return new M.w0(()=>null==ue?void 0:ue(Pe))},requestAnimationFrame(...H){const{delegate:J}=s;return((null==J?void 0:J.requestAnimationFrame)||requestAnimationFrame)(...H)},cancelAnimationFrame(...H){const{delegate:J}=s;return((null==J?void 0:J.cancelAnimationFrame)||cancelAnimationFrame)(...H)},delegate:void 0};var d=p(7565);new class R extends d.v{flush(J){this._active=!0;const ue=this._scheduled;this._scheduled=void 0;const{actions:xe}=this;let Pe;J=J||xe.shift();do{if(Pe=J.execute(J.state,J.delay))break}while((J=xe[0])&&J.id===ue&&xe.shift());if(this._active=!1,Pe){for(;(J=xe[0])&&J.id===ue&&xe.shift();)J.unsubscribe();throw Pe}}}(class b extends f.o{constructor(J,ue){super(J,ue),this.scheduler=J,this.work=ue}requestAsyncId(J,ue,xe=0){return null!==xe&&xe>0?super.requestAsyncId(J,ue,xe):(J.actions.push(this),J._scheduled||(J._scheduled=s.requestAnimationFrame(()=>J.flush(void 0))))}recycleAsyncId(J,ue,xe=0){var Pe;if(null!=xe?xe>0:this.delay>0)return super.recycleAsyncId(J,ue,xe);const{actions:Se}=J;null!=ue&&(null===(Pe=Se[Se.length-1])||void 0===Pe?void 0:Pe.id)!==ue&&(s.cancelAnimationFrame(ue),J._scheduled=void 0)}});var w=p(7579),D=p(9646),S=p(8306),k=p(4968),U=(p(3101),p(3601)),W=p(9300),j=p(2722),ne=p(9808),ee=p(925),de=p(226);let r=(()=>{class H{constructor(ue,xe,Pe){this._ngZone=ue,this._platform=xe,this._scrolled=new w.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Pe}register(ue){this.scrollContainers.has(ue)||this.scrollContainers.set(ue,ue.elementScrolled().subscribe(()=>this._scrolled.next(ue)))}deregister(ue){const xe=this.scrollContainers.get(ue);xe&&(xe.unsubscribe(),this.scrollContainers.delete(ue))}scrolled(ue=20){return this._platform.isBrowser?new S.y(xe=>{this._globalSubscription||this._addGlobalListener();const Pe=ue>0?this._scrolled.pipe((0,U.e)(ue)).subscribe(xe):this._scrolled.subscribe(xe);return this._scrolledCount++,()=>{Pe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,D.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ue,xe)=>this.deregister(xe)),this._scrolled.complete()}ancestorScrolled(ue,xe){const Pe=this.getAncestorScrollContainers(ue);return this.scrolled(xe).pipe((0,W.h)(Se=>!Se||Pe.indexOf(Se)>-1))}getAncestorScrollContainers(ue){const xe=[];return this.scrollContainers.forEach((Pe,Se)=>{this._scrollableContainsElement(Se,ue)&&xe.push(Se)}),xe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ue,xe){let Pe=(0,t.fI)(xe),Se=ue.getElementRef().nativeElement;do{if(Pe==Se)return!0}while(Pe=Pe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ue=this._getWindow();return(0,k.R)(ue.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return H.\u0275fac=function(ue){return new(ue||H)(e.LFG(e.R0b),e.LFG(ee.t4),e.LFG(ne.K0,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),u=(()=>{class H{constructor(ue,xe,Pe,Se){this.elementRef=ue,this.scrollDispatcher=xe,this.ngZone=Pe,this.dir=Se,this._destroyed=new w.x,this._elementScrolled=new S.y(Q=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,j.R)(this._destroyed)).subscribe(Q)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ue){const xe=this.elementRef.nativeElement,Pe=this.dir&&"rtl"==this.dir.value;null==ue.left&&(ue.left=Pe?ue.end:ue.start),null==ue.right&&(ue.right=Pe?ue.start:ue.end),null!=ue.bottom&&(ue.top=xe.scrollHeight-xe.clientHeight-ue.bottom),Pe&&0!=(0,ee._i)()?(null!=ue.left&&(ue.right=xe.scrollWidth-xe.clientWidth-ue.left),2==(0,ee._i)()?ue.left=ue.right:1==(0,ee._i)()&&(ue.left=ue.right?-ue.right:ue.right)):null!=ue.right&&(ue.left=xe.scrollWidth-xe.clientWidth-ue.right),this._applyScrollToOptions(ue)}_applyScrollToOptions(ue){const xe=this.elementRef.nativeElement;(0,ee.Mq)()?xe.scrollTo(ue):(null!=ue.top&&(xe.scrollTop=ue.top),null!=ue.left&&(xe.scrollLeft=ue.left))}measureScrollOffset(ue){const xe="left",Se=this.elementRef.nativeElement;if("top"==ue)return Se.scrollTop;if("bottom"==ue)return Se.scrollHeight-Se.clientHeight-Se.scrollTop;const Q=this.dir&&"rtl"==this.dir.value;return"start"==ue?ue=Q?"right":xe:"end"==ue&&(ue=Q?xe:"right"),Q&&2==(0,ee._i)()?ue==xe?Se.scrollWidth-Se.clientWidth-Se.scrollLeft:Se.scrollLeft:Q&&1==(0,ee._i)()?ue==xe?Se.scrollLeft+Se.scrollWidth-Se.clientWidth:-Se.scrollLeft:ue==xe?Se.scrollLeft:Se.scrollWidth-Se.clientWidth-Se.scrollLeft}}return H.\u0275fac=function(ue){return new(ue||H)(e.Y36(e.SBq),e.Y36(r),e.Y36(e.R0b),e.Y36(de.Is,8))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),H})(),v=(()=>{class H{constructor(ue,xe,Pe){this._platform=ue,this._change=new w.x,this._changeListener=Se=>{this._change.next(Se)},this._document=Pe,xe.runOutsideAngular(()=>{if(ue.isBrowser){const Se=this._getWindow();Se.addEventListener("resize",this._changeListener),Se.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ue=this._getWindow();ue.removeEventListener("resize",this._changeListener),ue.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ue={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ue}getViewportRect(){const ue=this.getViewportScrollPosition(),{width:xe,height:Pe}=this.getViewportSize();return{top:ue.top,left:ue.left,bottom:ue.top+Pe,right:ue.left+xe,height:Pe,width:xe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ue=this._document,xe=this._getWindow(),Pe=ue.documentElement,Se=Pe.getBoundingClientRect();return{top:-Se.top||ue.body.scrollTop||xe.scrollY||Pe.scrollTop||0,left:-Se.left||ue.body.scrollLeft||xe.scrollX||Pe.scrollLeft||0}}change(ue=20){return ue>0?this._change.pipe((0,U.e)(ue)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ue=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ue.innerWidth,height:ue.innerHeight}:{width:0,height:0}}}return H.\u0275fac=function(ue){return new(ue||H)(e.LFG(ee.t4),e.LFG(e.R0b),e.LFG(ne.K0,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),B=(()=>{class H{}return H.\u0275fac=function(ue){return new(ue||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})(),N=(()=>{class H{}return H.\u0275fac=function(ue){return new(ue||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[de.vT,B],de.vT,B]}),H})()},1555:(ze,K,p)=>{"use strict";p.d(K,{B8:()=>de,KL:()=>k,U5:()=>le,be:()=>ee,gx:()=>ne,po:()=>ie,st:()=>te,u6:()=>E});var t=p(5664),e=p(3191),f=p(1159),M=p(9808),s=p(5e3),b=p(925),d=p(7579),R=p(9646),h=p(8675),L=p(2722),w=p(226);function D($,ge){1&$&&s.Hsn(0)}const S=["*"];let k=(()=>{class ${constructor(C){this._elementRef=C}focus(){this._elementRef.nativeElement.focus()}}return $.\u0275fac=function(C){return new(C||$)(s.Y36(s.SBq))},$.\u0275dir=s.lG2({type:$,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),$})(),E=(()=>{class ${constructor(C){this.template=C}}return $.\u0275fac=function(C){return new(C||$)(s.Y36(s.Rgc))},$.\u0275dir=s.lG2({type:$,selectors:[["","cdkStepLabel",""]]}),$})(),U=0;const ne=new s.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class ${constructor(C,i){this._stepper=C,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(C){this._editable=(0,e.Ig)(C)}get optional(){return this._optional}set optional(C){this._optional=(0,e.Ig)(C)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(C){this._completedOverride=(0,e.Ig)(C)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(C){this._customError=(0,e.Ig)(C)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var C;return null!==(C=this._stepperOptions.showError)&&void 0!==C?C:null!=this._customError}}return $.\u0275fac=function(C){return new(C||$)(s.Y36((0,s.Gpc)(()=>de)),s.Y36(ne,8))},$.\u0275cmp=s.Xpm({type:$,selectors:[["cdk-step"]],contentQueries:function(C,i,r){if(1&C&&s.Suo(r,E,5),2&C){let u;s.iGM(u=s.CRH())&&(i.stepLabel=u.first)}},viewQuery:function(C,i){if(1&C&&s.Gf(s.Rgc,7),2&C){let r;s.iGM(r=s.CRH())&&(i.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[s.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(C,i){1&C&&(s.F$t(),s.YNc(0,D,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),$})(),de=(()=>{class ${constructor(C,i,r,u){this._dir=C,this._changeDetectorRef=i,this._elementRef=r,this._destroyed=new d.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=U++}get linear(){return this._linear}set linear(C){this._linear=(0,e.Ig)(C)}get selectedIndex(){return this._selectedIndex}set selectedIndex(C){var i;const r=(0,e.su)(C);this.steps&&this._steps?(this._isValidIndex(r),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(C){this.selectedIndex=C&&this.steps?this.steps.toArray().indexOf(C):-1}get orientation(){return this._orientation}set orientation(C){this._orientation=C,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===C)}ngAfterContentInit(){this._steps.changes.pipe((0,h.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(C=>{this.steps.reset(C.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,h.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(C=>{this._sortedHeaders.reset(C.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,h.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(C=>this._keyManager.withHorizontalOrientation(C)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(C=>C.reset()),this._stateChanged()}_getStepLabelId(C){return`cdk-step-label-${this._groupId}-${C}`}_getStepContentId(C){return`cdk-step-content-${this._groupId}-${C}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(C){const i=C-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(C,i="number"){const r=this.steps.toArray()[C],u=this._isCurrentStep(C);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,u):this._getGuidelineLogic(r,u,i)}_getDefaultIndicatorLogic(C,i){return C._showError()&&C.hasError&&!i?"error":!C.completed||i?"number":C.editable?"edit":"done"}_getGuidelineLogic(C,i,r="number"){return C._showError()&&C.hasError&&!i?"error":C.completed&&!i?"done":C.completed&&i?r:C.editable&&i?"edit":r}_isCurrentStep(C){return this._selectedIndex===C}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(C){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:C,previouslySelectedIndex:this._selectedIndex,selectedStep:i[C],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(C):this._keyManager.updateActiveItem(C),this._selectedIndex=C,this._stateChanged()}_onKeydown(C){const i=(0,f.Vb)(C),r=C.keyCode,u=this._keyManager;null==u.activeItemIndex||i||r!==f.L_&&r!==f.K5?u.onKeydown(C):(this.selectedIndex=u.activeItemIndex,C.preventDefault())}_anyControlsInvalidOrPending(C){return!!(this._linear&&C>=0)&&this.steps.toArray().slice(0,C).some(i=>{const r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const C=this._elementRef.nativeElement,i=(0,b.ht)();return C===i||C.contains(i)}_isValidIndex(C){return C>-1&&(!this.steps||C<this.steps.length)}}return $.\u0275fac=function(C){return new(C||$)(s.Y36(w.Is,8),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(M.K0))},$.\u0275dir=s.lG2({type:$,selectors:[["","cdkStepper",""]],contentQueries:function(C,i,r){if(1&C&&(s.Suo(r,ee,5),s.Suo(r,k,5)),2&C){let u;s.iGM(u=s.CRH())&&(i._steps=u),s.iGM(u=s.CRH())&&(i._stepHeader=u)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),$})(),te=(()=>{class ${constructor(C){this._stepper=C,this.type="submit"}}return $.\u0275fac=function(C){return new(C||$)(s.Y36(de))},$.\u0275dir=s.lG2({type:$,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(C,i){1&C&&s.NdJ("click",function(){return i._stepper.next()}),2&C&&s.Ikx("type",i.type)},inputs:{type:"type"}}),$})(),ie=(()=>{class ${constructor(C){this._stepper=C,this.type="button"}}return $.\u0275fac=function(C){return new(C||$)(s.Y36(de))},$.\u0275dir=s.lG2({type:$,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(C,i){1&C&&s.NdJ("click",function(){return i._stepper.previous()}),2&C&&s.Ikx("type",i.type)},inputs:{type:"type"}}),$})(),le=(()=>{class ${}return $.\u0275fac=function(C){return new(C||$)},$.\u0275mod=s.oAB({type:$}),$.\u0275inj=s.cJS({imports:[[w.vT]]}),$})()},8258:(ze,K,p)=>{"use strict";p.d(K,{HI:()=>E,Hs:()=>$,Ud:()=>c,VY:()=>k,XJ:()=>u,Xx:()=>i,_0:()=>le,cu:()=>U,nZ:()=>T,rO:()=>j});var t=p(449),e=p(5191),f=p(7579),M=p(1135),s=p(9646),b=p(5698),d=p(9300),R=p(2722),h=p(5e3),L=p(3191),w=p(226);class k extends class D{constructor(){this.expansionModel=new t.Ov(!0)}toggle(y){this.expansionModel.toggle(this._trackByValue(y))}expand(y){this.expansionModel.select(this._trackByValue(y))}collapse(y){this.expansionModel.deselect(this._trackByValue(y))}isExpanded(y){return this.expansionModel.isSelected(this._trackByValue(y))}toggleDescendants(y){this.expansionModel.isSelected(this._trackByValue(y))?this.collapseDescendants(y):this.expandDescendants(y)}collapseAll(){this.expansionModel.clear()}expandDescendants(y){let n=[y];n.push(...this.getDescendants(y)),this.expansionModel.select(...n.map(_=>this._trackByValue(_)))}collapseDescendants(y){let n=[y];n.push(...this.getDescendants(y)),this.expansionModel.deselect(...n.map(_=>this._trackByValue(_)))}_trackByValue(y){return this.trackBy?this.trackBy(y):y}}{constructor(y,n){super(),this.getChildren=y,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const y=this.dataNodes.reduce((n,_)=>[...n,...this.getDescendants(_),_],[]);this.expansionModel.select(...y.map(n=>this._trackByValue(n)))}getDescendants(y){const n=[];return this._getDescendants(n,y),n.splice(1)}_getDescendants(y,n){y.push(n);const _=this.getChildren(n);Array.isArray(_)?_.forEach(B=>this._getDescendants(y,B)):(0,e.b)(_)&&_.pipe((0,b.q)(1),(0,d.h)(Boolean)).subscribe(B=>{for(const N of B)this._getDescendants(y,N)})}}const E=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let U=(()=>{class I{constructor(n,_){this.viewContainer=n,this._node=_}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.s_b),h.Y36(E,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class W{constructor(y){this.$implicit=y}}let j=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.Rgc))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),le=(()=>{class I{constructor(n,_){this._differs=n,this._changeDetectorRef=_,this._onDestroy=new f.x,this._levels=new Map,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(_=>!_.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,R.R)(this._onDestroy)).subscribe(_=>this.renderNodeChanges(_)))}renderNodeChanges(n,_=this._dataDiffer,B=this._nodeOutlet.viewContainer,N){const H=_.diff(n);!H||(H.forEachOperation((J,ue,xe)=>{if(null==J.previousIndex)this.insertNode(n[xe],xe,B,N);else if(null==xe)B.remove(ue),this._levels.delete(J.item);else{const Pe=B.get(ue);B.move(Pe,xe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,_){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(_,n))||this._defaultNodeDef}insertNode(n,_,B,N){const H=this._getNodeDef(n,_),J=new W(n);J.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(n,J.level),(B||this._nodeOutlet.viewContainer).createEmbeddedView(H.template,J,_),$.mostRecentTreeNode&&($.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.ZZ4),h.Y36(h.sBO))},I.\u0275cmp=h.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,_,B){if(1&n&&h.Suo(B,j,5),2&n){let N;h.iGM(N=h.CRH())&&(_._nodeDefs=N)}},viewQuery:function(n,_){if(1&n&&h.Gf(U,7),2&n){let B;h.iGM(B=h.CRH())&&(_._nodeOutlet=B.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,_){1&n&&h.GkF(0,0)},directives:[U],encapsulation:2}),I})(),$=(()=>{class I{constructor(n,_){this._elementRef=n,this._tree=_,this._destroyed=new f.x,this._dataChanges=new f.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ge(I){let y=I.parentElement;for(;y&&!C(y);)y=y.parentElement;return y?y.classList.contains("cdk-nested-tree-node")?(0,L.su)(y.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(le))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,_){2&n&&h.uIk("aria-expanded",_.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function C(I){const y=I.classList;return!(!(null==y?void 0:y.contains("cdk-nested-tree-node"))&&!(null==y?void 0:y.contains("cdk-tree")))}let i=(()=>{class I extends ${constructor(n,_,B){super(n,_),this._differs=B}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,R.R)(this._destroyed)).subscribe(_=>this.updateChildrenNodes(_)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const _=this._getNodeOutlet();n&&(this._children=n),_&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,_.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(_=>!_._node||_._node===this)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(le),h.Y36(h.ZZ4))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,_,B){if(1&n&&h.Suo(B,U,5),2&n){let N;h.iGM(N=h.CRH())&&(_.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:$,useExisting:I},{provide:E,useExisting:I}]),h.qOj]}),I})();const r=/([A-Za-z%]+)$/;let u=(()=>{class I{constructor(n,_,B,N){this._treeNode=n,this._tree=_,this._element=B,this._dir=N,this._destroyed=new f.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,_=null==this._level?n:this._level;return"number"==typeof _?`${_*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const _=this._paddingIndent();if(_!==this._currentPadding||n){const B=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",H="paddingLeft"===N?"paddingRight":"paddingLeft";B.style[N]=_||"",B.style[H]="",this._currentPadding=_}}_setLevelInput(n){this._level=(0,L.su)(n,null),this._setPadding()}_setIndentInput(n){let _=n,B="px";if("string"==typeof n){const N=n.split(r);_=N[0],B=N[1]||B}this.indentUnits=B,this._indent=(0,L.su)(_),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36($),h.Y36(le),h.Y36(h.SBq),h.Y36(w.Is,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,_){this._tree=n,this._treeNode=_,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,L.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(le),h.Y36($))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,_){1&n&&h.NdJ("click",function(N){return _._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),T=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=h.oAB({type:I}),I.\u0275inj=h.cJS({}),I})()},9808:(ze,K,p)=>{"use strict";p.d(K,{Do:()=>de,ED:()=>jn,EM:()=>Wr,HT:()=>s,JF:()=>Vn,JJ:()=>Ys,K0:()=>d,Mx:()=>Xi,NF:()=>or,Nd:()=>Vr,O5:()=>Rt,OU:()=>gs,Ov:()=>ls,PC:()=>Si,PM:()=>ns,RF:()=>ki,S$:()=>W,Ts:()=>Dr,V_:()=>L,Ye:()=>te,b0:()=>ee,bD:()=>is,ez:()=>Tr,gd:()=>cs,i8:()=>Jr,lw:()=>R,mk:()=>Zi,mr:()=>ne,n9:()=>un,q:()=>f,rS:()=>Ms,sg:()=>ti,tP:()=>ji,uU:()=>$r,w_:()=>b});var t=p(5e3);let e=null;function f(){return e}function s(je){e||(e=je)}class b{}const d=new t.OlP("DocumentToken");let R=(()=>{class je{historyGo(Je){throw new Error("Not implemented")}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275prov=t.Yz7({token:je,factory:function(){return function h(){return(0,t.LFG)(w)}()},providedIn:"platform"}),je})();const L=new t.OlP("Location Initialized");let w=(()=>{class je extends R{constructor(Je){super(),this._doc=Je,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(Je){const Pt=f().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("popstate",Je,!1),()=>Pt.removeEventListener("popstate",Je)}onHashChange(Je){const Pt=f().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("hashchange",Je,!1),()=>Pt.removeEventListener("hashchange",Je)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Je){this.location.pathname=Je}pushState(Je,Pt,ri){D()?this._history.pushState(Je,Pt,ri):this.location.hash=ri}replaceState(Je,Pt,ri){D()?this._history.replaceState(Je,Pt,ri):this.location.hash=ri}forward(){this._history.forward()}back(){this._history.back()}historyGo(Je=0){this._history.go(Je)}getState(){return this._history.state}}return je.\u0275fac=function(Je){return new(Je||je)(t.LFG(d))},je.\u0275prov=t.Yz7({token:je,factory:function(){return function S(){return new w((0,t.LFG)(d))}()},providedIn:"platform"}),je})();function D(){return!!window.history.pushState}function k(je,Et){if(0==je.length)return Et;if(0==Et.length)return je;let Je=0;return je.endsWith("/")&&Je++,Et.startsWith("/")&&Je++,2==Je?je+Et.substring(1):1==Je?je+Et:je+"/"+Et}function E(je){const Et=je.match(/#|\?|$/),Je=Et&&Et.index||je.length;return je.slice(0,Je-("/"===je[Je-1]?1:0))+je.slice(Je)}function U(je){return je&&"?"!==je[0]?"?"+je:je}let W=(()=>{class je{historyGo(Je){throw new Error("Not implemented")}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275prov=t.Yz7({token:je,factory:function(){return function j(je){const Et=(0,t.LFG)(d).location;return new ee((0,t.LFG)(R),Et&&Et.origin||"")}()},providedIn:"root"}),je})();const ne=new t.OlP("appBaseHref");let ee=(()=>{class je extends W{constructor(Je,Pt){if(super(),this._platformLocation=Je,this._removeListenerFns=[],null==Pt&&(Pt=this._platformLocation.getBaseHrefFromDOM()),null==Pt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Pt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}prepareExternalUrl(Je){return k(this._baseHref,Je)}path(Je=!1){const Pt=this._platformLocation.pathname+U(this._platformLocation.search),ri=this._platformLocation.hash;return ri&&Je?`${Pt}${ri}`:Pt}pushState(Je,Pt,ri,Mi){const Ii=this.prepareExternalUrl(ri+U(Mi));this._platformLocation.pushState(Je,Pt,Ii)}replaceState(Je,Pt,ri,Mi){const Ii=this.prepareExternalUrl(ri+U(Mi));this._platformLocation.replaceState(Je,Pt,Ii)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Je=0){var Pt,ri;null===(ri=(Pt=this._platformLocation).historyGo)||void 0===ri||ri.call(Pt,Je)}}return je.\u0275fac=function(Je){return new(Je||je)(t.LFG(R),t.LFG(ne,8))},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})(),de=(()=>{class je extends W{constructor(Je,Pt){super(),this._platformLocation=Je,this._baseHref="",this._removeListenerFns=[],null!=Pt&&(this._baseHref=Pt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}path(Je=!1){let Pt=this._platformLocation.hash;return null==Pt&&(Pt="#"),Pt.length>0?Pt.substring(1):Pt}prepareExternalUrl(Je){const Pt=k(this._baseHref,Je);return Pt.length>0?"#"+Pt:Pt}pushState(Je,Pt,ri,Mi){let Ii=this.prepareExternalUrl(ri+U(Mi));0==Ii.length&&(Ii=this._platformLocation.pathname),this._platformLocation.pushState(Je,Pt,Ii)}replaceState(Je,Pt,ri,Mi){let Ii=this.prepareExternalUrl(ri+U(Mi));0==Ii.length&&(Ii=this._platformLocation.pathname),this._platformLocation.replaceState(Je,Pt,Ii)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Je=0){var Pt,ri;null===(ri=(Pt=this._platformLocation).historyGo)||void 0===ri||ri.call(Pt,Je)}}return je.\u0275fac=function(Je){return new(Je||je)(t.LFG(R),t.LFG(ne,8))},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})(),te=(()=>{class je{constructor(Je,Pt){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=Je;const ri=this._platformStrategy.getBaseHref();this._platformLocation=Pt,this._baseHref=E($(ri)),this._platformStrategy.onPopState(Mi=>{this._subject.emit({url:this.path(!0),pop:!0,state:Mi.state,type:Mi.type})})}path(Je=!1){return this.normalize(this._platformStrategy.path(Je))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Je,Pt=""){return this.path()==this.normalize(Je+U(Pt))}normalize(Je){return je.stripTrailingSlash(function le(je,Et){return je&&Et.startsWith(je)?Et.substring(je.length):Et}(this._baseHref,$(Je)))}prepareExternalUrl(Je){return Je&&"/"!==Je[0]&&(Je="/"+Je),this._platformStrategy.prepareExternalUrl(Je)}go(Je,Pt="",ri=null){this._platformStrategy.pushState(ri,"",Je,Pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+U(Pt)),ri)}replaceState(Je,Pt="",ri=null){this._platformStrategy.replaceState(ri,"",Je,Pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+U(Pt)),ri)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Je=0){var Pt,ri;null===(ri=(Pt=this._platformStrategy).historyGo)||void 0===ri||ri.call(Pt,Je)}onUrlChange(Je){this._urlChangeListeners.push(Je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Pt=>{this._notifyUrlChangeListeners(Pt.url,Pt.state)}))}_notifyUrlChangeListeners(Je="",Pt){this._urlChangeListeners.forEach(ri=>ri(Je,Pt))}subscribe(Je,Pt,ri){return this._subject.subscribe({next:Je,error:Pt,complete:ri})}}return je.normalizeQueryParams=U,je.joinWithSlash=k,je.stripTrailingSlash=E,je.\u0275fac=function(Je){return new(Je||je)(t.LFG(W),t.LFG(R))},je.\u0275prov=t.Yz7({token:je,factory:function(){return function ie(){return new te((0,t.LFG)(W),(0,t.LFG)(R))}()},providedIn:"root"}),je})();function $(je){return je.replace(/\/index.html$/,"")}var C=(()=>((C=C||{})[C.Decimal=0]="Decimal",C[C.Percent=1]="Percent",C[C.Currency=2]="Currency",C[C.Scientific=3]="Scientific",C))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),u=(()=>((u=u||{})[u.Narrow=0]="Narrow",u[u.Abbreviated=1]="Abbreviated",u[u.Wide=2]="Wide",u[u.Short=3]="Short",u))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),v=(()=>((v=v||{})[v.Decimal=0]="Decimal",v[v.Group=1]="Group",v[v.List=2]="List",v[v.PercentSign=3]="PercentSign",v[v.PlusSign=4]="PlusSign",v[v.MinusSign=5]="MinusSign",v[v.Exponential=6]="Exponential",v[v.SuperscriptingExponent=7]="SuperscriptingExponent",v[v.PerMille=8]="PerMille",v[v.Infinity=9]="Infinity",v[v.NaN=10]="NaN",v[v.TimeSeparator=11]="TimeSeparator",v[v.CurrencyDecimal=12]="CurrencyDecimal",v[v.CurrencyGroup=13]="CurrencyGroup",v))();function J(je,Et){return we((0,t.cg1)(je)[t.wAp.DateFormat],Et)}function ue(je,Et){return we((0,t.cg1)(je)[t.wAp.TimeFormat],Et)}function xe(je,Et){return we((0,t.cg1)(je)[t.wAp.DateTimeFormat],Et)}function Pe(je,Et){const Je=(0,t.cg1)(je),Pt=Je[t.wAp.NumberSymbols][Et];if(void 0===Pt){if(Et===v.CurrencyDecimal)return Je[t.wAp.NumberSymbols][v.Decimal];if(Et===v.CurrencyGroup)return Je[t.wAp.NumberSymbols][v.Group]}return Pt}function ut(je){if(!je[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${je[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function we(je,Et){for(let Je=Et;Je>-1;Je--)if(void 0!==je[Je])return je[Je];throw new Error("Locale data API: locale data undefined")}function ye(je){const[Et,Je]=je.split(":");return{hours:+Et,minutes:+Je}}const fe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,He={},pt=/((?:[^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 et=(()=>((et=et||{})[et.Short=0]="Short",et[et.ShortGMT=1]="ShortGMT",et[et.Long=2]="Long",et[et.Extended=3]="Extended",et))(),Lt=(()=>((Lt=Lt||{})[Lt.FullYear=0]="FullYear",Lt[Lt.Month=1]="Month",Lt[Lt.Date=2]="Date",Lt[Lt.Hours=3]="Hours",Lt[Lt.Minutes=4]="Minutes",Lt[Lt.Seconds=5]="Seconds",Lt[Lt.FractionalSeconds=6]="FractionalSeconds",Lt[Lt.Day=7]="Day",Lt))(),di=(()=>((di=di||{})[di.DayPeriods=0]="DayPeriods",di[di.Days=1]="Days",di[di.Months=2]="Months",di[di.Eras=3]="Eras",di))();function Wt(je,Et,Je,Pt){let ri=function Ge(je){if(lt(je))return je;if("number"==typeof je&&!isNaN(je))return new Date(je);if("string"==typeof je){if(je=je.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(je)){const[ri,Mi=1,Ii=1]=je.split("-").map(tn=>+tn);return Gt(ri,Mi-1,Ii)}const Je=parseFloat(je);if(!isNaN(je-Je))return new Date(Je);let Pt;if(Pt=je.match(fe))return function ot(je){const Et=new Date(0);let Je=0,Pt=0;const ri=je[8]?Et.setUTCFullYear:Et.setFullYear,Mi=je[8]?Et.setUTCHours:Et.setHours;je[9]&&(Je=Number(je[9]+je[10]),Pt=Number(je[9]+je[11])),ri.call(Et,Number(je[1]),Number(je[2])-1,Number(je[3]));const Ii=Number(je[4]||0)-Je,tn=Number(je[5]||0)-Pt,tr=Number(je[6]||0),It=Math.floor(1e3*parseFloat("0."+(je[7]||0)));return Mi.call(Et,Ii,tn,tr,It),Et}(Pt)}const Et=new Date(je);if(!lt(Et))throw new Error(`Unable to convert "${je}" into a date`);return Et}(je);Et=ui(Je,Et)||Et;let tn,Ii=[];for(;Et;){if(tn=pt.exec(Et),!tn){Ii.push(Et);break}{Ii=Ii.concat(tn.slice(1));const li=Ii.pop();if(!li)break;Et=li}}let tr=ri.getTimezoneOffset();Pt&&(tr=nt(Pt,tr),ri=function Ee(je,Et,Je){const Pt=Je?-1:1,ri=je.getTimezoneOffset();return function Xe(je,Et){return(je=new Date(je.getTime())).setMinutes(je.getMinutes()+Et),je}(je,Pt*(nt(Et,ri)-ri))}(ri,Pt,!0));let It="";return Ii.forEach(li=>{const vt=function Ne(je){if(it[je])return it[je];let Et;switch(je){case"G":case"GG":case"GGG":Et=ei(di.Eras,u.Abbreviated);break;case"GGGG":Et=ei(di.Eras,u.Wide);break;case"GGGGG":Et=ei(di.Eras,u.Narrow);break;case"y":Et=tt(Lt.FullYear,1,0,!1,!0);break;case"yy":Et=tt(Lt.FullYear,2,0,!0,!0);break;case"yyy":Et=tt(Lt.FullYear,3,0,!1,!0);break;case"yyyy":Et=tt(Lt.FullYear,4,0,!1,!0);break;case"Y":Et=Ht(1);break;case"YY":Et=Ht(2,!0);break;case"YYY":Et=Ht(3);break;case"YYYY":Et=Ht(4);break;case"M":case"L":Et=tt(Lt.Month,1,1);break;case"MM":case"LL":Et=tt(Lt.Month,2,1);break;case"MMM":Et=ei(di.Months,u.Abbreviated);break;case"MMMM":Et=ei(di.Months,u.Wide);break;case"MMMMM":Et=ei(di.Months,u.Narrow);break;case"LLL":Et=ei(di.Months,u.Abbreviated,r.Standalone);break;case"LLLL":Et=ei(di.Months,u.Wide,r.Standalone);break;case"LLLLL":Et=ei(di.Months,u.Narrow,r.Standalone);break;case"w":Et=mt(1);break;case"ww":Et=mt(2);break;case"W":Et=mt(1,!0);break;case"d":Et=tt(Lt.Date,1);break;case"dd":Et=tt(Lt.Date,2);break;case"c":case"cc":Et=tt(Lt.Day,1);break;case"ccc":Et=ei(di.Days,u.Abbreviated,r.Standalone);break;case"cccc":Et=ei(di.Days,u.Wide,r.Standalone);break;case"ccccc":Et=ei(di.Days,u.Narrow,r.Standalone);break;case"cccccc":Et=ei(di.Days,u.Short,r.Standalone);break;case"E":case"EE":case"EEE":Et=ei(di.Days,u.Abbreviated);break;case"EEEE":Et=ei(di.Days,u.Wide);break;case"EEEEE":Et=ei(di.Days,u.Narrow);break;case"EEEEEE":Et=ei(di.Days,u.Short);break;case"a":case"aa":case"aaa":Et=ei(di.DayPeriods,u.Abbreviated);break;case"aaaa":Et=ei(di.DayPeriods,u.Wide);break;case"aaaaa":Et=ei(di.DayPeriods,u.Narrow);break;case"b":case"bb":case"bbb":Et=ei(di.DayPeriods,u.Abbreviated,r.Standalone,!0);break;case"bbbb":Et=ei(di.DayPeriods,u.Wide,r.Standalone,!0);break;case"bbbbb":Et=ei(di.DayPeriods,u.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":Et=ei(di.DayPeriods,u.Abbreviated,r.Format,!0);break;case"BBBB":Et=ei(di.DayPeriods,u.Wide,r.Format,!0);break;case"BBBBB":Et=ei(di.DayPeriods,u.Narrow,r.Format,!0);break;case"h":Et=tt(Lt.Hours,1,-12);break;case"hh":Et=tt(Lt.Hours,2,-12);break;case"H":Et=tt(Lt.Hours,1);break;case"HH":Et=tt(Lt.Hours,2);break;case"m":Et=tt(Lt.Minutes,1);break;case"mm":Et=tt(Lt.Minutes,2);break;case"s":Et=tt(Lt.Seconds,1);break;case"ss":Et=tt(Lt.Seconds,2);break;case"S":Et=tt(Lt.FractionalSeconds,1);break;case"SS":Et=tt(Lt.FractionalSeconds,2);break;case"SSS":Et=tt(Lt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Et=Re(et.Short);break;case"ZZZZZ":Et=Re(et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Et=Re(et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Et=Re(et.Long);break;default:return null}return it[je]=Et,Et}(li);It+=vt?vt(ri,Je,tr):"''"===li?"'":li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),It}function Gt(je,Et,Je){const Pt=new Date(0);return Pt.setFullYear(je,Et,Je),Pt.setHours(0,0,0),Pt}function ui(je,Et){const Je=function I(je){return(0,t.cg1)(je)[t.wAp.LocaleId]}(je);if(He[Je]=He[Je]||{},He[Je][Et])return He[Je][Et];let Pt="";switch(Et){case"shortDate":Pt=J(je,c.Short);break;case"mediumDate":Pt=J(je,c.Medium);break;case"longDate":Pt=J(je,c.Long);break;case"fullDate":Pt=J(je,c.Full);break;case"shortTime":Pt=ue(je,c.Short);break;case"mediumTime":Pt=ue(je,c.Medium);break;case"longTime":Pt=ue(je,c.Long);break;case"fullTime":Pt=ue(je,c.Full);break;case"short":const ri=ui(je,"shortTime"),Mi=ui(je,"shortDate");Pt=Ot(xe(je,c.Short),[ri,Mi]);break;case"medium":const Ii=ui(je,"mediumTime"),tn=ui(je,"mediumDate");Pt=Ot(xe(je,c.Medium),[Ii,tn]);break;case"long":const tr=ui(je,"longTime"),It=ui(je,"longDate");Pt=Ot(xe(je,c.Long),[tr,It]);break;case"full":const li=ui(je,"fullTime"),vt=ui(je,"fullDate");Pt=Ot(xe(je,c.Full),[li,vt])}return Pt&&(He[Je][Et]=Pt),Pt}function Ot(je,Et){return Et&&(je=je.replace(/\{([^}]+)}/g,function(Je,Pt){return null!=Et&&Pt in Et?Et[Pt]:Je})),je}function Nt(je,Et,Je="-",Pt,ri){let Mi="";(je<0||ri&&je<=0)&&(ri?je=1-je:(je=-je,Mi=Je));let Ii=String(je);for(;Ii.length<Et;)Ii="0"+Ii;return Pt&&(Ii=Ii.substr(Ii.length-Et)),Mi+Ii}function tt(je,Et,Je=0,Pt=!1,ri=!1){return function(Mi,Ii){let tn=function xt(je,Et){switch(je){case Lt.FullYear:return Et.getFullYear();case Lt.Month:return Et.getMonth();case Lt.Date:return Et.getDate();case Lt.Hours:return Et.getHours();case Lt.Minutes:return Et.getMinutes();case Lt.Seconds:return Et.getSeconds();case Lt.FractionalSeconds:return Et.getMilliseconds();case Lt.Day:return Et.getDay();default:throw new Error(`Unknown DateType value "${je}".`)}}(je,Mi);if((Je>0||tn>-Je)&&(tn+=Je),je===Lt.Hours)0===tn&&-12===Je&&(tn=12);else if(je===Lt.FractionalSeconds)return function gt(je,Et){return Nt(je,3).substr(0,Et)}(tn,Et);const tr=Pe(Ii,v.MinusSign);return Nt(tn,Et,tr,Pt,ri)}}function ei(je,Et,Je=r.Format,Pt=!1){return function(ri,Mi){return function Kt(je,Et,Je,Pt,ri,Mi){switch(Je){case di.Months:return function _(je,Et,Je){const Pt=(0,t.cg1)(je),Mi=we([Pt[t.wAp.MonthsFormat],Pt[t.wAp.MonthsStandalone]],Et);return we(Mi,Je)}(Et,ri,Pt)[je.getMonth()];case di.Days:return function n(je,Et,Je){const Pt=(0,t.cg1)(je),Mi=we([Pt[t.wAp.DaysFormat],Pt[t.wAp.DaysStandalone]],Et);return we(Mi,Je)}(Et,ri,Pt)[je.getDay()];case di.DayPeriods:const Ii=je.getHours(),tn=je.getMinutes();if(Mi){const It=function Ie(je){const Et=(0,t.cg1)(je);return ut(Et),(Et[t.wAp.ExtraData][2]||[]).map(Pt=>"string"==typeof Pt?ye(Pt):[ye(Pt[0]),ye(Pt[1])])}(Et),li=function De(je,Et,Je){const Pt=(0,t.cg1)(je);ut(Pt);const Mi=we([Pt[t.wAp.ExtraData][0],Pt[t.wAp.ExtraData][1]],Et)||[];return we(Mi,Je)||[]}(Et,ri,Pt),vt=It.findIndex(qt=>{if(Array.isArray(qt)){const[Ei,Wi]=qt,$e=Ii>=Ei.hours&&tn>=Ei.minutes,We=Ii<Wi.hours||Ii===Wi.hours&&tn<Wi.minutes;if(Ei.hours<Wi.hours){if($e&&We)return!0}else if($e||We)return!0}else if(qt.hours===Ii&&qt.minutes===tn)return!0;return!1});if(-1!==vt)return li[vt]}return function y(je,Et,Je){const Pt=(0,t.cg1)(je),Mi=we([Pt[t.wAp.DayPeriodsFormat],Pt[t.wAp.DayPeriodsStandalone]],Et);return we(Mi,Je)}(Et,ri,Pt)[Ii<12?0:1];case di.Eras:return function B(je,Et){return we((0,t.cg1)(je)[t.wAp.Eras],Et)}(Et,Pt)[je.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Je}`)}}(ri,Mi,je,Et,Je,Pt)}}function Re(je){return function(Et,Je,Pt){const ri=-1*Pt,Mi=Pe(Je,v.MinusSign),Ii=ri>0?Math.floor(ri/60):Math.ceil(ri/60);switch(je){case et.Short:return(ri>=0?"+":"")+Nt(Ii,2,Mi)+Nt(Math.abs(ri%60),2,Mi);case et.ShortGMT:return"GMT"+(ri>=0?"+":"")+Nt(Ii,1,Mi);case et.Long:return"GMT"+(ri>=0?"+":"")+Nt(Ii,2,Mi)+":"+Nt(Math.abs(ri%60),2,Mi);case et.Extended:return 0===Pt?"Z":(ri>=0?"+":"")+Nt(Ii,2,Mi)+":"+Nt(Math.abs(ri%60),2,Mi);default:throw new Error(`Unknown zone width "${je}"`)}}}function ht(je){return Gt(je.getFullYear(),je.getMonth(),je.getDate()+(4-je.getDay()))}function mt(je,Et=!1){return function(Je,Pt){let ri;if(Et){const Mi=new Date(Je.getFullYear(),Je.getMonth(),1).getDay()-1,Ii=Je.getDate();ri=1+Math.floor((Ii+Mi)/7)}else{const Mi=ht(Je),Ii=function ve(je){const Et=Gt(je,0,1).getDay();return Gt(je,0,1+(Et<=4?4:11)-Et)}(Mi.getFullYear()),tn=Mi.getTime()-Ii.getTime();ri=1+Math.round(tn/6048e5)}return Nt(ri,je,Pe(Pt,v.MinusSign))}}function Ht(je,Et=!1){return function(Je,Pt){return Nt(ht(Je).getFullYear(),je,Pe(Pt,v.MinusSign),Et)}}const it={};function nt(je,Et){je=je.replace(/:/g,"");const Je=Date.parse("Jan 01, 1970 00:00:00 "+je)/6e4;return isNaN(Je)?Et:Je}function lt(je){return je instanceof Date&&!isNaN(je.valueOf())}const Ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qe(je){const Et=parseInt(je);if(isNaN(Et))throw new Error("Invalid integer literal when parsing "+je);return Et}function Xi(je,Et){Et=encodeURIComponent(Et);for(const Je of je.split(";")){const Pt=Je.indexOf("="),[ri,Mi]=-1==Pt?[Je,""]:[Je.slice(0,Pt),Je.slice(Pt+1)];if(ri.trim()===Et)return decodeURIComponent(Mi)}return null}let Zi=(()=>{class je{constructor(Je,Pt,ri,Mi){this._iterableDiffers=Je,this._keyValueDiffers=Pt,this._ngEl=ri,this._renderer=Mi,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Je?Je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Je?Je.split(/\s+/):Je,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Je=this._iterableDiffer.diff(this._rawClass);Je&&this._applyIterableChanges(Je)}else if(this._keyValueDiffer){const Je=this._keyValueDiffer.diff(this._rawClass);Je&&this._applyKeyValueChanges(Je)}}_applyKeyValueChanges(Je){Je.forEachAddedItem(Pt=>this._toggleClass(Pt.key,Pt.currentValue)),Je.forEachChangedItem(Pt=>this._toggleClass(Pt.key,Pt.currentValue)),Je.forEachRemovedItem(Pt=>{Pt.previousValue&&this._toggleClass(Pt.key,!1)})}_applyIterableChanges(Je){Je.forEachAddedItem(Pt=>{if("string"!=typeof Pt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(Pt.item)}`);this._toggleClass(Pt.item,!0)}),Je.forEachRemovedItem(Pt=>this._toggleClass(Pt.item,!1))}_applyClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(Pt=>this._toggleClass(Pt,!0)):Object.keys(Je).forEach(Pt=>this._toggleClass(Pt,!!Je[Pt])))}_removeClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(Pt=>this._toggleClass(Pt,!1)):Object.keys(Je).forEach(Pt=>this._toggleClass(Pt,!1)))}_toggleClass(Je,Pt){(Je=Je.trim())&&Je.split(/\s+/g).forEach(ri=>{Pt?this._renderer.addClass(this._ngEl.nativeElement,ri):this._renderer.removeClass(this._ngEl.nativeElement,ri)})}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),je})();class mn{constructor(Et,Je,Pt,ri){this.$implicit=Et,this.ngForOf=Je,this.index=Pt,this.count=ri}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ti=(()=>{class je{constructor(Je,Pt,ri){this._viewContainer=Je,this._template=Pt,this._differs=ri,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Je){this._ngForOf=Je,this._ngForOfDirty=!0}set ngForTrackBy(Je){this._trackByFn=Je}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Je){Je&&(this._template=Je)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Je=this._ngForOf;!this._differ&&Je&&(this._differ=this._differs.find(Je).create(this.ngForTrackBy))}if(this._differ){const Je=this._differ.diff(this._ngForOf);Je&&this._applyChanges(Je)}}_applyChanges(Je){const Pt=this._viewContainer;Je.forEachOperation((ri,Mi,Ii)=>{if(null==ri.previousIndex)Pt.createEmbeddedView(this._template,new mn(ri.item,this._ngForOf,-1,-1),null===Ii?void 0:Ii);else if(null==Ii)Pt.remove(null===Mi?void 0:Mi);else if(null!==Mi){const tn=Pt.get(Mi);Pt.move(tn,Ii),Pi(tn,ri)}});for(let ri=0,Mi=Pt.length;ri<Mi;ri++){const tn=Pt.get(ri).context;tn.index=ri,tn.count=Mi,tn.ngForOf=this._ngForOf}Je.forEachIdentityChange(ri=>{Pi(Pt.get(ri.currentIndex),ri)})}static ngTemplateContextGuard(Je,Pt){return!0}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),je})();function Pi(je,Et){je.context.$implicit=Et.item}let Rt=(()=>{class je{constructor(Je,Pt){this._viewContainer=Je,this._context=new Zt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Pt}set ngIf(Je){this._context.$implicit=this._context.ngIf=Je,this._updateView()}set ngIfThen(Je){fi("ngIfThen",Je),this._thenTemplateRef=Je,this._thenViewRef=null,this._updateView()}set ngIfElse(Je){fi("ngIfElse",Je),this._elseTemplateRef=Je,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Je,Pt){return!0}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.s_b),t.Y36(t.Rgc))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),je})();class Zt{constructor(){this.$implicit=null,this.ngIf=null}}function fi(je,Et){if(Et&&!Et.createEmbeddedView)throw new Error(`${je} must be a TemplateRef, but received '${(0,t.AaK)(Et)}'.`)}class Ni{constructor(Et,Je){this._viewContainerRef=Et,this._templateRef=Je,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Et){Et&&!this._created?this.create():!Et&&this._created&&this.destroy()}}let ki=(()=>{class je{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Je){this._ngSwitch=Je,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Je)}_matchCase(Je){const Pt=Je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Pt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Pt}_updateDefaultCases(Je){if(this._defaultViews&&Je!==this._defaultUsed){this._defaultUsed=Je;for(let Pt=0;Pt<this._defaultViews.length;Pt++)this._defaultViews[Pt].enforceState(Je)}}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275dir=t.lG2({type:je,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),je})(),un=(()=>{class je{constructor(Je,Pt,ri){this.ngSwitch=ri,ri._addCase(),this._view=new Ni(Je,Pt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(ki,9))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),je})(),jn=(()=>{class je{constructor(Je,Pt,ri){ri._addDefault(new Ni(Je,Pt))}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(ki,9))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngSwitchDefault",""]]}),je})(),Si=(()=>{class je{constructor(Je,Pt,ri){this._ngEl=Je,this._differs=Pt,this._renderer=ri,this._ngStyle=null,this._differ=null}set ngStyle(Je){this._ngStyle=Je,!this._differ&&Je&&(this._differ=this._differs.find(Je).create())}ngDoCheck(){if(this._differ){const Je=this._differ.diff(this._ngStyle);Je&&this._applyChanges(Je)}}_setStyle(Je,Pt){const[ri,Mi]=Je.split(".");null!=(Pt=null!=Pt&&Mi?`${Pt}${Mi}`:Pt)?this._renderer.setStyle(this._ngEl.nativeElement,ri,Pt):this._renderer.removeStyle(this._ngEl.nativeElement,ri)}_applyChanges(Je){Je.forEachRemovedItem(Pt=>this._setStyle(Pt.key,null)),Je.forEachAddedItem(Pt=>this._setStyle(Pt.key,Pt.currentValue)),Je.forEachChangedItem(Pt=>this._setStyle(Pt.key,Pt.currentValue))}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),je})(),ji=(()=>{class je{constructor(Je){this._viewContainerRef=Je,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Je){if(Je.ngTemplateOutlet){const Pt=this._viewContainerRef;this._viewRef&&Pt.remove(Pt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Pt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.s_b))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.TTD]}),je})();function Kn(je,Et){return new t.vHH(2100,"")}class nr{createSubscription(Et,Je){return Et.subscribe({next:Je,error:Pt=>{throw Pt}})}dispose(Et){Et.unsubscribe()}onDestroy(Et){Et.unsubscribe()}}class lr{createSubscription(Et,Je){return Et.then(Je,Pt=>{throw Pt})}dispose(Et){}onDestroy(Et){}}const qr=new lr,zr=new nr;let ls=(()=>{class je{constructor(Je){this._ref=Je,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Je){return this._obj?Je!==this._obj?(this._dispose(),this.transform(Je)):this._latestValue:(Je&&this._subscribe(Je),this._latestValue)}_subscribe(Je){this._obj=Je,this._strategy=this._selectStrategy(Je),this._subscription=this._strategy.createSubscription(Je,Pt=>this._updateLatestValue(Je,Pt))}_selectStrategy(Je){if((0,t.QGY)(Je))return qr;if((0,t.F4k)(Je))return zr;throw Kn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Je,Pt){Je===this._obj&&(this._latestValue=Pt,this._ref.markForCheck())}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.sBO,16))},je.\u0275pipe=t.Yjl({name:"async",type:je,pure:!1}),je})(),Jr=(()=>{class je{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Kn();return Je.toLowerCase()}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275pipe=t.Yjl({name:"lowercase",type:je,pure:!0}),je})();const zs=/(?:[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 Ms=(()=>{class je{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Kn();return Je.replace(zs,Pt=>Pt[0].toUpperCase()+Pt.substr(1).toLowerCase())}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275pipe=t.Yjl({name:"titlecase",type:je,pure:!0}),je})(),cs=(()=>{class je{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Kn();return Je.toUpperCase()}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275pipe=t.Yjl({name:"uppercase",type:je,pure:!0}),je})();const Xr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let $r=(()=>{class je{constructor(Je,Pt){this.locale=Je,this.defaultTimezone=Pt}transform(Je,Pt="mediumDate",ri,Mi){var Ii;if(null==Je||""===Je||Je!=Je)return null;try{return Wt(Je,Pt,Mi||this.locale,null!==(Ii=null!=ri?ri:this.defaultTimezone)&&void 0!==Ii?Ii:void 0)}catch(tn){throw Kn()}}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.soG,16),t.Y36(Xr,24))},je.\u0275pipe=t.Yjl({name:"date",type:je,pure:!0}),je})(),Dr=(()=>{class je{transform(Je){return JSON.stringify(Je,null,2)}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275pipe=t.Yjl({name:"json",type:je,pure:!1}),je})(),Vr=(()=>{class je{constructor(Je){this.differs=Je,this.keyValues=[],this.compareFn=cr}transform(Je,Pt=cr){if(!Je||!(Je instanceof Map)&&"object"!=typeof Je)return null;this.differ||(this.differ=this.differs.find(Je).create());const ri=this.differ.diff(Je),Mi=Pt!==this.compareFn;return ri&&(this.keyValues=[],ri.forEachItem(Ii=>{this.keyValues.push(function Zn(je,Et){return{key:je,value:Et}}(Ii.key,Ii.currentValue))})),(ri||Mi)&&(this.keyValues.sort(Pt),this.compareFn=Pt),this.keyValues}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.aQg,16))},je.\u0275pipe=t.Yjl({name:"keyvalue",type:je,pure:!1}),je})();function cr(je,Et){const Je=je.key,Pt=Et.key;if(Je===Pt)return 0;if(void 0===Je)return 1;if(void 0===Pt)return-1;if(null===Je)return 1;if(null===Pt)return-1;if("string"==typeof Je&&"string"==typeof Pt)return Je<Pt?-1:1;if("number"==typeof Je&&"number"==typeof Pt)return Je-Pt;if("boolean"==typeof Je&&"boolean"==typeof Pt)return Je<Pt?-1:1;const ri=String(Je),Mi=String(Pt);return ri==Mi?0:ri<Mi?-1:1}let Ys=(()=>{class je{constructor(Je){this._locale=Je}transform(Je,Pt,ri){if(!function ms(je){return!(null==je||""===je||je!=je)}(Je))return null;ri=ri||this._locale;try{return function Tt(je,Et,Je){return function zi(je,Et,Je,Pt,ri,Mi,Ii=!1){let tn="",tr=!1;if(isFinite(je)){let It=function yt(je){let Pt,ri,Mi,Ii,tn,Et=Math.abs(je)+"",Je=0;for((ri=Et.indexOf("."))>-1&&(Et=Et.replace(".","")),(Mi=Et.search(/e/i))>0?(ri<0&&(ri=Mi),ri+=+Et.slice(Mi+1),Et=Et.substring(0,Mi)):ri<0&&(ri=Et.length),Mi=0;"0"===Et.charAt(Mi);Mi++);if(Mi===(tn=Et.length))Pt=[0],ri=1;else{for(tn--;"0"===Et.charAt(tn);)tn--;for(ri-=Mi,Pt=[],Ii=0;Mi<=tn;Mi++,Ii++)Pt[Ii]=Number(Et.charAt(Mi))}return ri>22&&(Pt=Pt.splice(0,21),Je=ri-1,ri=1),{digits:Pt,exponent:Je,integerLen:ri}}(je);Ii&&(It=function Ke(je){if(0===je.digits[0])return je;const Et=je.digits.length-je.integerLen;return je.exponent?je.exponent+=2:(0===Et?je.digits.push(0,0):1===Et&&je.digits.push(0),je.integerLen+=2),je}(It));let li=Et.minInt,vt=Et.minFrac,qt=Et.maxFrac;if(Mi){const Dt=Mi.match(Ct);if(null===Dt)throw new Error(`${Mi} is not a valid digit info`);const yi=Dt[1],qi=Dt[3],Bn=Dt[5];null!=yi&&(li=qe(yi)),null!=qi&&(vt=qe(qi)),null!=Bn?qt=qe(Bn):null!=qi&&vt>qt&&(qt=vt)}!function re(je,Et,Je){if(Et>Je)throw new Error(`The minimum number of digits after fraction (${Et}) is higher than the maximum (${Je}).`);let Pt=je.digits,ri=Pt.length-je.integerLen;const Mi=Math.min(Math.max(Et,ri),Je);let Ii=Mi+je.integerLen,tn=Pt[Ii];if(Ii>0){Pt.splice(Math.max(je.integerLen,Ii));for(let vt=Ii;vt<Pt.length;vt++)Pt[vt]=0}else{ri=Math.max(0,ri),je.integerLen=1,Pt.length=Math.max(1,Ii=Mi+1),Pt[0]=0;for(let vt=1;vt<Ii;vt++)Pt[vt]=0}if(tn>=5)if(Ii-1<0){for(let vt=0;vt>Ii;vt--)Pt.unshift(0),je.integerLen++;Pt.unshift(1),je.integerLen++}else Pt[Ii-1]++;for(;ri<Math.max(0,Mi);ri++)Pt.push(0);let tr=0!==Mi;const It=Et+je.integerLen,li=Pt.reduceRight(function(vt,qt,Ei,Wi){return Wi[Ei]=(qt+=vt)<10?qt:qt-10,tr&&(0===Wi[Ei]&&Ei>=It?Wi.pop():tr=!1),qt>=10?1:0},0);li&&(Pt.unshift(li),je.integerLen++)}(It,vt,qt);let Ei=It.digits,Wi=It.integerLen;const $e=It.exponent;let We=[];for(tr=Ei.every(Dt=>!Dt);Wi<li;Wi++)Ei.unshift(0);for(;Wi<0;Wi++)Ei.unshift(0);Wi>0?We=Ei.splice(Wi,Ei.length):(We=Ei,Ei=[0]);const Fe=[];for(Ei.length>=Et.lgSize&&Fe.unshift(Ei.splice(-Et.lgSize,Ei.length).join(""));Ei.length>Et.gSize;)Fe.unshift(Ei.splice(-Et.gSize,Ei.length).join(""));Ei.length&&Fe.unshift(Ei.join("")),tn=Fe.join(Pe(Je,Pt)),We.length&&(tn+=Pe(Je,ri)+We.join("")),$e&&(tn+=Pe(Je,v.Exponential)+"+"+$e)}else tn=Pe(Je,v.Infinity);return tn=je<0&&!tr?Et.negPre+tn+Et.negSuf:Et.posPre+tn+Et.posSuf,tn}(je,function _e(je,Et="-"){const Je={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Pt=je.split(";"),ri=Pt[0],Mi=Pt[1],Ii=-1!==ri.indexOf(".")?ri.split("."):[ri.substring(0,ri.lastIndexOf("0")+1),ri.substring(ri.lastIndexOf("0")+1)],tn=Ii[0],tr=Ii[1]||"";Je.posPre=tn.substr(0,tn.indexOf("#"));for(let li=0;li<tr.length;li++){const vt=tr.charAt(li);"0"===vt?Je.minFrac=Je.maxFrac=li+1:"#"===vt?Je.maxFrac=li+1:Je.posSuf+=vt}const It=tn.split(",");if(Je.gSize=It[1]?It[1].length:0,Je.lgSize=It[2]||It[1]?(It[2]||It[1]).length:0,Mi){const li=ri.length-Je.posPre.length-Je.posSuf.length,vt=Mi.indexOf("#");Je.negPre=Mi.substr(0,vt).replace(/'/g,""),Je.negSuf=Mi.substr(vt+li).replace(/'/g,"")}else Je.negPre=Et+Je.posPre,Je.negSuf=Je.posSuf;return Je}(function Se(je,Et){return(0,t.cg1)(je)[t.wAp.NumberFormats][Et]}(Et,C.Decimal),Pe(Et,v.MinusSign)),Et,v.Group,v.Decimal,Je)}(function dr(je){if("string"==typeof je&&!isNaN(Number(je)-parseFloat(je)))return Number(je);if("number"!=typeof je)throw new Error(`${je} is not a number`);return je}(Je),ri,Pt)}catch(Mi){throw Kn()}}}return je.\u0275fac=function(Je){return new(Je||je)(t.Y36(t.soG,16))},je.\u0275pipe=t.Yjl({name:"number",type:je,pure:!0}),je})();let gs=(()=>{class je{transform(Je,Pt,ri){if(null==Je)return null;if(!this.supports(Je))throw Kn();return Je.slice(Pt,ri)}supports(Je){return"string"==typeof Je||Array.isArray(Je)}}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275pipe=t.Yjl({name:"slice",type:je,pure:!1}),je})(),Tr=(()=>{class je{}return je.\u0275fac=function(Je){return new(Je||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({}),je})();const is="browser";function or(je){return je===is}function ns(je){return"server"===je}let Wr=(()=>{class je{}return je.\u0275prov=(0,t.Yz7)({token:je,providedIn:"root",factory:()=>new Or((0,t.LFG)(d),window)}),je})();class Or{constructor(Et,Je){this.document=Et,this.window=Je,this.offset=()=>[0,0]}setOffset(Et){this.offset=Array.isArray(Et)?()=>Et:Et}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Et){this.supportsScrolling()&&this.window.scrollTo(Et[0],Et[1])}scrollToAnchor(Et){if(!this.supportsScrolling())return;const Je=function us(je,Et){const Je=je.getElementById(Et)||je.getElementsByName(Et)[0];if(Je)return Je;if("function"==typeof je.createTreeWalker&&je.body&&(je.body.createShadowRoot||je.body.attachShadow)){const Pt=je.createTreeWalker(je.body,NodeFilter.SHOW_ELEMENT);let ri=Pt.currentNode;for(;ri;){const Mi=ri.shadowRoot;if(Mi){const Ii=Mi.getElementById(Et)||Mi.querySelector(`[name="${Et}"]`);if(Ii)return Ii}ri=Pt.nextNode()}}return null}(this.document,Et);Je&&(this.scrollToElement(Je),Je.focus())}setHistoryScrollRestoration(Et){if(this.supportScrollRestoration()){const Je=this.window.history;Je&&Je.scrollRestoration&&(Je.scrollRestoration=Et)}}scrollToElement(Et){const Je=Et.getBoundingClientRect(),Pt=Je.left+this.window.pageXOffset,ri=Je.top+this.window.pageYOffset,Mi=this.offset();this.window.scrollTo(Pt-Mi[0],ri-Mi[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Et=kr(this.window.history)||kr(Object.getPrototypeOf(this.window.history));return!(!Et||!Et.writable&&!Et.set)}catch(Et){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Et){return!1}}}function kr(je){return Object.getOwnPropertyDescriptor(je,"scrollRestoration")}class Vn{}},8138:(ze,K,p)=>{"use strict";p.d(K,{JF:()=>ye,LE:()=>W,TP:()=>I,eN:()=>v});var t=p(9808),e=p(5e3),f=p(9646),M=p(8306),s=p(4351),b=p(9300),d=p(4004);class R{}class h{}class L{constructor(fe){this.normalizedNames=new Map,this.lazyUpdate=null,fe?this.lazyInit="string"==typeof fe?()=>{this.headers=new Map,fe.split("\n").forEach(He=>{const pt=He.indexOf(":");if(pt>0){const et=He.slice(0,pt),Lt=et.toLowerCase(),di=He.slice(pt+1).trim();this.maybeSetNormalizedName(et,Lt),this.headers.has(Lt)?this.headers.get(Lt).push(di):this.headers.set(Lt,[di])}})}:()=>{this.headers=new Map,Object.keys(fe).forEach(He=>{let pt=fe[He];const et=He.toLowerCase();"string"==typeof pt&&(pt=[pt]),pt.length>0&&(this.headers.set(et,pt),this.maybeSetNormalizedName(He,et))})}:this.headers=new Map}has(fe){return this.init(),this.headers.has(fe.toLowerCase())}get(fe){this.init();const He=this.headers.get(fe.toLowerCase());return He&&He.length>0?He[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(fe){return this.init(),this.headers.get(fe.toLowerCase())||null}append(fe,He){return this.clone({name:fe,value:He,op:"a"})}set(fe,He){return this.clone({name:fe,value:He,op:"s"})}delete(fe,He){return this.clone({name:fe,value:He,op:"d"})}maybeSetNormalizedName(fe,He){this.normalizedNames.has(He)||this.normalizedNames.set(He,fe)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(fe=>this.applyUpdate(fe)),this.lazyUpdate=null))}copyFrom(fe){fe.init(),Array.from(fe.headers.keys()).forEach(He=>{this.headers.set(He,fe.headers.get(He)),this.normalizedNames.set(He,fe.normalizedNames.get(He))})}clone(fe){const He=new L;return He.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,He.lazyUpdate=(this.lazyUpdate||[]).concat([fe]),He}applyUpdate(fe){const He=fe.name.toLowerCase();switch(fe.op){case"a":case"s":let pt=fe.value;if("string"==typeof pt&&(pt=[pt]),0===pt.length)return;this.maybeSetNormalizedName(fe.name,He);const et=("a"===fe.op?this.headers.get(He):void 0)||[];et.push(...pt),this.headers.set(He,et);break;case"d":const Lt=fe.value;if(Lt){let di=this.headers.get(He);if(!di)return;di=di.filter(Wt=>-1===Lt.indexOf(Wt)),0===di.length?(this.headers.delete(He),this.normalizedNames.delete(He)):this.headers.set(He,di)}else this.headers.delete(He),this.normalizedNames.delete(He)}}forEach(fe){this.init(),Array.from(this.normalizedNames.keys()).forEach(He=>fe(this.normalizedNames.get(He),this.headers.get(He)))}}class w{encodeKey(fe){return E(fe)}encodeValue(fe){return E(fe)}decodeKey(fe){return decodeURIComponent(fe)}decodeValue(fe){return decodeURIComponent(fe)}}const S=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function E(be){return encodeURIComponent(be).replace(S,(fe,He)=>{var pt;return null!==(pt=k[He])&&void 0!==pt?pt:fe})}function U(be){return`${be}`}class W{constructor(fe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=fe.encoder||new w,fe.fromString){if(fe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(be,fe){const He=new Map;return be.length>0&&be.replace(/^\?/,"").split("&").forEach(et=>{const Lt=et.indexOf("="),[di,Wt]=-1==Lt?[fe.decodeKey(et),""]:[fe.decodeKey(et.slice(0,Lt)),fe.decodeValue(et.slice(Lt+1))],Gt=He.get(di)||[];Gt.push(Wt),He.set(di,Gt)}),He}(fe.fromString,this.encoder)}else fe.fromObject?(this.map=new Map,Object.keys(fe.fromObject).forEach(He=>{const pt=fe.fromObject[He];this.map.set(He,Array.isArray(pt)?pt:[pt])})):this.map=null}has(fe){return this.init(),this.map.has(fe)}get(fe){this.init();const He=this.map.get(fe);return He?He[0]:null}getAll(fe){return this.init(),this.map.get(fe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(fe,He){return this.clone({param:fe,value:He,op:"a"})}appendAll(fe){const He=[];return Object.keys(fe).forEach(pt=>{const et=fe[pt];Array.isArray(et)?et.forEach(Lt=>{He.push({param:pt,value:Lt,op:"a"})}):He.push({param:pt,value:et,op:"a"})}),this.clone(He)}set(fe,He){return this.clone({param:fe,value:He,op:"s"})}delete(fe,He){return this.clone({param:fe,value:He,op:"d"})}toString(){return this.init(),this.keys().map(fe=>{const He=this.encoder.encodeKey(fe);return this.map.get(fe).map(pt=>He+"="+this.encoder.encodeValue(pt)).join("&")}).filter(fe=>""!==fe).join("&")}clone(fe){const He=new W({encoder:this.encoder});return He.cloneFrom=this.cloneFrom||this,He.updates=(this.updates||[]).concat(fe),He}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(fe=>this.map.set(fe,this.cloneFrom.map.get(fe))),this.updates.forEach(fe=>{switch(fe.op){case"a":case"s":const He=("a"===fe.op?this.map.get(fe.param):void 0)||[];He.push(U(fe.value)),this.map.set(fe.param,He);break;case"d":if(void 0===fe.value){this.map.delete(fe.param);break}{let pt=this.map.get(fe.param)||[];const et=pt.indexOf(U(fe.value));-1!==et&&pt.splice(et,1),pt.length>0?this.map.set(fe.param,pt):this.map.delete(fe.param)}}}),this.cloneFrom=this.updates=null)}}class ne{constructor(){this.map=new Map}set(fe,He){return this.map.set(fe,He),this}get(fe){return this.map.has(fe)||this.map.set(fe,fe.defaultValue()),this.map.get(fe)}delete(fe){return this.map.delete(fe),this}has(fe){return this.map.has(fe)}keys(){return this.map.keys()}}function de(be){return"undefined"!=typeof ArrayBuffer&&be instanceof ArrayBuffer}function te(be){return"undefined"!=typeof Blob&&be instanceof Blob}function ie(be){return"undefined"!=typeof FormData&&be instanceof FormData}class ${constructor(fe,He,pt,et){let Lt;if(this.url=He,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=fe.toUpperCase(),function ee(be){switch(be){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||et?(this.body=void 0!==pt?pt:null,Lt=et):Lt=pt,Lt&&(this.reportProgress=!!Lt.reportProgress,this.withCredentials=!!Lt.withCredentials,Lt.responseType&&(this.responseType=Lt.responseType),Lt.headers&&(this.headers=Lt.headers),Lt.context&&(this.context=Lt.context),Lt.params&&(this.params=Lt.params)),this.headers||(this.headers=new L),this.context||(this.context=new ne),this.params){const di=this.params.toString();if(0===di.length)this.urlWithParams=He;else{const Wt=He.indexOf("?");this.urlWithParams=He+(-1===Wt?"?":Wt<He.length-1?"&":"")+di}}else this.params=new W,this.urlWithParams=He}serializeBody(){return null===this.body?null:de(this.body)||te(this.body)||ie(this.body)||function le(be){return"undefined"!=typeof URLSearchParams&&be instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof W?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||ie(this.body)?null:te(this.body)?this.body.type||null:de(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof W?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(fe={}){var He;const pt=fe.method||this.method,et=fe.url||this.url,Lt=fe.responseType||this.responseType,di=void 0!==fe.body?fe.body:this.body,Wt=void 0!==fe.withCredentials?fe.withCredentials:this.withCredentials,Gt=void 0!==fe.reportProgress?fe.reportProgress:this.reportProgress;let ui=fe.headers||this.headers,Ot=fe.params||this.params;const Nt=null!==(He=fe.context)&&void 0!==He?He:this.context;return void 0!==fe.setHeaders&&(ui=Object.keys(fe.setHeaders).reduce((gt,tt)=>gt.set(tt,fe.setHeaders[tt]),ui)),fe.setParams&&(Ot=Object.keys(fe.setParams).reduce((gt,tt)=>gt.set(tt,fe.setParams[tt]),Ot)),new $(pt,et,di,{params:Ot,headers:ui,context:Nt,reportProgress:Gt,responseType:Lt,withCredentials:Wt})}}var ge=(()=>((ge=ge||{})[ge.Sent=0]="Sent",ge[ge.UploadProgress=1]="UploadProgress",ge[ge.ResponseHeader=2]="ResponseHeader",ge[ge.DownloadProgress=3]="DownloadProgress",ge[ge.Response=4]="Response",ge[ge.User=5]="User",ge))();class C{constructor(fe,He=200,pt="OK"){this.headers=fe.headers||new L,this.status=void 0!==fe.status?fe.status:He,this.statusText=fe.statusText||pt,this.url=fe.url||null,this.ok=this.status>=200&&this.status<300}}class i extends C{constructor(fe={}){super(fe),this.type=ge.ResponseHeader}clone(fe={}){return new i({headers:fe.headers||this.headers,status:void 0!==fe.status?fe.status:this.status,statusText:fe.statusText||this.statusText,url:fe.url||this.url||void 0})}}class r extends C{constructor(fe={}){super(fe),this.type=ge.Response,this.body=void 0!==fe.body?fe.body:null}clone(fe={}){return new r({body:void 0!==fe.body?fe.body:this.body,headers:fe.headers||this.headers,status:void 0!==fe.status?fe.status:this.status,statusText:fe.statusText||this.statusText,url:fe.url||this.url||void 0})}}class u extends C{constructor(fe){super(fe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${fe.url||"(unknown url)"}`:`Http failure response for ${fe.url||"(unknown url)"}: ${fe.status} ${fe.statusText}`,this.error=fe.error||null}}function c(be,fe){return{body:fe,headers:be.headers,context:be.context,observe:be.observe,params:be.params,reportProgress:be.reportProgress,responseType:be.responseType,withCredentials:be.withCredentials}}let v=(()=>{class be{constructor(He){this.handler=He}request(He,pt,et={}){let Lt;if(He instanceof $)Lt=He;else{let Gt,ui;Gt=et.headers instanceof L?et.headers:new L(et.headers),et.params&&(ui=et.params instanceof W?et.params:new W({fromObject:et.params})),Lt=new $(He,pt,void 0!==et.body?et.body:null,{headers:Gt,context:et.context,params:ui,reportProgress:et.reportProgress,responseType:et.responseType||"json",withCredentials:et.withCredentials})}const di=(0,f.of)(Lt).pipe((0,s.b)(Gt=>this.handler.handle(Gt)));if(He instanceof $||"events"===et.observe)return di;const Wt=di.pipe((0,b.h)(Gt=>Gt instanceof r));switch(et.observe||"body"){case"body":switch(Lt.responseType){case"arraybuffer":return Wt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return Wt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return Wt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return Wt.pipe((0,d.U)(Gt=>Gt.body))}case"response":return Wt;default:throw new Error(`Unreachable: unhandled observe type ${et.observe}}`)}}delete(He,pt={}){return this.request("DELETE",He,pt)}get(He,pt={}){return this.request("GET",He,pt)}head(He,pt={}){return this.request("HEAD",He,pt)}jsonp(He,pt){return this.request("JSONP",He,{params:(new W).append(pt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(He,pt={}){return this.request("OPTIONS",He,pt)}patch(He,pt,et={}){return this.request("PATCH",He,c(et,pt))}post(He,pt,et={}){return this.request("POST",He,c(et,pt))}put(He,pt,et={}){return this.request("PUT",He,c(et,pt))}}return be.\u0275fac=function(He){return new(He||be)(e.LFG(R))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})();class T{constructor(fe,He){this.next=fe,this.interceptor=He}handle(fe){return this.interceptor.intercept(fe,this.next)}}const I=new e.OlP("HTTP_INTERCEPTORS");let y=(()=>{class be{intercept(He,pt){return pt.handle(He)}}return be.\u0275fac=function(He){return new(He||be)},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})();const Pe=/^\)\]\}',?\n/;let Q=(()=>{class be{constructor(He){this.xhrFactory=He}handle(He){if("JSONP"===He.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(pt=>{const et=this.xhrFactory.build();if(et.open(He.method,He.urlWithParams),He.withCredentials&&(et.withCredentials=!0),He.headers.forEach((tt,xt)=>et.setRequestHeader(tt,xt.join(","))),He.headers.has("Accept")||et.setRequestHeader("Accept","application/json, text/plain, */*"),!He.headers.has("Content-Type")){const tt=He.detectContentTypeHeader();null!==tt&&et.setRequestHeader("Content-Type",tt)}if(He.responseType){const tt=He.responseType.toLowerCase();et.responseType="json"!==tt?tt:"text"}const Lt=He.serializeBody();let di=null;const Wt=()=>{if(null!==di)return di;const tt=et.statusText||"OK",xt=new L(et.getAllResponseHeaders()),ei=function Se(be){return"responseURL"in be&&be.responseURL?be.responseURL:/^X-Request-URL:/m.test(be.getAllResponseHeaders())?be.getResponseHeader("X-Request-URL"):null}(et)||He.url;return di=new i({headers:xt,status:et.status,statusText:tt,url:ei}),di},Gt=()=>{let{headers:tt,status:xt,statusText:ei,url:Kt}=Wt(),Re=null;204!==xt&&(Re=void 0===et.response?et.responseText:et.response),0===xt&&(xt=Re?200:0);let Oe=xt>=200&&xt<300;if("json"===He.responseType&&"string"==typeof Re){const ce=Re;Re=Re.replace(Pe,"");try{Re=""!==Re?JSON.parse(Re):null}catch(ve){Re=ce,Oe&&(Oe=!1,Re={error:ve,text:Re})}}Oe?(pt.next(new r({body:Re,headers:tt,status:xt,statusText:ei,url:Kt||void 0})),pt.complete()):pt.error(new u({error:Re,headers:tt,status:xt,statusText:ei,url:Kt||void 0}))},ui=tt=>{const{url:xt}=Wt(),ei=new u({error:tt,status:et.status||0,statusText:et.statusText||"Unknown Error",url:xt||void 0});pt.error(ei)};let Ot=!1;const Nt=tt=>{Ot||(pt.next(Wt()),Ot=!0);let xt={type:ge.DownloadProgress,loaded:tt.loaded};tt.lengthComputable&&(xt.total=tt.total),"text"===He.responseType&&!!et.responseText&&(xt.partialText=et.responseText),pt.next(xt)},gt=tt=>{let xt={type:ge.UploadProgress,loaded:tt.loaded};tt.lengthComputable&&(xt.total=tt.total),pt.next(xt)};return et.addEventListener("load",Gt),et.addEventListener("error",ui),et.addEventListener("timeout",ui),et.addEventListener("abort",ui),He.reportProgress&&(et.addEventListener("progress",Nt),null!==Lt&&et.upload&&et.upload.addEventListener("progress",gt)),et.send(Lt),pt.next({type:ge.Sent}),()=>{et.removeEventListener("error",ui),et.removeEventListener("abort",ui),et.removeEventListener("load",Gt),et.removeEventListener("timeout",ui),He.reportProgress&&(et.removeEventListener("progress",Nt),null!==Lt&&et.upload&&et.upload.removeEventListener("progress",gt)),et.readyState!==et.DONE&&et.abort()}})}}return be.\u0275fac=function(He){return new(He||be)(e.LFG(t.JF))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})();const Ue=new e.OlP("XSRF_COOKIE_NAME"),Ce=new e.OlP("XSRF_HEADER_NAME");class q{}let Ae=(()=>{class be{constructor(He,pt,et){this.doc=He,this.platform=pt,this.cookieName=et,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const He=this.doc.cookie||"";return He!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(He,this.cookieName),this.lastCookieString=He),this.lastToken}}return be.\u0275fac=function(He){return new(He||be)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Ue))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})(),ut=(()=>{class be{constructor(He,pt){this.tokenService=He,this.headerName=pt}intercept(He,pt){const et=He.url.toLowerCase();if("GET"===He.method||"HEAD"===He.method||et.startsWith("http://")||et.startsWith("https://"))return pt.handle(He);const Lt=this.tokenService.getToken();return null!==Lt&&!He.headers.has(this.headerName)&&(He=He.clone({headers:He.headers.set(this.headerName,Lt)})),pt.handle(He)}}return be.\u0275fac=function(He){return new(He||be)(e.LFG(q),e.LFG(Ce))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})(),Ie=(()=>{class be{constructor(He,pt){this.backend=He,this.injector=pt,this.chain=null}handle(He){if(null===this.chain){const pt=this.injector.get(I,[]);this.chain=pt.reduceRight((et,Lt)=>new T(et,Lt),this.backend)}return this.chain.handle(He)}}return be.\u0275fac=function(He){return new(He||be)(e.LFG(h),e.LFG(e.zs3))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})(),we=(()=>{class be{static disable(){return{ngModule:be,providers:[{provide:ut,useClass:y}]}}static withOptions(He={}){return{ngModule:be,providers:[He.cookieName?{provide:Ue,useValue:He.cookieName}:[],He.headerName?{provide:Ce,useValue:He.headerName}:[]]}}}return be.\u0275fac=function(He){return new(He||be)},be.\u0275mod=e.oAB({type:be}),be.\u0275inj=e.cJS({providers:[ut,{provide:I,useExisting:ut,multi:!0},{provide:q,useClass:Ae},{provide:Ue,useValue:"XSRF-TOKEN"},{provide:Ce,useValue:"X-XSRF-TOKEN"}]}),be})(),ye=(()=>{class be{}return be.\u0275fac=function(He){return new(He||be)},be.\u0275mod=e.oAB({type:be}),be.\u0275inj=e.cJS({providers:[v,{provide:R,useClass:Ie},Q,{provide:h,useExisting:Q}],imports:[[we.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),be})()},5e3:(ze,K,p)=>{"use strict";p.d(K,{$8M:()=>Wl,$Z:()=>k4,AFp:()=>I8,ALo:()=>Xp,AaK:()=>R,AsE:()=>R1,BQk:()=>x0,CHM:()=>Fa,CRH:()=>u8,CZH:()=>bd,CqO:()=>M0,DdM:()=>Wp,Dn7:()=>gf,EJc:()=>j5,EiD:()=>fr,EpF:()=>P4,F$t:()=>kh,F4k:()=>C0,FYo:()=>Fp,FiY:()=>ic,G48:()=>fg,Gf:()=>d8,GfV:()=>Vp,GkF:()=>b0,Gpc:()=>w,Gre:()=>ef,HOy:()=>Q4,Hsn:()=>Ph,Ikx:()=>Rn,JOm:()=>Wa,JVY:()=>j0,Jf7:()=>h3,L6k:()=>h2,LAX:()=>p2,LFG:()=>Os,LSH:()=>g2,Lbi:()=>G5,MAs:()=>pa,MGl:()=>O1,NdJ:()=>I1,O4$:()=>yr,OlP:()=>jr,Oqu:()=>j4,PXZ:()=>z8,PiD:()=>no,Q6J:()=>A1,QGY:()=>Ca,Qsj:()=>zp,R0b:()=>fo,RDi:()=>kr,Rgc:()=>Fc,SBq:()=>V1,Sil:()=>q5,Suo:()=>md,TTD:()=>ms,TgZ:()=>D1,Tol:()=>G4,Udp:()=>V4,VKq:()=>ff,VLi:()=>og,W1O:()=>Cf,WFA:()=>w0,WLB:()=>Yp,X6Q:()=>Z8,XFs:()=>De,Xpm:()=>ht,Y36:()=>Fl,YKP:()=>df,YNc:()=>w1,Yjl:()=>ot,Yz7:()=>J,ZZ4:()=>jf,_Bn:()=>kp,_UZ:()=>Vl,_Vd:()=>rd,_c5:()=>Tg,_uU:()=>D0,aQg:()=>Kf,c2e:()=>W5,cJS:()=>xe,cg1:()=>Ns,d8E:()=>Sn,dDg:()=>N8,deG:()=>Do,dqk:()=>ui,eBb:()=>f2,eFA:()=>Hf,ekj:()=>B4,f3M:()=>ec,g9A:()=>If,h0i:()=>B1,hGG:()=>Ag,hij:()=>I0,iGM:()=>c8,ifc:()=>et,ip1:()=>D8,kEZ:()=>pf,kL8:()=>Hr,kcU:()=>Hs,lG2:()=>Ge,lcZ:()=>$p,lnq:()=>K4,mCW:()=>yo,n5z:()=>Zl,n_E:()=>cd,oAB:()=>nt,oJD:()=>q0,oxw:()=>Ih,pB0:()=>K0,q3G:()=>bs,qLn:()=>hc,qOj:()=>m4,qZA:()=>zl,qzn:()=>Fo,s9C:()=>E0,sBO:()=>wd,sIi:()=>b1,s_b:()=>Ul,soG:()=>Of,tBr:()=>Us,tb:()=>k8,tp0:()=>Xs,uIk:()=>M1,vHH:()=>E,vpe:()=>jo,wAp:()=>cn,xi3:()=>e8,xp6:()=>E3,yhl:()=>u2,ynx:()=>y0,z2F:()=>Bf,z3N:()=>Pa,zSh:()=>s4,zs3:()=>oo});var t=p(7579),e=p(727),f=p(8306),M=p(6451),s=p(3099);function b(a){for(let l in a)if(a[l]===b)return l;throw Error("Could not find renamed property on target object.")}function d(a,l){for(const g in l)l.hasOwnProperty(g)&&!a.hasOwnProperty(g)&&(a[g]=l[g])}function R(a){if("string"==typeof a)return a;if(Array.isArray(a))return"["+a.map(R).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return`${a.overriddenName}`;if(a.name)return`${a.name}`;const l=a.toString();if(null==l)return""+l;const g=l.indexOf("\n");return-1===g?l:l.substring(0,g)}function h(a,l){return null==a||""===a?null===l?"":l:null==l||""===l?a:a+" "+l}const L=b({__forward_ref__:b});function w(a){return a.__forward_ref__=w,a.toString=function(){return R(this())},a}function D(a){return S(a)?a():a}function S(a){return"function"==typeof a&&a.hasOwnProperty(L)&&a.__forward_ref__===w}class E extends Error{constructor(l,g){super(function U(a,l){return`NG0${Math.abs(a)}${l?": "+l:""}`}(l,g)),this.code=l}}function W(a){return"string"==typeof a?a:null==a?"":String(a)}function j(a){return"function"==typeof a?a.name||a.toString():"object"==typeof a&&null!=a&&"function"==typeof a.type?a.type.name||a.type.toString():W(a)}function te(a,l){const g=l?` in ${l}`:"";throw new E(-201,`No provider for ${j(a)} found${g}`)}function n(a,l){null==a&&function _(a,l,g,A){throw new Error(`ASSERTION ERROR: ${a}`+(null==A?"":` [Expected=> ${g} ${A} ${l} <=Actual]`))}(l,a,null,"!=")}function J(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}}function xe(a){return{providers:a.providers||[],imports:a.imports||[]}}function Pe(a){return Se(a,q)||Se(a,ut)}function Se(a,l){return a.hasOwnProperty(l)?a[l]:null}function Ce(a){return a&&(a.hasOwnProperty(Ae)||a.hasOwnProperty(Ie))?a[Ae]:null}const q=b({\u0275prov:b}),Ae=b({\u0275inj:b}),ut=b({ngInjectableDef:b}),Ie=b({ngInjectorDef:b});var De=(()=>((De=De||{})[De.Default=0]="Default",De[De.Host=1]="Host",De[De.Self=2]="Self",De[De.SkipSelf=4]="SkipSelf",De[De.Optional=8]="Optional",De))();let ae;function ye(a){const l=ae;return ae=a,l}function Y(a,l,g){const A=Pe(a);return A&&"root"==A.providedIn?void 0===A.value?A.value=A.factory():A.value:g&De.Optional?null:void 0!==l?l:void te(R(a),"Injector")}function be(a){return{toString:a}.toString()}var fe=(()=>((fe=fe||{})[fe.OnPush=0]="OnPush",fe[fe.Default=1]="Default",fe))(),et=(()=>{return(a=et||(et={}))[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom",et;var a})();const Lt="undefined"!=typeof globalThis&&globalThis,di="undefined"!=typeof window&&window,Wt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ui=Lt||"undefined"!=typeof global&&global||di||Wt,gt={},tt=[],xt=b({\u0275cmp:b}),ei=b({\u0275dir:b}),Kt=b({\u0275pipe:b}),Re=b({\u0275mod:b}),Oe=b({\u0275fac:b}),ce=b({__NG_ELEMENT_ID__:b});let ve=0;function ht(a){return be(()=>{const g={},A={type:a.type,providersResolver:null,decls:a.decls,vars:a.vars,factory:null,template:a.template||null,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:a.exportAs||null,onPush:a.changeDetection===fe.OnPush,directiveDefs:null,pipeDefs:null,selectors:a.selectors||tt,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||et.Emulated,id:"c",styles:a.styles||tt,_:null,setInput:null,schemas:a.schemas||null,tView:null},F=a.directives,G=a.features,oe=a.pipes;return A.id+=ve++,A.inputs=Ee(a.inputs,g),A.outputs=Ee(a.outputs),G&&G.forEach(Te=>Te(A)),A.directiveDefs=F?()=>("function"==typeof F?F():F).map(Ht):null,A.pipeDefs=oe?()=>("function"==typeof oe?oe():oe).map(it):null,A})}function Ht(a){return lt(a)||function Ct(a){return a[ei]||null}(a)}function it(a){return function mi(a){return a[Kt]||null}(a)}const Ne={};function nt(a){return be(()=>{const l={type:a.type,bootstrap:a.bootstrap||tt,declarations:a.declarations||tt,imports:a.imports||tt,exports:a.exports||tt,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null};return null!=a.id&&(Ne[a.id]=a.type),l})}function Ee(a,l){if(null==a)return gt;const g={};for(const A in a)if(a.hasOwnProperty(A)){let F=a[A],G=F;Array.isArray(F)&&(G=F[1],F=F[0]),g[F]=A,l&&(l[F]=G)}return g}const Ge=ht;function ot(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,onDestroy:a.type.prototype.ngOnDestroy||null}}function lt(a){return a[xt]||null}function Jt(a,l){const g=a[Re]||null;if(!g&&!0===l)throw new Error(`Type ${R(a)} does not have '\u0275mod' property.`);return g}function ki(a){return Array.isArray(a)&&"object"==typeof a[1]}function un(a){return Array.isArray(a)&&!0===a[1]}function jn(a){return 0!=(8&a.flags)}function Nn(a){return 2==(2&a.flags)}function $n(a){return 1==(1&a.flags)}function _n(a){return null!==a.template}function Si(a){return 0!=(512&a[2])}function Zr(a,l){return a.hasOwnProperty(Oe)?a[Oe]:null}class js{constructor(l,g,A){this.previousValue=l,this.currentValue=g,this.firstChange=A}isFirstChange(){return this.firstChange}}function ms(){return dr}function dr(a){return a.type.prototype.ngOnChanges&&(a.setInput=Ir),gs}function gs(){const a=is(this),l=null==a?void 0:a.current;if(l){const g=a.previous;if(g===gt)a.previous=l;else for(let A in l)g[A]=l[A];a.current=null,this.ngOnChanges(l)}}function Ir(a,l,g,A){const F=is(a)||function Ss(a,l){return a[Tr]=l}(a,{previous:gt,current:null}),G=F.current||(F.current={}),oe=F.previous,Te=this.declaredInputs[g],Ze=oe[Te];G[Te]=new js(Ze&&Ze.currentValue,l,oe===gt),a[A]=l}ms.ngInherit=!0;const Tr="__ngSimpleChanges__";function is(a){return a[Tr]||null}let Or;function kr(a){Or=a}function us(){return void 0!==Or?Or:"undefined"!=typeof document?document:void 0}function Vn(a){return!!a.listen}const je={createRenderer:(a,l)=>us()};function Je(a){for(;Array.isArray(a);)a=a[0];return a}function Mi(a,l){return Je(l[a])}function Ii(a,l){return Je(l[a.index])}function tr(a,l){return a.data[l]}function It(a,l){return a[l]}function li(a,l){const g=l[a];return ki(g)?g:g[0]}function vt(a){return 4==(4&a[2])}function qt(a){return 128==(128&a[2])}function Wi(a,l){return null==l?null:a[l]}function $e(a){a[18]=0}function We(a,l){a[5]+=l;let g=a,A=a[3];for(;null!==A&&(1===l&&1===g[5]||-1===l&&0===g[5]);)A[5]+=l,g=A,A=A[3]}const Fe={lFrame:kn(null),bindingsEnabled:!0};function ta(){return Fe.bindingsEnabled}function Hi(){return Fe.lFrame.lView}function Wn(){return Fe.lFrame.tView}function Fa(a){return Fe.lFrame.contextLView=a,a[8]}function wr(){let a=$a();for(;null!==a&&64===a.type;)a=a.parent;return a}function $a(){return Fe.lFrame.currentTNode}function Ts(a,l){const g=Fe.lFrame;g.currentTNode=a,g.isParent=l}function La(){return Fe.lFrame.isParent}function Da(){Fe.lFrame.isParent=!1}function Ur(){const a=Fe.lFrame;let l=a.bindingRootIndex;return-1===l&&(l=a.bindingRootIndex=a.tView.bindingStartIndex),l}function hs(){return Fe.lFrame.bindingIndex}function se(){return Fe.lFrame.bindingIndex++}function pe(a){const l=Fe.lFrame,g=l.bindingIndex;return l.bindingIndex=l.bindingIndex+a,g}function zt(a,l){const g=Fe.lFrame;g.bindingIndex=g.bindingRootIndex=a,ni(l)}function ni(a){Fe.lFrame.currentDirectiveIndex=a}function gi(a){const l=Fe.lFrame.currentDirectiveIndex;return-1===l?null:a[l]}function Oi(){return Fe.lFrame.currentQueryIndex}function en(a){Fe.lFrame.currentQueryIndex=a}function hn(a){const l=a[1];return 2===l.type?l.declTNode:1===l.type?a[6]:null}function Ln(a,l,g){if(g&De.SkipSelf){let F=l,G=a;for(;!(F=F.parent,null!==F||g&De.Host||(F=hn(G),null===F||(G=G[15],10&F.type))););if(null===F)return!1;l=F,a=G}const A=Fe.lFrame=En();return A.currentTNode=l,A.lView=a,!0}function zn(a){const l=En(),g=a[1];Fe.lFrame=l,l.currentTNode=g.firstChild,l.lView=a,l.tView=g,l.contextLView=a,l.bindingIndex=g.bindingStartIndex,l.inI18n=!1}function En(){const a=Fe.lFrame,l=null===a?null:a.child;return null===l?kn(a):l}function kn(a){const l={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:a,child:null,inI18n:!1};return null!==a&&(a.child=l),l}function rr(){const a=Fe.lFrame;return Fe.lFrame=a.parent,a.currentTNode=null,a.lView=null,a}const Pr=rr;function Sr(){const a=rr();a.isParent=!0,a.tView=null,a.selectedIndex=-1,a.contextLView=null,a.elementDepthCount=0,a.currentDirectiveIndex=-1,a.currentNamespace=null,a.bindingRootIndex=-1,a.bindingIndex=-1,a.currentQueryIndex=0}function br(){return Fe.lFrame.selectedIndex}function Yr(a){Fe.lFrame.selectedIndex=a}function Gn(){const a=Fe.lFrame;return tr(a.tView,a.selectedIndex)}function yr(){Fe.lFrame.currentNamespace="svg"}function Hs(){!function wa(){Fe.lFrame.currentNamespace=null}()}function ya(a,l){for(let g=l.directiveStart,A=l.directiveEnd;g<A;g++){const G=a.data[g].type.prototype,{ngAfterContentInit:oe,ngAfterContentChecked:Te,ngAfterViewInit:Ze,ngAfterViewChecked:ft,ngOnDestroy:At}=G;oe&&(a.contentHooks||(a.contentHooks=[])).push(-g,oe),Te&&((a.contentHooks||(a.contentHooks=[])).push(g,Te),(a.contentCheckHooks||(a.contentCheckHooks=[])).push(g,Te)),Ze&&(a.viewHooks||(a.viewHooks=[])).push(-g,Ze),ft&&((a.viewHooks||(a.viewHooks=[])).push(g,ft),(a.viewCheckHooks||(a.viewCheckHooks=[])).push(g,ft)),null!=At&&(a.destroyHooks||(a.destroyHooks=[])).push(g,At)}}function xa(a,l,g){Tn(a,l,3,g)}function dn(a,l,g,A){(3&a[2])===g&&Tn(a,l,g,A)}function xn(a,l){let g=a[2];(3&g)===l&&(g&=2047,g+=1,a[2]=g)}function Tn(a,l,g,A){const G=null!=A?A:-1,oe=l.length-1;let Te=0;for(let Ze=void 0!==A?65535&a[18]:0;Ze<oe;Ze++)if("number"==typeof l[Ze+1]){if(Te=l[Ze],null!=A&&Te>=A)break}else l[Ze]<0&&(a[18]+=65536),(Te<G||-1==G)&&(Jn(a,g,l,Ze),a[18]=(4294901760&a[18])+Ze+2),Ze++}function Jn(a,l,g,A){const F=g[A]<0,G=g[A+1],Te=a[F?-g[A]:g[A]];if(F){if(a[2]>>11<a[18]>>16&&(3&a[2])===l){a[2]+=2048;try{G.call(Te)}finally{}}}else try{G.call(Te)}finally{}}class Ls{constructor(l,g,A){this.factory=l,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=A}}function pi(a,l,g){const A=Vn(a);let F=0;for(;F<g.length;){const G=g[F];if("number"==typeof G){if(0!==G)break;F++;const oe=g[F++],Te=g[F++],Ze=g[F++];A?a.setAttribute(l,Te,Ze,oe):l.setAttributeNS(oe,Te,Ze)}else{const oe=G,Te=g[++F];Di(oe)?A&&a.setProperty(l,oe,Te):A?a.setAttribute(l,oe,Te):l.setAttribute(oe,Te),F++}}return F}function _i(a){return 3===a||4===a||6===a}function Di(a){return 64===a.charCodeAt(0)}function Fi(a,l){if(null!==l&&0!==l.length)if(null===a||0===a.length)a=l.slice();else{let g=-1;for(let A=0;A<l.length;A++){const F=l[A];"number"==typeof F?g=F:0===g||ln(a,g,F,null,-1===g||2===g?l[++A]:null)}}return a}function ln(a,l,g,A,F){let G=0,oe=a.length;if(-1===l)oe=-1;else for(;G<a.length;){const Te=a[G++];if("number"==typeof Te){if(Te===l){oe=-1;break}if(Te>l){oe=G-1;break}}}for(;G<a.length;){const Te=a[G];if("number"==typeof Te)break;if(Te===g){if(null===A)return void(null!==F&&(a[G+1]=F));if(A===a[G+1])return void(a[G+2]=F)}G++,null!==A&&G++,null!==F&&G++}-1!==oe&&(a.splice(oe,0,l),G=oe+1),a.splice(G++,0,g),null!==A&&a.splice(G++,0,A),null!==F&&a.splice(G++,0,F)}function rn(a){return-1!==a}function fn(a){return 32767&a}function ir(a,l){let g=function Qn(a){return a>>16}(a),A=l;for(;g>0;)A=A[15],g--;return A}let ss=!0;function Ve(a){const l=ss;return ss=a,l}let ct=0;function Qt(a,l){const g=Li(a,l);if(-1!==g)return g;const A=l[1];A.firstCreatePass&&(a.injectorIndex=l.length,si(A.data,a),si(l,null),si(A.blueprint,null));const F=an(a,l),G=a.injectorIndex;if(rn(F)){const oe=fn(F),Te=ir(F,l),Ze=Te[1].data;for(let ft=0;ft<8;ft++)l[G+ft]=Te[oe+ft]|Ze[oe+ft]}return l[G+8]=F,G}function si(a,l){a.push(0,0,0,0,0,0,0,0,l)}function Li(a,l){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===l[a.injectorIndex+8]?-1:a.injectorIndex}function an(a,l){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;let g=0,A=null,F=l;for(;null!==F;){const G=F[1],oe=G.type;if(A=2===oe?G.declTNode:1===oe?F[6]:null,null===A)return-1;if(g++,F=F[15],-1!==A.injectorIndex)return A.injectorIndex|g<<16}return-1}function In(a,l,g){!function kt(a,l,g){let A;"string"==typeof g?A=g.charCodeAt(0)||0:g.hasOwnProperty(ce)&&(A=g[ce]),null==A&&(A=g[ce]=ct++);const F=255&A;l.data[a+(F>>5)]|=1<<F}(a,l,g)}function _r(a,l,g){if(g&De.Optional)return a;te(l,"NodeInjector")}function hr(a,l,g,A){if(g&De.Optional&&void 0===A&&(A=null),0==(g&(De.Self|De.Host))){const F=a[9],G=ye(void 0);try{return F?F.get(l,A,g&De.Optional):Y(l,A,g&De.Optional)}finally{ye(G)}}return _r(A,l,g)}function oa(a,l,g,A=De.Default,F){if(null!==a){const G=function Bc(a){if("string"==typeof a)return a.charCodeAt(0)||0;const l=a.hasOwnProperty(ce)?a[ce]:void 0;return"number"==typeof l?l>=0?255&l:Ko:l}(g);if("function"==typeof G){if(!Ln(l,a,A))return A&De.Host?_r(F,g,A):hr(l,g,A,F);try{const oe=G(A);if(null!=oe||A&De.Optional)return oe;te(g)}finally{Pr()}}else if("number"==typeof G){let oe=null,Te=Li(a,l),Ze=-1,ft=A&De.Host?l[16][6]:null;for((-1===Te||A&De.SkipSelf)&&(Ze=-1===Te?an(a,l):l[Te+8],-1!==Ze&&Z1(A,!1)?(oe=l[1],Te=fn(Ze),l=ir(Ze,l)):Te=-1);-1!==Te;){const At=l[1];if(eo(G,Te,At.data)){const Yt=Qo(Te,l,g,oe,A,ft);if(Yt!==Ia)return Yt}Ze=l[Te+8],-1!==Ze&&Z1(A,l[1].data[Te+8]===ft)&&eo(G,Te,l)?(oe=At,Te=fn(Ze),l=ir(Ze,l)):Te=-1}}}return hr(l,g,A,F)}const Ia={};function Ko(){return new qo(wr(),Hi())}function Qo(a,l,g,A,F,G){const oe=l[1],Te=oe.data[a+8],At=Ds(Te,oe,g,null==A?Nn(Te)&&ss:A!=oe&&0!=(3&Te.type),F&De.Host&&G===Te);return null!==At?Ua(l,oe,At,Te):Ia}function Ds(a,l,g,A,F){const G=a.providerIndexes,oe=l.data,Te=1048575&G,Ze=a.directiveStart,At=G>>20,ci=F?Te+At:a.directiveEnd;for(let vi=A?Te:Te+At;vi<ci;vi++){const Ri=oe[vi];if(vi<Ze&&g===Ri||vi>=Ze&&Ri.type===g)return vi}if(F){const vi=oe[Ze];if(vi&&_n(vi)&&vi.type===g)return Ze}return null}function Ua(a,l,g,A){let F=a[g];const G=l.data;if(function Gr(a){return a instanceof Ls}(F)){const oe=F;oe.resolving&&function ne(a,l){const g=l?`. Dependency path: ${l.join(" > ")} > ${a}`:"";throw new E(-200,`Circular dependency in DI detected for ${a}${g}`)}(j(G[g]));const Te=Ve(oe.canSeeViewProviders);oe.resolving=!0;const Ze=oe.injectImpl?ye(oe.injectImpl):null;Ln(a,A,De.Default);try{F=a[g]=oe.factory(void 0,G,a,A),l.firstCreatePass&&g>=A.directiveStart&&function As(a,l,g){const{ngOnChanges:A,ngOnInit:F,ngDoCheck:G}=l.type.prototype;if(A){const oe=dr(l);(g.preOrderHooks||(g.preOrderHooks=[])).push(a,oe),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(a,oe)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-a,F),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(a,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(a,G))}(g,G[g],l)}finally{null!==Ze&&ye(Ze),Ve(Te),oe.resolving=!1,Pr()}}return F}function eo(a,l,g){return!!(g[l+(a>>5)]&1<<a)}function Z1(a,l){return!(a&De.Self||a&De.Host&&l)}class qo{constructor(l,g){this._tNode=l,this._lView=g}get(l,g,A){return oa(this._tNode,this._lView,l,A,g)}}function Zl(a){return be(()=>{const l=a.prototype.constructor,g=l[Oe]||pl(l),A=Object.prototype;let F=Object.getPrototypeOf(a.prototype).constructor;for(;F&&F!==A;){const G=F[Oe]||pl(F);if(G&&G!==g)return G;F=Object.getPrototypeOf(F)}return G=>new G})}function pl(a){return S(a)?()=>{const l=pl(D(a));return l&&l()}:Zr(a)}function Wl(a){return function bn(a,l){if("class"===l)return a.classes;if("style"===l)return a.styles;const g=a.attrs;if(g){const A=g.length;let F=0;for(;F<A;){const G=g[F];if(_i(G))break;if(0===G)F+=2;else if("number"==typeof G)for(F++;F<A&&"string"==typeof g[F];)F++;else{if(G===l)return g[F+1];F+=2}}}return null}(wr(),a)}const Lo="__parameters__";function Xo(a,l,g){return be(()=>{const A=function Yl(a){return function(...g){if(a){const A=a(...g);for(const F in A)this[F]=A[F]}}}(l);function F(...G){if(this instanceof F)return A.apply(this,G),this;const oe=new F(...G);return Te.annotation=oe,Te;function Te(Ze,ft,At){const Yt=Ze.hasOwnProperty(Lo)?Ze[Lo]:Object.defineProperty(Ze,Lo,{value:[]})[Lo];for(;Yt.length<=At;)Yt.push(null);return(Yt[At]=Yt[At]||[]).push(oe),Ze}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=a,F.annotationCls=F,F})}class jr{constructor(l,g){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=J({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Do=new jr("AnalyzeForEntryComponents");function la(a,l){void 0===l&&(l=a);for(let g=0;g<a.length;g++){let A=a[g];Array.isArray(A)?(l===a&&(l=a.slice(0,g)),la(A,l)):l!==a&&l.push(A)}return l}function sr(a,l){a.forEach(g=>Array.isArray(g)?sr(g,l):l(g))}function Kl(a,l,g){l>=a.length?a.push(g):a.splice(l,0,g)}function gl(a,l){return l>=a.length-1?a.pop():a.splice(l,1)[0]}function $o(a,l){const g=[];for(let A=0;A<a;A++)g.push(l);return g}function Js(a,l,g){let A=io(a,l);return A>=0?a[1|A]=g:(A=~A,function X1(a,l,g,A){let F=a.length;if(F==l)a.push(g,A);else if(1===F)a.push(A,a[0]),a[0]=g;else{for(F--,a.push(a[F-1],a[F]);F>l;)a[F]=a[F-2],F--;a[l]=g,a[l+1]=A}}(a,A,l,g)),A}function el(a,l){const g=io(a,l);if(g>=0)return a[1|g]}function io(a,l){return function mo(a,l,g){let A=0,F=a.length>>g;for(;F!==A;){const G=A+(F-A>>1),oe=a[G<<g];if(l===oe)return G<<g;oe>l?F=G:A=G+1}return~(F<<g)}(a,l,1)}const go={},yl="__NG_DI_FLAG__",Po="ngTempTokenPath",Xl=/\n/gm,tl="__source",e2=b({provide:String,useValue:b});let xl;function No(a){const l=xl;return xl=a,l}function Ro(a,l=De.Default){if(void 0===xl)throw new E(203,"");return null===xl?Y(a,void 0,l):xl.get(a,l&De.Optional?null:void 0,l)}function Os(a,l=De.Default){return(function we(){return ae}()||Ro)(D(a),l)}const ec=Os;function Zc(a){const l=[];for(let g=0;g<a.length;g++){const A=D(a[g]);if(Array.isArray(A)){if(0===A.length)throw new E(900,"");let F,G=De.Default;for(let oe=0;oe<A.length;oe++){const Te=A[oe],Ze=Wc(Te);"number"==typeof Ze?-1===Ze?F=Te.token:G|=Ze:F=Te}l.push(Os(F,G))}else l.push(Os(A))}return l}function _o(a,l){return a[yl]=l,a.prototype[yl]=l,a}function Wc(a){return a[yl]}const Us=_o(Xo("Inject",a=>({token:a})),-1),ic=_o(Xo("Optional"),8),no=_o(Xo("Self"),2),Xs=_o(Xo("SkipSelf"),4);let ka,Ml;function vo(a){var l;return(null===(l=function sc(){if(void 0===ka&&(ka=null,ui.trustedTypes))try{ka=ui.trustedTypes.createPolicy("angular",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch(a){}return ka}())||void 0===l?void 0:l.createHTML(a))||a}function ac(a){var l;return(null===(l=function Kc(){if(void 0===Ml&&(Ml=null,ui.trustedTypes))try{Ml=ui.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch(a){}return Ml}())||void 0===l?void 0:l.createHTML(a))||a}class ca{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class oc extends ca{getTypeName(){return"HTML"}}class sl extends ca{getTypeName(){return"Style"}}class c2 extends ca{getTypeName(){return"Script"}}class d2 extends ca{getTypeName(){return"URL"}}class Ho extends ca{getTypeName(){return"ResourceURL"}}function Pa(a){return a instanceof ca?a.changingThisBreaksApplicationSecurity:a}function Fo(a,l){const g=u2(a);if(null!=g&&g!==l){if("ResourceURL"===g&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===l}function u2(a){return a instanceof ca&&a.getTypeName()||null}function j0(a){return new oc(a)}function h2(a){return new sl(a)}function f2(a){return new c2(a)}function p2(a){return new d2(a)}function K0(a){return new Ho(a)}class lc{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l="<body><remove></remove>"+l;try{const g=(new window.DOMParser).parseFromString(vo(l),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(l):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class cc{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const A=this.inertDocument.createElement("body");g.appendChild(A)}}getInertBodyElement(l){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=vo(l),g;const A=this.inertDocument.createElement("body");return A.innerHTML=vo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(A),A}stripCustomNsAttrs(l){const g=l.attributes;for(let F=g.length-1;0<F;F--){const oe=g.item(F).name;("xmlns:ns1"===oe||0===oe.indexOf("ns1:"))&&l.removeAttribute(oe)}let A=l.firstChild;for(;A;)A.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(A),A=A.nextSibling}}const dc=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Q0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function yo(a){return(a=String(a)).match(dc)||a.match(Q0)?a:"unsafe:"+a}function Za(a){const l={};for(const g of a.split(","))l[g]=!0;return l}function xo(...a){const l={};for(const g of a)for(const A in g)g.hasOwnProperty(A)&&(l[A]=!0);return l}const Xc=Za("area,br,col,hr,img,wbr"),Z=Za("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Le=Za("rp,rt"),jt=xo(Xc,xo(Z,Za("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")),xo(Le,Za("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")),xo(Le,Z)),Vi=Za("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),On=Za("srcset"),fs=xo(Vi,On,Za("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Za("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")),$s=Za("script,style,template");class da{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(l){let g=l.firstChild,A=!0;for(;g;)if(g.nodeType===Node.ELEMENT_NODE?A=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,A&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let F=this.checkClobberedElement(g,g.nextSibling);if(F){g=F;break}g=this.checkClobberedElement(g,g.parentNode)}return this.buf.join("")}startElement(l){const g=l.nodeName.toLowerCase();if(!jt.hasOwnProperty(g))return this.sanitizedSomething=!0,!$s.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);const A=l.attributes;for(let F=0;F<A.length;F++){const G=A.item(F),oe=G.name,Te=oe.toLowerCase();if(!fs.hasOwnProperty(Te)){this.sanitizedSomething=!0;continue}let Ze=G.value;Vi[Te]&&(Ze=yo(Ze)),On[Te]&&(a=Ze,Ze=(a=String(a)).split(",").map(l=>yo(l.trim())).join(", ")),this.buf.push(" ",oe,'="',ea(Ze),'"')}var a;return this.buf.push(">"),!0}endElement(l){const g=l.nodeName.toLowerCase();jt.hasOwnProperty(g)&&!Xc.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}chars(l){this.buf.push(ea(l))}checkClobberedElement(l,g){if(g&&(l.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return g}}const ua=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ar=/([^\#-~ |!])/g;function ea(a){return a.replace(/&/g,"&amp;").replace(ua,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(ar,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Pn;function fr(a,l){let g=null;try{Pn=Pn||function qc(a){const l=new cc(a);return function m2(){try{return!!(new window.DOMParser).parseFromString(vo(""),"text/html")}catch(a){return!1}}()?new lc(l):l}(a);let A=l?String(l):"";g=Pn.getInertBodyElement(A);let F=5,G=A;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,A=G,G=g.innerHTML,g=Pn.getInertBodyElement(A)}while(A!==G);return vo((new da).sanitizeChildren(ks(g)||g))}finally{if(g){const A=ks(g)||g;for(;A.firstChild;)A.removeChild(A.firstChild)}}}function ks(a){return"content"in a&&function Rd(a){return a.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===a.nodeName}(a)?a.content:null}var bs=(()=>((bs=bs||{})[bs.NONE=0]="NONE",bs[bs.HTML=1]="HTML",bs[bs.STYLE=2]="STYLE",bs[bs.SCRIPT=3]="SCRIPT",bs[bs.URL=4]="URL",bs[bs.RESOURCE_URL=5]="RESOURCE_URL",bs))();function q0(a){const l=Sl();return l?ac(l.sanitize(bs.HTML,a)||""):Fo(a,"HTML")?ac(Pa(a)):fr(us(),W(a))}function g2(a){const l=Sl();return l?l.sanitize(bs.URL,a)||"":Fo(a,"URL")?Pa(a):yo(W(a))}function Sl(){const a=Hi();return a&&a[12]}const v2="__ngContext__";function ra(a,l){a[v2]=l}function e1(a){const l=function uc(a){return a[v2]||null}(a);return l?Array.isArray(l)?l:l.lView:null}function t1(a){return a.ngOriginalError}function Yd(a,...l){a.error(...l)}class hc{constructor(){this._console=console}handleError(l){const g=this._findOriginalError(l),A=function a3(a){return a&&a.ngErrorLogger||Yd}(l);A(this._console,"ERROR",l),g&&A(this._console,"ORIGINAL ERROR",g)}_findOriginalError(l){let g=l&&t1(l);for(;g&&t1(g);)g=t1(g);return g||null}}const u3=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ui))();function h3(a){return a.ownerDocument.defaultView}function ro(a){return a instanceof Function?a():a}var Wa=(()=>((Wa=Wa||{})[Wa.Important=1]="Important",Wa[Wa.DashCase=2]="DashCase",Wa))();function M2(a,l){return undefined(a,l)}function El(a){const l=a[3];return un(l)?l[3]:l}function E2(a){return nu(a[13])}function p3(a){return nu(a[4])}function nu(a){for(;null!==a&&!un(a);)a=a[4];return a}function Tl(a,l,g,A,F){if(null!=A){let G,oe=!1;un(A)?G=A:ki(A)&&(oe=!0,A=A[0]);const Te=Je(A);0===a&&null!==g?null==F?pc(l,g,Te):ol(l,g,Te,F||null,!0):1===a&&null!==g?ol(l,g,Te,F||null,!0):2===a?function P2(a,l,g){const A=ll(a,l);A&&function du(a,l,g,A){Vn(a)?a.removeChild(l,g,A):l.removeChild(g)}(a,A,l,g)}(l,Te,oe):3===a&&l.destroyNode(Te),null!=G&&function b3(a,l,g,A,F){const G=g[7];G!==Je(g)&&Tl(l,a,A,G,F);for(let Te=10;Te<g.length;Te++){const Ze=g[Te];gc(Ze[1],Ze,a,l,A,G)}}(l,a,G,g,F)}}function Vo(a,l,g){if(Vn(a))return a.createElement(l,g);{const A=null!==g?function Wr(a){const l=a.toLowerCase();return"svg"===l?"http://www.w3.org/2000/svg":"math"===l?"http://www.w3.org/1998/MathML/":null}(g):null;return null===A?a.createElement(l):a.createElementNS(A,l)}}function L2(a,l){const g=a[9],A=g.indexOf(l),F=l[3];1024&l[2]&&(l[2]&=-1025,We(F,-1)),g.splice(A,1)}function Bo(a,l){if(a.length<=10)return;const g=10+l,A=a[g];if(A){const F=A[17];null!==F&&F!==a&&L2(F,A),l>0&&(a[g-1][4]=A[4]);const G=gl(a,10+l);!function A2(a,l){gc(a,l,l[11],2,null,null),l[0]=null,l[6]=null}(A[1],A);const oe=G[19];null!==oe&&oe.detachView(G[1]),A[3]=null,A[4]=null,A[2]&=-129}return A}function lu(a,l){if(!(256&l[2])){const g=l[11];Vn(g)&&g.destroyNode&&gc(a,l,g,3,null,null),function au(a){let l=a[13];if(!l)return D2(a[1],a);for(;l;){let g=null;if(ki(l))g=l[13];else{const A=l[10];A&&(g=A)}if(!g){for(;l&&!l[4]&&l!==a;)ki(l)&&D2(l[1],l),l=l[3];null===l&&(l=a),ki(l)&&D2(l[1],l),g=l&&l[4]}l=g}}(l)}}function D2(a,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function cu(a,l){let g;if(null!=a&&null!=(g=a.destroyHooks))for(let A=0;A<g.length;A+=2){const F=l[g[A]];if(!(F instanceof Ls)){const G=g[A+1];if(Array.isArray(G))for(let oe=0;oe<G.length;oe+=2){const Te=F[G[oe]],Ze=G[oe+1];try{Ze.call(Te)}finally{}}else try{G.call(F)}finally{}}}}(a,l),function _3(a,l){const g=a.cleanup,A=l[7];let F=-1;if(null!==g)for(let G=0;G<g.length-1;G+=2)if("string"==typeof g[G]){const oe=g[G+1],Te="function"==typeof oe?oe(l):Je(l[oe]),Ze=A[F=g[G+2]],ft=g[G+3];"boolean"==typeof ft?Te.removeEventListener(g[G],Ze,ft):ft>=0?A[F=ft]():A[F=-ft].unsubscribe(),G+=2}else{const oe=A[F=g[G+1]];g[G].call(oe)}if(null!==A){for(let G=F+1;G<A.length;G++)A[G]();l[7]=null}}(a,l),1===l[1].type&&Vn(l[11])&&l[11].destroy();const g=l[17];if(null!==g&&un(l[3])){g!==l[3]&&L2(g,l);const A=l[19];null!==A&&A.detachView(a)}}}function I2(a,l,g){return function v3(a,l,g){let A=l;for(;null!==A&&40&A.type;)A=(l=A).parent;if(null===A)return g[0];if(2&A.flags){const F=a.data[A.directiveStart].encapsulation;if(F===et.None||F===et.Emulated)return null}return Ii(A,g)}(a,l.parent,g)}function ol(a,l,g,A,F){Vn(a)?a.insertBefore(l,g,A,F):l.insertBefore(g,A,F)}function pc(a,l,g){Vn(a)?a.appendChild(l,g):l.appendChild(g)}function a1(a,l,g,A,F){null!==A?ol(a,l,g,A,F):pc(a,l,g)}function ll(a,l){return Vn(a)?a.parentNode(l):l.parentNode}function y3(a,l,g){return x3(a,l,g)}let x3=function O2(a,l,g){return 40&a.type?Ii(a,g):null};function l1(a,l,g,A){const F=I2(a,A,l),G=l[11],Te=y3(A.parent||l[6],A,l);if(null!=F)if(Array.isArray(g))for(let Ze=0;Ze<g.length;Ze++)a1(G,F,g[Ze],Te,!1);else a1(G,F,g,Te,!1)}function mc(a,l){if(null!==l){const g=l.type;if(3&g)return Ii(l,a);if(4&g)return d1(-1,a[l.index]);if(8&g){const A=l.child;if(null!==A)return mc(a,A);{const F=a[l.index];return un(F)?d1(-1,F):Je(F)}}if(32&g)return M2(l,a)()||Je(a[l.index]);{const A=c1(a,l);return null!==A?Array.isArray(A)?A[0]:mc(El(a[16]),A):mc(a,l.next)}}return null}function c1(a,l){return null!==l?a[16][6].projection[l.projection]:null}function d1(a,l){const g=10+a+1;if(g<l.length){const A=l[g],F=A[1].firstChild;if(null!==F)return mc(A,F)}return l[7]}function u1(a,l,g,A,F,G,oe){for(;null!=g;){const Te=A[g.index],Ze=g.type;if(oe&&0===l&&(Te&&ra(Je(Te),A),g.flags|=4),64!=(64&g.flags))if(8&Ze)u1(a,l,g.child,A,F,G,!1),Tl(l,a,F,Te,G);else if(32&Ze){const ft=M2(g,A);let At;for(;At=ft();)Tl(l,a,F,At,G);Tl(l,a,F,Te,G)}else 16&Ze?N2(a,l,A,g,F,G):Tl(l,a,F,Te,G);g=oe?g.projectionNext:g.next}}function gc(a,l,g,A,F,G){u1(g,A,a.firstChild,l,F,G,!1)}function N2(a,l,g,A,F,G){const oe=g[16],Ze=oe[6].projection[A.projection];if(Array.isArray(Ze))for(let ft=0;ft<Ze.length;ft++)Tl(l,a,F,Ze[ft],G);else u1(a,l,Ze,oe[3],F,G,!0)}function R2(a,l,g){Vn(a)?a.setAttribute(l,"style",g):l.style.cssText=g}function H2(a,l,g){Vn(a)?""===g?a.removeAttribute(l,"class"):a.setAttribute(l,"class",g):l.className=g}function F2(a,l,g){let A=a.length;for(;;){const F=a.indexOf(l,g);if(-1===F)return F;if(0===F||a.charCodeAt(F-1)<=32){const G=l.length;if(F+G===A||a.charCodeAt(F+G)<=32)return F}g=F+1}}const bo="ng-template";function C3(a,l,g){let A=0;for(;A<a.length;){let F=a[A++];if(g&&"class"===F){if(F=a[A],-1!==F2(F.toLowerCase(),l,0))return!0}else if(1===F){for(;A<a.length&&"string"==typeof(F=a[A++]);)if(F.toLowerCase()===l)return!0;return!1}}return!1}function z2(a){return 4===a.type&&a.value!==bo}function _c(a,l,g){return l===(4!==a.type||g?a.value:bo)}function Al(a,l,g){let A=4;const F=a.attrs||[],G=function V2(a){for(let l=0;l<a.length;l++)if(_i(a[l]))return l;return a.length}(F);let oe=!1;for(let Te=0;Te<l.length;Te++){const Ze=l[Te];if("number"!=typeof Ze){if(!oe)if(4&A){if(A=2|1&A,""!==Ze&&!_c(a,Ze,g)||""===Ze&&1===l.length){if(Ea(A))return!1;oe=!0}}else{const ft=8&A?Ze:l[++Te];if(8&A&&null!==a.attrs){if(!C3(a.attrs,ft,g)){if(Ea(A))return!1;oe=!0}continue}const Yt=hu(8&A?"class":Ze,F,z2(a),g);if(-1===Yt){if(Ea(A))return!1;oe=!0;continue}if(""!==ft){let ci;ci=Yt>G?"":F[Yt+1].toLowerCase();const vi=8&A?ci:null;if(vi&&-1!==F2(vi,ft,0)||2&A&&ft!==ci){if(Ea(A))return!1;oe=!0}}}}else{if(!oe&&!Ea(A)&&!Ea(Ze))return!1;if(oe&&Ea(Ze))continue;oe=!1,A=Ze|1&A}}return Ea(A)||oe}function Ea(a){return 0==(1&a)}function hu(a,l,g,A){if(null===l)return-1;let F=0;if(A||!g){let G=!1;for(;F<l.length;){const oe=l[F];if(oe===a)return F;if(3===oe||6===oe)G=!0;else{if(1===oe||2===oe){let Te=l[++F];for(;"string"==typeof Te;)Te=l[++F];continue}if(4===oe)break;if(0===oe){F+=4;continue}}F+=G?1:2}return-1}return function o6(a,l){let g=a.indexOf(4);if(g>-1)for(g++;g<a.length;){const A=a[g];if("number"==typeof A)return-1;if(A===l)return g;g++}return-1}(l,a)}function fu(a,l,g=!1){for(let A=0;A<l.length;A++)if(Al(a,l[A],g))return!0;return!1}function mu(a,l){e:for(let g=0;g<l.length;g++){const A=l[g];if(a.length===A.length){for(let F=0;F<a.length;F++)if(a[F]!==A[F])continue e;return!0}}return!1}function M3(a,l){return a?":not("+l.trim()+")":l}function w3(a){let l=a[0],g=1,A=2,F="",G=!1;for(;g<a.length;){let oe=a[g];if("string"==typeof oe)if(2&A){const Te=a[++g];F+="["+oe+(Te.length>0?'="'+Te+'"':"")+"]"}else 8&A?F+="."+oe:4&A&&(F+=" "+oe);else""!==F&&!Ea(oe)&&(l+=M3(G,F),F=""),A=oe,G=G||!Ea(A);g++}return""!==F&&(l+=M3(G,F)),l}const Yn={};function E3(a){T3(Wn(),Hi(),br()+a,!1)}function T3(a,l,g,A){if(!A)if(3==(3&l[2])){const G=a.preOrderCheckHooks;null!==G&&xa(l,G,g)}else{const G=a.preOrderHooks;null!==G&&dn(l,G,0,g)}Yr(g)}function vc(a,l){return a<<17|l<<2}function Ya(a){return a>>17&32767}function U2(a){return 2|a}function Co(a){return(131068&a)>>2}function G2(a,l){return-131069&a|l<<2}function f1(a){return 1|a}function Eu(a,l){const g=a.contentQueries;if(null!==g)for(let A=0;A<g.length;A+=2){const F=g[A],G=g[A+1];if(-1!==G){const oe=a.data[G];en(F),oe.contentQueries(2,l[G],G)}}}function _1(a,l,g,A,F,G,oe,Te,Ze,ft){const At=l.blueprint.slice();return At[0]=F,At[2]=140|A,$e(At),At[3]=At[15]=a,At[8]=g,At[10]=oe||a&&a[10],At[11]=Te||a&&a[11],At[12]=Ze||a&&a[12]||null,At[9]=ft||a&&a[9]||null,At[6]=G,At[16]=2==l.type?a[16]:At,At}function Ll(a,l,g,A,F){let G=a.data[l];if(null===G)G=function U3(a,l,g,A,F){const G=$a(),oe=La(),Ze=a.data[l]=function Iu(a,l,g,A,F,G){return{type:g,index:A,insertBeforeIndex:null,injectorIndex:l?l.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:F,attrs:G,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,oe?G:G&&G.parent,g,l,A,F);return null===a.firstChild&&(a.firstChild=Ze),null!==G&&(oe?null==G.child&&null!==Ze.parent&&(G.child=Ze):null===G.next&&(G.next=Ze)),Ze}(a,l,g,A,F),function Ye(){return Fe.lFrame.inI18n}()&&(G.flags|=64);else if(64&G.type){G.type=g,G.value=A,G.attrs=F;const oe=function va(){const a=Fe.lFrame,l=a.currentTNode;return a.isParent?l:l.parent}();G.injectorIndex=null===oe?-1:oe.injectorIndex}return Ts(G,!0),G}function Go(a,l,g,A){if(0===g)return-1;const F=l.length;for(let G=0;G<g;G++)l.push(A),a.blueprint.push(A),a.data.push(null);return F}function so(a,l,g){zn(l);try{const A=a.viewQuery;null!==A&&t4(1,A,g);const F=a.template;null!==F&&Au(a,l,F,1,g),a.firstCreatePass&&(a.firstCreatePass=!1),a.staticContentQueries&&Eu(a,l),a.staticViewQueries&&t4(2,a.viewQuery,g);const G=a.components;null!==G&&function y6(a,l){for(let g=0;g<l.length;g++)Wu(a,l[g])}(l,G)}catch(A){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),A}finally{l[2]&=-5,Sr()}}function xc(a,l,g,A){const F=l[2];if(256!=(256&F)){zn(l);try{$e(l),function _t(a){return Fe.lFrame.bindingIndex=a}(a.bindingStartIndex),null!==g&&Au(a,l,g,2,A);const oe=3==(3&F);if(oe){const ft=a.preOrderCheckHooks;null!==ft&&xa(l,ft,null)}else{const ft=a.preOrderHooks;null!==ft&&dn(l,ft,0,null),xn(l,0)}if(function $3(a){for(let l=E2(a);null!==l;l=p3(l)){if(!l[2])continue;const g=l[9];for(let A=0;A<g.length;A++){const F=g[A],G=F[3];0==(1024&F[2])&&We(G,1),F[2]|=1024}}}(l),function Gu(a){for(let l=E2(a);null!==l;l=p3(l))for(let g=10;g<l.length;g++){const A=l[g],F=A[1];qt(A)&&xc(F,A,F.template,A[8])}}(l),null!==a.contentQueries&&Eu(a,l),oe){const ft=a.contentCheckHooks;null!==ft&&xa(l,ft)}else{const ft=a.contentHooks;null!==ft&&dn(l,ft,1),xn(l,1)}!function B3(a,l){const g=a.hostBindingOpCodes;if(null!==g)try{for(let A=0;A<g.length;A++){const F=g[A];if(F<0)Yr(~F);else{const G=F,oe=g[++A],Te=g[++A];zt(oe,G),Te(2,l[G])}}}finally{Yr(-1)}}(a,l);const Te=a.components;null!==Te&&function Tu(a,l){for(let g=0;g<l.length;g++)Zu(a,l[g])}(l,Te);const Ze=a.viewQuery;if(null!==Ze&&t4(2,Ze,A),oe){const ft=a.viewCheckHooks;null!==ft&&xa(l,ft)}else{const ft=a.viewHooks;null!==ft&&dn(l,ft,2),xn(l,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1),l[2]&=-73,1024&l[2]&&(l[2]&=-1025,We(l[3],-1))}finally{Sr()}}}function x6(a,l,g,A){const F=l[10],oe=vt(l);try{!oe&&F.begin&&F.begin(),oe&&so(a,l,A),xc(a,l,g,A)}finally{!oe&&F.end&&F.end()}}function Au(a,l,g,A,F){const G=br(),oe=2&A;try{Yr(-1),oe&&l.length>20&&T3(a,l,20,!1),g(A,F)}finally{Yr(G)}}function Lu(a,l,g){if(jn(l)){const F=l.directiveEnd;for(let G=l.directiveStart;G<F;G++){const oe=a.data[G];oe.contentQueries&&oe.contentQueries(1,g[G],G)}}}function v1(a,l,g){!ta()||(function $2(a,l,g,A){const F=g.directiveStart,G=g.directiveEnd;a.firstCreatePass||Qt(g,l),ra(A,l);const oe=g.initialInputs;for(let Te=F;Te<G;Te++){const Ze=a.data[Te],ft=_n(Ze);ft&&Vu(l,g,Ze);const At=Ua(l,a,Te,g);ra(At,l),null!==oe&&Bu(0,Te-F,At,Ze,0,oe),ft&&(li(g.index,l)[8]=At)}}(a,l,g,Ii(g,l)),128==(128&g.flags)&&function Nu(a,l,g){const A=g.directiveStart,F=g.directiveEnd,oe=g.index,Te=function ii(){return Fe.lFrame.currentDirectiveIndex}();try{Yr(oe);for(let Ze=A;Ze<F;Ze++){const ft=a.data[Ze],At=l[Ze];ni(Ze),(null!==ft.hostBindings||0!==ft.hostVars||null!==ft.hostAttrs)&&Ru(ft,At)}}finally{Yr(-1),ni(Te)}}(a,l,g))}function G3(a,l,g=Ii){const A=l.localNames;if(null!==A){let F=l.index+1;for(let G=0;G<A.length;G+=2){const oe=A[G+1],Te=-1===oe?g(l,a):a[oe];a[F++]=Te}}}function Z3(a){const l=a.tView;return null===l||l.incompleteFirstPass?a.tView=J2(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):l}function J2(a,l,g,A,F,G,oe,Te,Ze,ft){const At=20+A,Yt=At+F,ci=function X2(a,l){const g=[];for(let A=0;A<l;A++)g.push(A<a?null:Yn);return g}(At,Yt),vi="function"==typeof ft?ft():ft;return ci[1]={type:a,blueprint:ci,template:g,queries:null,viewQuery:Te,declTNode:l,data:ci.slice().fill(null,At),bindingStartIndex:At,expandoStartIndex:Yt,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 G?G():G,pipeRegistry:"function"==typeof oe?oe():oe,firstChild:null,schemas:Ze,consts:vi,incompleteFirstPass:!1}}function Y3(a,l,g,A){const F=i4(l);null===g?F.push(A):(F.push(g),a.firstCreatePass&&n4(a).push(A,F.length-1))}function j3(a,l,g){for(let A in a)if(a.hasOwnProperty(A)){const F=a[A];(g=null===g?{}:g).hasOwnProperty(A)?g[A].push(l,F):g[A]=[l,F]}return g}function Ta(a,l,g,A,F,G,oe,Te){const Ze=Ii(l,g);let At,ft=l.inputs;!Te&&null!=ft&&(At=ft[A])?(qu(a,g,At,A,F),Nn(l)&&function Q3(a,l){const g=li(l,a);16&g[2]||(g[2]|=64)}(g,l.index)):3&l.type&&(A=function K3(a){return"class"===a?"className":"for"===a?"htmlFor":"formaction"===a?"formAction":"innerHtml"===a?"innerHTML":"readonly"===a?"readOnly":"tabindex"===a?"tabIndex":a}(A),F=null!=oe?oe(F,l.value||"",A):F,Vn(G)?G.setProperty(Ze,A,F):Di(A)||(Ze.setProperty?Ze.setProperty(A,F):Ze[A]=F))}function q3(a,l,g,A){let F=!1;if(ta()){const G=function E6(a,l,g){const A=a.directiveRegistry;let F=null;if(A)for(let G=0;G<A.length;G++){const oe=A[G];fu(g,oe.selectors,!1)&&(F||(F=[]),In(Qt(g,l),a,oe.type),_n(oe)?(Hu(a,g),F.unshift(oe)):F.push(oe))}return F}(a,l,g),oe=null===A?null:{"":-1};if(null!==G){F=!0,X3(g,a.data.length,G.length);for(let At=0;At<G.length;At++){const Yt=G[At];Yt.providersResolver&&Yt.providersResolver(Yt)}let Te=!1,Ze=!1,ft=Go(a,l,G.length,null);for(let At=0;At<G.length;At++){const Yt=G[At];g.mergedAttrs=Fi(g.mergedAttrs,Yt.hostAttrs),zu(a,g,l,ft,Yt),J3(ft,Yt,oe),null!==Yt.contentQueries&&(g.flags|=8),(null!==Yt.hostBindings||null!==Yt.hostAttrs||0!==Yt.hostVars)&&(g.flags|=128);const ci=Yt.type.prototype;!Te&&(ci.ngOnChanges||ci.ngOnInit||ci.ngDoCheck)&&((a.preOrderHooks||(a.preOrderHooks=[])).push(g.index),Te=!0),!Ze&&(ci.ngOnChanges||ci.ngDoCheck)&&((a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(g.index),Ze=!0),ft++}!function b6(a,l){const A=l.directiveEnd,F=a.data,G=l.attrs,oe=[];let Te=null,Ze=null;for(let ft=l.directiveStart;ft<A;ft++){const At=F[ft],Yt=At.inputs,ci=null===G||z2(l)?null:Uu(Yt,G);oe.push(ci),Te=j3(Yt,ft,Te),Ze=j3(At.outputs,ft,Ze)}null!==Te&&(Te.hasOwnProperty("class")&&(l.flags|=16),Te.hasOwnProperty("style")&&(l.flags|=32)),l.initialInputs=oe,l.inputs=Te,l.outputs=Ze}(a,g)}oe&&function Fu(a,l,g){if(l){const A=a.localNames=[];for(let F=0;F<l.length;F+=2){const G=g[l[F+1]];if(null==G)throw new E(-301,!1);A.push(l[F],G)}}}(g,A,oe)}return g.mergedAttrs=Fi(g.mergedAttrs,g.attrs),F}function ku(a,l,g,A,F,G){const oe=G.hostBindings;if(oe){let Te=a.hostBindingOpCodes;null===Te&&(Te=a.hostBindingOpCodes=[]);const Ze=~l.index;(function Pu(a){let l=a.length;for(;l>0;){const g=a[--l];if("number"==typeof g&&g<0)return g}return 0})(Te)!=Ze&&Te.push(Ze),Te.push(A,F,oe)}}function Ru(a,l){null!==a.hostBindings&&a.hostBindings(1,l)}function Hu(a,l){l.flags|=2,(a.components||(a.components=[])).push(l.index)}function J3(a,l,g){if(g){if(l.exportAs)for(let A=0;A<l.exportAs.length;A++)g[l.exportAs[A]]=a;_n(l)&&(g[""]=a)}}function X3(a,l,g){a.flags|=1,a.directiveStart=l,a.directiveEnd=l+g,a.providerIndexes=l}function zu(a,l,g,A,F){a.data[A]=F;const G=F.factory||(F.factory=Zr(F.type)),oe=new Ls(G,_n(F),null);a.blueprint[A]=oe,g[A]=oe,ku(a,l,0,A,Go(a,g,F.hostVars,Yn),F)}function Vu(a,l,g){const A=Ii(l,a),F=Z3(g),G=a[10],oe=Dl(a,_1(a,F,null,g.onPush?64:16,A,l,G,G.createRenderer(A,g),null,null));a[l.index]=oe}function wo(a,l,g,A,F,G){const oe=Ii(a,l);!function e0(a,l,g,A,F,G,oe){if(null==G)Vn(a)?a.removeAttribute(l,F,g):l.removeAttribute(F);else{const Te=null==oe?W(G):oe(G,A||"",F);Vn(a)?a.setAttribute(l,F,Te,g):g?l.setAttributeNS(g,F,Te):l.setAttribute(F,Te)}}(l[11],oe,G,a.value,g,A,F)}function Bu(a,l,g,A,F,G){const oe=G[l];if(null!==oe){const Te=A.setInput;for(let Ze=0;Ze<oe.length;){const ft=oe[Ze++],At=oe[Ze++],Yt=oe[Ze++];null!==Te?A.setInput(g,Yt,ft,At):g[At]=Yt}}}function Uu(a,l){let g=null,A=0;for(;A<l.length;){const F=l[A];if(0!==F)if(5!==F){if("number"==typeof F)break;a.hasOwnProperty(F)&&(null===g&&(g=[]),g.push(F,a[F],l[A+1])),A+=2}else A+=2;else A+=4}return g}function t0(a,l,g,A){return new Array(a,!0,!1,l,null,0,A,g,null,null)}function Zu(a,l){const g=li(l,a);if(qt(g)){const A=g[1];80&g[2]?xc(A,g,A.template,g[8]):g[5]>0&&n0(g)}}function n0(a){for(let A=E2(a);null!==A;A=p3(A))for(let F=10;F<A.length;F++){const G=A[F];if(1024&G[2]){const oe=G[1];xc(oe,G,oe.template,G[8])}else G[5]>0&&n0(G)}const g=a[1].components;if(null!==g)for(let A=0;A<g.length;A++){const F=li(g[A],a);qt(F)&&F[5]>0&&n0(F)}}function Wu(a,l){const g=li(l,a),A=g[1];(function Yu(a,l){for(let g=l.length;g<a.blueprint.length;g++)l.push(a.blueprint[g])})(A,g),so(A,g,g[8])}function Dl(a,l){return a[13]?a[14][4]=l:a[13]=l,a[14]=l,l}function r0(a){for(;a;){a[2]|=64;const l=El(a);if(Si(a)&&!l)return a;a=l}return null}function e4(a){!function bc(a){for(let l=0;l<a.components.length;l++){const g=a.components[l],A=e1(g),F=A[1];x6(F,A,F.template,g)}}(a[8])}function t4(a,l,g){en(0),l(a,g)}const Ku=(()=>Promise.resolve(null))();function i4(a){return a[7]||(a[7]=[])}function n4(a){return a.cleanup||(a.cleanup=[])}function r4(a,l,g){return(null===a||_n(a))&&(g=function Pt(a){for(;Array.isArray(a);){if("object"==typeof a[1])return a;a=a[0]}return null}(g[l.index])),g[11]}function Qu(a,l){const g=a[9],A=g?g.get(hc,null):null;A&&A.handleError(l)}function qu(a,l,g,A,F){for(let G=0;G<g.length;){const oe=g[G++],Te=g[G++],Ze=l[oe],ft=a.data[oe];null!==ft.setInput?ft.setInput(Ze,F,A,Te):Ze[Te]=F}}function ao(a,l,g){const A=Mi(l,a);!function m3(a,l,g){Vn(a)?a.setValue(l,g):l.textContent=g}(a[11],A,g)}function a0(a,l,g){let A=g?a.styles:null,F=g?a.classes:null,G=0;if(null!==l)for(let oe=0;oe<l.length;oe++){const Te=l[oe];"number"==typeof Te?G=Te:1==G?F=h(F,Te):2==G&&(A=h(A,Te+": "+l[++oe]+";"))}g?a.styles=A:a.stylesWithoutHost=A,g?a.classes=F:a.classesWithoutHost=F}const y1=new jr("INJECTOR",-1);class Xu{get(l,g=go){if(g===go){const A=new Error(`NullInjectorError: No provider for ${R(l)}!`);throw A.name="NullInjectorError",A}return g}}const s4=new jr("Set Injector scope."),Cc={},D6={};let x1;function a4(){return void 0===x1&&(x1=new Xu),x1}function o4(a,l=null,g=null,A){const F=$u(a,l,g,A);return F._resolveInjectorDefTypes(),F}function $u(a,l=null,g=null,A){return new I6(a,g,l||a4(),A)}class I6{constructor(l,g,A,F=null){this.parent=A,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const G=[];g&&sr(g,Te=>this.processProvider(Te,l,g)),sr([l],Te=>this.processInjectorType(Te,[],G)),this.records.set(y1,dl(void 0,this));const oe=this.records.get(s4);this.scope=null!=oe?oe.value:null,this.source=F||("object"==typeof l?null:R(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,g=go,A=De.Default){this.assertNotDestroyed();const F=No(this),G=ye(void 0);try{if(!(A&De.SkipSelf)){let Te=this.records.get(l);if(void 0===Te){const Ze=function N6(a){return"function"==typeof a||"object"==typeof a&&a instanceof jr}(l)&&Pe(l);Te=Ze&&this.injectableDefInScope(Ze)?dl(o0(l),Cc):null,this.records.set(l,Te)}if(null!=Te)return this.hydrate(l,Te)}return(A&De.Self?a4():this.parent).get(l,g=A&De.Optional&&g===go?null:g)}catch(oe){if("NullInjectorError"===oe.name){if((oe[Po]=oe[Po]||[]).unshift(R(l)),F)throw oe;return function tc(a,l,g,A){const F=a[Po];throw l[tl]&&F.unshift(l[tl]),a.message=function bl(a,l,g,A=null){a=a&&"\n"===a.charAt(0)&&"\u0275"==a.charAt(1)?a.substr(2):a;let F=R(l);if(Array.isArray(l))F=l.map(R).join(" -> ");else if("object"==typeof l){let G=[];for(let oe in l)if(l.hasOwnProperty(oe)){let Te=l[oe];G.push(oe+":"+("string"==typeof Te?JSON.stringify(Te):R(Te)))}F=`{${G.join(", ")}}`}return`${g}${A?"("+A+")":""}[${F}]: ${a.replace(Xl,"\n ")}`}("\n"+a.message,F,g,A),a.ngTokenPath=F,a[Po]=null,a}(oe,l,"R3InjectorError",this.source)}throw oe}finally{ye(G),No(F)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((A,F)=>l.push(R(F))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processInjectorType(l,g,A){if(!(l=D(l)))return!1;let F=Ce(l);const G=null==F&&l.ngModule||void 0,oe=void 0===G?l:G,Te=-1!==A.indexOf(oe);if(void 0!==G&&(F=Ce(G)),null==F)return!1;if(null!=F.imports&&!Te){let At;A.push(oe);try{sr(F.imports,Yt=>{this.processInjectorType(Yt,g,A)&&(void 0===At&&(At=[]),At.push(Yt))})}finally{}if(void 0!==At)for(let Yt=0;Yt<At.length;Yt++){const{ngModule:ci,providers:vi}=At[Yt];sr(vi,Ri=>this.processProvider(Ri,ci,vi||tt))}}this.injectorDefTypes.add(oe);const Ze=Zr(oe)||(()=>new oe);this.records.set(oe,dl(Ze,Cc));const ft=F.providers;if(null!=ft&&!Te){const At=l;sr(ft,Yt=>this.processProvider(Yt,At,ft))}return void 0!==G&&void 0!==l.providers}processProvider(l,g,A){let F=Il(l=D(l))?l:D(l&&l.provide);const G=function th(a,l,g){return nh(a)?dl(void 0,a.useValue):dl(ih(a),Cc)}(l);if(Il(l)||!0!==l.multi)this.records.get(F);else{let oe=this.records.get(F);oe||(oe=dl(void 0,Cc,!0),oe.factory=()=>Zc(oe.multi),this.records.set(F,oe)),F=l,oe.multi.push(l)}this.records.set(F,G)}hydrate(l,g){return g.value===Cc&&(g.value=D6,g.value=g.factory()),"object"==typeof g.value&&g.value&&function P6(a){return null!==a&&"object"==typeof a&&"function"==typeof a.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(l){if(!l.providedIn)return!1;const g=D(l.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function o0(a){const l=Pe(a),g=null!==l?l.factory:Zr(a);if(null!==g)return g;if(a instanceof jr)throw new E(204,!1);if(a instanceof Function)return function eh(a){const l=a.length;if(l>0)throw $o(l,"?"),new E(204,!1);const g=function Q(a){const l=a&&(a[q]||a[ut]);if(l){const g=function Ue(a){if(a.hasOwnProperty("name"))return a.name;const l=(""+a).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(a);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),l}return null}(a);return null!==g?()=>g.factory(a):()=>new a}(a);throw new E(204,!1)}function ih(a,l,g){let A;if(Il(a)){const F=D(a);return Zr(F)||o0(F)}if(nh(a))A=()=>D(a.useValue);else if(function rh(a){return!(!a||!a.useFactory)}(a))A=()=>a.useFactory(...Zc(a.deps||[]));else if(function O6(a){return!(!a||!a.useExisting)}(a))A=()=>Os(D(a.useExisting));else{const F=D(a&&(a.useClass||a.provide));if(!function sh(a){return!!a.deps}(a))return Zr(F)||o0(F);A=()=>new F(...Zc(a.deps))}return A}function dl(a,l,g=!1){return{factory:a,value:l,multi:g?[]:void 0}}function nh(a){return null!==a&&"object"==typeof a&&e2 in a}function Il(a){return"function"==typeof a}let oo=(()=>{class a{static create(g,A){var F;if(Array.isArray(g))return o4({name:""},A,g,"");{const G=null!==(F=g.name)&&void 0!==F?F:"";return o4({name:G},g.parent,g.providers,G)}}}return a.THROW_IF_NOT_FOUND=go,a.NULL=new Xu,a.\u0275prov=J({token:a,providedIn:"any",factory:()=>Os(y1)}),a.__NG_ELEMENT_ID__=-1,a})();function G6(a,l){ya(e1(a)[1],wr())}function m4(a){let l=function fh(a){return Object.getPrototypeOf(a.prototype).constructor}(a.type),g=!0;const A=[a];for(;l;){let F;if(_n(a))F=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new E(903,"");F=l.\u0275dir}if(F){if(g){A.push(F);const oe=a;oe.inputs=g4(a.inputs),oe.declaredInputs=g4(a.declaredInputs),oe.outputs=g4(a.outputs);const Te=F.hostBindings;Te&&W6(a,Te);const Ze=F.viewQuery,ft=F.contentQueries;if(Ze&&mh(a,Ze),ft&&Z6(a,ft),d(a.inputs,F.inputs),d(a.declaredInputs,F.declaredInputs),d(a.outputs,F.outputs),_n(F)&&F.data.animation){const At=a.data;At.animation=(At.animation||[]).concat(F.data.animation)}}const G=F.features;if(G)for(let oe=0;oe<G.length;oe++){const Te=G[oe];Te&&Te.ngInherit&&Te(a),Te===m4&&(g=!1)}}l=Object.getPrototypeOf(l)}!function ph(a){let l=0,g=null;for(let A=a.length-1;A>=0;A--){const F=a[A];F.hostVars=l+=F.hostVars,F.hostAttrs=Fi(F.hostAttrs,g=Fi(g,F.hostAttrs))}}(A)}function g4(a){return a===gt?{}:a===tt?[]:a}function mh(a,l){const g=a.viewQuery;a.viewQuery=g?(A,F)=>{l(A,F),g(A,F)}:l}function Z6(a,l){const g=a.contentQueries;a.contentQueries=g?(A,F,G)=>{l(A,F,G),g(A,F,G)}:l}function W6(a,l){const g=a.hostBindings;a.hostBindings=g?(A,F)=>{l(A,F),g(A,F)}:l}let Mc=null;function Ol(){if(!Mc){const a=ui.Symbol;if(a&&a.iterator)Mc=a.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let g=0;g<l.length;++g){const A=l[g];"entries"!==A&&"size"!==A&&Map.prototype[A]===Map.prototype.entries&&(Mc=A)}}}return Mc}function b1(a){return!!v4(a)&&(Array.isArray(a)||!(a instanceof Map)&&Ol()in a)}function v4(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function lo(a,l,g){return a[l]=g}function fa(a,l,g){return!Object.is(a[l],g)&&(a[l]=g,!0)}function kl(a,l,g,A){const F=fa(a,l,g);return fa(a,l+1,A)||F}function wc(a,l,g,A,F){const G=kl(a,l,g,A);return fa(a,l+2,F)||G}function M1(a,l,g,A){const F=Hi();return fa(F,se(),l)&&(Wn(),wo(Gn(),F,a,l,g,A)),M1}function Ec(a,l,g,A){return fa(a,se(),g)?l+W(g)+A:Yn}function Ac(a,l,g,A,F,G,oe,Te,Ze,ft){const Yt=function Na(a,l,g,A,F,G){const oe=kl(a,l,g,A);return kl(a,l+2,F,G)||oe}(a,hs(),g,F,oe,Ze);return pe(4),Yt?l+W(g)+A+W(F)+G+W(oe)+Te+W(Ze)+ft:Yn}function w1(a,l,g,A,F,G,oe,Te){const Ze=Hi(),ft=Wn(),At=a+20,Yt=ft.firstCreatePass?function Zo(a,l,g,A,F,G,oe,Te,Ze){const ft=l.consts,At=Ll(l,a,4,oe||null,Wi(ft,Te));q3(l,g,At,Wi(ft,Ze)),ya(l,At);const Yt=At.tViews=J2(2,At,A,F,G,l.directiveRegistry,l.pipeRegistry,null,l.schemas,ft);return null!==l.queries&&(l.queries.template(l,At),Yt.queries=l.queries.embeddedTView(At)),At}(At,ft,Ze,l,g,A,F,G,oe):ft.data[At];Ts(Yt,!1);const ci=Ze[11].createComment("");l1(ft,Ze,ci,Yt),ra(ci,Ze),Dl(Ze,Ze[At]=t0(ci,Ze,ci,Yt)),$n(Yt)&&v1(ft,Ze,Yt),null!=oe&&G3(Ze,Yt,Te)}function pa(a){return It(function Va(){return Fe.lFrame.contextLView}(),20+a)}function Fl(a,l=De.Default){const g=Hi();return null===g?Os(a,l):oa(wr(),g,D(a),l)}function k4(){throw new Error("invalid")}function A1(a,l,g){const A=Hi();return fa(A,se(),l)&&Ta(Wn(),Gn(),A,a,l,A[11],g,!1),A1}function L1(a,l,g,A,F){const oe=F?"class":"style";qu(a,g,l.inputs[oe],oe,A)}function D1(a,l,g,A){const F=Hi(),G=Wn(),oe=20+a,Te=F[11],Ze=F[oe]=Vo(Te,l,function Qs(){return Fe.lFrame.currentNamespace}()),ft=G.firstCreatePass?function Eh(a,l,g,A,F,G,oe){const Te=l.consts,ft=Ll(l,a,2,F,Wi(Te,G));return q3(l,g,ft,Wi(Te,oe)),null!==ft.attrs&&a0(ft,ft.attrs,!1),null!==ft.mergedAttrs&&a0(ft,ft.mergedAttrs,!0),null!==l.queries&&l.queries.elementStart(l,ft),ft}(oe,G,F,0,l,g,A):G.data[oe];Ts(ft,!0);const At=ft.mergedAttrs;null!==At&&pi(Te,Ze,At);const Yt=ft.classes;null!==Yt&&H2(Te,Ze,Yt);const ci=ft.styles;return null!==ci&&R2(Te,Ze,ci),64!=(64&ft.flags)&&l1(G,F,Ze,ft),0===function qi(){return Fe.lFrame.elementDepthCount}()&&ra(Ze,F),function Bn(){Fe.lFrame.elementDepthCount++}(),$n(ft)&&(v1(G,F,ft),Lu(G,ft,F)),null!==A&&G3(F,ft),D1}function zl(){let a=wr();La()?Da():(a=a.parent,Ts(a,!1));const l=a;!function Br(){Fe.lFrame.elementDepthCount--}();const g=Wn();return g.firstCreatePass&&(ya(g,a),jn(a)&&g.queries.elementEnd(a)),null!=l.classesWithoutHost&&function St(a){return 0!=(16&a.flags)}(l)&&L1(g,l,Hi(),l.classesWithoutHost,!0),null!=l.stylesWithoutHost&&function wt(a){return 0!=(32&a.flags)}(l)&&L1(g,l,Hi(),l.stylesWithoutHost,!1),zl}function Vl(a,l,g,A){return D1(a,l,g,A),zl(),Vl}function y0(a,l,g){const A=Hi(),F=Wn(),G=a+20,oe=F.firstCreatePass?function v0(a,l,g,A,F){const G=l.consts,oe=Wi(G,A),Te=Ll(l,a,8,"ng-container",oe);return null!==oe&&a0(Te,oe,!0),q3(l,g,Te,Wi(G,F)),null!==l.queries&&l.queries.elementStart(l,Te),Te}(G,F,A,l,g):F.data[G];Ts(oe,!0);const Te=A[G]=A[11].createComment("");return l1(F,A,Te,oe),ra(Te,A),$n(oe)&&(v1(F,A,oe),Lu(F,oe,A)),null!=g&&G3(A,oe),y0}function x0(){let a=wr();const l=Wn();return La()?Da():(a=a.parent,Ts(a,!1)),l.firstCreatePass&&(ya(l,a),jn(a)&&l.queries.elementEnd(a)),x0}function b0(a,l,g){return y0(a,l,g),x0(),b0}function P4(){return Hi()}function Ca(a){return!!a&&"function"==typeof a.then}function C0(a){return!!a&&"function"==typeof a.subscribe}const M0=C0;function I1(a,l,g,A){const F=Hi(),G=Wn(),oe=wr();return Lh(G,F,F[11],oe,a,l,!!g,A),I1}function w0(a,l){const g=wr(),A=Hi(),F=Wn();return Lh(F,A,r4(gi(F.data),g,A),g,a,l,!1),w0}function Lh(a,l,g,A,F,G,oe,Te){const Ze=$n(A),At=a.firstCreatePass&&n4(a),Yt=l[8],ci=i4(l);let vi=!0;if(3&A.type||Te){const sn=Ii(A,l),yn=Te?Te(sn):sn,Bi=ci.length,Dn=Te?mr=>Te(Je(mr[A.index])):A.index;if(Vn(g)){let mr=null;if(!Te&&Ze&&(mr=function Ah(a,l,g,A){const F=a.cleanup;if(null!=F)for(let G=0;G<F.length-1;G+=2){const oe=F[G];if(oe===g&&F[G+1]===A){const Te=l[7],Ze=F[G+2];return Te.length>Ze?Te[Ze]:null}"string"==typeof oe&&(G+=2)}return null}(a,l,F,A.index)),null!==mr)(mr.__ngLastListenerFn__||mr).__ngNextListenerFn__=G,mr.__ngLastListenerFn__=G,vi=!1;else{G=S0(A,l,Yt,G,!1);const Lr=g.listen(yn,F,G);ci.push(G,Lr),At&&At.push(F,Dn,Bi,Bi+1)}}else G=S0(A,l,Yt,G,!0),yn.addEventListener(F,G,oe),ci.push(G),At&&At.push(F,Dn,Bi,oe)}else G=S0(A,l,Yt,G,!1);const Ri=A.outputs;let Qi;if(vi&&null!==Ri&&(Qi=Ri[F])){const sn=Qi.length;if(sn)for(let yn=0;yn<sn;yn+=2){const Ja=l[Qi[yn]][Qi[yn+1]].subscribe(G),Gl=ci.length;ci.push(G,Ja),At&&At.push(F,A.index,Gl,-(Gl+1))}}}function Dh(a,l,g,A){try{return!1!==g(A)}catch(F){return Qu(a,F),!1}}function S0(a,l,g,A,F){return function G(oe){if(oe===Function)return A;const Te=2&a.flags?li(a.index,l):l;0==(32&l[2])&&r0(Te);let Ze=Dh(l,0,A,oe),ft=G.__ngNextListenerFn__;for(;ft;)Ze=Dh(l,0,ft,oe)&&Ze,ft=ft.__ngNextListenerFn__;return F&&!1===Ze&&(oe.preventDefault(),oe.returnValue=!1),Ze}}function Ih(a=1){return function Nr(a){return(Fe.lFrame.contextLView=function es(a,l){for(;a>0;)l=l[15],a--;return l}(a,Fe.lFrame.contextLView))[8]}(a)}function Oh(a,l){let g=null;const A=function pu(a){const l=a.attrs;if(null!=l){const g=l.indexOf(5);if(0==(1&g))return l[g+1]}return null}(a);for(let F=0;F<l.length;F++){const G=l[F];if("*"!==G){if(null===A?fu(a,G,!0):mu(A,G))return F}else g=F}return g}function kh(a){const l=Hi()[16][6];if(!l.projection){const A=l.projection=$o(a?a.length:1,null),F=A.slice();let G=l.child;for(;null!==G;){const oe=a?Oh(G,a):0;null!==oe&&(F[oe]?F[oe].projectionNext=G:A[oe]=G,F[oe]=G),G=G.next}}}function Ph(a,l=0,g){const A=Hi(),F=Wn(),G=Ll(F,20+a,16,null,g||null);null===G.projection&&(G.projection=l),Da(),64!=(64&G.flags)&&function h1(a,l,g){N2(l[11],0,l,g,I2(a,g,l),y3(g.parent||l[6],g,l))}(F,A,G)}function E0(a,l,g){return O1(a,"",l,"",g),E0}function O1(a,l,g,A,F){const G=Hi(),oe=Ec(G,l,g,A);return oe!==Yn&&Ta(Wn(),Gn(),G,a,oe,G[11],F,!1),O1}function F4(a,l,g,A,F){const G=a[g+1],oe=null===l;let Te=A?Ya(G):Co(G),Ze=!1;for(;0!==Te&&(!1===Ze||oe);){const At=a[Te+1];q6(a[Te],l)&&(Ze=!0,a[Te+1]=A?f1(At):U2(At)),Te=A?Ya(At):Co(At)}Ze&&(a[g+1]=A?U2(G):f1(G))}function q6(a,l){return null===a||null==l||(Array.isArray(a)?a[1]:a)===l||!(!Array.isArray(a)||"string"!=typeof l)&&io(a,l)>=0}const Gs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T0(a){return a.substring(Gs.key,Gs.keyEnd)}function zh(a,l){const g=Gs.textEnd;return g===l?-1:(l=Gs.keyEnd=function $6(a,l,g){for(;l<g&&a.charCodeAt(l)>32;)l++;return l}(a,Gs.key=l,g),Bl(a,l,g))}function Bl(a,l,g){for(;l<g&&a.charCodeAt(l)<=32;)l++;return l}function V4(a,l,g){return qa(a,l,g,!1),V4}function B4(a,l){return qa(a,l,null,!0),B4}function G4(a){uo(Js,To,a,!0)}function To(a,l){for(let g=function X6(a){return function Bh(a){Gs.key=0,Gs.keyEnd=0,Gs.value=0,Gs.valueEnd=0,Gs.textEnd=a.length}(a),zh(a,Bl(a,0,Gs.textEnd))}(l);g>=0;g=zh(l,g))Js(a,T0(l),!0)}function qa(a,l,g,A){const F=Hi(),G=Wn(),oe=pe(2);G.firstUpdatePass&&Z4(G,a,oe,A),l!==Yn&&fa(F,oe,l)&&Y4(G,G.data[br()],F,F[11],a,F[oe+1]=function rp(a,l){return null==a||("string"==typeof l?a+=l:"object"==typeof a&&(a=R(Pa(a)))),a}(l,g),A,oe)}function uo(a,l,g,A){const F=Wn(),G=pe(2);F.firstUpdatePass&&Z4(F,null,G,A);const oe=Hi();if(g!==Yn&&fa(oe,G,g)){const Te=F.data[br()];if(qh(Te,A)&&!Yh(F,G)){let Ze=A?Te.classesWithoutHost:Te.stylesWithoutHost;null!==Ze&&(g=h(Ze,g||"")),L1(F,Te,oe,g,A)}else!function Kh(a,l,g,A,F,G,oe,Te){F===Yn&&(F=tt);let Ze=0,ft=0,At=0<F.length?F[0]:null,Yt=0<G.length?G[0]:null;for(;null!==At||null!==Yt;){const ci=Ze<F.length?F[Ze+1]:void 0,vi=ft<G.length?G[ft+1]:void 0;let Qi,Ri=null;At===Yt?(Ze+=2,ft+=2,ci!==vi&&(Ri=Yt,Qi=vi)):null===Yt||null!==At&&At<Yt?(Ze+=2,Ri=At):(ft+=2,Ri=Yt,Qi=vi),null!==Ri&&Y4(a,l,g,A,Ri,Qi,oe,Te),At=Ze<F.length?F[Ze]:null,Yt=ft<G.length?G[ft]:null}}(F,Te,oe,oe[11],oe[G+1],oe[G+1]=function jh(a,l,g){if(null==g||""===g)return tt;const A=[],F=Pa(g);if(Array.isArray(F))for(let G=0;G<F.length;G++)a(A,F[G],!0);else if("object"==typeof F)for(const G in F)F.hasOwnProperty(G)&&a(A,G,F[G]);else"string"==typeof F&&l(A,F);return A}(a,l,g),A,G)}}function Yh(a,l){return l>=a.expandoStartIndex}function Z4(a,l,g,A){const F=a.data;if(null===F[g+1]){const G=F[br()],oe=Yh(a,g);qh(G,A)&&null===l&&!oe&&(l=!1),l=function tp(a,l,g,A){const F=gi(a);let G=A?l.residualClasses:l.residualStyles;if(null===F)0===(A?l.classBindings:l.styleBindings)&&(g=P1(g=A0(null,a,l,g,A),l.attrs,A),G=null);else{const oe=l.directiveStylingLast;if(-1===oe||a[oe]!==F)if(g=A0(F,a,l,g,A),null===G){let Ze=function ip(a,l,g){const A=g?l.classBindings:l.styleBindings;if(0!==Co(A))return a[Ya(A)]}(a,l,A);void 0!==Ze&&Array.isArray(Ze)&&(Ze=A0(null,a,l,Ze[1],A),Ze=P1(Ze,l.attrs,A),function W4(a,l,g,A){a[Ya(g?l.classBindings:l.styleBindings)]=A}(a,l,A,Ze))}else G=function np(a,l,g){let A;const F=l.directiveEnd;for(let G=1+l.directiveStylingLast;G<F;G++)A=P1(A,a[G].hostAttrs,g);return P1(A,l.attrs,g)}(a,l,A)}return void 0!==G&&(A?l.residualClasses=G:l.residualStyles=G),g}(F,G,l,A),function H4(a,l,g,A,F,G){let oe=G?l.classBindings:l.styleBindings,Te=Ya(oe),Ze=Co(oe);a[A]=g;let At,ft=!1;if(Array.isArray(g)){const Yt=g;At=Yt[1],(null===At||io(Yt,At)>0)&&(ft=!0)}else At=g;if(F)if(0!==Ze){const ci=Ya(a[Te+1]);a[A+1]=vc(ci,Te),0!==ci&&(a[ci+1]=G2(a[ci+1],A)),a[Te+1]=function _u(a,l){return 131071&a|l<<17}(a[Te+1],A)}else a[A+1]=vc(Te,0),0!==Te&&(a[Te+1]=G2(a[Te+1],A)),Te=A;else a[A+1]=vc(Ze,0),0===Te?Te=A:a[Ze+1]=G2(a[Ze+1],A),Ze=A;ft&&(a[A+1]=U2(a[A+1])),F4(a,At,A,!0),F4(a,At,A,!1),function Fh(a,l,g,A,F){const G=F?a.residualClasses:a.residualStyles;null!=G&&"string"==typeof l&&io(G,l)>=0&&(g[A+1]=f1(g[A+1]))}(l,At,a,A,G),oe=vc(Te,Ze),G?l.classBindings=oe:l.styleBindings=oe}(F,G,l,g,oe,A)}}function A0(a,l,g,A,F){let G=null;const oe=g.directiveEnd;let Te=g.directiveStylingLast;for(-1===Te?Te=g.directiveStart:Te++;Te<oe&&(G=l[Te],A=P1(A,G.hostAttrs,F),G!==a);)Te++;return null!==a&&(g.directiveStylingLast=Te),A}function P1(a,l,g){const A=g?1:2;let F=-1;if(null!==l)for(let G=0;G<l.length;G++){const oe=l[G];"number"==typeof oe?F=oe:F===A&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),Js(a,oe,!!g||l[++G]))}return void 0===a?null:a}function Y4(a,l,g,A,F,G,oe,Te){if(!(3&l.type))return;const Ze=a.data,ft=Ze[Te+1];L0(function L3(a){return 1==(1&a)}(ft)?Qh(Ze,l,g,F,Co(ft),oe):void 0)||(L0(G)||function B2(a){return 2==(2&a)}(ft)&&(G=Qh(Ze,null,g,F,Te,oe)),function uu(a,l,g,A,F){const G=Vn(a);if(l)F?G?a.addClass(g,A):g.classList.add(A):G?a.removeClass(g,A):g.classList.remove(A);else{let oe=-1===A.indexOf("-")?void 0:Wa.DashCase;if(null==F)G?a.removeStyle(g,A,oe):g.style.removeProperty(A);else{const Te="string"==typeof F&&F.endsWith("!important");Te&&(F=F.slice(0,-10),oe|=Wa.Important),G?a.setStyle(g,A,F,oe):g.style.setProperty(A,F,Te?"important":"")}}}(A,oe,Mi(br(),g),F,G))}function Qh(a,l,g,A,F,G){const oe=null===l;let Te;for(;F>0;){const Ze=a[F],ft=Array.isArray(Ze),At=ft?Ze[1]:Ze,Yt=null===At;let ci=g[F+1];ci===Yn&&(ci=Yt?tt:void 0);let vi=Yt?el(ci,A):At===A?ci:void 0;if(ft&&!L0(vi)&&(vi=el(Ze,A)),L0(vi)&&(Te=vi,oe))return Te;const Ri=a[F+1];F=oe?Ya(Ri):Co(Ri)}if(null!==l){let Ze=G?l.residualClasses:l.residualStyles;null!=Ze&&(Te=el(Ze,A))}return Te}function L0(a){return void 0!==a}function qh(a,l){return 0!=(a.flags&(l?16:32))}function D0(a,l=""){const g=Hi(),A=Wn(),F=a+20,G=A.firstCreatePass?Ll(A,F,1,l,null):A.data[F],oe=g[F]=function r1(a,l){return Vn(a)?a.createText(l):a.createTextNode(l)}(g[11],l);l1(A,g,oe,G),Ts(G,!1)}function j4(a){return I0("",a,""),j4}function I0(a,l,g){const A=Hi(),F=Ec(A,a,l,g);return F!==Yn&&ao(A,br(),F),I0}function R1(a,l,g,A,F){const G=Hi(),oe=function Tc(a,l,g,A,F,G){const Te=kl(a,hs(),g,F);return pe(2),Te?l+W(g)+A+W(F)+G:Yn}(G,a,l,g,A,F);return oe!==Yn&&ao(G,br(),oe),R1}function K4(a,l,g,A,F,G,oe){const Te=Hi(),Ze=function Pl(a,l,g,A,F,G,oe,Te){const ft=wc(a,hs(),g,F,oe);return pe(3),ft?l+W(g)+A+W(F)+G+W(oe)+Te:Yn}(Te,a,l,g,A,F,G,oe);return Ze!==Yn&&ao(Te,br(),Ze),K4}function Q4(a,l,g,A,F,G,oe,Te,Ze){const ft=Hi(),At=Ac(ft,a,l,g,A,F,G,oe,Te,Ze);return At!==Yn&&ao(ft,br(),At),Q4}function ef(a,l,g){uo(Js,To,Ec(Hi(),a,l,g),!0)}function Rn(a,l,g){const A=Hi();return fa(A,se(),l)&&Ta(Wn(),Gn(),A,a,l,A[11],g,!0),Rn}function Sn(a,l,g){const A=Hi();if(fa(A,se(),l)){const G=Wn(),oe=Gn();Ta(G,oe,A,a,l,r4(gi(G.data),oe,A),g,!0)}return Sn}const Cr=void 0;var ma=["en",[["a","p"],["AM","PM"],Cr],[["AM","PM"],Cr,Cr],[["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"]],Cr,[["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"]],Cr,[["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}",Cr,"{1} 'at' {0}",Cr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Ar(a){const g=Math.floor(Math.abs(a)),A=a.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===A?1:5}];let Rr={};function Ns(a){const l=function ga(a){return a.toLowerCase().replace(/_/g,"-")}(a);let g=Ma(l);if(g)return g;const A=l.split("-")[0];if(g=Ma(A),g)return g;if("en"===A)return ma;throw new Error(`Missing locale data for the locale "${a}".`)}function Hr(a){return Ns(a)[cn.PluralCase]}function Ma(a){return a in Rr||(Rr[a]=ui.ng&&ui.ng.common&&ui.ng.common.locales&&ui.ng.common.locales[a]),Rr[a]}var cn=(()=>((cn=cn||{})[cn.LocaleId=0]="LocaleId",cn[cn.DayPeriodsFormat=1]="DayPeriodsFormat",cn[cn.DayPeriodsStandalone=2]="DayPeriodsStandalone",cn[cn.DaysFormat=3]="DaysFormat",cn[cn.DaysStandalone=4]="DaysStandalone",cn[cn.MonthsFormat=5]="MonthsFormat",cn[cn.MonthsStandalone=6]="MonthsStandalone",cn[cn.Eras=7]="Eras",cn[cn.FirstDayOfWeek=8]="FirstDayOfWeek",cn[cn.WeekendRange=9]="WeekendRange",cn[cn.DateFormat=10]="DateFormat",cn[cn.TimeFormat=11]="TimeFormat",cn[cn.DateTimeFormat=12]="DateTimeFormat",cn[cn.NumberSymbols=13]="NumberSymbols",cn[cn.NumberFormats=14]="NumberFormats",cn[cn.CurrencyCode=15]="CurrencyCode",cn[cn.CurrencySymbol=16]="CurrencySymbol",cn[cn.CurrencyName=17]="CurrencyName",cn[cn.Currencies=18]="Currencies",cn[cn.Directionality=19]="Directionality",cn[cn.PluralCase=20]="PluralCase",cn[cn.ExtraData=21]="ExtraData",cn))();const Qr="en-US";let Zs=Qr;function lf(a,l,g,A,F){if(a=D(a),Array.isArray(a))for(let G=0;G<a.length;G++)lf(a[G],l,g,A,F);else{const G=Wn(),oe=Hi();let Te=Il(a)?a:D(a.provide),Ze=ih(a);const ft=wr(),At=1048575&ft.providerIndexes,Yt=ft.directiveStart,ci=ft.providerIndexes>>20;if(Il(a)||!a.multi){const vi=new Ls(Ze,F,Fl),Ri=id(Te,l,F?At:At+ci,Yt);-1===Ri?(In(Qt(ft,oe),G,Te),td(G,a,l.length),l.push(Te),ft.directiveStart++,ft.directiveEnd++,F&&(ft.providerIndexes+=1048576),g.push(vi),oe.push(vi)):(g[Ri]=vi,oe[Ri]=vi)}else{const vi=id(Te,l,At+ci,Yt),Ri=id(Te,l,At,At+ci),Qi=vi>=0&&g[vi],sn=Ri>=0&&g[Ri];if(F&&!sn||!F&&!Qi){In(Qt(ft,oe),G,Te);const yn=function Ym(a,l,g,A,F){const G=new Ls(a,g,Fl);return G.multi=[],G.index=l,G.componentProviders=0,Op(G,F,A&&!g),G}(F?Wm:Zm,g.length,F,A,Ze);!F&&sn&&(g[Ri].providerFactory=yn),td(G,a,l.length,0),l.push(Te),ft.directiveStart++,ft.directiveEnd++,F&&(ft.providerIndexes+=1048576),g.push(yn),oe.push(yn)}else td(G,a,vi>-1?vi:Ri,Op(g[F?Ri:vi],Ze,!F&&A));!F&&A&&sn&&g[Ri].componentProviders++}}}function td(a,l,g,A){const F=Il(l),G=function k6(a){return!!a.useClass}(l);if(F||G){const Ze=(G?D(l.useClass):l).prototype.ngOnDestroy;if(Ze){const ft=a.destroyHooks||(a.destroyHooks=[]);if(!F&&l.multi){const At=ft.indexOf(g);-1===At?ft.push(g,[A,Ze]):ft[At+1].push(A,Ze)}else ft.push(g,Ze)}}}function Op(a,l,g){return g&&a.componentProviders++,a.multi.push(l)-1}function id(a,l,g,A){for(let F=g;F<A;F++)if(l[F]===a)return F;return-1}function Zm(a,l,g,A){return nd(this.multi,[])}function Wm(a,l,g,A){const F=this.multi;let G;if(this.providerFactory){const oe=this.providerFactory.componentProviders,Te=Ua(g,g[1],this.providerFactory.index,A);G=Te.slice(0,oe),nd(F,G);for(let Ze=oe;Ze<Te.length;Ze++)G.push(Te[Ze])}else G=[],nd(F,G);return G}function nd(a,l){for(let g=0;g<a.length;g++)l.push((0,a[g])());return l}function kp(a,l=[]){return g=>{g.providersResolver=(A,F)=>function Gm(a,l,g){const A=Wn();if(A.firstCreatePass){const F=_n(a);lf(g,A.data,A.blueprint,F,!0),lf(l,A.data,A.blueprint,F,!1)}}(A,F?F(a):a,l)}}class Np{}class Qm{resolveComponentFactory(l){throw function jm(a){const l=Error(`No component factory found for ${R(a)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=a,l}(l)}}let rd=(()=>{class a{}return a.NULL=new Qm,a})();function Hp(){return z1(wr(),Hi())}function z1(a,l){return new V1(Ii(a,l))}let V1=(()=>{class a{constructor(g){this.nativeElement=g}}return a.__NG_ELEMENT_ID__=Hp,a})();function qm(a){return a instanceof V1?a.nativeElement:a}class Fp{}let zp=(()=>{class a{}return a.__NG_ELEMENT_ID__=()=>function $m(){const a=Hi(),g=li(wr().index,a);return function Xm(a){return a[11]}(ki(g)?g:a)}(),a})(),e5=(()=>{class a{}return a.\u0275prov=J({token:a,providedIn:"root",factory:()=>null}),a})();class Vp{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const t5=new Vp("13.3.11"),cf={};function sd(a,l,g,A,F=!1){for(;null!==g;){const G=l[g.index];if(null!==G&&A.push(Je(G)),un(G))for(let Te=10;Te<G.length;Te++){const Ze=G[Te],ft=Ze[1].firstChild;null!==ft&&sd(Ze[1],Ze,ft,A)}const oe=g.type;if(8&oe)sd(a,l,g.child,A);else if(32&oe){const Te=M2(g,l);let Ze;for(;Ze=Te();)A.push(Ze)}else if(16&oe){const Te=c1(l,g);if(Array.isArray(Te))A.push(...Te);else{const Ze=El(l[16]);sd(Ze[1],Ze,Te,A,!0)}}g=F?g.projectionNext:g.next}return A}class H0{constructor(l,g){this._lView=l,this._cdRefInjectingView=g,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const l=this._lView,g=l[1];return sd(g,l,g.firstChild,[])}get context(){return this._lView[8]}set context(l){this._lView[8]=l}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const l=this._lView[3];if(un(l)){const g=l[8],A=g?g.indexOf(this):-1;A>-1&&(Bo(l,A),gl(g,A))}this._attachedToViewContainer=!1}lu(this._lView[1],this._lView)}onDestroy(l){Y3(this._lView[1],this._lView,null,l)}markForCheck(){r0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function s0(a,l,g){const A=l[10];A.begin&&A.begin();try{xc(a,l,a.template,g)}catch(F){throw Qu(l,F),F}finally{A.end&&A.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function g3(a,l){gc(a,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new E(902,"");this._appRef=l}}class i5 extends H0{constructor(l){super(l),this._view=l}detectChanges(){e4(this._view)}checkNoChanges(){}get context(){return null}}class ad extends rd{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const g=lt(l);return new od(g,this.ngModule)}}function Bp(a){const l=[];for(let g in a)a.hasOwnProperty(g)&&l.push({propName:a[g],templateName:g});return l}class od extends Np{constructor(l,g){super(),this.componentDef=l,this.ngModule=g,this.componentType=l.type,this.selector=function S3(a){return a.map(w3).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Bp(this.componentDef.inputs)}get outputs(){return Bp(this.componentDef.outputs)}create(l,g,A,F){const G=(F=F||this.ngModule)?function r5(a,l){return{get:(g,A,F)=>{const G=a.get(g,cf,F);return G!==cf||A===cf?G:l.get(g,A,F)}}}(l,F.injector):l,oe=G.get(Fp,je),Te=G.get(e5,null),Ze=oe.createRenderer(null,this.componentDef),ft=this.componentDef.selectors[0][0]||"div",At=A?function W3(a,l,g){if(Vn(a))return a.selectRootElement(l,g===et.ShadowDom);let A="string"==typeof l?a.querySelector(l):l;return A.textContent="",A}(Ze,A,this.componentDef.encapsulation):Vo(oe.createRenderer(null,this.componentDef),ft,function n5(a){const l=a.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(ft)),Yt=this.componentDef.onPush?576:528,ci=function p4(a,l){return{components:[],scheduler:a||u3,clean:Ku,playerHandler:l||null,flags:0}}(),vi=J2(0,null,null,1,0,null,null,null,null,null),Ri=_1(null,vi,ci,Yt,null,null,oe,Ze,Te,G);let Qi,sn;zn(Ri);try{const yn=function c0(a,l,g,A,F,G){const oe=g[1];g[20]=a;const Ze=Ll(oe,20,2,"#host",null),ft=Ze.mergedAttrs=l.hostAttrs;null!==ft&&(a0(Ze,ft,!0),null!==a&&(pi(F,a,ft),null!==Ze.classes&&H2(F,a,Ze.classes),null!==Ze.styles&&R2(F,a,Ze.styles)));const At=A.createRenderer(a,l),Yt=_1(g,Z3(l),null,l.onPush?64:16,g[20],Ze,A,At,G||null,null);return oe.firstCreatePass&&(In(Qt(Ze,g),oe,l.type),Hu(oe,Ze),X3(Ze,g.length,1)),Dl(g,Yt),g[20]=Yt}(At,this.componentDef,Ri,oe,Ze);if(At)if(A)pi(Ze,At,["ng-version",t5.full]);else{const{attrs:Bi,classes:Dn}=function gu(a){const l=[],g=[];let A=1,F=2;for(;A<a.length;){let G=a[A];if("string"==typeof G)2===F?""!==G&&l.push(G,a[++A]):8===F&&g.push(G);else{if(!Ea(F))break;F=G}A++}return{attrs:l,classes:g}}(this.componentDef.selectors[0]);Bi&&pi(Ze,At,Bi),Dn&&Dn.length>0&&H2(Ze,At,Dn.join(" "))}if(sn=tr(vi,20),void 0!==g){const Bi=sn.projection=[];for(let Dn=0;Dn<this.ngContentSelectors.length;Dn++){const mr=g[Dn];Bi.push(null!=mr?Array.from(mr):null)}}Qi=function hh(a,l,g,A,F){const G=g[1],oe=function S6(a,l,g){const A=wr();a.firstCreatePass&&(g.providersResolver&&g.providersResolver(g),zu(a,A,l,Go(a,l,1,null),g));const F=Ua(l,a,A.directiveStart,A);ra(F,l);const G=Ii(A,l);return G&&ra(G,l),F}(G,g,l);if(A.components.push(oe),a[8]=oe,F&&F.forEach(Ze=>Ze(oe,l)),l.contentQueries){const Ze=wr();l.contentQueries(1,oe,Ze.directiveStart)}const Te=wr();return!G.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(Yr(Te.index),ku(g[1],Te,0,Te.directiveStart,Te.directiveEnd,l),Ru(l,oe)),oe}(yn,this.componentDef,Ri,ci,[G6]),so(vi,Ri,null)}finally{Sr()}return new s5(this.componentType,Qi,z1(sn,Ri),Ri,sn)}}class s5 extends class Pp{}{constructor(l,g,A,F,G){super(),this.location=A,this._rootLView=F,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new i5(F),this.componentType=l}get injector(){return new qo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class B1{}class df{}const U1=new Map;class uf extends B1{constructor(l,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ad(this);const A=Jt(l);this._bootstrapComponents=ro(A.bootstrap),this._r3Injector=$u(l,g,[{provide:B1,useValue:this},{provide:rd,useValue:this.componentFactoryResolver}],R(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,g=oo.THROW_IF_NOT_FOUND,A=De.Default){return l===oo||l===B1||l===y1?this:this._r3Injector.get(l,g,A)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class hf extends df{constructor(l){super(),this.moduleType=l,null!==Jt(l)&&function o5(a){const l=new Set;!function g(A){const F=Jt(A,!0),G=F.id;null!==G&&(function Gp(a,l,g){if(l&&l!==g)throw new Error(`Duplicate module registered for ${a} - ${R(l)} vs ${R(l.name)}`)}(G,U1.get(G),A),U1.set(G,A));const oe=ro(F.imports);for(const Te of oe)l.has(Te)||(l.add(Te),g(Te))}(a)}(l)}create(l){return new uf(this.moduleType,l)}}function Wp(a,l,g){const A=Ur()+a,F=Hi();return F[A]===Yn?lo(F,A,g?l.call(g):l()):function C1(a,l){return a[l]}(F,A)}function ff(a,l,g,A){return Qp(Hi(),Ur(),a,l,g,A)}function Yp(a,l,g,A,F){return ld(Hi(),Ur(),a,l,g,A,F)}function pf(a,l,g,A,F,G){return qp(Hi(),Ur(),a,l,g,A,F,G)}function F0(a,l){const g=a[l];return g===Yn?void 0:g}function Qp(a,l,g,A,F,G){const oe=l+g;return fa(a,oe,F)?lo(a,oe+1,G?A.call(G,F):A(F)):F0(a,oe+1)}function ld(a,l,g,A,F,G,oe){const Te=l+g;return kl(a,Te,F,G)?lo(a,Te+2,oe?A.call(oe,F,G):A(F,G)):F0(a,Te+2)}function qp(a,l,g,A,F,G,oe,Te){const Ze=l+g;return wc(a,Ze,F,G,oe)?lo(a,Ze+3,Te?A.call(Te,F,G,oe):A(F,G,oe)):F0(a,Ze+3)}function Xp(a,l){const g=Wn();let A;const F=a+20;g.firstCreatePass?(A=function h5(a,l){if(l)for(let g=l.length-1;g>=0;g--){const A=l[g];if(a===A.name)return A}}(l,g.pipeRegistry),g.data[F]=A,A.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,A.onDestroy)):A=g.data[F];const G=A.factory||(A.factory=Zr(A.type)),oe=ye(Fl);try{const Te=Ve(!1),Ze=G();return Ve(Te),function M4(a,l,g,A){g>=a.data.length&&(a.data[g]=null,a.blueprint[g]=null),l[g]=A}(g,Hi(),F,Ze),Ze}finally{ye(oe)}}function $p(a,l,g){const A=a+20,F=Hi(),G=It(F,A);return z0(F,A)?Qp(F,Ur(),l,G.transform,g,G):G.transform(g)}function e8(a,l,g,A){const F=a+20,G=Hi(),oe=It(G,F);return z0(G,F)?ld(G,Ur(),l,oe.transform,g,A,oe):oe.transform(g,A)}function gf(a,l,g,A,F){const G=a+20,oe=Hi(),Te=It(oe,G);return z0(oe,G)?qp(oe,Ur(),l,Te.transform,g,A,F,Te):Te.transform(g,A,F)}function z0(a,l){return a[1].data[l].pure}function _f(a){return l=>{setTimeout(a,void 0,l)}}const jo=class m5 extends t.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,g,A){var F,G,oe;let Te=l,Ze=g||(()=>null),ft=A;if(l&&"object"==typeof l){const Yt=l;Te=null===(F=Yt.next)||void 0===F?void 0:F.bind(Yt),Ze=null===(G=Yt.error)||void 0===G?void 0:G.bind(Yt),ft=null===(oe=Yt.complete)||void 0===oe?void 0:oe.bind(Yt)}this.__isAsync&&(Ze=_f(Ze),Te&&(Te=_f(Te)),ft&&(ft=_f(ft)));const At=super.subscribe({next:Te,error:Ze,complete:ft});return l instanceof e.w0&&l.add(At),At}};function g5(){return this._results[Ol()]()}class cd{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Ol(),A=cd.prototype;A[g]||(A[g]=g5)}get changes(){return this._changes||(this._changes=new jo)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,g){return this._results.reduce(l,g)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,g){const A=this;A.dirty=!1;const F=la(l);(this._changesDetected=!function q1(a,l,g){if(a.length!==l.length)return!1;for(let A=0;A<a.length;A++){let F=a[A],G=l[A];if(g&&(F=g(F),G=g(G)),G!==F)return!1}return!0}(A._results,F,g))&&(A._results=F,A.length=F.length,A.last=F[this.length-1],A.first=F[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Fc=(()=>{class a{}return a.__NG_ELEMENT_ID__=y5,a})();const _5=Fc,v5=class extends _5{constructor(l,g,A){super(),this._declarationLView=l,this._declarationTContainer=g,this.elementRef=A}createEmbeddedView(l){const g=this._declarationTContainer.tViews,A=_1(this._declarationLView,g,l,16,null,g.declTNode,null,null,null,null);A[17]=this._declarationLView[this._declarationTContainer.index];const G=this._declarationLView[19];return null!==G&&(A[19]=G.createEmbeddedView(g)),so(g,A,l),new H0(A)}};function y5(){return dd(wr(),Hi())}function dd(a,l){return 4&a.type?new v5(l,a,z1(a,l)):null}let Ul=(()=>{class a{}return a.__NG_ELEMENT_ID__=x5,a})();function x5(){return r8(wr(),Hi())}const b5=Ul,t8=class extends b5{constructor(l,g,A){super(),this._lContainer=l,this._hostTNode=g,this._hostLView=A}get element(){return z1(this._hostTNode,this._hostLView)}get injector(){return new qo(this._hostTNode,this._hostLView)}get parentInjector(){const l=an(this._hostTNode,this._hostLView);if(rn(l)){const g=ir(l,this._hostLView),A=fn(l);return new qo(g[1].data[A+8],g)}return new qo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const g=n8(this._lContainer);return null!==g&&g[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,g,A){const F=l.createEmbeddedView(g||{});return this.insert(F,A),F}createComponent(l,g,A,F,G){const oe=l&&!function Oo(a){return"function"==typeof a}(l);let Te;if(oe)Te=g;else{const Yt=g||{};Te=Yt.index,A=Yt.injector,F=Yt.projectableNodes,G=Yt.ngModuleRef}const Ze=oe?l:new od(lt(l)),ft=A||this.parentInjector;if(!G&&null==Ze.ngModule){const ci=(oe?ft:this.parentInjector).get(B1,null);ci&&(G=ci)}const At=Ze.create(ft,F,void 0,G);return this.insert(At.hostView,Te),At}insert(l,g){const A=l._lView,F=A[1];if(function Ei(a){return un(a[3])}(A)){const At=this.indexOf(l);if(-1!==At)this.detach(At);else{const Yt=A[3],ci=new t8(Yt,Yt[6],Yt[3]);ci.detach(ci.indexOf(l))}}const G=this._adjustIndex(g),oe=this._lContainer;!function s1(a,l,g,A){const F=10+A,G=g.length;A>0&&(g[F-1][4]=l),A<G-10?(l[4]=g[F],Kl(g,10+A,l)):(g.push(l),l[4]=null),l[3]=g;const oe=l[17];null!==oe&&g!==oe&&function ou(a,l){const g=a[9];l[16]!==l[3][3][16]&&(a[2]=!0),null===g?a[9]=[l]:g.push(l)}(oe,l);const Te=l[19];null!==Te&&Te.insertView(a),l[2]|=128}(F,A,oe,G);const Te=d1(G,oe),Ze=A[11],ft=ll(Ze,oe[7]);return null!==ft&&function su(a,l,g,A,F,G){A[0]=F,A[6]=l,gc(a,A,g,1,F,G)}(F,oe[6],Ze,A,ft,Te),l.attachToViewContainerRef(),Kl(ud(oe),G,l),l}move(l,g){return this.insert(l,g)}indexOf(l){const g=n8(this._lContainer);return null!==g?g.indexOf(l):-1}remove(l){const g=this._adjustIndex(l,-1),A=Bo(this._lContainer,g);A&&(gl(ud(this._lContainer),g),lu(A[1],A))}detach(l){const g=this._adjustIndex(l,-1),A=Bo(this._lContainer,g);return A&&null!=gl(ud(this._lContainer),g)?new H0(A):null}_adjustIndex(l,g=0){return null==l?this.length+g:l}};function n8(a){return a[8]}function ud(a){return a[8]||(a[8]=[])}function r8(a,l){let g;const A=l[a.index];if(un(A))g=A;else{let F;if(8&a.type)F=Je(A);else{const G=l[11];F=G.createComment("");const oe=Ii(a,l);ol(G,ll(G,oe),F,function cl(a,l){return Vn(a)?a.nextSibling(l):l.nextSibling}(G,oe),!1)}l[a.index]=g=t0(A,l,F,a),Dl(l,g)}return new t8(g,a,l)}class hd{constructor(l){this.queryList=l,this.matches=null}clone(){return new hd(this.queryList)}setDirty(){this.queryList.setDirty()}}class vf{constructor(l=[]){this.queries=l}createEmbeddedView(l){const g=l.queries;if(null!==g){const A=null!==l.contentQueries?l.contentQueries[0]:g.length,F=[];for(let G=0;G<A;G++){const oe=g.getByIndex(G);F.push(this.queries[oe.indexInDeclarationView].clone())}return new vf(F)}return null}insertView(l){this.dirtyQueriesWithMatches(l)}detachView(l){this.dirtyQueriesWithMatches(l)}dirtyQueriesWithMatches(l){for(let g=0;g<this.queries.length;g++)null!==bf(l,g).matches&&this.queries[g].setDirty()}}class a8{constructor(l,g,A=null){this.predicate=l,this.flags=g,this.read=A}}class yf{constructor(l=[]){this.queries=l}elementStart(l,g){for(let A=0;A<this.queries.length;A++)this.queries[A].elementStart(l,g)}elementEnd(l){for(let g=0;g<this.queries.length;g++)this.queries[g].elementEnd(l)}embeddedTView(l){let g=null;for(let A=0;A<this.length;A++){const F=null!==g?g.length:0,G=this.getByIndex(A).embeddedTView(l,F);G&&(G.indexInDeclarationView=A,null!==g?g.push(G):g=[G])}return null!==g?new yf(g):null}template(l,g){for(let A=0;A<this.queries.length;A++)this.queries[A].template(l,g)}getByIndex(l){return this.queries[l]}get length(){return this.queries.length}track(l){this.queries.push(l)}}class fd{constructor(l,g=-1){this.metadata=l,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=g}elementStart(l,g){this.isApplyingToNode(g)&&this.matchTNode(l,g)}elementEnd(l){this._declarationNodeIndex===l.index&&(this._appliesToNextNode=!1)}template(l,g){this.elementStart(l,g)}embeddedTView(l,g){return this.isApplyingToNode(l)?(this.crossesNgTemplate=!0,this.addMatch(-l.index,g),new fd(this.metadata)):null}isApplyingToNode(l){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const g=this._declarationNodeIndex;let A=l.parent;for(;null!==A&&8&A.type&&A.index!==g;)A=A.parent;return g===(null!==A?A.index:-1)}return this._appliesToNextNode}matchTNode(l,g){const A=this.metadata.predicate;if(Array.isArray(A))for(let F=0;F<A.length;F++){const G=A[F];this.matchTNodeWithReadOption(l,g,w5(g,G)),this.matchTNodeWithReadOption(l,g,Ds(g,l,G,!1,!1))}else A===Fc?4&g.type&&this.matchTNodeWithReadOption(l,g,-1):this.matchTNodeWithReadOption(l,g,Ds(g,l,A,!1,!1))}matchTNodeWithReadOption(l,g,A){if(null!==A){const F=this.metadata.read;if(null!==F)if(F===V1||F===Ul||F===Fc&&4&g.type)this.addMatch(g.index,-2);else{const G=Ds(g,l,F,!1,!1);null!==G&&this.addMatch(g.index,G)}else this.addMatch(g.index,A)}}addMatch(l,g){null===this.matches?this.matches=[l,g]:this.matches.push(l,g)}}function w5(a,l){const g=a.localNames;if(null!==g)for(let A=0;A<g.length;A+=2)if(g[A]===l)return g[A+1];return null}function E5(a,l,g,A){return-1===g?function S5(a,l){return 11&a.type?z1(a,l):4&a.type?dd(a,l):null}(l,a):-2===g?function o8(a,l,g){return g===V1?z1(l,a):g===Fc?dd(l,a):g===Ul?r8(l,a):void 0}(a,l,A):Ua(a,a[1],g,l)}function l8(a,l,g,A){const F=l[19].queries[A];if(null===F.matches){const G=a.data,oe=g.matches,Te=[];for(let Ze=0;Ze<oe.length;Ze+=2){const ft=oe[Ze];Te.push(ft<0?null:E5(l,G[ft],oe[Ze+1],g.metadata.read))}F.matches=Te}return F.matches}function pd(a,l,g,A){const F=a.queries.getByIndex(g),G=F.matches;if(null!==G){const oe=l8(a,l,F,g);for(let Te=0;Te<G.length;Te+=2){const Ze=G[Te];if(Ze>0)A.push(oe[Te/2]);else{const ft=G[Te+1],At=l[-Ze];for(let Yt=10;Yt<At.length;Yt++){const ci=At[Yt];ci[17]===ci[3]&&pd(ci[1],ci,ft,A)}if(null!==At[9]){const Yt=At[9];for(let ci=0;ci<Yt.length;ci++){const vi=Yt[ci];pd(vi[1],vi,ft,A)}}}}}return A}function c8(a){const l=Hi(),g=Wn(),A=Oi();en(A+1);const F=bf(g,A);if(a.dirty&&vt(l)===(2==(2&F.metadata.flags))){if(null===F.matches)a.reset([]);else{const G=F.crossesNgTemplate?pd(g,l,A,[]):l8(g,l,F,A);a.reset(G,qm),a.notifyOnChanges()}return!0}return!1}function d8(a,l,g){const A=Wn();A.firstCreatePass&&(h8(A,new a8(a,l,g),-1),2==(2&l)&&(A.staticViewQueries=!0)),xf(A,Hi(),l)}function md(a,l,g,A){const F=Wn();if(F.firstCreatePass){const G=wr();h8(F,new a8(l,g,A),G.index),function f8(a,l){const g=a.contentQueries||(a.contentQueries=[]);l!==(g.length?g[g.length-1]:-1)&&g.push(a.queries.length-1,l)}(F,a),2==(2&g)&&(F.staticContentQueries=!0)}xf(F,Hi(),g)}function u8(){return function T5(a,l){return a[19].queries[l].queryList}(Hi(),Oi())}function xf(a,l,g){const A=new cd(4==(4&g));Y3(a,l,A,A.destroy),null===l[19]&&(l[19]=new vf),l[19].queries.push(new hd(A))}function h8(a,l,g){null===a.queries&&(a.queries=new yf),a.queries.track(new fd(l,g))}function bf(a,l){return a.queries.getByIndex(l)}function Cf(a,l){return dd(a,l)}function xd(...a){}const D8=new jr("Application Initializer");let bd=(()=>{class a{constructor(g){this.appInits=g,this.resolve=xd,this.reject=xd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((A,F)=>{this.resolve=A,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],A=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F<this.appInits.length;F++){const G=this.appInits[F]();if(Ca(G))g.push(G);else if(M0(G)){const oe=new Promise((Te,Ze)=>{G.subscribe({complete:Te,error:Ze})});g.push(oe)}}Promise.all(g).then(()=>{A()}).catch(F=>{this.reject(F)}),0===g.length&&A(),this.initialized=!0}}return a.\u0275fac=function(g){return new(g||a)(Os(D8,8))},a.\u0275prov=J({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const I8=new jr("AppId",{providedIn:"root",factory:function O8(){return`${Df()}${Df()}${Df()}`}});function Df(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const If=new jr("Platform Initializer"),G5=new jr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),k8=new jr("appBootstrapListener");let W5=(()=>{class a{log(g){console.log(g)}warn(g){console.warn(g)}}return a.\u0275fac=function(g){return new(g||a)},a.\u0275prov=J({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();const Of=new jr("LocaleId",{providedIn:"root",factory:()=>ec(Of,De.Optional|De.SkipSelf)||function Y5(){return"undefined"!=typeof $localize&&$localize.locale||Qr}()}),j5=new jr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Q5{constructor(l,g){this.ngModuleFactory=l,this.componentFactories=g}}let q5=(()=>{class a{compileModuleSync(g){return new hf(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const A=this.compileModuleSync(g),G=ro(Jt(g).declarations).reduce((oe,Te)=>{const Ze=lt(Te);return Ze&&oe.push(new od(Ze)),oe},[]);return new Q5(A,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return a.\u0275fac=function(g){return new(g||a)},a.\u0275prov=J({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const $5=(()=>Promise.resolve(0))();function kf(a){"undefined"==typeof Zone?$5.then(()=>{a&&a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)}class fo{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:A=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jo(!1),this.onMicrotaskEmpty=new jo(!1),this.onStable=new jo(!1),this.onError=new jo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!A&&g,F.shouldCoalesceRunChangeDetection=A,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function eg(){let a=ui.requestAnimationFrame,l=ui.cancelAnimationFrame;if("undefined"!=typeof Zone&&a&&l){const g=a[Zone.__symbol__("OriginalDelegate")];g&&(a=g);const A=l[Zone.__symbol__("OriginalDelegate")];A&&(l=A)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function ng(a){const l=()=>{!function ig(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(ui,()=>{a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{a.lastRequestAnimationFrameId=-1,Nf(a),a.isCheckStableRunning=!0,Pf(a),a.isCheckStableRunning=!1},void 0,()=>{},()=>{})),a.fakeTopEventTask.invoke()}),Nf(a))}(a)};a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,A,F,G,oe,Te)=>{try{return Rf(a),g.invokeTask(F,G,oe,Te)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||a.shouldCoalesceRunChangeDetection)&&l(),P8(a)}},onInvoke:(g,A,F,G,oe,Te,Ze)=>{try{return Rf(a),g.invoke(F,G,oe,Te,Ze)}finally{a.shouldCoalesceRunChangeDetection&&l(),P8(a)}},onHasTask:(g,A,F,G)=>{g.hasTask(F,G),A===F&&("microTask"==G.change?(a._hasPendingMicrotasks=G.microTask,Nf(a),Pf(a)):"macroTask"==G.change&&(a.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,A,F,G)=>(g.handleError(F,G),a.runOutsideAngular(()=>a.onError.emit(G)),!1)})}(F)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,g,A){return this._inner.run(l,g,A)}runTask(l,g,A,F){const G=this._inner,oe=G.scheduleEventTask("NgZoneEvent: "+F,l,tg,xd,xd);try{return G.runTask(oe,g,A)}finally{G.cancelTask(oe)}}runGuarded(l,g,A){return this._inner.runGuarded(l,g,A)}runOutsideAngular(l){return this._outer.run(l)}}const tg={};function Pf(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(()=>a.onStable.emit(null))}finally{a.isStable=!0}}}function Nf(a){a.hasPendingMicrotasks=!!(a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId)}function Rf(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function P8(a){a._nesting--,Pf(a)}class rg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo,this.onMicrotaskEmpty=new jo,this.onStable=new jo,this.onError=new jo}run(l,g,A){return l.apply(g,A)}runGuarded(l,g,A){return l.apply(g,A)}runOutsideAngular(l){return l()}runTask(l,g,A,F){return l.apply(g,A)}}let N8=(()=>{class a{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{fo.assertNotInAngularZone(),kf(()=>{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())kf(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(A=>!A.updateCb||!A.updateCb(g)||(clearTimeout(A.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,A,F){let G=-1;A&&A>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(oe=>oe.timeoutId!==G),g(this._didWork,this.getPendingTasks())},A)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:F})}whenStable(g,A,F){if(F&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,A,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,A,F){return[]}}return a.\u0275fac=function(g){return new(g||a)(Os(fo))},a.\u0275prov=J({token:a,factory:a.\u0275fac}),a})(),sg=(()=>{class a{constructor(){this._applications=new Map,Cd.addToWindow(this)}registerApplication(g,A){this._applications.set(g,A)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,A=!0){return Cd.findTestabilityInTree(this,g,A)}}return a.\u0275fac=function(g){return new(g||a)},a.\u0275prov=J({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();class ag{addToWindow(l){}findTestabilityInTree(l,g,A){return null}}function og(a){Cd=a}let Cd=new ag,zc=null;const R8=new jr("AllowMultipleToken"),H8=new jr("PlatformOnDestroy");class z8{constructor(l,g){this.name=l,this.token=g}}function Hf(a,l,g=[]){const A=`Platform: ${l}`,F=new jr(A);return(G=[])=>{let oe=zf();if(!oe||oe.injector.get(R8,!1)){const Te=[...g,...G,{provide:F,useValue:!0}];a?a(Te):function cg(a){if(zc&&!zc.get(R8,!1))throw new E(400,"");zc=a;const l=a.get(V8),g=a.get(If,null);g&&g.forEach(A=>A())}(function Ff(a=[],l){return oo.create({name:l,providers:[{provide:s4,useValue:"platform"},{provide:H8,useValue:()=>zc=null},...a]})}(Te,A))}return function dg(a){const l=zf();if(!l)throw new E(401,"");return l}()}}function zf(){var a;return null!==(a=null==zc?void 0:zc.get(V8))&&void 0!==a?a:null}let V8=(()=>{class a{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,A){const Te=function ug(a,l){let g;return g="noop"===a?new rg:("zone.js"===a?void 0:a)||new fo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),g}(A?A.ngZone:void 0,{ngZoneEventCoalescing:A&&A.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:A&&A.ngZoneRunCoalescing||!1}),Ze=[{provide:fo,useValue:Te}];return Te.run(()=>{const ft=oo.create({providers:Ze,parent:this.injector,name:g.moduleType.name}),At=g.create(ft),Yt=At.injector.get(hc,null);if(!Yt)throw new E(402,"");return Te.runOutsideAngular(()=>{const ci=Te.onError.subscribe({next:vi=>{Yt.handleError(vi)}});At.onDestroy(()=>{Md(this._modules,At),ci.unsubscribe()})}),function Vf(a,l,g){try{const A=g();return Ca(A)?A.catch(F=>{throw l.runOutsideAngular(()=>a.handleError(F)),F}):A}catch(A){throw l.runOutsideAngular(()=>a.handleError(A)),A}}(Yt,Te,()=>{const ci=At.injector.get(bd);return ci.runInitializers(),ci.donePromise.then(()=>(function H1(a){n(a,"Expected localeId to be defined"),"string"==typeof a&&(Zs=a.toLowerCase().replace(/_/g,"-"))}(At.injector.get(Of,Qr)||Qr),this._moduleDoBootstrap(At),At))})})}bootstrapModule(g,A=[]){const F=B8({},A);return function lg(a,l,g){const A=new hf(g);return Promise.resolve(A)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,F))}_moduleDoBootstrap(g){const A=g.injector.get(Bf);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>A.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new E(403,"");g.instance.ngDoBootstrap(A)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,"");this._modules.slice().forEach(A=>A.destroy()),this._destroyListeners.forEach(A=>A());const g=this._injector.get(H8,null);null==g||g(),this._destroyed=!0}get destroyed(){return this._destroyed}}return a.\u0275fac=function(g){return new(g||a)(Os(oo))},a.\u0275prov=J({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();function B8(a,l){return Array.isArray(l)?l.reduce(B8,a):Object.assign(Object.assign({},a),l)}let Bf=(()=>{class a{constructor(g,A,F,G){this._zone=g,this._injector=A,this._exceptionHandler=F,this._initStatus=G,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const oe=new f.y(Ze=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ze.next(this._stable),Ze.complete()})}),Te=new f.y(Ze=>{let ft;this._zone.runOutsideAngular(()=>{ft=this._zone.onStable.subscribe(()=>{fo.assertNotInAngularZone(),kf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ze.next(!0))})})});const At=this._zone.onUnstable.subscribe(()=>{fo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ze.next(!1)}))});return()=>{ft.unsubscribe(),At.unsubscribe()}});this.isStable=(0,M.T)(oe,Te.pipe((0,s.B)()))}bootstrap(g,A){if(!this._initStatus.done)throw new E(405,"");let F;F=g instanceof Np?g:this._injector.get(rd).resolveComponentFactory(g),this.componentTypes.push(F.componentType);const G=function F8(a){return a.isBoundToModule}(F)?void 0:this._injector.get(B1),Te=F.create(oo.NULL,[],A||F.selector,G),Ze=Te.location.nativeElement,ft=Te.injector.get(N8,null),At=ft&&Te.injector.get(sg);return ft&&At&&At.registerApplication(Ze,ft),Te.onDestroy(()=>{this.detachView(Te.hostView),Md(this.components,Te),At&&At.unregisterApplication(Ze)}),this._loadComponent(Te),Te}tick(){if(this._runningTick)throw new E(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const A=g;this._views.push(A),A.attachToAppRef(this)}detachView(g){const A=g;Md(this._views,A),A.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(k8,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return a.\u0275fac=function(g){return new(g||a)(Os(fo),Os(oo),Os(hc),Os(bd))},a.\u0275prov=J({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();function Md(a,l){const g=a.indexOf(l);g>-1&&a.splice(g,1)}let Uf=!0,G8=!1;function Z8(){return G8=!0,Uf}function fg(){if(G8)throw new Error("Cannot enable prod mode after platform setup.");Uf=!1}let wd=(()=>{class a{}return a.__NG_ELEMENT_ID__=mg,a})();function mg(a){return function gg(a,l,g){if(Nn(a)&&!g){const A=li(a.index,l);return new H0(A,A)}return 47&a.type?new H0(l[16],l):null}(wr(),Hi(),16==(16&a))}class Yf{constructor(){}supports(l){return b1(l)}create(l){return new bg(l)}}const xg=(a,l)=>l;class bg{constructor(l){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=l||xg}forEachItem(l){let g;for(g=this._itHead;null!==g;g=g._next)l(g)}forEachOperation(l){let g=this._itHead,A=this._removalsHead,F=0,G=null;for(;g||A;){const oe=!A||g&&g.currentIndex<q8(A,F,G)?g:A,Te=q8(oe,F,G),Ze=oe.currentIndex;if(oe===A)F--,A=A._nextRemoved;else if(g=g._next,null==oe.previousIndex)F++;else{G||(G=[]);const ft=Te-F,At=Ze-F;if(ft!=At){for(let ci=0;ci<ft;ci++){const vi=ci<G.length?G[ci]:G[ci]=0,Ri=vi+ci;At<=Ri&&Ri<ft&&(G[ci]=vi+1)}G[oe.previousIndex]=At-ft}}Te!==Ze&&l(oe,Te,Ze)}}forEachPreviousItem(l){let g;for(g=this._previousItHead;null!==g;g=g._nextPrevious)l(g)}forEachAddedItem(l){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)l(g)}forEachMovedItem(l){let g;for(g=this._movesHead;null!==g;g=g._nextMoved)l(g)}forEachRemovedItem(l){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)l(g)}forEachIdentityChange(l){let g;for(g=this._identityChangesHead;null!==g;g=g._nextIdentityChange)l(g)}diff(l){if(null==l&&(l=[]),!b1(l))throw new E(900,"");return this.check(l)?this:null}onDestroy(){}check(l){this._reset();let F,G,oe,g=this._itHead,A=!1;if(Array.isArray(l)){this.length=l.length;for(let Te=0;Te<this.length;Te++)G=l[Te],oe=this._trackByFn(Te,G),null!==g&&Object.is(g.trackById,oe)?(A&&(g=this._verifyReinsertion(g,G,oe,Te)),Object.is(g.item,G)||this._addIdentityChange(g,G)):(g=this._mismatch(g,G,oe,Te),A=!0),g=g._next}else F=0,function vh(a,l){if(Array.isArray(a))for(let g=0;g<a.length;g++)l(a[g]);else{const g=a[Ol()]();let A;for(;!(A=g.next()).done;)l(A.value)}}(l,Te=>{oe=this._trackByFn(F,Te),null!==g&&Object.is(g.trackById,oe)?(A&&(g=this._verifyReinsertion(g,Te,oe,F)),Object.is(g.item,Te)||this._addIdentityChange(g,Te)):(g=this._mismatch(g,Te,oe,F),A=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,g,A,F){let G;return null===l?G=this._itTail:(G=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._reinsertAfter(l,G,F)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(A,F))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._moveAfter(l,G,F)):l=this._addAfter(new Cg(g,A),G,F),l}_verifyReinsertion(l,g,A,F){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null);return null!==G?l=this._reinsertAfter(G,l._prev,F):l.currentIndex!=F&&(l.currentIndex=F,this._addToMoves(l,F)),l}_truncate(l){for(;null!==l;){const g=l._next;this._addToRemovals(this._unlink(l)),l=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(l,g,A){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const F=l._prevRemoved,G=l._nextRemoved;return null===F?this._removalsHead=G:F._nextRemoved=G,null===G?this._removalsTail=F:G._prevRemoved=F,this._insertAfter(l,g,A),this._addToMoves(l,A),l}_moveAfter(l,g,A){return this._unlink(l),this._insertAfter(l,g,A),this._addToMoves(l,A),l}_addAfter(l,g,A){return this._insertAfter(l,g,A),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,g,A){const F=null===g?this._itHead:g._next;return l._next=F,l._prev=g,null===F?this._itTail=l:F._prev=l,null===g?this._itHead=l:g._next=l,null===this._linkedRecords&&(this._linkedRecords=new Q8),this._linkedRecords.put(l),l.currentIndex=A,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const g=l._prev,A=l._next;return null===g?this._itHead=A:g._next=A,null===A?this._itTail=g:A._prev=g,l}_addToMoves(l,g){return l.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Q8),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,g){return l.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class Cg{constructor(l,g){this.item=l,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Mg{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,g){let A;for(A=this._head;null!==A;A=A._nextDup)if((null===g||g<=A.currentIndex)&&Object.is(A.trackById,l))return A;return null}remove(l){const g=l._prevDup,A=l._nextDup;return null===g?this._head=A:g._nextDup=A,null===A?this._tail=g:A._prevDup=g,null===this._head}}class Q8{constructor(){this.map=new Map}put(l){const g=l.trackById;let A=this.map.get(g);A||(A=new Mg,this.map.set(g,A)),A.add(l)}get(l,g){const F=this.map.get(l);return F?F.get(l,g):null}remove(l){const g=l.trackById;return this.map.get(g).remove(l)&&this.map.delete(g),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q8(a,l,g){const A=a.previousIndex;if(null===A)return A;let F=0;return g&&A<g.length&&(F=g[A]),A+l+F}class J8{constructor(){}supports(l){return l instanceof Map||v4(l)}create(){return new wg}}class wg{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(l){let g;for(g=this._mapHead;null!==g;g=g._next)l(g)}forEachPreviousItem(l){let g;for(g=this._previousMapHead;null!==g;g=g._nextPrevious)l(g)}forEachChangedItem(l){let g;for(g=this._changesHead;null!==g;g=g._nextChanged)l(g)}forEachAddedItem(l){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)l(g)}forEachRemovedItem(l){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)l(g)}diff(l){if(l){if(!(l instanceof Map||v4(l)))throw new E(900,"")}else l=new Map;return this.check(l)?this:null}onDestroy(){}check(l){this._reset();let g=this._mapHead;if(this._appendAfter=null,this._forEach(l,(A,F)=>{if(g&&g.key===F)this._maybeAddToChanges(g,A),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(F,A);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let A=g;null!==A;A=A._nextRemoved)A===this._mapHead&&(this._mapHead=null),this._records.delete(A.key),A._nextRemoved=A._next,A.previousValue=A.currentValue,A.currentValue=null,A._prev=null,A._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,g){if(l){const A=l._prev;return g._next=l,g._prev=A,l._prev=g,A&&(A._next=g),l===this._mapHead&&(this._mapHead=g),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(l,g){if(this._records.has(l)){const F=this._records.get(l);this._maybeAddToChanges(F,g);const G=F._prev,oe=F._next;return G&&(G._next=oe),oe&&(oe._prev=G),F._next=null,F._prev=null,F}const A=new X8(l);return this._records.set(l,A),A.currentValue=g,this._addToAdditions(A),A}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,g){Object.is(g,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=g,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,g){l instanceof Map?l.forEach(g):Object.keys(l).forEach(A=>g(l[A],A))}}class X8{constructor(l){this.key=l,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $8(){return new jf([new Yf])}let jf=(()=>{class a{constructor(g){this.factories=g}static create(g,A){if(null!=A){const F=A.factories.slice();g=g.concat(F)}return new a(g)}static extend(g){return{provide:a,useFactory:A=>a.create(g,A||$8()),deps:[[a,new Xs,new ic]]}}find(g){const A=this.factories.find(F=>F.supports(g));if(null!=A)return A;throw new E(901,"")}}return a.\u0275prov=J({token:a,providedIn:"root",factory:$8}),a})();function Ld(){return new Kf([new J8])}let Kf=(()=>{class a{constructor(g){this.factories=g}static create(g,A){if(A){const F=A.factories.slice();g=g.concat(F)}return new a(g)}static extend(g){return{provide:a,useFactory:A=>a.create(g,A||Ld()),deps:[[a,new Xs,new ic]]}}find(g){const A=this.factories.find(G=>G.supports(g));if(A)return A;throw new E(901,"")}}return a.\u0275prov=J({token:a,providedIn:"root",factory:Ld}),a})();const Tg=Hf(null,"core",[]);let Ag=(()=>{class a{constructor(g){}}return a.\u0275fac=function(g){return new(g||a)(Os(Bf))},a.\u0275mod=nt({type:a}),a.\u0275inj=xe({}),a})()},9042:(ze,K,p)=>{"use strict";function t(L){for(let w in L){let D=L[w]||"";switch(w){case"display":L.display="flex"===D?["-webkit-flex","flex"]:"inline-flex"===D?["-webkit-inline-flex","inline-flex"]:D;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":L["-webkit-"+w]=D;break;case"flex-direction":D=D||"row",L["-webkit-flex-direction"]=D,L["flex-direction"]=D;break;case"order":L.order=L["-webkit-"+w]=isNaN(+D)?"0":D}}return L}p.d(K,{Ar:()=>M,GK:()=>t,iQ:()=>f,kt:()=>h,tj:()=>b});const e="inline",f=["row","column","row-reverse","column-reverse"];function M(L){let[w,D,S]=s(L);return function R(L,w=null,D=!1){return{display:D?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":w||null}}(w,D,S)}function s(L){var w;L=null!==(w=null==L?void 0:L.toLowerCase())&&void 0!==w?w:"";let[D,S,k]=L.split(" ");return f.find(E=>E===D)||(D=f[0]),S===e&&(S=k!==e?k:"",k=e),[D,d(S),!!k]}function b(L){let[w]=s(L);return w.indexOf("row")>-1}function d(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function h(L,...w){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let D of w)if(null!=D)for(let S in D)D.hasOwnProperty(S)&&(L[S]=D[S]);return L}},3270:(ze,K,p)=>{"use strict";p.d(K,{Bs:()=>ne,FL:()=>ui,IR:()=>S,Ot:()=>di,QI:()=>de,RK:()=>te,WU:()=>W,g5:()=>U,iR:()=>ye,wY:()=>j,yB:()=>ae});var t=p(5e3),e=p(9808),f=p(1135),M=p(8306),s=p(6451),b=p(7579),d=p(9042),R=p(9300),h=p(8505);const w={provide:t.tb,useFactory:function L(Ot,Nt){return()=>{if((0,e.NF)(Nt)){const gt=Array.from(Ot.querySelectorAll(`[class*=${D}]`)),tt=/\bflex-layout-.+?\b/g;gt.forEach(xt=>{xt.classList.contains(`${D}ssr`)&&xt.parentNode?xt.parentNode.removeChild(xt):xt.className.replace(tt,"")})}}},deps:[e.K0,t.Lbi],multi:!0},D="flex-layout-";let S=(()=>{class Ot{}return Ot.\u0275fac=function(gt){return new(gt||Ot)},Ot.\u0275mod=t.oAB({type:Ot}),Ot.\u0275inj=t.cJS({providers:[w]}),Ot})();class k{constructor(Nt=!1,gt="all",tt="",xt="",ei=0){this.matches=Nt,this.mediaQuery=gt,this.mqAlias=tt,this.suffix=xt,this.priority=ei,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let E=(()=>{class Ot{constructor(){this.stylesheet=new Map}addStyleToElement(gt,tt,xt){const ei=this.stylesheet.get(gt);ei?ei.set(tt,xt):this.stylesheet.set(gt,new Map([[tt,xt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,tt){const xt=this.stylesheet.get(gt);let ei="";if(xt){const Kt=xt.get(tt);("number"==typeof Kt||"string"==typeof Kt)&&(ei=Kt+"")}return ei}}return Ot.\u0275fac=function(gt){return new(gt||Ot)},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const U={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},W=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>U}),j=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ne=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(Ot,Nt){return Ot=Ot?Ot.clone():new k,Nt&&(Ot.mqAlias=Nt.alias,Ot.mediaQuery=Nt.mediaQuery,Ot.suffix=Nt.suffix,Ot.priority=Nt.priority),Ot}class de{constructor(){this.shouldCache=!0}sideEffect(Nt,gt,tt){}}let te=(()=>{class Ot{constructor(gt,tt,xt,ei){this._serverStylesheet=gt,this._serverModuleLoaded=tt,this._platformId=xt,this.layoutConfig=ei}applyStyleToElement(gt,tt,xt=null){let ei={};"string"==typeof tt&&(ei[tt]=xt,tt=ei),ei=this.layoutConfig.disableVendorPrefixes?tt:(0,d.GK)(tt),this._applyMultiValueStyleToElement(ei,gt)}applyStyleToElements(gt,tt=[]){const xt=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);tt.forEach(ei=>{this._applyMultiValueStyleToElement(xt,ei)})}getFlowDirection(gt){const tt="flex-direction";let xt=this.lookupStyle(gt,tt);return[xt||"row",this.lookupInlineStyle(gt,tt)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?xt:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,tt){var xt;return null!==(xt=gt.getAttribute(tt))&&void 0!==xt?xt:""}lookupInlineStyle(gt,tt){return(0,e.NF)(this._platformId)?gt.style.getPropertyValue(tt):function ie(Ot,Nt){var gt;return null!==(gt=ge(Ot)[Nt])&&void 0!==gt?gt:""}(gt,tt)}lookupStyle(gt,tt,xt=!1){let ei="";return gt&&((ei=this.lookupInlineStyle(gt,tt))||((0,e.NF)(this._platformId)?xt||(ei=getComputedStyle(gt).getPropertyValue(tt)):this._serverModuleLoaded&&(ei=this._serverStylesheet.getStyleForElement(gt,tt)))),ei?ei.trim():""}_applyMultiValueStyleToElement(gt,tt){Object.keys(gt).sort().forEach(xt=>{const ei=gt[xt],Kt=Array.isArray(ei)?ei:[ei];Kt.sort();for(let Re of Kt)Re=Re?Re+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?tt.style.setProperty(xt,Re):le(tt,xt,Re):this._serverStylesheet.addStyleToElement(tt,xt,Re)})}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(E),t.LFG(j),t.LFG(t.Lbi),t.LFG(W))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();function le(Ot,Nt,gt){Nt=Nt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const tt=ge(Ot);tt[Nt]=null!=gt?gt:"",function $(Ot,Nt){let gt="";for(const tt in Nt)Nt[tt]&&(gt+=`${tt}:${Nt[tt]};`);Ot.setAttribute("style",gt)}(Ot,tt)}function ge(Ot){const Nt={},gt=Ot.getAttribute("style");if(gt){const tt=gt.split(/;+/g);for(let xt=0;xt<tt.length;xt++){const ei=tt[xt].trim();if(ei.length>0){const Kt=ei.indexOf(":");if(-1===Kt)throw new Error(`Invalid CSS style: ${ei}`);Nt[ei.substr(0,Kt).trim()]=ei.substr(Kt+1).trim()}}}return Nt}function C(Ot,Nt){return(Nt&&Nt.priority||0)-(Ot&&Ot.priority||0)}function i(Ot,Nt){return(Ot.priority||0)-(Nt.priority||0)}let r=(()=>{class Ot{constructor(gt,tt,xt){this._zone=gt,this._platformId=tt,this._document=xt,this.source=new f.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((tt,xt)=>{tt.matches&&gt.push(xt)}),gt}isActive(gt){var tt;const xt=this.registry.get(gt);return null!==(tt=null==xt?void 0:xt.matches)&&void 0!==tt?tt:this.registerQuery(gt).some(ei=>ei.matches)}observe(gt,tt=!1){if(gt&&gt.length){const xt=this._observable$.pipe((0,R.h)(Kt=>!tt||gt.indexOf(Kt.mediaQuery)>-1)),ei=new M.y(Kt=>{const Re=this.registerQuery(gt);if(Re.length){const Oe=Re.pop();Re.forEach(ce=>{Kt.next(ce)}),this.source.next(Oe)}Kt.complete()});return(0,s.T)(ei,xt)}return this._observable$}registerQuery(gt){const tt=Array.isArray(gt)?gt:[gt],xt=[];return function c(Ot,Nt){const gt=Ot.filter(tt=>!u[tt]);if(gt.length>0){const tt=gt.join(", ");try{const xt=Nt.createElement("style");xt.setAttribute("type","text/css"),xt.styleSheet||xt.appendChild(Nt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${tt} {.fx-query-test{ }}\n`)),Nt.head.appendChild(xt),gt.forEach(ei=>u[ei]=xt)}catch(xt){console.error(xt)}}}(tt,this._document),tt.forEach(ei=>{const Kt=Oe=>{this._zone.run(()=>this.source.next(new k(Oe.matches,ei)))};let Re=this.registry.get(ei);Re||(Re=this.buildMQL(ei),Re.addListener(Kt),this.pendingRemoveListenerFns.push(()=>Re.removeListener(Kt)),this.registry.set(ei,Re)),Re.matches&&xt.push(new k(!0,ei))}),xt}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function v(Ot,Nt){return Nt&&window.matchMedia("all").addListener?window.matchMedia(Ot):{matches:"all"===Ot||""===Ot,media:Ot,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,e.NF)(this._platformId))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const u={},T=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],I="(orientation: portrait) and (max-width: 599.98px)",y="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",B="(orientation: portrait) and (min-width: 840px)",N="(orientation: landscape) and (min-width: 1280px)",H={HANDSET:`${I}, ${y}`,TABLET:`${n} , ${_}`,WEB:`${B}, ${N} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${B}`,HANDSET_LANDSCAPE:`${y}`,TABLET_LANDSCAPE:`${_}`,WEB_LANDSCAPE:`${N}`},J=[{alias:"handset",priority:2e3,mediaQuery:H.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:H.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:H.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:H.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:H.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:H.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:H.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:H.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:H.WEB_PORTRAIT,overlapping:!0}],ue=/(\.|-|_)/g;function xe(Ot){let Nt=Ot.length>0?Ot.charAt(0):"",gt=Ot.length>1?Ot.slice(1):"";return Nt.toUpperCase()+gt}const Ue=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Ot=(0,t.f3M)(ne),Nt=(0,t.f3M)(W),gt=[].concat.apply([],(Ot||[]).map(xt=>Array.isArray(xt)?xt:[xt]));return function Q(Ot,Nt=[]){const gt={};return Ot.forEach(tt=>{gt[tt.alias]=tt}),Nt.forEach(tt=>{gt[tt.alias]?(0,d.kt)(gt[tt.alias],tt):gt[tt.alias]=tt}),function Se(Ot){return Ot.forEach(Nt=>{Nt.suffix||(Nt.suffix=function Pe(Ot){return Ot.replace(ue,"|").split("|").map(xe).join("")}(Nt.alias),Nt.overlapping=!!Nt.overlapping)}),Ot}(Object.keys(gt).map(tt=>gt[tt]))}((Nt.disableDefaultBps?[]:T).concat(Nt.addOrientationBps?J:[]),gt)}});let Ce=(()=>{class Ot{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(i)}findByAlias(gt){return gt?this.findWithPredicate(gt,tt=>tt.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,tt=>tt.mediaQuery===gt)}get overlappings(){return this.items.filter(gt=>gt.overlapping)}get aliases(){return this.items.map(gt=>gt.alias)}get suffixes(){return this.items.map(gt=>{var tt;return null!==(tt=null==gt?void 0:gt.suffix)&&void 0!==tt?tt:""})}findWithPredicate(gt,tt){var xt;let ei=this.findByMap.get(gt);return ei||(ei=null!==(xt=this.items.find(tt))&&void 0!==xt?xt:null,this.findByMap.set(gt,ei)),null!=ei?ei:null}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(Ue))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const q="print",Ae={alias:q,mediaQuery:q,priority:1e3};let ut=(()=>{class Ot{constructor(gt,tt,xt){this.breakpoints=gt,this.layoutConfig=tt,this._document=xt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ie,this.deactivations=[]}withPrintQuery(gt){return[...gt,q]}isPrintEvent(gt){return gt.mediaQuery.startsWith(q)}get printAlias(){var gt;return[...null!==(gt=this.layoutConfig.printWithBreakpoints)&&void 0!==gt?gt:[]]}get printBreakPoints(){return this.printAlias.map(gt=>this.breakpoints.findByAlias(gt)).filter(gt=>null!==gt)}getEventBreakpoints({mediaQuery:gt}){const tt=this.breakpoints.findByQuery(gt);return(tt?[...this.printBreakPoints,tt]:this.printBreakPoints).sort(C)}updateEvent(gt){var tt;let xt=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(xt=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(tt=null==xt?void 0:xt.mediaQuery)&&void 0!==tt?tt:""),ee(gt,xt)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const tt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new k(!0,q))),gt.updateStyles())},xt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",tt),this._document.defaultView.addEventListener("afterprint",xt),this.beforePrintEventListeners.push(tt),this.afterPrintEventListeners.push(xt)}interceptEvents(gt){return tt=>{this.isPrintEvent(tt)?tt.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(tt)),gt.updateStyles()):!tt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,tt)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,tt){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(tt)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,tt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!tt.matches){const xt=this.breakpoints.findByQuery(tt.mediaQuery);if(xt){const ei=this.formerActivations&&this.formerActivations.includes(xt),Kt=!this.formerActivations&&gt.activatedBreakpoints.includes(xt);(ei||Kt)&&(this.deactivations.push(xt),this.deactivations.sort(C))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("beforeprint",gt)),this.afterPrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("afterprint",gt)))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(Ce),t.LFG(W),t.LFG(e.K0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();class Ie{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Nt){return Nt.push(Ae),Nt.sort(C),Nt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(Nt){Nt&&void 0===this.printBreakpoints.find(tt=>tt.mediaQuery===Nt.mediaQuery)&&(this.printBreakpoints=function De(Ot){var Nt;return null!==(Nt=null==Ot?void 0:Ot.mediaQuery.startsWith(q))&&void 0!==Nt&&Nt}(Nt)?[Nt,...this.printBreakpoints]:[...this.printBreakpoints,Nt])}clear(){this.printBreakpoints=[]}}let ae=(()=>{class Ot{constructor(gt,tt,xt){this.matchMedia=gt,this.breakpoints=tt,this.hook=xt,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new b.x,this.observeActivations()}get activatedAlias(){var gt,tt;return null!==(tt=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==tt?tt:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const tt=this.findByQuery(gt.mediaQuery);if(tt){gt=ee(gt,tt);const xt=this.activatedBreakpoints.indexOf(tt);gt.matches&&-1===xt?(this._activatedBreakpoints.push(tt),this._activatedBreakpoints.sort(C),this.updateStyles()):!gt.matches&&-1!==xt&&(this._activatedBreakpoints.splice(xt,1),this._activatedBreakpoints.sort(C),this.updateStyles())}}init(gt,tt,xt,ei,Kt=[]){we(this.updateMap,gt,tt,xt),we(this.clearMap,gt,tt,ei),this.buildElementKeyMap(gt,tt),this.watchExtraTriggers(gt,tt,Kt)}getValue(gt,tt,xt){const ei=this.elementMap.get(gt);if(ei){const Kt=void 0!==xt?ei.get(xt):this.getActivatedValues(ei,tt);if(Kt)return Kt.get(tt)}}hasValue(gt,tt){const xt=this.elementMap.get(gt);if(xt){const ei=this.getActivatedValues(xt,tt);if(ei)return void 0!==ei.get(tt)||!1}return!1}setValue(gt,tt,xt,ei){var Kt;let Re=this.elementMap.get(gt);if(Re){const ce=(null!==(Kt=Re.get(ei))&&void 0!==Kt?Kt:new Map).set(tt,xt);Re.set(ei,ce),this.elementMap.set(gt,Re)}else Re=(new Map).set(ei,(new Map).set(tt,xt)),this.elementMap.set(gt,Re);const Oe=this.getValue(gt,tt);void 0!==Oe&&this.updateElement(gt,tt,Oe)}trackValue(gt,tt){return this.subject.asObservable().pipe((0,R.h)(xt=>xt.element===gt&&xt.key===tt))}updateStyles(){this.elementMap.forEach((gt,tt)=>{const xt=new Set(this.elementKeyMap.get(tt));let ei=this.getActivatedValues(gt);ei&&ei.forEach((Kt,Re)=>{this.updateElement(tt,Re,Kt),xt.delete(Re)}),xt.forEach(Kt=>{if(ei=this.getActivatedValues(gt,Kt),ei){const Re=ei.get(Kt);this.updateElement(tt,Kt,Re)}else this.clearElement(tt,Kt)})})}clearElement(gt,tt){const xt=this.clearMap.get(gt);if(xt){const ei=xt.get(tt);ei&&(ei(),this.subject.next({element:gt,key:tt,value:""}))}}updateElement(gt,tt,xt){const ei=this.updateMap.get(gt);if(ei){const Kt=ei.get(tt);Kt&&(Kt(xt),this.subject.next({element:gt,key:tt,value:xt}))}}releaseElement(gt){const tt=this.watcherMap.get(gt);tt&&(tt.forEach(ei=>ei.unsubscribe()),this.watcherMap.delete(gt));const xt=this.elementMap.get(gt);xt&&(xt.forEach((ei,Kt)=>xt.delete(Kt)),this.elementMap.delete(gt))}triggerUpdate(gt,tt){const xt=this.elementMap.get(gt);if(xt){const ei=this.getActivatedValues(xt,tt);ei&&(tt?this.updateElement(gt,tt,ei.get(tt)):ei.forEach((Kt,Re)=>this.updateElement(gt,Re,Kt)))}}buildElementKeyMap(gt,tt){let xt=this.elementKeyMap.get(gt);xt||(xt=new Set,this.elementKeyMap.set(gt,xt)),xt.add(tt)}watchExtraTriggers(gt,tt,xt){if(xt&&xt.length){let ei=this.watcherMap.get(gt);if(ei||(ei=new Map,this.watcherMap.set(gt,ei)),!ei.get(tt)){const Re=(0,s.T)(...xt).subscribe(()=>{const Oe=this.getValue(gt,tt);this.updateElement(gt,tt,Oe)});ei.set(tt,Re)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,tt){for(let ei=0;ei<this.activatedBreakpoints.length;ei++){const Re=gt.get(this.activatedBreakpoints[ei].alias);if(Re&&(void 0===tt||Re.has(tt)&&null!=Re.get(tt)))return Re}if(!this._useFallbacks)return;const xt=gt.get("");return void 0===tt||xt&&xt.has(tt)?xt:void 0}observeActivations(){const gt=this.breakpoints.items.map(tt=>tt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(r),t.LFG(Ce),t.LFG(ut))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();function we(Ot,Nt,gt,tt){var xt;if(void 0!==tt){const ei=null!==(xt=Ot.get(Nt))&&void 0!==xt?xt:new Map;ei.set(gt,tt),Ot.set(Nt,ei)}}let ye=(()=>{class Ot{constructor(gt,tt,xt,ei){this.elementRef=gt,this.styleBuilder=tt,this.styler=xt,this.marshal=ei,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new b.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(gt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,this.marshal.activatedAlias)}ngOnChanges(gt){Object.keys(gt).forEach(tt=>{if(-1!==this.inputs.indexOf(tt)){const xt=tt.split(".").slice(1).join(".");this.setValue(gt[tt].currentValue,xt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(gt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),gt)}addStyles(gt,tt){const xt=this.styleBuilder,ei=xt.shouldCache;let Kt=this.styleCache.get(gt);(!Kt||!ei)&&(Kt=xt.buildStyles(gt,tt),ei&&this.styleCache.set(gt,Kt)),this.mru=Object.assign({},Kt),this.applyStyleToElement(Kt),xt.sideEffect(gt,Kt,tt)}clearStyles(){Object.keys(this.mru).forEach(gt=>{this.mru[gt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(gt,tt=!1){if(gt){const[xt,ei]=this.styler.getFlowDirection(gt);if(!ei&&tt){const Kt=(0,d.Ar)(xt);this.styler.applyStyleToElements(Kt,[gt])}return xt.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,tt,xt=this.nativeElement){this.styler.applyStyleToElement(xt,gt,tt)}setValue(gt,tt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,tt)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.Y36(t.SBq),t.Y36(de),t.Y36(te),t.Y36(ae))},Ot.\u0275dir=t.lG2({type:Ot,features:[t.TTD]}),Ot})();function di(Ot,Nt="1",gt="1"){let tt=[Nt,gt,Ot],xt=Ot.indexOf("calc");if(xt>0){tt[2]=Wt(Ot.substring(xt).trim());let ei=Ot.substr(0,xt).trim().split(" ");2==ei.length&&(tt[0]=ei[0],tt[1]=ei[1])}else if(0==xt)tt[2]=Wt(Ot.trim());else{let ei=Ot.split(" ");tt=3===ei.length?ei:[Nt,gt,Ot]}return tt}function Wt(Ot){return Ot.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function ui(Ot,Nt){if(void 0===Nt)return Ot;const gt=tt=>{const xt=+tt.slice(0,-"x".length);return Ot.endsWith("x")&&!isNaN(xt)?`${xt*Nt.value}${Nt.unit}`:Ot};return Ot.includes(" ")?Ot.split(" ").map(gt).join(" "):gt(Ot)}},3322:(ze,K,p)=>{"use strict";p.d(K,{Zl:()=>T,aT:()=>n,oO:()=>U});var t=p(5e3),e=p(3270),f=p(9808),b=(p(3191),p(2722),p(2313));let S=(()=>{class _ extends e.iR{constructor(N,H,J,ue,xe,Pe,Se){super(N,null,H,J),this.ngClassInstance=Se,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new f.mk(ue,xe,N,Pe)),this.init(),this.setValue("","")}set klass(N){this.ngClassInstance.klass=N,this.setValue(N,"")}updateWithValue(N){this.ngClassInstance.ngClass=N,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return _.\u0275fac=function(N){return new(N||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.mk,10))},_.\u0275dir=t.lG2({type:_,inputs:{klass:["class","klass"]},features:[t.qOj]}),_})();const k=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let U=(()=>{class _ extends S{constructor(){super(...arguments),this.inputs=k}}return _.\u0275fac=function(){let B;return function(H){return(B||(B=t.n5z(_)))(H||_)}}(),_.\u0275dir=t.lG2({type:_,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[t.qOj]}),_})();class ie{constructor(B,N,H=!0){this.key=B,this.value=N,this.key=H?B.replace(/['"]/g,"").trim():B.trim(),this.value=H?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function le(_){let B=typeof _;return"object"===B?_.constructor===Array?"array":_.constructor===Set?"set":"object":B}function i(_){const[B,...N]=_.split(":");return new ie(B,N.join(":"))}function r(_,B){return B.key&&(_[B.key]=B.value),_}let u=(()=>{class _ extends e.iR{constructor(N,H,J,ue,xe,Pe,Se,Q,Ue){var Ce;super(N,null,H,J),this.sanitizer=ue,this.ngStyleInstance=Se,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new f.PC(N,xe,Pe)),this.init();const q=null!==(Ce=this.nativeElement.getAttribute("style"))&&void 0!==Ce?Ce:"";this.fallbackStyles=this.buildStyleMap(q),this.isServer=Q&&(0,f.PM)(Ue)}updateWithValue(N){const H=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),H),this.isServer&&this.applyStyleToElement(H),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const H=J=>{var ue;return null!==(ue=this.sanitizer.sanitize(t.q3G.STYLE,J))&&void 0!==ue?ue:""};if(N)switch(le(N)){case"string":return I(function $(_,B=";"){return String(_).trim().split(B).map(N=>N.trim()).filter(N=>""!==N)}(N),H);case"array":return I(N,H);default:return function C(_,B){let N=[];return"set"===le(_)?_.forEach(H=>N.push(H)):Object.keys(_).forEach(H=>{N.push(`${H}:${_[H]}`)}),function ge(_,B){return _.map(i).filter(H=>!!H).map(H=>(B&&(H.value=B(H.value)),H)).reduce(r,{})}(N,B)}(N,H)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return _.\u0275fac=function(N){return new(N||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(b.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},_.\u0275dir=t.lG2({type:_,features:[t.qOj]}),_})();const c=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let T=(()=>{class _ extends u{constructor(){super(...arguments),this.inputs=c}}return _.\u0275fac=function(){let B;return function(H){return(B||(B=t.n5z(_)))(H||_)}}(),_.\u0275dir=t.lG2({type:_,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[t.qOj]}),_})();function I(_,B){return _.map(i).filter(H=>!!H).map(H=>(B&&(H.value=B(H.value)),H)).reduce(r,{})}let n=(()=>{class _{}return _.\u0275fac=function(N){return new(N||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[e.IR]]}),_})()},7093:(ze,K,p)=>{"use strict";p.d(K,{Wh:()=>Wt,ae:()=>Re,xw:()=>w,yH:()=>v});var t=p(5e3),e=p(226),f=p(3270),M=p(9042),b=(p(7579),p(2722));let d=(()=>{class Oe extends f.QI{buildStyles(ve,{display:ht}){const mt=(0,M.Ar)(ve);return Object.assign(Object.assign({},mt),{display:"none"===ht?ht:mt.display})}}return Oe.\u0275fac=function(){let ce;return function(ht){return(ce||(ce=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const R=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let L=(()=>{class Oe extends f.iR{constructor(ve,ht,mt,Ht,it){super(ve,mt,ht,Ht),this._config=it,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ve){var ht;const Ht=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ht=D.get(Ht))&&void 0!==ht?ht:new Map,D.set(Ht,this.styleCache),this.currentValue!==ve&&(this.addStyles(ve,{display:Ht}),this.currentValue=ve)}}return Oe.\u0275fac=function(ve){return new(ve||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(d),t.Y36(f.yB),t.Y36(f.WU))},Oe.\u0275dir=t.lG2({type:Oe,features:[t.qOj]}),Oe})(),w=(()=>{class Oe extends L{constructor(){super(...arguments),this.inputs=R}}return Oe.\u0275fac=function(){let ce;return function(ht){return(ce||(ce=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[t.qOj]}),Oe})();const D=new Map;let i=(()=>{class Oe extends f.QI{constructor(ve){super(),this.layoutConfig=ve}buildStyles(ve,ht){let[mt,Ht,...it]=ve.split(" "),Ne=it.join(" ");const nt=ht.direction.indexOf("column")>-1?"column":"row",Xe=(0,M.tj)(nt)?"max-width":"max-height",Ee=(0,M.tj)(nt)?"min-width":"min-height",Ge=String(Ne).indexOf("calc")>-1,ot=Ge||"auto"===Ne,lt=String(Ne).indexOf("%")>-1&&!Ge,Ct=String(Ne).indexOf("px")>-1||String(Ne).indexOf("rem")>-1||String(Ne).indexOf("em")>-1||String(Ne).indexOf("vw")>-1||String(Ne).indexOf("vh")>-1;let mi=Ge||Ct;mt="0"==mt?0:mt,Ht="0"==Ht?0:Ht;const Jt=!mt&&!Ht;let $t={};const Ki={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ne||""){case"":const hi=!1!==this.layoutConfig.useColumnBasisZero;Ne="row"===nt?"0%":hi?"0.000000001px":"auto";break;case"initial":case"nogrow":mt=0,Ne="auto";break;case"grow":Ne="100%";break;case"noshrink":Ht=0,Ne="auto";break;case"auto":break;case"none":mt=0,Ht=0,Ne="auto";break;default:!mi&&!lt&&!isNaN(Ne)&&(Ne+="%"),"0%"===Ne&&(mi=!0),"0px"===Ne&&(Ne="0%"),$t=(0,M.kt)(Ki,Ge?{"flex-grow":mt,"flex-shrink":Ht,"flex-basis":mi?Ne:"100%"}:{flex:`${mt} ${Ht} ${mi?Ne:"100%"}`})}return $t.flex||$t["flex-grow"]||($t=(0,M.kt)(Ki,Ge?{"flex-grow":mt,"flex-shrink":Ht,"flex-basis":Ne}:{flex:`${mt} ${Ht} ${Ne}`})),"0%"!==Ne&&"0px"!==Ne&&"0.000000001px"!==Ne&&"auto"!==Ne&&($t[Ee]=Jt||mi&&mt?Ne:null,$t[Xe]=Jt||!ot&&Ht?Ne:null),$t[Ee]||$t[Xe]?ht.hasWrap&&($t[Ge?"flex-basis":"flex"]=$t[Xe]?Ge?$t[Xe]:`${mt} ${Ht} ${$t[Xe]}`:Ge?$t[Ee]:`${mt} ${Ht} ${$t[Ee]}`):$t=(0,M.kt)(Ki,Ge?{"flex-grow":mt,"flex-shrink":Ht,"flex-basis":Ne}:{flex:`${mt} ${Ht} ${Ne}`}),(0,M.kt)($t,{"box-sizing":"border-box"})}}return Oe.\u0275fac=function(ve){return new(ve||Oe)(t.LFG(f.WU))},Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const r=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let c=(()=>{class Oe extends f.iR{constructor(ve,ht,mt,Ht,it){super(ve,Ht,ht,it),this.layoutConfig=mt,this.marshal=it,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(ve){this.flexShrink=ve||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ve){this.flexGrow=ve||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,b.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,b.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ve){const mt=ve.value.split(" ");this.direction=mt[0],this.wrap=void 0!==mt[1]&&"wrap"===mt[1],this.triggerUpdate()}updateWithValue(ve){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 mt=this.direction,Ht=mt.startsWith("row"),it=this.wrap;Ht&&it?this.styleCache=y:Ht&&!it?this.styleCache=T:!Ht&&it?this.styleCache=n:!Ht&&!it&&(this.styleCache=I);const Ne=String(ve).replace(";",""),nt=(0,f.Ot)(Ne,this.flexGrow,this.flexShrink);this.addStyles(nt.join(" "),{direction:mt,hasWrap:it})}triggerReflow(){const ve=this.activatedValue;if(void 0!==ve){const ht=(0,f.Ot)(ve+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ht.join(" "))}}}return Oe.\u0275fac=function(ve){return new(ve||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(f.WU),t.Y36(i),t.Y36(f.yB))},Oe.\u0275dir=t.lG2({type:Oe,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Oe})(),v=(()=>{class Oe extends c{constructor(){super(...arguments),this.inputs=r}}return Oe.\u0275fac=function(){let ce;return function(ht){return(ce||(ce=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[t.qOj]}),Oe})();const T=new Map,I=new Map,y=new Map,n=new Map;let pt=(()=>{class Oe extends f.QI{buildStyles(ve,ht){const mt={},[Ht,it]=ve.split(" ");switch(Ht){case"center":mt["justify-content"]="center";break;case"space-around":mt["justify-content"]="space-around";break;case"space-between":mt["justify-content"]="space-between";break;case"space-evenly":mt["justify-content"]="space-evenly";break;case"end":case"flex-end":mt["justify-content"]="flex-end";break;default:mt["justify-content"]="flex-start"}switch(it){case"start":case"flex-start":mt["align-items"]=mt["align-content"]="flex-start";break;case"center":mt["align-items"]=mt["align-content"]="center";break;case"end":case"flex-end":mt["align-items"]=mt["align-content"]="flex-end";break;case"space-between":mt["align-content"]="space-between",mt["align-items"]="stretch";break;case"space-around":mt["align-content"]="space-around",mt["align-items"]="stretch";break;case"baseline":mt["align-content"]="stretch",mt["align-items"]="baseline";break;default:mt["align-items"]=mt["align-content"]="stretch"}return(0,M.kt)(mt,{display:ht.inline?"inline-flex":"flex","flex-direction":ht.layout,"box-sizing":"border-box","max-width":"stretch"===it?(0,M.tj)(ht.layout)?null:"100%":null,"max-height":"stretch"===it&&(0,M.tj)(ht.layout)?"100%":null})}}return Oe.\u0275fac=function(){let ce;return function(ht){return(ce||(ce=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275prov=t.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();const et=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let di=(()=>{class Oe extends f.iR{constructor(ve,ht,mt,Ht){super(ve,mt,ht,Ht),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,b.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ve){const ht=this.layout||"row",mt=this.inline;"row"===ht&&mt?this.styleCache=gt:"row"!==ht||mt?"row-reverse"===ht&&mt?this.styleCache=xt:"row-reverse"!==ht||mt?"column"===ht&&mt?this.styleCache=tt:"column"!==ht||mt?"column-reverse"===ht&&mt?this.styleCache=ei:"column-reverse"===ht&&!mt&&(this.styleCache=Nt):this.styleCache=ui:this.styleCache=Ot:this.styleCache=Gt,this.addStyles(ve,{layout:ht,inline:mt})}onLayoutChange(ve){const ht=ve.value.split(" ");this.layout=ht[0],this.inline=ve.value.includes("inline"),M.iQ.find(mt=>mt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Oe.\u0275fac=function(ve){return new(ve||Oe)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(pt),t.Y36(f.yB))},Oe.\u0275dir=t.lG2({type:Oe,features:[t.qOj]}),Oe})(),Wt=(()=>{class Oe extends di{constructor(){super(...arguments),this.inputs=et}}return Oe.\u0275fac=function(){let ce;return function(ht){return(ce||(ce=t.n5z(Oe)))(ht||Oe)}}(),Oe.\u0275dir=t.lG2({type:Oe,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[t.qOj]}),Oe})();const Gt=new Map,ui=new Map,Ot=new Map,Nt=new Map,gt=new Map,tt=new Map,xt=new Map,ei=new Map;let Re=(()=>{class Oe{}return Oe.\u0275fac=function(ve){return new(ve||Oe)},Oe.\u0275mod=t.oAB({type:Oe}),Oe.\u0275inj=t.cJS({imports:[[f.IR,e.vT]]}),Oe})()},3075:(ze,K,p)=>{"use strict";p.d(K,{Cf:()=>W,F:()=>ti,Fd:()=>Vs,Fj:()=>k,JJ:()=>De,JL:()=>ae,JU:()=>R,NI:()=>wi,On:()=>Nn,Q7:()=>kr,UX:()=>vt,Zs:()=>us,_Y:()=>$n,a5:()=>Ce,kI:()=>ee,oH:()=>zs,qQ:()=>rs,qu:()=>Ei,sg:()=>cs,u:()=>Zn,u5:()=>li,wV:()=>Si});var t=p(5e3),e=p(9808),f=p(457),M=p(4128),s=p(4004);let b=(()=>{class $e{constructor(Fe,Dt){this._renderer=Fe,this._elementRef=Dt,this.onChange=yi=>{},this.onTouched=()=>{}}setProperty(Fe,Dt){this._renderer.setProperty(this._elementRef.nativeElement,Fe,Dt)}registerOnTouched(Fe){this.onTouched=Fe}registerOnChange(Fe){this.onChange=Fe}setDisabledState(Fe){this.setProperty("disabled",Fe)}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(t.Qsj),t.Y36(t.SBq))},$e.\u0275dir=t.lG2({type:$e}),$e})(),d=(()=>{class $e extends b{}return $e.\u0275fac=function(){let We;return function(Dt){return(We||(We=t.n5z($e)))(Dt||$e)}}(),$e.\u0275dir=t.lG2({type:$e,features:[t.qOj]}),$e})();const R=new t.OlP("NgValueAccessor"),w={provide:R,useExisting:(0,t.Gpc)(()=>k),multi:!0},S=new t.OlP("CompositionEventMode");let k=(()=>{class $e extends b{constructor(Fe,Dt,yi){super(Fe,Dt),this._compositionMode=yi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D(){const $e=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test($e.toLowerCase())}())}writeValue(Fe){this.setProperty("value",null==Fe?"":Fe)}_handleInput(Fe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Fe)}_compositionStart(){this._composing=!0}_compositionEnd(Fe){this._composing=!1,this._compositionMode&&this.onChange(Fe)}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(S,8))},$e.\u0275dir=t.lG2({type:$e,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(Fe,Dt){1&Fe&&t.NdJ("input",function(qi){return Dt._handleInput(qi.target.value)})("blur",function(){return Dt.onTouched()})("compositionstart",function(){return Dt._compositionStart()})("compositionend",function(qi){return Dt._compositionEnd(qi.target.value)})},features:[t._Bn([w]),t.qOj]}),$e})();function E($e){return null==$e||0===$e.length}function U($e){return null!=$e&&"number"==typeof $e.length}const W=new t.OlP("NgValidators"),j=new t.OlP("NgAsyncValidators"),ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ee{static min(We){return de(We)}static max(We){return te(We)}static required(We){return ie(We)}static requiredTrue(We){return le(We)}static email(We){return function $($e){return E($e.value)||ne.test($e.value)?null:{email:!0}}(We)}static minLength(We){return function ge($e){return We=>E(We.value)||!U(We.value)?null:We.value.length<$e?{minlength:{requiredLength:$e,actualLength:We.value.length}}:null}(We)}static maxLength(We){return function C($e){return We=>U(We.value)&&We.value.length>$e?{maxlength:{requiredLength:$e,actualLength:We.value.length}}:null}(We)}static pattern(We){return function i($e){if(!$e)return r;let We,Fe;return"string"==typeof $e?(Fe="","^"!==$e.charAt(0)&&(Fe+="^"),Fe+=$e,"$"!==$e.charAt($e.length-1)&&(Fe+="$"),We=new RegExp(Fe)):(Fe=$e.toString(),We=$e),Dt=>{if(E(Dt.value))return null;const yi=Dt.value;return We.test(yi)?null:{pattern:{requiredPattern:Fe,actualValue:yi}}}}(We)}static nullValidator(We){return null}static compose(We){return n(We)}static composeAsync(We){return B(We)}}function de($e){return We=>{if(E(We.value)||E($e))return null;const Fe=parseFloat(We.value);return!isNaN(Fe)&&Fe<$e?{min:{min:$e,actual:We.value}}:null}}function te($e){return We=>{if(E(We.value)||E($e))return null;const Fe=parseFloat(We.value);return!isNaN(Fe)&&Fe>$e?{max:{max:$e,actual:We.value}}:null}}function ie($e){return E($e.value)?{required:!0}:null}function le($e){return!0===$e.value?null:{required:!0}}function r($e){return null}function u($e){return null!=$e}function c($e){const We=(0,t.QGY)($e)?(0,f.D)($e):$e;return(0,t.CqO)(We),We}function v($e){let We={};return $e.forEach(Fe=>{We=null!=Fe?Object.assign(Object.assign({},We),Fe):We}),0===Object.keys(We).length?null:We}function T($e,We){return We.map(Fe=>Fe($e))}function y($e){return $e.map(We=>function I($e){return!$e.validate}(We)?We:Fe=>We.validate(Fe))}function n($e){if(!$e)return null;const We=$e.filter(u);return 0==We.length?null:function(Fe){return v(T(Fe,We))}}function _($e){return null!=$e?n(y($e)):null}function B($e){if(!$e)return null;const We=$e.filter(u);return 0==We.length?null:function(Fe){const Dt=T(Fe,We).map(c);return(0,M.D)(Dt).pipe((0,s.U)(v))}}function N($e){return null!=$e?B(y($e)):null}function H($e,We){return null===$e?[We]:Array.isArray($e)?[...$e,We]:[$e,We]}function J($e){return $e._rawValidators}function ue($e){return $e._rawAsyncValidators}function xe($e){return $e?Array.isArray($e)?$e:[$e]:[]}function Pe($e,We){return Array.isArray($e)?$e.includes(We):$e===We}function Se($e,We){const Fe=xe(We);return xe($e).forEach(yi=>{Pe(Fe,yi)||Fe.push(yi)}),Fe}function Q($e,We){return xe(We).filter(Fe=>!Pe($e,Fe))}class Ue{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(We){this._rawValidators=We||[],this._composedValidatorFn=_(this._rawValidators)}_setAsyncValidators(We){this._rawAsyncValidators=We||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(We){this._onDestroyCallbacks.push(We)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(We=>We()),this._onDestroyCallbacks=[]}reset(We){this.control&&this.control.reset(We)}hasError(We,Fe){return!!this.control&&this.control.hasError(We,Fe)}getError(We,Fe){return this.control?this.control.getError(We,Fe):null}}class Ce extends Ue{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class q extends Ue{get formDirective(){return null}get path(){return null}}class Ae{constructor(We){this._cd=We}is(We){var Fe,Dt,yi;return"submitted"===We?!!(null===(Fe=this._cd)||void 0===Fe?void 0:Fe.submitted):!!(null===(yi=null===(Dt=this._cd)||void 0===Dt?void 0:Dt.control)||void 0===yi?void 0:yi[We])}}let De=(()=>{class $e extends Ae{constructor(Fe){super(Fe)}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(Ce,2))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Fe,Dt){2&Fe&&t.ekj("ng-untouched",Dt.is("untouched"))("ng-touched",Dt.is("touched"))("ng-pristine",Dt.is("pristine"))("ng-dirty",Dt.is("dirty"))("ng-valid",Dt.is("valid"))("ng-invalid",Dt.is("invalid"))("ng-pending",Dt.is("pending"))},features:[t.qOj]}),$e})(),ae=(()=>{class $e extends Ae{constructor(Fe){super(Fe)}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(q,10))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Fe,Dt){2&Fe&&t.ekj("ng-untouched",Dt.is("untouched"))("ng-touched",Dt.is("touched"))("ng-pristine",Dt.is("pristine"))("ng-dirty",Dt.is("dirty"))("ng-valid",Dt.is("valid"))("ng-invalid",Dt.is("invalid"))("ng-pending",Dt.is("pending"))("ng-submitted",Dt.is("submitted"))},features:[t.qOj]}),$e})();function gt($e,We){return[...We.path,$e]}function tt($e,We){Re($e,We),We.valueAccessor.writeValue($e.value),function ce($e,We){We.valueAccessor.registerOnChange(Fe=>{$e._pendingValue=Fe,$e._pendingChange=!0,$e._pendingDirty=!0,"change"===$e.updateOn&&ht($e,We)})}($e,We),function mt($e,We){const Fe=(Dt,yi)=>{We.valueAccessor.writeValue(Dt),yi&&We.viewToModelUpdate(Dt)};$e.registerOnChange(Fe),We._registerOnDestroy(()=>{$e._unregisterOnChange(Fe)})}($e,We),function ve($e,We){We.valueAccessor.registerOnTouched(()=>{$e._pendingTouched=!0,"blur"===$e.updateOn&&$e._pendingChange&&ht($e,We),"submit"!==$e.updateOn&&$e.markAsTouched()})}($e,We),function Kt($e,We){if(We.valueAccessor.setDisabledState){const Fe=Dt=>{We.valueAccessor.setDisabledState(Dt)};$e.registerOnDisabledChange(Fe),We._registerOnDestroy(()=>{$e._unregisterOnDisabledChange(Fe)})}}($e,We)}function xt($e,We,Fe=!0){const Dt=()=>{};We.valueAccessor&&(We.valueAccessor.registerOnChange(Dt),We.valueAccessor.registerOnTouched(Dt)),Oe($e,We),$e&&(We._invokeOnDestroyCallbacks(),$e._registerOnCollectionChange(()=>{}))}function ei($e,We){$e.forEach(Fe=>{Fe.registerOnValidatorChange&&Fe.registerOnValidatorChange(We)})}function Re($e,We){const Fe=J($e);null!==We.validator?$e.setValidators(H(Fe,We.validator)):"function"==typeof Fe&&$e.setValidators([Fe]);const Dt=ue($e);null!==We.asyncValidator?$e.setAsyncValidators(H(Dt,We.asyncValidator)):"function"==typeof Dt&&$e.setAsyncValidators([Dt]);const yi=()=>$e.updateValueAndValidity();ei(We._rawValidators,yi),ei(We._rawAsyncValidators,yi)}function Oe($e,We){let Fe=!1;if(null!==$e){if(null!==We.validator){const yi=J($e);if(Array.isArray(yi)&&yi.length>0){const qi=yi.filter(Bn=>Bn!==We.validator);qi.length!==yi.length&&(Fe=!0,$e.setValidators(qi))}}if(null!==We.asyncValidator){const yi=ue($e);if(Array.isArray(yi)&&yi.length>0){const qi=yi.filter(Bn=>Bn!==We.asyncValidator);qi.length!==yi.length&&(Fe=!0,$e.setAsyncValidators(qi))}}}const Dt=()=>{};return ei(We._rawValidators,Dt),ei(We._rawAsyncValidators,Dt),Fe}function ht($e,We){$e._pendingDirty&&$e.markAsDirty(),$e.setValue($e._pendingValue,{emitModelToViewChange:!1}),We.viewToModelUpdate($e._pendingValue),$e._pendingChange=!1}function Ht($e,We){Re($e,We)}function Ge($e,We){if(!$e.hasOwnProperty("model"))return!1;const Fe=$e.model;return!!Fe.isFirstChange()||!Object.is(We,Fe.currentValue)}function lt($e,We){$e._syncPendingControls(),We.forEach(Fe=>{const Dt=Fe.control;"submit"===Dt.updateOn&&Dt._pendingChange&&(Fe.viewToModelUpdate(Dt._pendingValue),Dt._pendingChange=!1)})}function Ct($e,We){if(!We)return null;let Fe,Dt,yi;return Array.isArray(We),We.forEach(qi=>{qi.constructor===k?Fe=qi:function ot($e){return Object.getPrototypeOf($e.constructor)===d}(qi)?Dt=qi:yi=qi}),yi||Dt||Fe||null}function mi($e,We){const Fe=$e.indexOf(We);Fe>-1&&$e.splice(Fe,1)}const Ki="VALID",hi="INVALID",ai="PENDING",Ji="DISABLED";function zi($e){return(_e($e)?$e.validators:$e)||null}function Ui($e){return Array.isArray($e)?_($e):$e||null}function Be($e,We){return(_e(We)?We.asyncValidators:$e)||null}function Tt($e){return Array.isArray($e)?N($e):$e||null}function _e($e){return null!=$e&&!Array.isArray($e)&&"object"==typeof $e}const Ke=$e=>$e instanceof wi,yt=$e=>$e instanceof Xi,re=$e=>$e instanceof Zi;function qe($e){return Ke($e)?$e.value:$e.getRawValue()}function bt($e,We){const Fe=yt($e),Dt=$e.controls;if(!(Fe?Object.keys(Dt):Dt).length)throw new t.vHH(1e3,"");if(!Dt[We])throw new t.vHH(1001,"")}function Vt($e,We){yt($e),$e._forEachChild((Dt,yi)=>{if(void 0===We[yi])throw new t.vHH(1002,"")})}class bi{constructor(We,Fe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=We,this._rawAsyncValidators=Fe,this._composedValidatorFn=Ui(this._rawValidators),this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(We){this._rawValidators=this._composedValidatorFn=We}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(We){this._rawAsyncValidators=this._composedAsyncValidatorFn=We}get parent(){return this._parent}get valid(){return this.status===Ki}get invalid(){return this.status===hi}get pending(){return this.status==ai}get disabled(){return this.status===Ji}get enabled(){return this.status!==Ji}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(We){this._rawValidators=We,this._composedValidatorFn=Ui(We)}setAsyncValidators(We){this._rawAsyncValidators=We,this._composedAsyncValidatorFn=Tt(We)}addValidators(We){this.setValidators(Se(We,this._rawValidators))}addAsyncValidators(We){this.setAsyncValidators(Se(We,this._rawAsyncValidators))}removeValidators(We){this.setValidators(Q(We,this._rawValidators))}removeAsyncValidators(We){this.setAsyncValidators(Q(We,this._rawAsyncValidators))}hasValidator(We){return Pe(this._rawValidators,We)}hasAsyncValidator(We){return Pe(this._rawAsyncValidators,We)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(We={}){this.touched=!0,this._parent&&!We.onlySelf&&this._parent.markAsTouched(We)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(We=>We.markAllAsTouched())}markAsUntouched(We={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Fe=>{Fe.markAsUntouched({onlySelf:!0})}),this._parent&&!We.onlySelf&&this._parent._updateTouched(We)}markAsDirty(We={}){this.pristine=!1,this._parent&&!We.onlySelf&&this._parent.markAsDirty(We)}markAsPristine(We={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Fe=>{Fe.markAsPristine({onlySelf:!0})}),this._parent&&!We.onlySelf&&this._parent._updatePristine(We)}markAsPending(We={}){this.status=ai,!1!==We.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!We.onlySelf&&this._parent.markAsPending(We)}disable(We={}){const Fe=this._parentMarkedDirty(We.onlySelf);this.status=Ji,this.errors=null,this._forEachChild(Dt=>{Dt.disable(Object.assign(Object.assign({},We),{onlySelf:!0}))}),this._updateValue(),!1!==We.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},We),{skipPristineCheck:Fe})),this._onDisabledChange.forEach(Dt=>Dt(!0))}enable(We={}){const Fe=this._parentMarkedDirty(We.onlySelf);this.status=Ki,this._forEachChild(Dt=>{Dt.enable(Object.assign(Object.assign({},We),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:We.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},We),{skipPristineCheck:Fe})),this._onDisabledChange.forEach(Dt=>Dt(!1))}_updateAncestors(We){this._parent&&!We.onlySelf&&(this._parent.updateValueAndValidity(We),We.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(We){this._parent=We}updateValueAndValidity(We={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ki||this.status===ai)&&this._runAsyncValidator(We.emitEvent)),!1!==We.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!We.onlySelf&&this._parent.updateValueAndValidity(We)}_updateTreeValidity(We={emitEvent:!0}){this._forEachChild(Fe=>Fe._updateTreeValidity(We)),this.updateValueAndValidity({onlySelf:!0,emitEvent:We.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ji:Ki}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(We){if(this.asyncValidator){this.status=ai,this._hasOwnPendingAsyncValidator=!0;const Fe=c(this.asyncValidator(this));this._asyncValidationSubscription=Fe.subscribe(Dt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Dt,{emitEvent:We})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(We,Fe={}){this.errors=We,this._updateControlsErrors(!1!==Fe.emitEvent)}get(We){return function Gi($e,We,Fe){if(null==We||(Array.isArray(We)||(We=We.split(Fe)),Array.isArray(We)&&0===We.length))return null;let Dt=$e;return We.forEach(yi=>{Dt=yt(Dt)?Dt.controls.hasOwnProperty(yi)?Dt.controls[yi]:null:re(Dt)&&Dt.at(yi)||null}),Dt}(this,We,".")}getError(We,Fe){const Dt=Fe?this.get(Fe):this;return Dt&&Dt.errors?Dt.errors[We]:null}hasError(We,Fe){return!!this.getError(We,Fe)}get root(){let We=this;for(;We._parent;)We=We._parent;return We}_updateControlsErrors(We){this.status=this._calculateStatus(),We&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(We)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Ji:this.errors?hi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ai)?ai:this._anyControlsHaveStatus(hi)?hi:Ki}_anyControlsHaveStatus(We){return this._anyControls(Fe=>Fe.status===We)}_anyControlsDirty(){return this._anyControls(We=>We.dirty)}_anyControlsTouched(){return this._anyControls(We=>We.touched)}_updatePristine(We={}){this.pristine=!this._anyControlsDirty(),this._parent&&!We.onlySelf&&this._parent._updatePristine(We)}_updateTouched(We={}){this.touched=this._anyControlsTouched(),this._parent&&!We.onlySelf&&this._parent._updateTouched(We)}_isBoxedValue(We){return"object"==typeof We&&null!==We&&2===Object.keys(We).length&&"value"in We&&"disabled"in We}_registerOnCollectionChange(We){this._onCollectionChange=We}_setUpdateStrategy(We){_e(We)&&null!=We.updateOn&&(this._updateOn=We.updateOn)}_parentMarkedDirty(We){return!We&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class wi extends bi{constructor(We=null,Fe,Dt){super(zi(Fe),Be(Dt,Fe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(We),this._setUpdateStrategy(Fe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_e(Fe)&&Fe.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(We)?We.value:We)}setValue(We,Fe={}){this.value=this._pendingValue=We,this._onChange.length&&!1!==Fe.emitModelToViewChange&&this._onChange.forEach(Dt=>Dt(this.value,!1!==Fe.emitViewToModelChange)),this.updateValueAndValidity(Fe)}patchValue(We,Fe={}){this.setValue(We,Fe)}reset(We=this.defaultValue,Fe={}){this._applyFormState(We),this.markAsPristine(Fe),this.markAsUntouched(Fe),this.setValue(this.value,Fe),this._pendingChange=!1}_updateValue(){}_anyControls(We){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(We){this._onChange.push(We)}_unregisterOnChange(We){mi(this._onChange,We)}registerOnDisabledChange(We){this._onDisabledChange.push(We)}_unregisterOnDisabledChange(We){mi(this._onDisabledChange,We)}_forEachChild(We){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(We){this._isBoxedValue(We)?(this.value=this._pendingValue=We.value,We.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=We}}class Xi extends bi{constructor(We,Fe,Dt){super(zi(Fe),Be(Dt,Fe)),this.controls=We,this._initObservables(),this._setUpdateStrategy(Fe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(We,Fe){return this.controls[We]?this.controls[We]:(this.controls[We]=Fe,Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange),Fe)}addControl(We,Fe,Dt={}){this.registerControl(We,Fe),this.updateValueAndValidity({emitEvent:Dt.emitEvent}),this._onCollectionChange()}removeControl(We,Fe={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),delete this.controls[We],this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}setControl(We,Fe,Dt={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),delete this.controls[We],Fe&&this.registerControl(We,Fe),this.updateValueAndValidity({emitEvent:Dt.emitEvent}),this._onCollectionChange()}contains(We){return this.controls.hasOwnProperty(We)&&this.controls[We].enabled}setValue(We,Fe={}){Vt(this,We),Object.keys(We).forEach(Dt=>{bt(this,Dt),this.controls[Dt].setValue(We[Dt],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe)}patchValue(We,Fe={}){null!=We&&(Object.keys(We).forEach(Dt=>{this.controls[Dt]&&this.controls[Dt].patchValue(We[Dt],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe))}reset(We={},Fe={}){this._forEachChild((Dt,yi)=>{Dt.reset(We[yi],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this._updatePristine(Fe),this._updateTouched(Fe),this.updateValueAndValidity(Fe)}getRawValue(){return this._reduceChildren({},(We,Fe,Dt)=>(We[Dt]=qe(Fe),We))}_syncPendingControls(){let We=this._reduceChildren(!1,(Fe,Dt)=>!!Dt._syncPendingControls()||Fe);return We&&this.updateValueAndValidity({onlySelf:!0}),We}_forEachChild(We){Object.keys(this.controls).forEach(Fe=>{const Dt=this.controls[Fe];Dt&&We(Dt,Fe)})}_setUpControls(){this._forEachChild(We=>{We.setParent(this),We._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(We){for(const Fe of Object.keys(this.controls)){const Dt=this.controls[Fe];if(this.contains(Fe)&&We(Dt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(We,Fe,Dt)=>((Fe.enabled||this.disabled)&&(We[Dt]=Fe.value),We))}_reduceChildren(We,Fe){let Dt=We;return this._forEachChild((yi,qi)=>{Dt=Fe(Dt,yi,qi)}),Dt}_allControlsDisabled(){for(const We of Object.keys(this.controls))if(this.controls[We].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Zi extends bi{constructor(We,Fe,Dt){super(zi(Fe),Be(Dt,Fe)),this.controls=We,this._initObservables(),this._setUpdateStrategy(Fe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(We){return this.controls[We]}push(We,Fe={}){this.controls.push(We),this._registerControl(We),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}insert(We,Fe,Dt={}){this.controls.splice(We,0,Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:Dt.emitEvent})}removeAt(We,Fe={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),this.controls.splice(We,1),this.updateValueAndValidity({emitEvent:Fe.emitEvent})}setControl(We,Fe,Dt={}){this.controls[We]&&this.controls[We]._registerOnCollectionChange(()=>{}),this.controls.splice(We,1),Fe&&(this.controls.splice(We,0,Fe),this._registerControl(Fe)),this.updateValueAndValidity({emitEvent:Dt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(We,Fe={}){Vt(this,We),We.forEach((Dt,yi)=>{bt(this,yi),this.at(yi).setValue(Dt,{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe)}patchValue(We,Fe={}){null!=We&&(We.forEach((Dt,yi)=>{this.at(yi)&&this.at(yi).patchValue(Dt,{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe))}reset(We=[],Fe={}){this._forEachChild((Dt,yi)=>{Dt.reset(We[yi],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this._updatePristine(Fe),this._updateTouched(Fe),this.updateValueAndValidity(Fe)}getRawValue(){return this.controls.map(We=>qe(We))}clear(We={}){this.controls.length<1||(this._forEachChild(Fe=>Fe._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:We.emitEvent}))}_syncPendingControls(){let We=this.controls.reduce((Fe,Dt)=>!!Dt._syncPendingControls()||Fe,!1);return We&&this.updateValueAndValidity({onlySelf:!0}),We}_forEachChild(We){this.controls.forEach((Fe,Dt)=>{We(Fe,Dt)})}_updateValue(){this.value=this.controls.filter(We=>We.enabled||this.disabled).map(We=>We.value)}_anyControls(We){return this.controls.some(Fe=>Fe.enabled&&We(Fe))}_setUpControls(){this._forEachChild(We=>this._registerControl(We))}_allControlsDisabled(){for(const We of this.controls)if(We.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(We){We.setParent(this),We._registerOnCollectionChange(this._onCollectionChange)}}const on={provide:q,useExisting:(0,t.Gpc)(()=>ti)},mn=(()=>Promise.resolve(null))();let ti=(()=>{class $e extends q{constructor(Fe,Dt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Xi({},_(Fe),N(Dt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Fe){mn.then(()=>{const Dt=this._findContainer(Fe.path);Fe.control=Dt.registerControl(Fe.name,Fe.control),tt(Fe.control,Fe),Fe.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Fe)})}getControl(Fe){return this.form.get(Fe.path)}removeControl(Fe){mn.then(()=>{const Dt=this._findContainer(Fe.path);Dt&&Dt.removeControl(Fe.name),this._directives.delete(Fe)})}addFormGroup(Fe){mn.then(()=>{const Dt=this._findContainer(Fe.path),yi=new Xi({});Ht(yi,Fe),Dt.registerControl(Fe.name,yi),yi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Fe){mn.then(()=>{const Dt=this._findContainer(Fe.path);Dt&&Dt.removeControl(Fe.name)})}getFormGroup(Fe){return this.form.get(Fe.path)}updateModel(Fe,Dt){mn.then(()=>{this.form.get(Fe.path).setValue(Dt)})}setValue(Fe){this.control.setValue(Fe)}onSubmit(Fe){return this.submitted=!0,lt(this.form,this._directives),this.ngSubmit.emit(Fe),!1}onReset(){this.resetForm()}resetForm(Fe){this.form.reset(Fe),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Fe){return Fe.pop(),Fe.length?this.form.get(Fe):this.form}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(W,10),t.Y36(j,10))},$e.\u0275dir=t.lG2({type:$e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Fe,Dt){1&Fe&&t.NdJ("submit",function(qi){return Dt.onSubmit(qi)})("reset",function(){return Dt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([on]),t.qOj]}),$e})();const un={provide:Ce,useExisting:(0,t.Gpc)(()=>Nn)},jn=(()=>Promise.resolve(null))();let Nn=(()=>{class $e extends Ce{constructor(Fe,Dt,yi,qi,Bn){super(),this._changeDetectorRef=Bn,this.control=new wi,this._registered=!1,this.update=new t.vpe,this._parent=Fe,this._setValidators(Dt),this._setAsyncValidators(yi),this.valueAccessor=Ct(0,qi)}ngOnChanges(Fe){if(this._checkForErrors(),!this._registered||"name"in Fe){if(this._registered&&(this._checkName(),this.formDirective)){const Dt=Fe.name.previousValue;this.formDirective.removeControl({name:Dt,path:this._getPath(Dt)})}this._setUpControl()}"isDisabled"in Fe&&this._updateDisabled(Fe),Ge(Fe,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(Fe){this.viewModel=Fe,this.update.emit(Fe)}_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(){tt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Fe){jn.then(()=>{var Dt;this.control.setValue(Fe,{emitViewToModelChange:!1}),null===(Dt=this._changeDetectorRef)||void 0===Dt||Dt.markForCheck()})}_updateDisabled(Fe){const Dt=Fe.isDisabled.currentValue,yi=""===Dt||Dt&&"false"!==Dt;jn.then(()=>{var qi;yi&&!this.control.disabled?this.control.disable():!yi&&this.control.disabled&&this.control.enable(),null===(qi=this._changeDetectorRef)||void 0===qi||qi.markForCheck()})}_getPath(Fe){return this._parent?gt(Fe,this._parent):[Fe]}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(q,9),t.Y36(W,10),t.Y36(j,10),t.Y36(R,10),t.Y36(t.sBO,8))},$e.\u0275dir=t.lG2({type:$e,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([un]),t.qOj,t.TTD]}),$e})(),$n=(()=>{class $e{}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275dir=t.lG2({type:$e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),$e})();const _n={provide:R,useExisting:(0,t.Gpc)(()=>Si),multi:!0};let Si=(()=>{class $e extends d{writeValue(Fe){this.setProperty("value",null==Fe?"":Fe)}registerOnChange(Fe){this.onChange=Dt=>{Fe(""==Dt?null:parseFloat(Dt))}}}return $e.\u0275fac=function(){let We;return function(Dt){return(We||(We=t.n5z($e)))(Dt||$e)}}(),$e.\u0275dir=t.lG2({type:$e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Fe,Dt){1&Fe&&t.NdJ("input",function(qi){return Dt.onChange(qi.target.value)})("blur",function(){return Dt.onTouched()})},features:[t._Bn([_n]),t.qOj]}),$e})(),Kn=(()=>{class $e{}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275mod=t.oAB({type:$e}),$e.\u0275inj=t.cJS({}),$e})();const ls=new t.OlP("NgModelWithFormControlWarning"),Jr={provide:Ce,useExisting:(0,t.Gpc)(()=>zs)};let zs=(()=>{class $e extends Ce{constructor(Fe,Dt,yi,qi){super(),this._ngModelWarningConfig=qi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Fe),this._setAsyncValidators(Dt),this.valueAccessor=Ct(0,yi)}set isDisabled(Fe){}ngOnChanges(Fe){if(this._isControlChanged(Fe)){const Dt=Fe.form.previousValue;Dt&&xt(Dt,this,!1),tt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ge(Fe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}_isControlChanged(Fe){return Fe.hasOwnProperty("form")}}return $e._ngModelWarningSentOnce=!1,$e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(W,10),t.Y36(j,10),t.Y36(R,10),t.Y36(ls,8))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Jr]),t.qOj,t.TTD]}),$e})();const Ms={provide:q,useExisting:(0,t.Gpc)(()=>cs)};let cs=(()=>{class $e extends q{constructor(Fe,Dt){super(),this.validators=Fe,this.asyncValidators=Dt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Fe),this._setAsyncValidators(Dt)}ngOnChanges(Fe){this._checkFormPresent(),Fe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Fe){const Dt=this.form.get(Fe.path);return tt(Dt,Fe),Dt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Fe),Dt}getControl(Fe){return this.form.get(Fe.path)}removeControl(Fe){xt(Fe.control||null,Fe,!1),mi(this.directives,Fe)}addFormGroup(Fe){this._setUpFormContainer(Fe)}removeFormGroup(Fe){this._cleanUpFormContainer(Fe)}getFormGroup(Fe){return this.form.get(Fe.path)}addFormArray(Fe){this._setUpFormContainer(Fe)}removeFormArray(Fe){this._cleanUpFormContainer(Fe)}getFormArray(Fe){return this.form.get(Fe.path)}updateModel(Fe,Dt){this.form.get(Fe.path).setValue(Dt)}onSubmit(Fe){return this.submitted=!0,lt(this.form,this.directives),this.ngSubmit.emit(Fe),!1}onReset(){this.resetForm()}resetForm(Fe){this.form.reset(Fe),this.submitted=!1}_updateDomValue(){this.directives.forEach(Fe=>{const Dt=Fe.control,yi=this.form.get(Fe.path);Dt!==yi&&(xt(Dt||null,Fe),Ke(yi)&&(tt(yi,Fe),Fe.control=yi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Fe){const Dt=this.form.get(Fe.path);Ht(Dt,Fe),Dt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Fe){if(this.form){const Dt=this.form.get(Fe.path);Dt&&function it($e,We){return Oe($e,We)}(Dt,Fe)&&Dt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Re(this.form,this),this._oldForm&&Oe(this._oldForm,this)}_checkFormPresent(){}}return $e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(W,10),t.Y36(j,10))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","formGroup",""]],hostBindings:function(Fe,Dt){1&Fe&&t.NdJ("submit",function(qi){return Dt.onSubmit(qi)})("reset",function(){return Dt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Ms]),t.qOj,t.TTD]}),$e})();const Dr={provide:Ce,useExisting:(0,t.Gpc)(()=>Zn)};let Zn=(()=>{class $e extends Ce{constructor(Fe,Dt,yi,qi,Bn){super(),this._ngModelWarningConfig=Bn,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Fe,this._setValidators(Dt),this._setAsyncValidators(yi),this.valueAccessor=Ct(0,qi)}set isDisabled(Fe){}ngOnChanges(Fe){this._added||this._setUpControl(),Ge(Fe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}get path(){return gt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return $e._ngModelWarningSentOnce=!1,$e.\u0275fac=function(Fe){return new(Fe||$e)(t.Y36(q,13),t.Y36(W,10),t.Y36(j,10),t.Y36(R,10),t.Y36(ls,8))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Dr]),t.qOj,t.TTD]}),$e})();function _s($e){return"number"==typeof $e?$e:parseFloat($e)}let or=(()=>{class $e{constructor(){this._validator=r}ngOnChanges(Fe){if(this.inputName in Fe){const Dt=this.normalizeInput(Fe[this.inputName].currentValue);this._enabled=this.enabled(Dt),this._validator=this._enabled?this.createValidator(Dt):r,this._onChange&&this._onChange()}}validate(Fe){return this._validator(Fe)}registerOnValidatorChange(Fe){this._onChange=Fe}enabled(Fe){return null!=Fe}}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275dir=t.lG2({type:$e,features:[t.TTD]}),$e})();const ns={provide:W,useExisting:(0,t.Gpc)(()=>Vs),multi:!0};let Vs=(()=>{class $e extends or{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Fe=>_s(Fe),this.createValidator=Fe=>te(Fe)}}return $e.\u0275fac=function(){let We;return function(Dt){return(We||(We=t.n5z($e)))(Dt||$e)}}(),$e.\u0275dir=t.lG2({type:$e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Fe,Dt){2&Fe&&t.uIk("max",Dt._enabled?Dt.max:null)},inputs:{max:"max"},features:[t._Bn([ns]),t.qOj]}),$e})();const er={provide:W,useExisting:(0,t.Gpc)(()=>rs),multi:!0};let rs=(()=>{class $e extends or{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Fe=>_s(Fe),this.createValidator=Fe=>de(Fe)}}return $e.\u0275fac=function(){let We;return function(Dt){return(We||(We=t.n5z($e)))(Dt||$e)}}(),$e.\u0275dir=t.lG2({type:$e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Fe,Dt){2&Fe&&t.uIk("min",Dt._enabled?Dt.min:null)},inputs:{min:"min"},features:[t._Bn([er]),t.qOj]}),$e})();const Wr={provide:W,useExisting:(0,t.Gpc)(()=>kr),multi:!0},Or={provide:W,useExisting:(0,t.Gpc)(()=>us),multi:!0};let kr=(()=>{class $e extends or{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Fe=>function Rs($e){return null!=$e&&!1!==$e&&"false"!=`${$e}`}(Fe),this.createValidator=Fe=>ie}enabled(Fe){return Fe}}return $e.\u0275fac=function(){let We;return function(Dt){return(We||(We=t.n5z($e)))(Dt||$e)}}(),$e.\u0275dir=t.lG2({type:$e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Fe,Dt){2&Fe&&t.uIk("required",Dt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Wr]),t.qOj]}),$e})(),us=(()=>{class $e extends kr{constructor(){super(...arguments),this.createValidator=Fe=>le}}return $e.\u0275fac=function(){let We;return function(Dt){return(We||(We=t.n5z($e)))(Dt||$e)}}(),$e.\u0275dir=t.lG2({type:$e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Fe,Dt){2&Fe&&t.uIk("required",Dt._enabled?"":null)},features:[t._Bn([Or]),t.qOj]}),$e})(),It=(()=>{class $e{}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275mod=t.oAB({type:$e}),$e.\u0275inj=t.cJS({imports:[[Kn]]}),$e})(),li=(()=>{class $e{}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275mod=t.oAB({type:$e}),$e.\u0275inj=t.cJS({imports:[It]}),$e})(),vt=(()=>{class $e{static withConfig(Fe){return{ngModule:$e,providers:[{provide:ls,useValue:Fe.warnOnNgModelWithFormControl}]}}}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275mod=t.oAB({type:$e}),$e.\u0275inj=t.cJS({imports:[It]}),$e})(),Ei=(()=>{class $e{group(Fe,Dt=null){const yi=this._reduceControls(Fe);let Br,qi=null,Bn=null;return null!=Dt&&(function qt($e){return void 0!==$e.asyncValidators||void 0!==$e.validators||void 0!==$e.updateOn}(Dt)?(qi=null!=Dt.validators?Dt.validators:null,Bn=null!=Dt.asyncValidators?Dt.asyncValidators:null,Br=null!=Dt.updateOn?Dt.updateOn:void 0):(qi=null!=Dt.validator?Dt.validator:null,Bn=null!=Dt.asyncValidator?Dt.asyncValidator:null)),new Xi(yi,{asyncValidators:Bn,updateOn:Br,validators:qi})}control(Fe,Dt,yi){return new wi(Fe,Dt,yi)}array(Fe,Dt,yi){const qi=Fe.map(Bn=>this._createControl(Bn));return new Zi(qi,Dt,yi)}_reduceControls(Fe){const Dt={};return Object.keys(Fe).forEach(yi=>{Dt[yi]=this._createControl(Fe[yi])}),Dt}_createControl(Fe){return Ke(Fe)||yt(Fe)||re(Fe)?Fe:Array.isArray(Fe)?this.control(Fe[0],Fe.length>1?Fe[1]:null,Fe.length>2?Fe[2]:null):this.control(Fe)}}return $e.\u0275fac=function(Fe){return new(Fe||$e)},$e.\u0275prov=t.Yz7({token:$e,factory:$e.\u0275fac,providedIn:vt}),$e})()},1079:(ze,K,p)=>{"use strict";p.d(K,{Bb:()=>Q,XC:()=>n,ZL:()=>xe});var t=p(5664),e=p(3191),f=p(5e3),M=p(508),s=p(727),b=p(7579),d=p(9770),R=p(6451),h=p(9646),L=p(4968),w=p(925),D=p(9808),S=p(9776),k=p(5303),E=p(1159),U=p(7429),W=p(3075),j=p(7322),ne=p(8675),ee=p(3900),de=p(5698),te=p(9300),ie=p(4004),le=p(8505),$=p(4086),ge=p(226);const C=["panel"];function i(Ue,Ce){if(1&Ue&&(f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA()),2&Ue){const q=Ce.id,Ae=f.oxw();f.Q6J("id",Ae.id)("ngClass",Ae._classList),f.uIk("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby(q))}}const r=["*"];let u=0;class c{constructor(Ce,q){this.source=Ce,this.option=q}}const v=(0,M.Kr)(class{}),T=new f.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let y=(()=>{class Ue extends v{constructor(q,Ae,ut,Ie){super(),this._changeDetectorRef=q,this._elementRef=Ae,this._activeOptionChanges=s.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new f.vpe,this.opened=new f.vpe,this.closed=new f.vpe,this.optionActivated=new f.vpe,this._classList={},this.id="mat-autocomplete-"+u++,this.inertGroups=(null==Ie?void 0:Ie.SAFARI)||!1,this._autoActiveFirstOption=!!ut.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(q){this._autoActiveFirstOption=(0,e.Ig)(q)}set classList(q){this._classList=q&&q.length?(0,e.du)(q).reduce((Ae,ut)=>(Ae[ut]=!0,Ae),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(q=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[q]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(q){this.panel&&(this.panel.nativeElement.scrollTop=q)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(q){const Ae=new c(this,q);this.optionSelected.emit(Ae)}_getPanelAriaLabelledby(q){return this.ariaLabel?null:this.ariaLabelledby?(q?q+" ":"")+this.ariaLabelledby:q}_setVisibilityClasses(q){q[this._visibleClass]=this.showPanel,q[this._hiddenClass]=!this.showPanel}}return Ue.\u0275fac=function(q){return new(q||Ue)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(T),f.Y36(w.t4))},Ue.\u0275dir=f.lG2({type:Ue,viewQuery:function(q,Ae){if(1&q&&(f.Gf(f.Rgc,7),f.Gf(C,5)),2&q){let ut;f.iGM(ut=f.CRH())&&(Ae.template=ut.first),f.iGM(ut=f.CRH())&&(Ae.panel=ut.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[f.qOj]}),Ue})(),n=(()=>{class Ue extends y{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ue.\u0275fac=function(){let Ce;return function(Ae){return(Ce||(Ce=f.n5z(Ue)))(Ae||Ue)}}(),Ue.\u0275cmp=f.Xpm({type:Ue,selectors:[["mat-autocomplete"]],contentQueries:function(q,Ae,ut){if(1&q&&(f.Suo(ut,M.K7,5),f.Suo(ut,M.ey,5)),2&q){let Ie;f.iGM(Ie=f.CRH())&&(Ae.optionGroups=Ie),f.iGM(Ie=f.CRH())&&(Ae.options=Ie)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[f._Bn([{provide:M.HF,useExisting:Ue}]),f.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(q,Ae){1&q&&(f.F$t(),f.YNc(0,i,3,4,"ng-template"))},directives:[D.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),Ue})();const _=new f.OlP("mat-autocomplete-scroll-strategy"),N={provide:_,deps:[S.aV],useFactory:function B(Ue){return()=>Ue.scrollStrategies.reposition()}},H={provide:W.JU,useExisting:(0,f.Gpc)(()=>xe),multi:!0};let ue=(()=>{class Ue{constructor(q,Ae,ut,Ie,De,ae,we,ye,Y,z,be){this._element=q,this._overlay=Ae,this._viewContainerRef=ut,this._zone=Ie,this._changeDetectorRef=De,this._dir=we,this._formField=ye,this._document=Y,this._viewportRuler=z,this._defaults=be,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=s.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new b.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,d.P)(()=>{const fe=this.autocomplete?this.autocomplete.options:null;return fe?fe.changes.pipe((0,ne.O)(fe),(0,ee.w)(()=>(0,R.T)(...fe.map(He=>He.onSelectionChange)))):this._zone.onStable.pipe((0,de.q)(1),(0,ee.w)(()=>this.optionSelections))}),this._scrollStrategy=ae}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(q){this._autocompleteDisabled=(0,e.Ig)(q)}ngAfterViewInit(){const q=this._getWindow();void 0!==q&&this._zone.runOutsideAngular(()=>q.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(q){q.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const q=this._getWindow();void 0!==q&&q.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,te.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,te.h)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,ie.U)(q=>q instanceof M.rN?q:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,te.h)(q=>{const Ae=(0,w.sA)(q),ut=this._formField?this._formField._elementRef.nativeElement:null,Ie=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ae!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ut||!ut.contains(Ae))&&(!Ie||!Ie.contains(Ae))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ae)}))}writeValue(q){Promise.resolve().then(()=>this._setTriggerValue(q))}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this._element.nativeElement.disabled=q}_handleKeydown(q){const Ae=q.keyCode,ut=(0,E.Vb)(q);if(Ae===E.hY&&!ut&&q.preventDefault(),this.activeOption&&Ae===E.K5&&this.panelOpen&&!ut)this.activeOption._selectViaInteraction(),this._resetActiveItem(),q.preventDefault();else if(this.autocomplete){const Ie=this.autocomplete._keyManager.activeItem,De=Ae===E.LH||Ae===E.JH;Ae===E.Mf||De&&!ut&&this.panelOpen?this.autocomplete._keyManager.onKeydown(q):De&&this._canOpen()&&this.openPanel(),(De||this.autocomplete._keyManager.activeItem!==Ie)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(q){let Ae=q.target,ut=Ae.value;"number"===Ae.type&&(ut=""==ut?null:parseFloat(ut)),this._previousValue!==ut&&(this._previousValue=ut,this._onChange(ut),this._canOpen()&&this._document.activeElement===q.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(q=!1){this._formField&&"auto"===this._formField.floatLabel&&(q?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const q=this._zone.onStable.pipe((0,de.q)(1)),Ae=this.autocomplete.options.changes.pipe((0,le.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,$.g)(0));return(0,R.T)(q,Ae).pipe((0,ee.w)(()=>(this._zone.run(()=>{const ut=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),ut!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,de.q)(1)).subscribe(ut=>this._setValueAndClose(ut))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(q){const Ae=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(q):q,ut=null!=Ae?Ae:"";this._formField?this._formField._control.value=ut:this._element.nativeElement.value=ut,this._previousValue=ut}_setValueAndClose(q){const Ae=q&&q.source;Ae&&(this._clearPreviousSelectedOption(Ae),this._setTriggerValue(Ae.value),this._onChange(Ae.value),this.autocomplete._emitSelectEvent(Ae),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(q){this.autocomplete.options.forEach(Ae=>{Ae!==q&&Ae.selected&&Ae.deselect()})}_attachOverlay(){var q;let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new U.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(q=this._formField)||void 0===q?void 0:q.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,Ae.keydownEvents().subscribe(Ie=>{(Ie.keyCode===E.hY&&!(0,E.Vb)(Ie)||Ie.keyCode===E.LH&&(0,E.Vb)(Ie,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Ie.stopPropagation(),Ie.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ut=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ut!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var q;return new S.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(q=this._defaults)||void 0===q?void 0:q.overlayPanelClass})}_getOverlayPosition(){const q=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(q),this._positionStrategy=q,q}_setStrategyPositions(q){const Ae=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ut=this._aboveClass,Ie=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ut},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ut}];let De;De="above"===this.position?Ie:"below"===this.position?Ae:[...Ae,...Ie],q.withPositions(De)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const q=this.autocomplete;q.autoActiveFirstOption?q._keyManager.setFirstItemActive():q._keyManager.setActiveItem(-1)}_canOpen(){const q=this._element.nativeElement;return!q.readOnly&&!q.disabled&&!this._autocompleteDisabled}_getWindow(){var q;return(null===(q=this._document)||void 0===q?void 0:q.defaultView)||window}_scrollToOption(q){const Ae=this.autocomplete,ut=(0,M.CB)(q,Ae.options,Ae.optionGroups);if(0===q&&1===ut)Ae._setScrollTop(0);else if(Ae.panel){const Ie=Ae.options.toArray()[q];if(Ie){const De=Ie._getHostElement(),ae=(0,M.jH)(De.offsetTop,De.offsetHeight,Ae._getScrollTop(),Ae.panel.nativeElement.offsetHeight);Ae._setScrollTop(ae)}}}}return Ue.\u0275fac=function(q){return new(q||Ue)(f.Y36(f.SBq),f.Y36(S.aV),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(_),f.Y36(ge.Is,8),f.Y36(j.G_,9),f.Y36(D.K0,8),f.Y36(k.rL),f.Y36(T,8))},Ue.\u0275dir=f.lG2({type:Ue,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[f.TTD]}),Ue})(),xe=(()=>{class Ue extends ue{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ue.\u0275fac=function(){let Ce;return function(Ae){return(Ce||(Ce=f.n5z(Ue)))(Ae||Ue)}}(),Ue.\u0275dir=f.lG2({type:Ue,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(q,Ae){1&q&&f.NdJ("focusin",function(){return Ae._handleFocus()})("blur",function(){return Ae._onTouched()})("input",function(Ie){return Ae._handleInput(Ie)})("keydown",function(Ie){return Ae._handleKeydown(Ie)})("click",function(){return Ae._handleClick()}),2&q&&f.uIk("autocomplete",Ae.autocompleteAttribute)("role",Ae.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ae.autocompleteDisabled?null:"list")("aria-activedescendant",Ae.panelOpen&&Ae.activeOption?Ae.activeOption.id:null)("aria-expanded",Ae.autocompleteDisabled?null:Ae.panelOpen.toString())("aria-owns",Ae.autocompleteDisabled||!Ae.panelOpen||null==Ae.autocomplete?null:Ae.autocomplete.id)("aria-haspopup",Ae.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[f._Bn([H]),f.qOj]}),Ue})(),Q=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275mod=f.oAB({type:Ue}),Ue.\u0275inj=f.cJS({providers:[N],imports:[[S.U8,M.Ng,M.BQ,D.ez],k.ZD,M.Ng,M.BQ]}),Ue})()},7544:(ze,K,p)=>{"use strict";p.d(K,{g:()=>L,k:()=>h});var t=p(5e3),e=p(508),f=p(5664),M=p(3191),s=p(6360);let b=0;const d=(0,e.Id)(class{}),R="mat-badge-content";let h=(()=>{class w extends d{constructor(S,k,E,U,W){super(),this._ngZone=S,this._elementRef=k,this._ariaDescriber=E,this._renderer=U,this._animationMode=W,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=b++,this._isInitialized=!1}get color(){return this._color}set color(S){this._setColor(S),this._color=S}get overlap(){return this._overlap}set overlap(S){this._overlap=(0,M.Ig)(S)}get content(){return this._content}set content(S){this._updateRenderedContent(S)}get description(){return this._description}set description(S){this._updateHostAriaDescription(S)}get hidden(){return this._hidden}set hidden(S){this._hidden=(0,M.Ig)(S)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const S=this._renderer.createElement("span"),k="mat-badge-active";return S.setAttribute("id",`mat-badge-content-${this._id}`),S.setAttribute("aria-hidden","true"),S.classList.add(R),"NoopAnimations"===this._animationMode&&S.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(S),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{S.classList.add(k)})}):S.classList.add(k),S}_updateRenderedContent(S){const k=`${null!=S?S:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(S){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),S&&this._ariaDescriber.describe(this._elementRef.nativeElement,S),this._description=S}_setColor(S){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),S&&k.add(`mat-badge-${S}`)}_clearExistingBadges(){const S=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const k of Array.from(S))k!==this._badgeElement&&k.remove()}}return w.\u0275fac=function(S){return new(S||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(f.$s),t.Y36(t.Qsj),t.Y36(s.Qb,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(S,k){2&S&&t.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[t.qOj]}),w})(),L=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[f.rt,e.BQ],e.BQ]}),w})()},7423:(ze,K,p)=>{"use strict";p.d(K,{lW:()=>w,ot:()=>S});var t=p(5e3),e=p(508),f=p(6360),M=p(5664);const s=["mat-button",""],b=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(k){this._elementRef=k}})));let w=(()=>{class k extends L{constructor(U,W,j){super(U),this._focusMonitor=W,this._animationMode=j,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ne of h)this._hasHostAttributes(ne)&&this._getHostElement().classList.add(ne);U.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(U,W){U?this._focusMonitor.focusVia(this._getHostElement(),U,W):this._getHostElement().focus(W)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...U){return U.some(W=>this._getHostElement().hasAttribute(W))}}return k.\u0275fac=function(U){return new(U||k)(t.Y36(t.SBq),t.Y36(M.tE),t.Y36(f.Qb,8))},k.\u0275cmp=t.Xpm({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(U,W){if(1&U&&t.Gf(e.wG,5),2&U){let j;t.iGM(j=t.CRH())&&(W.ripple=j.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(U,W){2&U&&(t.uIk("disabled",W.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-button-disabled",W.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:s,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(U,W){1&U&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&U&&(t.xp6(2),t.ekj("mat-button-ripple-round",W.isRoundButton||W.isIconButton),t.Q6J("matRippleDisabled",W._isRippleDisabled())("matRippleCentered",W.isIconButton)("matRippleTrigger",W._getHostElement()))},directives:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),S=(()=>{class k{}return k.\u0275fac=function(U){return new(U||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),k})()},9224:(ze,K,p)=>{"use strict";p.d(K,{$j:()=>D,QW:()=>le,a8:()=>de,dk:()=>te,dn:()=>L,n5:()=>w});var t=p(5e3),e=p(6360),f=p(508);const M=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],b=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class ${}return $.\u0275fac=function(C){return new(C||$)},$.\u0275dir=t.lG2({type:$,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),$})(),w=(()=>{class ${}return $.\u0275fac=function(C){return new(C||$)},$.\u0275dir=t.lG2({type:$,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),$})(),D=(()=>{class ${}return $.\u0275fac=function(C){return new(C||$)},$.\u0275dir=t.lG2({type:$,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),$})(),de=(()=>{class ${constructor(C){this._animationMode=C}}return $.\u0275fac=function(C){return new(C||$)(t.Y36(e.Qb,8))},$.\u0275cmp=t.Xpm({type:$,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(C,i){2&C&&t.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(C,i){1&C&&(t.F$t(M),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),$})(),te=(()=>{class ${}return $.\u0275fac=function(C){return new(C||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(C,i){1&C&&(t.F$t(b),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),$})(),le=(()=>{class ${}return $.\u0275fac=function(C){return new(C||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),$})()},7446:(ze,K,p)=>{"use strict";p.d(K,{oG:()=>j,p9:()=>te});var t=p(3191),e=p(5e3),f=p(3075),M=p(508),s=p(6360),b=p(5664),d=p(7144);const R=["input"],h=function(ie){return{enterDuration:ie}},L=["*"],w=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:D});function D(){return{color:"accent",clickAction:"check-indeterminate"}}let S=0;const k=D(),E={provide:f.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class U{}const W=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(ie){this._elementRef=ie}}))));let j=(()=>{class ie extends W{constructor($,ge,C,i,r,u,c){super($),this._changeDetectorRef=ge,this._focusMonitor=C,this._ngZone=i,this._animationMode=u,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++S,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required($){this._required=(0,t.Ig)($)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe($=>{$||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked($){const ge=(0,t.Ig)($);ge!=this.checked&&(this._checked=ge,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled($){const ge=(0,t.Ig)($);ge!==this.disabled&&(this._disabled=ge,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate($){const ge=$!=this._indeterminate;this._indeterminate=(0,t.Ig)($),ge&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue($){this.checked=!!$}registerOnChange($){this._controlValueAccessorChangeFn=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState($){let ge=this._currentCheckState,C=this._elementRef.nativeElement;if(ge!==$&&(this._currentAnimationClass.length>0&&C.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ge,$),this._currentCheckState=$,this._currentAnimationClass.length>0)){C.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{C.classList.remove(i)},1e3)})}}_emitChangeEvent(){const $=new U;$.source=this,$.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit($),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick($){var ge;const C=null===(ge=this._options)||void 0===ge?void 0:ge.clickAction;$.stopPropagation(),this.disabled||"noop"===C?!this.disabled&&"noop"===C&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==C&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus($,ge){$?this._focusMonitor.focusVia(this._inputElement,$,ge):this._inputElement.nativeElement.focus(ge)}_onInteractionEvent($){$.stopPropagation()}_getAnimationClassForCheckStateTransition($,ge){if("NoopAnimations"===this._animationMode)return"";let C="";switch($){case 0:if(1===ge)C="unchecked-checked";else{if(3!=ge)return"";C="unchecked-indeterminate"}break;case 2:C=1===ge?"unchecked-checked":"unchecked-indeterminate";break;case 1:C=2===ge?"checked-unchecked":"checked-indeterminate";break;case 3:C=1===ge?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${C}`}_syncIndeterminate($){const ge=this._inputElement;ge&&(ge.nativeElement.indeterminate=$)}}return ie.\u0275fac=function($){return new($||ie)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(b.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(s.Qb,8),e.Y36(w,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["mat-checkbox"]],viewQuery:function($,ge){if(1&$&&(e.Gf(R,5),e.Gf(M.wG,5)),2&$){let C;e.iGM(C=e.CRH())&&(ge._inputElement=C.first),e.iGM(C=e.CRH())&&(ge.ripple=C.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function($,ge){2&$&&(e.Ikx("id",ge.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("mat-checkbox-indeterminate",ge.indeterminate)("mat-checkbox-checked",ge.checked)("mat-checkbox-disabled",ge.disabled)("mat-checkbox-label-before","before"==ge.labelPosition)("_mat-animation-noopable","NoopAnimations"===ge._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[e._Bn([E]),e.qOj],ngContentSelectors:L,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function($,ge){if(1&$&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(i){return ge._onInteractionEvent(i)})("click",function(i){return ge._onInputClick(i)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return ge._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&$){const C=e.MAs(1),i=e.MAs(13);e.uIk("for",ge.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(1),e.Q6J("id",ge.inputId)("required",ge.required)("checked",ge.checked)("disabled",ge.disabled)("tabIndex",ge.tabIndex),e.uIk("value",ge.value)("name",ge.name)("aria-label",ge.ariaLabel||null)("aria-labelledby",ge.ariaLabelledby)("aria-checked",ge._getAriaChecked())("aria-describedby",ge.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",C)("matRippleDisabled",ge._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,h,"NoopAnimations"===ge._animationMode?0:150))}},directives:[M.wG,d.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),ie})(),de=(()=>{class ie{}return ie.\u0275fac=function($){return new($||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})(),te=(()=>{class ie{}return ie.\u0275fac=function($){return new($||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[M.si,M.BQ,d.Q8,de],M.BQ,de]}),ie})()},6688:(ze,K,p)=>{"use strict";p.d(K,{HS:()=>C,Hi:()=>_,qn:()=>y});var t=p(1159),e=p(5e3),f=p(508),M=p(3191),s=p(9808),b=p(6360),d=p(7579),R=p(6451),h=p(5698),L=p(2722),w=p(8675),D=p(925),S=p(5664),k=p(449),E=p(3075),U=p(7322),W=p(226);const j=["*"],ee=new e.OlP("MatChipRemove"),de=new e.OlP("MatChipAvatar"),te=new e.OlP("MatChipTrailingIcon");class ie{constructor(N){this._elementRef=N}}const le=(0,f.sb)((0,f.pj)((0,f.Kr)(ie),"primary"),-1);let C=(()=>{class B extends le{constructor(H,J,ue,xe,Pe,Se,Q,Ue){super(H),this._ngZone=J,this._changeDetectorRef=Pe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new e.vpe,this.destroyed=new e.vpe,this.removed=new e.vpe,this._addHostClassName(),this._chipRippleTarget=Se.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f.IR(this,J,this._chipRippleTarget,ue),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=xe||{},this._animationsDisabled="NoopAnimations"===Q,this.tabIndex=null!=Ue&&parseInt(Ue)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const J=(0,M.Ig)(H);J!==this._selected&&(this._selected=J,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,M.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,M.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,M.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const H="mat-basic-chip",J=this._elementRef.nativeElement;J.hasAttribute(H)||J.tagName.toLowerCase()===H?J.classList.add(H):J.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case t.yY:case t.ZH:this.remove(),H.preventDefault();break;case t.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}}return B.\u0275fac=function(H){return new(H||B)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(D.t4),e.Y36(f.Y2,8),e.Y36(e.sBO),e.Y36(s.K0),e.Y36(b.Qb,8),e.$8M("tabindex"))},B.\u0275dir=e.lG2({type:B,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(H,J,ue){if(1&H&&(e.Suo(ue,de,5),e.Suo(ue,te,5),e.Suo(ue,ee,5)),2&H){let xe;e.iGM(xe=e.CRH())&&(J.avatar=xe.first),e.iGM(xe=e.CRH())&&(J.trailingIcon=xe.first),e.iGM(xe=e.CRH())&&(J.removeIcon=xe.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(H,J){1&H&&e.NdJ("click",function(xe){return J._handleClick(xe)})("keydown",function(xe){return J._handleKeydown(xe)})("focus",function(){return J.focus()})("blur",function(){return J._blur()}),2&H&&(e.uIk("tabindex",J.disabled?null:J.tabIndex)("disabled",J.disabled||null)("aria-disabled",J.disabled.toString())("aria-selected",J.ariaSelected),e.ekj("mat-chip-selected",J.selected)("mat-chip-with-avatar",J.avatar)("mat-chip-with-trailing-icon",J.trailingIcon||J.removeIcon)("mat-chip-disabled",J.disabled)("_mat-animation-noopable",J._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),B})();const r=new e.OlP("mat-chips-default-options"),v=(0,f.FD)(class{constructor(B,N,H,J){this._defaultErrorStateMatcher=B,this._parentForm=N,this._parentFormGroup=H,this.ngControl=J}});let T=0;class I{constructor(N,H){this.source=N,this.value=H}}let y=(()=>{class B extends v{constructor(H,J,ue,xe,Pe,Se,Q){super(Se,xe,Pe,Q),this._elementRef=H,this._changeDetectorRef=J,this._dir=ue,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+T++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ue,Ce)=>Ue===Ce,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new e.vpe,this.valueChange=new e.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var H,J;return this.multiple?(null===(H=this._selectionModel)||void 0===H?void 0:H.selected)||[]:null===(J=this._selectionModel)||void 0===J?void 0:J.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,M.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var H,J,ue,xe;return null!==(xe=null!==(H=this._required)&&void 0!==H?H:null===(ue=null===(J=this.ngControl)||void 0===J?void 0:J.control)||void 0===ue?void 0:ue.hasValidator(E.kI.required))&&void 0!==xe&&xe}set required(H){this._required=(0,M.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,M.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,M.Ig)(H),this.chips&&this.chips.forEach(J=>J.chipListSelectable=this._selectable)}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,R.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,R.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,R.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,R.T)(...this.chips.map(H=>H.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,w.O)(null),(0,L.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){this._ariaDescribedby=H.join(" ")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const J=H.target;J&&J.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&H<this.chips.length}_setSelectionByValue(H,J=!0){if(this._clearSelection(),this.chips.forEach(ue=>ue.deselect()),Array.isArray(H))H.forEach(ue=>this._selectValue(ue,J)),this._sortValues();else{const ue=this._selectValue(H,J);ue&&J&&this._keyManager.setActiveItem(ue)}}_selectValue(H,J=!0){const ue=this.chips.find(xe=>null!=xe.value&&this._compareWith(xe.value,H));return ue&&(J?ue.selectViaInteraction():ue.select(),this._selectionModel.select(ue)),ue}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach(J=>{J!==H&&J.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let J=null;J=Array.isArray(this.selected)?this.selected.map(ue=>ue.value):this.selected?this.selected.value:H,this._value=J,this.change.emit(new I(this,J)),this.valueChange.emit(J),this._onChange(J),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach(J=>{!this._selectionModel.isSelected(J)&&J.selected&&J.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let J=this.chips.toArray().indexOf(H.chip);this._isValidIndex(J)&&this._keyManager.updateActiveItem(J),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const J=H.chip,ue=this.chips.toArray().indexOf(H.chip);this._isValidIndex(ue)&&J._hasFocus&&(this._lastDestroyedChipIndex=ue)})}_originatesFromChip(H){let J=H.target;for(;J&&J!==this._elementRef.nativeElement;){if(J.classList.contains("mat-chip"))return!0;J=J.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple})}}return B.\u0275fac=function(H){return new(H||B)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(W.Is,8),e.Y36(E.F,8),e.Y36(E.sg,8),e.Y36(f.rD),e.Y36(E.a5,10))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-chip-list"]],contentQueries:function(H,J,ue){if(1&H&&e.Suo(ue,C,5),2&H){let xe;e.iGM(xe=e.CRH())&&(J.chips=xe)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(H,J){1&H&&e.NdJ("focus",function(){return J.focus()})("blur",function(){return J._blur()})("keydown",function(xe){return J._keydown(xe)}),2&H&&(e.Ikx("id",J._uid),e.uIk("tabindex",J.disabled?null:J._tabIndex)("aria-describedby",J._ariaDescribedby||null)("aria-required",J.role?J.required:null)("aria-disabled",J.disabled.toString())("aria-invalid",J.errorState)("aria-multiselectable",J.multiple)("role",J.role)("aria-orientation",J.ariaOrientation),e.ekj("mat-chip-list-disabled",J.disabled)("mat-chip-list-invalid",J.errorState)("mat-chip-list-required",J.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:U.Eo,useExisting:B}]),e.qOj],ngContentSelectors:j,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(H,J){1&H&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),B})(),_=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({providers:[f.rD,{provide:r,useValue:{separatorKeyCodes:[t.K5]}}],imports:[[f.BQ]]}),B})()},508:(ze,K,p)=>{"use strict";p.d(K,{yN:()=>ne,mZ:()=>ee,_A:()=>y,rD:()=>Pe,sG:()=>n,K7:()=>Gt,HF:()=>et,Y2:()=>z,BQ:()=>ie,X2:()=>Se,uc:()=>Ce,XK:()=>ue,ey:()=>tt,Ng:()=>Kt,rN:()=>Nt,nP:()=>He,us:()=>pt,wG:()=>be,si:()=>fe,LF:()=>N,IR:()=>we,CB:()=>xt,jH:()=>ei,pj:()=>i,Kr:()=>r,Id:()=>C,FD:()=>c,dB:()=>v,sb:()=>u,E0:()=>Q});var t=p(5e3),e=p(226),M=p(9808),s=p(925),b=p(5664),d=p(3191),R=p(7579),h=p(8306),L=p(8675),w=p(6360),D=p(1159);function E(Re,Oe){if(1&Re&&t._UZ(0,"mat-pseudo-checkbox",4),2&Re){const ce=t.oxw();t.Q6J("state",ce.selected?"checked":"unchecked")("disabled",ce.disabled)}}function U(Re,Oe){if(1&Re&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&Re){const ce=t.oxw();t.xp6(1),t.hij("(",ce.group.label,")")}}const W=["*"];let ne=(()=>{class Re{}return Re.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Re.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Re.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Re.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Re})(),ee=(()=>{class Re{}return Re.COMPLEX="375ms",Re.ENTERING="225ms",Re.EXITING="195ms",Re})();const te=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function de(){return!0}});let ie=(()=>{class Re{constructor(ce,ve,ht){this._sanityChecks=ve,this._document=ht,this._hasDoneGlobalChecks=!1,ce._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ce){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ce])}}return Re.\u0275fac=function(ce){return new(ce||Re)(t.LFG(b.qm),t.LFG(te,8),t.LFG(M.K0))},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[e.vT],e.vT]}),Re})();function C(Re){return class extends Re{constructor(...Oe){super(...Oe),this._disabled=!1}get disabled(){return this._disabled}set disabled(Oe){this._disabled=(0,d.Ig)(Oe)}}}function i(Re,Oe){return class extends Re{constructor(...ce){super(...ce),this.defaultColor=Oe,this.color=Oe}get color(){return this._color}set color(ce){const ve=ce||this.defaultColor;ve!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ve&&this._elementRef.nativeElement.classList.add(`mat-${ve}`),this._color=ve)}}}function r(Re){return class extends Re{constructor(...Oe){super(...Oe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Oe){this._disableRipple=(0,d.Ig)(Oe)}}}function u(Re,Oe=0){return class extends Re{constructor(...ce){super(...ce),this._tabIndex=Oe,this.defaultTabIndex=Oe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ce){this._tabIndex=null!=ce?(0,d.su)(ce):this.defaultTabIndex}}}function c(Re){return class extends Re{constructor(...Oe){super(...Oe),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const Oe=this.errorState,mt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);mt!==Oe&&(this.errorState=mt,this.stateChanges.next())}}}function v(Re){return class extends Re{constructor(...Oe){super(...Oe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(ce=>{this._isInitialized?this._notifySubscriber(ce):this._pendingSubscribers.push(ce)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Oe){Oe.next(),Oe.complete()}}}const T=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,t.f3M)(t.soG)}});class y{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Oe){return this.isDateInstance(Oe)&&this.isValid(Oe)?Oe:null}deserialize(Oe){return null==Oe||this.isDateInstance(Oe)&&this.isValid(Oe)?Oe:this.invalid()}setLocale(Oe){this.locale=Oe,this._localeChanges.next()}compareDate(Oe,ce){return this.getYear(Oe)-this.getYear(ce)||this.getMonth(Oe)-this.getMonth(ce)||this.getDate(Oe)-this.getDate(ce)}sameDate(Oe,ce){if(Oe&&ce){let ve=this.isValid(Oe),ht=this.isValid(ce);return ve&&ht?!this.compareDate(Oe,ce):ve==ht}return Oe==ce}clampDate(Oe,ce,ve){return ce&&this.compareDate(Oe,ce)<0?ce:ve&&this.compareDate(Oe,ve)>0?ve:Oe}}const n=new t.OlP("mat-date-formats"),_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function B(Re,Oe){const ce=Array(Re);for(let ve=0;ve<Re;ve++)ce[ve]=Oe(ve);return ce}let N=(()=>{class Re extends y{constructor(ce,ve){super(),this.useUtcForDisplay=!1,super.setLocale(ce)}getYear(ce){return ce.getFullYear()}getMonth(ce){return ce.getMonth()}getDate(ce){return ce.getDate()}getDayOfWeek(ce){return ce.getDay()}getMonthNames(ce){const ve=new Intl.DateTimeFormat(this.locale,{month:ce,timeZone:"utc"});return B(12,ht=>this._format(ve,new Date(2017,ht,1)))}getDateNames(){const ce=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B(31,ve=>this._format(ce,new Date(2017,0,ve+1)))}getDayOfWeekNames(ce){const ve=new Intl.DateTimeFormat(this.locale,{weekday:ce,timeZone:"utc"});return B(7,ht=>this._format(ve,new Date(2017,0,ht+1)))}getYearName(ce){const ve=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ve,ce)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ce){return this.getDate(this._createDateWithOverflow(this.getYear(ce),this.getMonth(ce)+1,0))}clone(ce){return new Date(ce.getTime())}createDate(ce,ve,ht){let mt=this._createDateWithOverflow(ce,ve,ht);return mt.getMonth(),mt}today(){return new Date}parse(ce){return"number"==typeof ce?new Date(ce):ce?new Date(Date.parse(ce)):null}format(ce,ve){if(!this.isValid(ce))throw Error("NativeDateAdapter: Cannot format invalid date.");const ht=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ve),{timeZone:"utc"}));return this._format(ht,ce)}addCalendarYears(ce,ve){return this.addCalendarMonths(ce,12*ve)}addCalendarMonths(ce,ve){let ht=this._createDateWithOverflow(this.getYear(ce),this.getMonth(ce)+ve,this.getDate(ce));return this.getMonth(ht)!=((this.getMonth(ce)+ve)%12+12)%12&&(ht=this._createDateWithOverflow(this.getYear(ht),this.getMonth(ht),0)),ht}addCalendarDays(ce,ve){return this._createDateWithOverflow(this.getYear(ce),this.getMonth(ce),this.getDate(ce)+ve)}toIso8601(ce){return[ce.getUTCFullYear(),this._2digit(ce.getUTCMonth()+1),this._2digit(ce.getUTCDate())].join("-")}deserialize(ce){if("string"==typeof ce){if(!ce)return null;if(_.test(ce)){let ve=new Date(ce);if(this.isValid(ve))return ve}}return super.deserialize(ce)}isDateInstance(ce){return ce instanceof Date}isValid(ce){return!isNaN(ce.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ce,ve,ht){const mt=new Date;return mt.setFullYear(ce,ve,ht),mt.setHours(0,0,0,0),mt}_2digit(ce){return("00"+ce).slice(-2)}_format(ce,ve){const ht=new Date;return ht.setUTCFullYear(ve.getFullYear(),ve.getMonth(),ve.getDate()),ht.setUTCHours(ve.getHours(),ve.getMinutes(),ve.getSeconds(),ve.getMilliseconds()),ce.format(ht)}}return Re.\u0275fac=function(ce){return new(ce||Re)(t.LFG(T,8),t.LFG(s.t4))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const H={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let J=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:y,useClass:N}]}),Re})(),ue=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:n,useValue:H}],imports:[[J]]}),Re})(),Pe=(()=>{class Re{isErrorState(ce,ve){return!!(ce&&ce.invalid&&(ce.touched||ve&&ve.submitted))}}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Se=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275dir=t.lG2({type:Re,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Re})();function Q(Re,Oe,ce="mat"){Re.changes.pipe((0,L.O)(Re)).subscribe(({length:ve})=>{Ue(Oe,`${ce}-2-line`,!1),Ue(Oe,`${ce}-3-line`,!1),Ue(Oe,`${ce}-multi-line`,!1),2===ve||3===ve?Ue(Oe,`${ce}-${ve}-line`,!0):ve>3&&Ue(Oe,`${ce}-multi-line`,!0)})}function Ue(Re,Oe,ce){Re.nativeElement.classList.toggle(Oe,ce)}let Ce=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[ie],ie]}),Re})();class q{constructor(Oe,ce,ve){this._renderer=Oe,this.element=ce,this.config=ve,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},Ie=(0,s.i$)({passive:!0}),De=["mousedown","touchstart"],ae=["mouseup","mouseleave","touchend","touchcancel"];class we{constructor(Oe,ce,ve,ht){this._target=Oe,this._ngZone=ce,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ht.isBrowser&&(this._containerElement=(0,d.fI)(ve))}fadeInRipple(Oe,ce,ve={}){const ht=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),mt=Object.assign(Object.assign({},Ae),ve.animation);ve.centered&&(Oe=ht.left+ht.width/2,ce=ht.top+ht.height/2);const Ht=ve.radius||function Y(Re,Oe,ce){const ve=Math.max(Math.abs(Re-ce.left),Math.abs(Re-ce.right)),ht=Math.max(Math.abs(Oe-ce.top),Math.abs(Oe-ce.bottom));return Math.sqrt(ve*ve+ht*ht)}(Oe,ce,ht),it=Oe-ht.left,Ne=ce-ht.top,nt=mt.enterDuration,Xe=document.createElement("div");Xe.classList.add("mat-ripple-element"),Xe.style.left=it-Ht+"px",Xe.style.top=Ne-Ht+"px",Xe.style.height=2*Ht+"px",Xe.style.width=2*Ht+"px",null!=ve.color&&(Xe.style.backgroundColor=ve.color),Xe.style.transitionDuration=`${nt}ms`,this._containerElement.appendChild(Xe),function ye(Re){window.getComputedStyle(Re).getPropertyValue("opacity")}(Xe),Xe.style.transform="scale(1)";const Ee=new q(this,Xe,ve);return Ee.state=0,this._activeRipples.add(Ee),ve.persistent||(this._mostRecentTransientRipple=Ee),this._runTimeoutOutsideZone(()=>{const Ge=Ee===this._mostRecentTransientRipple;Ee.state=1,!ve.persistent&&(!Ge||!this._isPointerDown)&&Ee.fadeOut()},nt),Ee}fadeOutRipple(Oe){const ce=this._activeRipples.delete(Oe);if(Oe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!ce)return;const ve=Oe.element,ht=Object.assign(Object.assign({},Ae),Oe.config.animation);ve.style.transitionDuration=`${ht.exitDuration}ms`,ve.style.opacity="0",Oe.state=2,this._runTimeoutOutsideZone(()=>{Oe.state=3,ve.remove()},ht.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Oe=>Oe.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Oe=>{Oe.config.persistent||Oe.fadeOut()})}setupTriggerEvents(Oe){const ce=(0,d.fI)(Oe);!ce||ce===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ce,this._registerEvents(De))}handleEvent(Oe){"mousedown"===Oe.type?this._onMousedown(Oe):"touchstart"===Oe.type?this._onTouchStart(Oe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ae),this._pointerUpEventsRegistered=!0)}_onMousedown(Oe){const ce=(0,b.X6)(Oe),ve=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ce&&!ve&&(this._isPointerDown=!0,this.fadeInRipple(Oe.clientX,Oe.clientY,this._target.rippleConfig))}_onTouchStart(Oe){if(!this._target.rippleDisabled&&!(0,b.yG)(Oe)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ce=Oe.changedTouches;for(let ve=0;ve<ce.length;ve++)this.fadeInRipple(ce[ve].clientX,ce[ve].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Oe=>{!Oe.config.persistent&&(1===Oe.state||Oe.config.terminateOnPointerUp&&0===Oe.state)&&Oe.fadeOut()}))}_runTimeoutOutsideZone(Oe,ce=0){this._ngZone.runOutsideAngular(()=>setTimeout(Oe,ce))}_registerEvents(Oe){this._ngZone.runOutsideAngular(()=>{Oe.forEach(ce=>{this._triggerElement.addEventListener(ce,this,Ie)})})}_removeTriggerEvents(){this._triggerElement&&(De.forEach(Oe=>{this._triggerElement.removeEventListener(Oe,this,Ie)}),this._pointerUpEventsRegistered&&ae.forEach(Oe=>{this._triggerElement.removeEventListener(Oe,this,Ie)}))}}const z=new t.OlP("mat-ripple-global-options");let be=(()=>{class Re{constructor(ce,ve,ht,mt,Ht){this._elementRef=ce,this._animationMode=Ht,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=mt||{},this._rippleRenderer=new we(this,ve,ce,ht)}get disabled(){return this._disabled}set disabled(ce){ce&&this.fadeOutAllNonPersistent(),this._disabled=ce,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ce){this._trigger=ce,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ce,ve=0,ht){return"number"==typeof ce?this._rippleRenderer.fadeInRipple(ce,ve,Object.assign(Object.assign({},this.rippleConfig),ht)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),ce))}}return Re.\u0275fac=function(ce){return new(ce||Re)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(s.t4),t.Y36(z,8),t.Y36(w.Qb,8))},Re.\u0275dir=t.lG2({type:Re,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ce,ve){2&ce&&t.ekj("mat-ripple-unbounded",ve.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"]}),Re})(),fe=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[ie],ie]}),Re})(),He=(()=>{class Re{constructor(ce){this._animationMode=ce,this.state="unchecked",this.disabled=!1}}return Re.\u0275fac=function(ce){return new(ce||Re)(t.Y36(w.Qb,8))},Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ce,ve){2&ce&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ve.state)("mat-pseudo-checkbox-checked","checked"===ve.state)("mat-pseudo-checkbox-disabled",ve.disabled)("_mat-animation-noopable","NoopAnimations"===ve._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ce,ve){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Re})(),pt=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[ie]]}),Re})();const et=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Gt=new t.OlP("MatOptgroup");let Ot=0;class Nt{constructor(Oe,ce=!1){this.source=Oe,this.isUserInput=ce}}let gt=(()=>{class Re{constructor(ce,ve,ht,mt){this._element=ce,this._changeDetectorRef=ve,this._parent=ht,this.group=mt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ot++,this.onSelectionChange=new t.vpe,this._stateChanges=new R.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ce){this._disabled=(0,d.Ig)(ce)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ce,ve){const ht=this._getHostElement();"function"==typeof ht.focus&&ht.focus(ve)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ce){(ce.keyCode===D.K5||ce.keyCode===D.L_)&&!(0,D.Vb)(ce)&&(this._selectViaInteraction(),ce.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ce=this.viewValue;ce!==this._mostRecentViewValue&&(this._mostRecentViewValue=ce,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ce=!1){this.onSelectionChange.emit(new Nt(this,ce))}}return Re.\u0275fac=function(ce){t.$Z()},Re.\u0275dir=t.lG2({type:Re,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Re})(),tt=(()=>{class Re extends gt{constructor(ce,ve,ht,mt){super(ce,ve,ht,mt)}}return Re.\u0275fac=function(ce){return new(ce||Re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(et,8),t.Y36(Gt,8))},Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ce,ve){1&ce&&t.NdJ("click",function(){return ve._selectViaInteraction()})("keydown",function(mt){return ve._handleKeydown(mt)}),2&ce&&(t.Ikx("id",ve.id),t.uIk("tabindex",ve._getTabIndex())("aria-selected",ve._getAriaSelected())("aria-disabled",ve.disabled.toString()),t.ekj("mat-selected",ve.selected)("mat-option-multiple",ve.multiple)("mat-active",ve.active)("mat-option-disabled",ve.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:W,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ce,ve){1&ce&&(t.F$t(),t.YNc(0,E,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,U,2,1,"span",2),t._UZ(4,"div",3)),2&ce&&(t.Q6J("ngIf",ve.multiple),t.xp6(3),t.Q6J("ngIf",ve.group&&ve.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",ve._getHostElement())("matRippleDisabled",ve.disabled||ve.disableRipple))},directives:[He,M.O5,be],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Re})();function xt(Re,Oe,ce){if(ce.length){let ve=Oe.toArray(),ht=ce.toArray(),mt=0;for(let Ht=0;Ht<Re+1;Ht++)ve[Ht].group&&ve[Ht].group===ht[mt]&&mt++;return mt}return 0}function ei(Re,Oe,ce,ve){return Re<ce?Re:Re+Oe>ce+ve?Math.max(0,Re-ve+Oe):ce}let Kt=(()=>{class Re{}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[fe,M.ez,ie,pt]]}),Re})()},6856:(ze,K,p)=>{"use strict";p.d(K,{FA:()=>_e,Mq:()=>Ne,hl:()=>lt,nW:()=>mi});var t=p(5664),e=p(9776),f=p(7429),M=p(9808),s=p(5e3),b=p(7423),d=p(5303),R=p(508),h=p(7579),L=p(727),w=p(6451),D=p(9646),S=p(1159),k=p(5698),E=p(8675),U=p(9300),W=p(226),j=p(3191),ne=p(925),ee=p(1777),de=p(3075),te=p(7322),ie=p(7531);const le=["mat-calendar-body",""];function $(Ke,yt){if(1&Ke&&(s.TgZ(0,"tr",2)(1,"td",3),s._uU(2),s.qZA()()),2&Ke){const re=s.oxw();s.xp6(1),s.Udp("padding-top",re._cellPadding)("padding-bottom",re._cellPadding),s.uIk("colspan",re.numCols),s.xp6(1),s.hij(" ",re.label," ")}}function ge(Ke,yt){if(1&Ke&&(s.TgZ(0,"td",3),s._uU(1),s.qZA()),2&Ke){const re=s.oxw(2);s.Udp("padding-top",re._cellPadding)("padding-bottom",re._cellPadding),s.uIk("colspan",re._firstRowOffset),s.xp6(1),s.hij(" ",re._firstRowOffset>=re.labelMinRequiredCells?re.label:""," ")}}function C(Ke,yt){if(1&Ke){const re=s.EpF();s.TgZ(0,"td",7)(1,"button",8),s.NdJ("click",function(bt){const bi=s.CHM(re).$implicit;return s.oxw(2)._cellClicked(bi,bt)}),s.TgZ(2,"div",9),s._uU(3),s.qZA(),s._UZ(4,"div",10),s.qZA()()}if(2&Ke){const re=yt.$implicit,qe=yt.index,bt=s.oxw().index,Vt=s.oxw();s.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),s.uIk("data-mat-row",bt)("data-mat-col",qe),s.xp6(1),s.ekj("mat-calendar-body-disabled",!re.enabled)("mat-calendar-body-active",Vt._isActiveCell(bt,qe))("mat-calendar-body-range-start",Vt._isRangeStart(re.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(re.compareValue))("mat-calendar-body-in-range",Vt._isInRange(re.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(re.compareValue,bt,qe))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(re.compareValue,bt,qe))("mat-calendar-body-comparison-start",Vt._isComparisonStart(re.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(re.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(re.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(re.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(re.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(re.compareValue)),s.Q6J("ngClass",re.cssClasses)("tabindex",Vt._isActiveCell(bt,qe)?0:-1),s.uIk("aria-label",re.ariaLabel)("aria-disabled",!re.enabled||null)("aria-pressed",Vt._isSelected(re.compareValue))("aria-current",Vt.todayValue===re.compareValue?"date":null),s.xp6(1),s.ekj("mat-calendar-body-selected",Vt._isSelected(re.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(re.compareValue))("mat-calendar-body-today",Vt.todayValue===re.compareValue),s.xp6(1),s.hij(" ",re.displayValue," ")}}function i(Ke,yt){if(1&Ke&&(s.TgZ(0,"tr",4),s.YNc(1,ge,2,6,"td",5),s.YNc(2,C,5,47,"td",6),s.qZA()),2&Ke){const re=yt.$implicit,qe=yt.index,bt=s.oxw();s.xp6(1),s.Q6J("ngIf",0===qe&&bt._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",re)}}function r(Ke,yt){if(1&Ke&&(s.TgZ(0,"th",5)(1,"span",6),s._uU(2),s.qZA(),s.TgZ(3,"span",7),s._uU(4),s.qZA()()),2&Ke){const re=yt.$implicit;s.xp6(2),s.Oqu(re.long),s.xp6(2),s.Oqu(re.narrow)}}const u=["*"];function c(Ke,yt){}function v(Ke,yt){if(1&Ke){const re=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(bt){return s.CHM(re),s.oxw().activeDate=bt})("_userSelection",function(bt){return s.CHM(re),s.oxw()._dateSelected(bt)}),s.qZA()}if(2&Ke){const re=s.oxw();s.Q6J("activeDate",re.activeDate)("selected",re.selected)("dateFilter",re.dateFilter)("maxDate",re.maxDate)("minDate",re.minDate)("dateClass",re.dateClass)("comparisonStart",re.comparisonStart)("comparisonEnd",re.comparisonEnd)}}function T(Ke,yt){if(1&Ke){const re=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(bt){return s.CHM(re),s.oxw().activeDate=bt})("monthSelected",function(bt){return s.CHM(re),s.oxw()._monthSelectedInYearView(bt)})("selectedChange",function(bt){return s.CHM(re),s.oxw()._goToDateInView(bt,"month")}),s.qZA()}if(2&Ke){const re=s.oxw();s.Q6J("activeDate",re.activeDate)("selected",re.selected)("dateFilter",re.dateFilter)("maxDate",re.maxDate)("minDate",re.minDate)("dateClass",re.dateClass)}}function I(Ke,yt){if(1&Ke){const re=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(bt){return s.CHM(re),s.oxw().activeDate=bt})("yearSelected",function(bt){return s.CHM(re),s.oxw()._yearSelectedInMultiYearView(bt)})("selectedChange",function(bt){return s.CHM(re),s.oxw()._goToDateInView(bt,"year")}),s.qZA()}if(2&Ke){const re=s.oxw();s.Q6J("activeDate",re.activeDate)("selected",re.selected)("dateFilter",re.dateFilter)("maxDate",re.maxDate)("minDate",re.minDate)("dateClass",re.dateClass)}}function y(Ke,yt){}const n=["button"];function _(Ke,yt){1&Ke&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class Pe{constructor(yt,re,qe,bt,Vt={},bi=yt,wi){this.value=yt,this.displayValue=re,this.ariaLabel=qe,this.enabled=bt,this.cssClasses=Vt,this.compareValue=bi,this.rawValue=wi}}let Se=(()=>{class Ke{constructor(re,qe){this._elementRef=re,this._ngZone=qe,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._enterHandler=bt=>{if(this._skipNextFocus&&"focus"===bt.type)this._skipNextFocus=!1;else if(bt.target&&this.isRange){const Vt=this._getCellFromElement(bt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:bt}))}},this._leaveHandler=bt=>{null!==this.previewEnd&&this.isRange&&bt.target&&this._getCellFromElement(bt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:bt}))},qe.runOutsideAngular(()=>{const bt=re.nativeElement;bt.addEventListener("mouseenter",this._enterHandler,!0),bt.addEventListener("focus",this._enterHandler,!0),bt.addEventListener("mouseleave",this._leaveHandler,!0),bt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(re,qe){re.enabled&&this.selectedValueChange.emit({value:re.value,event:qe})}_isSelected(re){return this.startValue===re||this.endValue===re}ngOnChanges(re){const qe=re.numCols,{rows:bt,numCols:Vt}=this;(re.rows||qe)&&(this._firstRowOffset=bt&&bt.length&&bt[0].length?Vt-bt[0].length:0),(re.cellAspectRatio||qe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),(qe||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const re=this._elementRef.nativeElement;re.removeEventListener("mouseenter",this._enterHandler,!0),re.removeEventListener("focus",this._enterHandler,!0),re.removeEventListener("mouseleave",this._leaveHandler,!0),re.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(re,qe){let bt=re*this.numCols+qe;return re&&(bt-=this._firstRowOffset),bt==this.activeCell}_focusActiveCell(re=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const qe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");qe&&(re||(this._skipNextFocus=!0),qe.focus())})})})}_isRangeStart(re){return Ue(re,this.startValue,this.endValue)}_isRangeEnd(re){return Ce(re,this.startValue,this.endValue)}_isInRange(re){return q(re,this.startValue,this.endValue,this.isRange)}_isComparisonStart(re){return Ue(re,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(re,qe,bt){if(!this._isComparisonStart(re)||this._isRangeStart(re)||!this._isInRange(re))return!1;let Vt=this.rows[qe][bt-1];if(!Vt){const bi=this.rows[qe-1];Vt=bi&&bi[bi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(re,qe,bt){if(!this._isComparisonEnd(re)||this._isRangeEnd(re)||!this._isInRange(re))return!1;let Vt=this.rows[qe][bt+1];if(!Vt){const bi=this.rows[qe+1];Vt=bi&&bi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(re){return Ce(re,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(re){return q(re,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(re){return this.comparisonStart===this.comparisonEnd&&re===this.comparisonStart}_isPreviewStart(re){return Ue(re,this.previewStart,this.previewEnd)}_isPreviewEnd(re){return Ce(re,this.previewStart,this.previewEnd)}_isInPreview(re){return q(re,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(re){let qe;if(Q(re)?qe=re:Q(re.parentNode)&&(qe=re.parentNode),qe){const bt=qe.getAttribute("data-mat-row"),Vt=qe.getAttribute("data-mat-col");if(bt&&Vt)return this.rows[parseInt(bt)][parseInt(Vt)]}return null}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.SBq),s.Y36(s.R0b))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:le,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(re,qe){1&re&&(s.YNc(0,$,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1)),2&re&&(s.Q6J("ngIf",qe._firstRowOffset<qe.labelMinRequiredCells),s.xp6(1),s.Q6J("ngForOf",qe.rows))},directives:[M.O5,M.sg,M.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),Ke})();function Q(Ke){return"TD"===Ke.nodeName}function Ue(Ke,yt,re){return null!==re&&yt!==re&&Ke<re&&Ke===yt}function Ce(Ke,yt,re){return null!==yt&&yt!==re&&Ke>=yt&&Ke===re}function q(Ke,yt,re,qe){return qe&&null!==yt&&null!==re&&yt!==re&&Ke>=yt&&Ke<=re}class Ae{constructor(yt,re){this.start=yt,this.end=re}}let ut=(()=>{class Ke{constructor(re,qe){this.selection=re,this._adapter=qe,this._selectionChanged=new h.x,this.selectionChanged=this._selectionChanged,this.selection=re}updateSelection(re,qe){const bt=this.selection;this.selection=re,this._selectionChanged.next({selection:re,source:qe,oldValue:bt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(re){return this._adapter.isDateInstance(re)&&this._adapter.isValid(re)}}return Ke.\u0275fac=function(re){s.$Z()},Ke.\u0275prov=s.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),Ie=(()=>{class Ke extends ut{constructor(re){super(null,re)}add(re){super.updateSelection(re,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const re=new Ke(this._adapter);return re.updateSelection(this.selection,this),re}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.LFG(R._A))},Ke.\u0275prov=s.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const we={provide:ut,deps:[[new s.FiY,new s.tp0,ut],R._A],useFactory:function ae(Ke,yt){return Ke||new Ie(yt)}},z=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let et=(()=>{class Ke{constructor(re,qe,bt,Vt,bi){this._changeDetectorRef=re,this._dateFormats=qe,this._dateAdapter=bt,this._dir=Vt,this._rangeStrategy=bi,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(re){const qe=this._activeDate,bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._hasSameMonthAndYear(qe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(re){this._selected=re instanceof Ae?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnChanges(re){const qe=re.comparisonStart||re.comparisonEnd;qe&&!qe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(re){const qe=re.value,bt=this._dateAdapter.getYear(this.activeDate),Vt=this._dateAdapter.getMonth(this.activeDate),bi=this._dateAdapter.createDate(bt,Vt,qe);let wi,Xi;this._selected instanceof Ae?(wi=this._getDateInCurrentMonth(this._selected.start),Xi=this._getDateInCurrentMonth(this._selected.end)):wi=Xi=this._getDateInCurrentMonth(this._selected),(wi!==qe||Xi!==qe)&&this.selectedChange.emit(bi),this._userSelection.emit({value:bi,event:re.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(re){const qe=this._activeDate,bt=this._isRtl();switch(re.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case S.Ku:this.activeDate=re.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case S.VM:this.activeDate=re.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case S.K5:case S.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&re.preventDefault());case S.hY:return void(null!=this._previewEnd&&!(0,S.Vb)(re)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:re}),re.preventDefault(),re.stopPropagation()));default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),re.preventDefault()}_handleCalendarBodyKeyup(re){(re.keyCode===S.L_||re.keyCode===S.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:re}),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 re=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(re)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(re){this._matCalendarBody._focusActiveCell(re)}_previewChanged({event:re,value:qe}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview(qe?qe.rawValue:null,this.selected,re);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const re=this._dateAdapter.getFirstDayOfWeek(),qe=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((bi,wi)=>({long:bi,narrow:qe[wi]}));this._weekdays=Vt.slice(re).concat(Vt.slice(0,re))}_createWeekCells(){const re=this._dateAdapter.getNumDaysInMonth(this.activeDate),qe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let bt=0,Vt=this._firstWeekOffset;bt<re;bt++,Vt++){7==Vt&&(this._weeks.push([]),Vt=0);const bi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),bt+1),wi=this._shouldEnableDate(bi),Xi=this._dateAdapter.format(bi,this._dateFormats.display.dateA11yLabel),Zi=this.dateClass?this.dateClass(bi,"month"):void 0;this._weeks[this._weeks.length-1].push(new Pe(bt+1,qe[bt],Xi,wi,Zi,this._getCellCompareValue(bi),bi))}}_shouldEnableDate(re){return!!re&&(!this.minDate||this._dateAdapter.compareDate(re,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(re,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(re))}_getDateInCurrentMonth(re){return re&&this._hasSameMonthAndYear(re,this.activeDate)?this._dateAdapter.getDate(re):null}_hasSameMonthAndYear(re,qe){return!(!re||!qe||this._dateAdapter.getMonth(re)!=this._dateAdapter.getMonth(qe)||this._dateAdapter.getYear(re)!=this._dateAdapter.getYear(qe))}_getCellCompareValue(re){if(re){const qe=this._dateAdapter.getYear(re),bt=this._dateAdapter.getMonth(re),Vt=this._dateAdapter.getDate(re);return new Date(qe,bt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(re){re instanceof Ae?(this._rangeStart=this._getCellCompareValue(re.start),this._rangeEnd=this._getCellCompareValue(re.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(re),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(re){return!this.dateFilter||this.dateFilter(re)}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.sBO),s.Y36(R.sG,8),s.Y36(R._A,8),s.Y36(W.Is,8),s.Y36(z,8))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-month-view"]],viewQuery:function(re,qe){if(1&re&&s.Gf(Se,5),2&re){let bt;s.iGM(bt=s.CRH())&&(qe._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(re,qe){1&re&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s.YNc(3,r,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(Vt){return qe._dateSelected(Vt)})("previewChange",function(Vt){return qe._previewChanged(Vt)})("keyup",function(Vt){return qe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return qe._handleCalendarBodyKeydown(Vt)}),s.qZA()()),2&re&&(s.xp6(3),s.Q6J("ngForOf",qe._weekdays),s.xp6(3),s.Q6J("label",qe._monthLabel)("rows",qe._weeks)("todayValue",qe._todayDate)("startValue",qe._rangeStart)("endValue",qe._rangeEnd)("comparisonStart",qe._comparisonRangeStart)("comparisonEnd",qe._comparisonRangeEnd)("previewStart",qe._previewStart)("previewEnd",qe._previewEnd)("isRange",qe._isRange)("labelMinRequiredCells",3)("activeCell",qe._dateAdapter.getDate(qe.activeDate)-1))},directives:[Se,M.sg],encapsulation:2,changeDetection:0}),Ke})(),Wt=(()=>{class Ke{constructor(re,qe,bt){this._changeDetectorRef=re,this._dateAdapter=qe,this._dir=bt,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(re){let qe=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),Gt(this._dateAdapter,qe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(re){this._selected=re instanceof Ae?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re)),this._setSelectedYear(re)}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const qe=this._dateAdapter.getYear(this._activeDate)-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let bt=0,Vt=[];bt<24;bt++)Vt.push(qe+bt),4==Vt.length&&(this._years.push(Vt.map(bi=>this._createCellForYear(bi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(re){const qe=re.value;this.yearSelected.emit(this._dateAdapter.createDate(qe,0,1));let bt=this._dateAdapter.getMonth(this.activeDate),Vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(qe,bt,1));this.selectedChange.emit(this._dateAdapter.createDate(qe,bt,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(re){const qe=this._activeDate,bt=this._isRtl();switch(re.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?-240:-24);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?240:24);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),re.preventDefault()}_handleCalendarBodyKeyup(re){(re.keyCode===S.L_||re.keyCode===S.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:re}),this._selectionKeyPressed=!1)}_getActiveCell(){return ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(re){const qe=this._dateAdapter.createDate(re,0,1),bt=this._dateAdapter.getYearName(qe),Vt=this.dateClass?this.dateClass(qe,"multi-year"):void 0;return new Pe(re,bt,bt,this._shouldEnableYear(re),Vt)}_shouldEnableYear(re){if(null==re||this.maxDate&&re>this._dateAdapter.getYear(this.maxDate)||this.minDate&&re<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let bt=this._dateAdapter.createDate(re,0,1);this._dateAdapter.getYear(bt)==re;bt=this._dateAdapter.addCalendarDays(bt,1))if(this.dateFilter(bt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(re){if(this._selectedYear=null,re instanceof Ae){const qe=re.start||re.end;qe&&(this._selectedYear=this._dateAdapter.getYear(qe))}else re&&(this._selectedYear=this._dateAdapter.getYear(re))}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.sBO),s.Y36(R._A,8),s.Y36(W.Is,8))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-multi-year-view"]],viewQuery:function(re,qe){if(1&re&&s.Gf(Se,5),2&re){let bt;s.iGM(bt=s.CRH())&&(qe._matCalendarBody=bt.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","keyup","keydown"]],template:function(re,qe){1&re&&(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(Vt){return qe._yearSelected(Vt)})("keyup",function(Vt){return qe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return qe._handleCalendarBodyKeydown(Vt)}),s.qZA()()),2&re&&(s.xp6(4),s.Q6J("rows",qe._years)("todayValue",qe._todayYear)("startValue",qe._selectedYear)("endValue",qe._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",qe._getActiveCell()))},directives:[Se],encapsulation:2,changeDetection:0}),Ke})();function Gt(Ke,yt,re,qe,bt){const Vt=Ke.getYear(yt),bi=Ke.getYear(re),wi=Ot(Ke,qe,bt);return Math.floor((Vt-wi)/24)===Math.floor((bi-wi)/24)}function ui(Ke,yt,re,qe){return function Nt(Ke,yt){return(Ke%yt+yt)%yt}(Ke.getYear(yt)-Ot(Ke,re,qe),24)}function Ot(Ke,yt,re){let qe=0;return re?qe=Ke.getYear(re)-24+1:yt&&(qe=Ke.getYear(yt)),qe}let gt=(()=>{class Ke{constructor(re,qe,bt,Vt){this._changeDetectorRef=re,this._dateFormats=qe,this._dateAdapter=bt,this._dir=Vt,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(re){let qe=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._dateAdapter.getYear(qe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(re){this._selected=re instanceof Ae?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re)),this._setSelectedMonth(re)}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(re){const qe=re.value,bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,1);this.monthSelected.emit(bt);const Vt=this._dateAdapter.getNumDaysInMonth(bt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(re){const qe=this._activeDate,bt=this._isRtl();switch(re.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?-10:-1);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?10:1);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),re.preventDefault()}_handleCalendarBodyKeyup(re){(re.keyCode===S.L_||re.keyCode===S.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:re}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let re=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(qe=>qe.map(bt=>this._createCellForMonth(bt,re[bt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(re){return re&&this._dateAdapter.getYear(re)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(re):null}_createCellForMonth(re,qe){const bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),re,1),Vt=this._dateAdapter.format(bt,this._dateFormats.display.monthYearA11yLabel),bi=this.dateClass?this.dateClass(bt,"year"):void 0;return new Pe(re,qe.toLocaleUpperCase(),Vt,this._shouldEnableMonth(re),bi)}_shouldEnableMonth(re){const qe=this._dateAdapter.getYear(this.activeDate);if(null==re||this._isYearAndMonthAfterMaxDate(qe,re)||this._isYearAndMonthBeforeMinDate(qe,re))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate(qe,re,1);this._dateAdapter.getMonth(Vt)==re;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(re,qe){if(this.maxDate){const bt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return re>bt||re===bt&&qe>Vt}return!1}_isYearAndMonthBeforeMinDate(re,qe){if(this.minDate){const bt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return re<bt||re===bt&&qe<Vt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(re){this._selectedMonth=re instanceof Ae?this._getMonthInCurrentYear(re.start)||this._getMonthInCurrentYear(re.end):this._getMonthInCurrentYear(re)}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.sBO),s.Y36(R.sG,8),s.Y36(R._A,8),s.Y36(W.Is,8))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-year-view"]],viewQuery:function(re,qe){if(1&re&&s.Gf(Se,5),2&re){let bt;s.iGM(bt=s.CRH())&&(qe._matCalendarBody=bt.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","keyup","keydown"]],template:function(re,qe){1&re&&(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(Vt){return qe._monthSelected(Vt)})("keyup",function(Vt){return qe._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return qe._handleCalendarBodyKeydown(Vt)}),s.qZA()()),2&re&&(s.xp6(4),s.Q6J("label",qe._yearLabel)("rows",qe._months)("todayValue",qe._todayMonth)("startValue",qe._selectedMonth)("endValue",qe._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",qe._dateAdapter.getMonth(qe.activeDate)))},directives:[Se],encapsulation:2,changeDetection:0}),Ke})(),tt=(()=>{class Ke{constructor(){this.changes=new h.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(re,qe){return`${re} \u2013 ${qe}`}}return Ke.\u0275fac=function(re){return new(re||Ke)},Ke.\u0275prov=s.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),xt=0,ei=(()=>{class Ke{constructor(re,qe,bt,Vt,bi){this._intl=re,this.calendar=qe,this._dateAdapter=bt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+xt++,this.calendar.stateChanges.subscribe(()=>bi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const qe=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),bt=qe+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate(qe,0,1)),bi=this._dateAdapter.getYearName(this._dateAdapter.createDate(bt,0,1));return this._intl.formatYearRange(Vt,bi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(re,qe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(re)==this._dateAdapter.getYear(qe)&&this._dateAdapter.getMonth(re)==this._dateAdapter.getMonth(qe):"year"==this.calendar.currentView?this._dateAdapter.getYear(re)==this._dateAdapter.getYear(qe):Gt(this._dateAdapter,re,qe,this.calendar.minDate,this.calendar.maxDate)}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(tt),s.Y36((0,s.Gpc)(()=>Kt)),s.Y36(R._A,8),s.Y36(R.sG,8),s.Y36(s.sBO))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(re,qe){1&re&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return qe.currentPeriodClicked()}),s.TgZ(3,"span"),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",3),s._UZ(6,"polygon",4),s.qZA()(),s.kcU(),s._UZ(7,"div",5),s.Hsn(8),s.TgZ(9,"button",6),s.NdJ("click",function(){return qe.previousClicked()}),s.qZA(),s.TgZ(10,"button",7),s.NdJ("click",function(){return qe.nextClicked()}),s.qZA()()()),2&re&&(s.xp6(2),s.uIk("aria-label",qe.periodButtonLabel)("aria-describedby",qe._buttonDescriptionId),s.xp6(1),s.uIk("id",qe._buttonDescriptionId),s.xp6(1),s.Oqu(qe.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==qe.calendar.currentView),s.xp6(4),s.Q6J("disabled",!qe.previousEnabled()),s.uIk("aria-label",qe.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!qe.nextEnabled()),s.uIk("aria-label",qe.nextButtonLabel))},directives:[b.lW],encapsulation:2,changeDetection:0}),Ke})(),Kt=(()=>{class Ke{constructor(re,qe,bt,Vt){this._dateAdapter=qe,this._dateFormats=bt,this._changeDetectorRef=Vt,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.stateChanges=new h.x,this._intlChanges=re.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(re){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get selected(){return this._selected}set selected(re){this._selected=re instanceof Ae?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get activeDate(){return this._clampedActiveDate}set activeDate(re){this._clampedActiveDate=this._dateAdapter.clampDate(re,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(re){const qe=this._currentView!==re?re:null;this._currentView=re,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),qe&&this.viewChanged.emit(qe)}ngAfterContentInit(){this._calendarHeaderPortal=new f.C5(this.headerComponent||ei),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(re){const qe=re.minDate&&!this._dateAdapter.sameDate(re.minDate.previousValue,re.minDate.currentValue)?re.minDate:void 0,bt=re.maxDate&&!this._dateAdapter.sameDate(re.maxDate.previousValue,re.maxDate.currentValue)?re.maxDate:void 0,Vt=qe||bt||re.dateFilter;if(Vt&&!Vt.firstChange){const bi=this._getCurrentViewComponent();bi&&(this._changeDetectorRef.detectChanges(),bi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(re){const qe=re.value;(this.selected instanceof Ae||qe&&!this._dateAdapter.sameDate(qe,this.selected))&&this.selectedChange.emit(qe),this._userSelection.emit(re)}_yearSelectedInMultiYearView(re){this.yearSelected.emit(re)}_monthSelectedInYearView(re){this.monthSelected.emit(re)}_goToDateInView(re,qe){this.activeDate=re,this.currentView=qe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(tt),s.Y36(R._A,8),s.Y36(R.sG,8),s.Y36(s.sBO))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-calendar"]],viewQuery:function(re,qe){if(1&re&&(s.Gf(et,5),s.Gf(gt,5),s.Gf(Wt,5)),2&re){let bt;s.iGM(bt=s.CRH())&&(qe.monthView=bt.first),s.iGM(bt=s.CRH())&&(qe.yearView=bt.first),s.iGM(bt=s.CRH())&&(qe.multiYearView=bt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[s._Bn([we]),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","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(re,qe){1&re&&(s.YNc(0,c,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,v,1,8,"mat-month-view",2),s.YNc(3,T,1,6,"mat-year-view",3),s.YNc(4,I,1,6,"mat-multi-year-view",4),s.qZA()),2&re&&(s.Q6J("cdkPortalOutlet",qe._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",qe.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},directives:[et,gt,Wt,f.Pl,t.kH,M.RF,M.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),Ke})();const Re={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 Oe=0;const ce=new s.OlP("mat-datepicker-scroll-strategy"),ht={provide:ce,deps:[e.aV],useFactory:function ve(Ke){return()=>Ke.scrollStrategies.reposition()}},mt=(0,R.pj)(class{constructor(Ke){this._elementRef=Ke}});let Ht=(()=>{class Ke extends mt{constructor(re,qe,bt,Vt,bi,wi){super(re),this._changeDetectorRef=qe,this._globalModel=bt,this._dateAdapter=Vt,this._rangeSelectionStrategy=bi,this._subscriptions=new L.w0,this._animationDone=new h.x,this._actionsPortal=null,this._closeButtonText=wi.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(re){const qe=this._model.selection,bt=re.value,Vt=qe instanceof Ae;if(Vt&&this._rangeSelectionStrategy){const bi=this._rangeSelectionStrategy.selectionFinished(bt,qe,re.event);this._model.updateSelection(bi,this)}else bt&&(Vt||!this._dateAdapter.sameDate(bt,qe))&&this._model.add(bt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ut),s.Y36(R._A),s.Y36(z,8),s.Y36(tt))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-datepicker-content"]],viewQuery:function(re,qe){if(1&re&&s.Gf(Kt,5),2&re){let bt;s.iGM(bt=s.CRH())&&(qe._calendar=bt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(re,qe){1&re&&s.WFA("@transformPanel.done",function(){return qe._animationDone.next()}),2&re&&(s.d8E("@transformPanel",qe._animationState),s.ekj("mat-datepicker-content-touch",qe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(re,qe){if(1&re&&(s.TgZ(0,"div",0)(1,"mat-calendar",1),s.NdJ("yearSelected",function(Vt){return qe.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return qe.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return qe.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return qe._handleUserSelection(Vt)}),s.qZA(),s.YNc(2,y,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return qe._closeButtonFocused=!0})("blur",function(){return qe._closeButtonFocused=!1})("click",function(){return qe.datepicker.close()}),s._uU(4),s.qZA()()),2&re){let bt;s.ekj("mat-datepicker-content-container-with-custom-header",qe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",qe._actionsPortal),s.uIk("aria-modal",!0)("aria-labelledby",null!==(bt=qe._dialogLabelId)&&void 0!==bt?bt:void 0),s.xp6(1),s.Q6J("id",qe.datepicker.id)("ngClass",qe.datepicker.panelClass)("startAt",qe.datepicker.startAt)("startView",qe.datepicker.startView)("minDate",qe.datepicker._getMinDate())("maxDate",qe.datepicker._getMaxDate())("dateFilter",qe.datepicker._getDateFilter())("headerComponent",qe.datepicker.calendarHeaderComponent)("selected",qe._getSelected())("dateClass",qe.datepicker.dateClass)("comparisonStart",qe.comparisonStart)("comparisonEnd",qe.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",qe._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!qe._closeButtonFocused),s.Q6J("color",qe.color||"primary"),s.xp6(1),s.Oqu(qe._closeButtonText)}},directives:[Kt,b.lW,t.mK,M.mk,f.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Re.transformPanel,Re.fadeInCalendar]},changeDetection:0}),Ke})(),it=(()=>{class Ke{constructor(re,qe,bt,Vt,bi,wi,Xi){this._overlay=re,this._ngZone=qe,this._viewContainerRef=bt,this._dateAdapter=bi,this._dir=wi,this._model=Xi,this._inputStateChanges=L.w0.EMPTY,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-"+Oe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(re){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(re){this._color=re}get touchUi(){return this._touchUi}set touchUi(re){this._touchUi=(0,j.Ig)(re)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(re){const qe=(0,j.Ig)(re);qe!==this._disabled&&(this._disabled=qe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(re){this._restoreFocus=(0,j.Ig)(re)}get panelClass(){return this._panelClass}set panelClass(re){this._panelClass=(0,j.du)(re)}get opened(){return this._opened}set opened(re){(0,j.Ig)(re)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(re){const qe=re.xPosition||re.yPosition;if(qe&&!qe.firstChange&&this._overlayRef){const bt=this._overlayRef.getConfig().positionStrategy;bt instanceof e._G&&(this._setConnectedPositions(bt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(re){this._model.add(re)}_selectYear(re){this.yearSelected.emit(re)}_selectMonth(re){this.monthSelected.emit(re)}_viewChanged(re){this.viewChanged.emit(re)}registerInput(re){return this._inputStateChanges.unsubscribe(),this.datepickerInput=re,this._inputStateChanges=re.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(re){this._actionsPortal=re}removeActions(re){re===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ne.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const qe=this._componentRef.instance;qe._startExitAnimation(),qe._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const re=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(re)):re()}_applyPendingSelection(){var re,qe;null===(qe=null===(re=this._componentRef)||void 0===re?void 0:re.instance)||void 0===qe||qe._applyPendingSelection()}_forwardContentValues(re){re.datepicker=this,re.color=this.color,re._actionsPortal=this._actionsPortal,re._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const re=this.touchUi,qe=new f.C5(Ht,this._viewContainerRef),bt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:re?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[re?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:re?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(re?"dialog":"popup")}));this._getCloseStream(bt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),bt.keydownEvents().subscribe(Vt=>{const bi=Vt.keyCode;(bi===S.LH||bi===S.JH||bi===S.oh||bi===S.SV||bi===S.Ku||bi===S.VM)&&Vt.preventDefault()}),this._componentRef=bt.attach(qe),this._forwardContentValues(this._componentRef.instance),re||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>bt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const re=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(re)}_setConnectedPositions(re){const qe="end"===this.xPosition?"end":"start",bt="start"===qe?"end":"start",Vt="above"===this.yPosition?"bottom":"top",bi="top"===Vt?"bottom":"top";return re.withPositions([{originX:qe,originY:bi,overlayX:qe,overlayY:Vt},{originX:qe,originY:Vt,overlayX:qe,overlayY:bi},{originX:bt,originY:bi,overlayX:bt,overlayY:Vt},{originX:bt,originY:Vt,overlayX:bt,overlayY:bi}])}_getCloseStream(re){return(0,w.T)(re.backdropClick(),re.detachments(),re.keydownEvents().pipe((0,U.h)(qe=>qe.keyCode===S.hY&&!(0,S.Vb)(qe)||this.datepickerInput&&(0,S.Vb)(qe,"altKey")&&qe.keyCode===S.LH)))}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(e.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(ce),s.Y36(R._A,8),s.Y36(W.Is,8),s.Y36(ut))},Ke.\u0275dir=s.lG2({type:Ke,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]}),Ke})(),Ne=(()=>{class Ke extends it{}return Ke.\u0275fac=function(){let yt;return function(qe){return(yt||(yt=s.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([we,{provide:it,useExisting:Ke}]),s.qOj],decls:0,vars:0,template:function(re,qe){},encapsulation:2,changeDetection:0}),Ke})();class nt{constructor(yt,re){this.target=yt,this.targetElement=re,this.value=this.target.value}}let Xe=(()=>{class Ke{constructor(re,qe,bt){this._elementRef=re,this._dateAdapter=qe,this._dateFormats=bt,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new h.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!bi||this._matchesFilter(bi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),wi=this._getMinDate();return!wi||!bi||this._dateAdapter.compareDate(wi,bi)<=0?null:{matDatepickerMin:{min:wi,actual:bi}}},this._maxValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),wi=this._getMaxDate();return!wi||!bi||this._dateAdapter.compareDate(wi,bi)>=0?null:{matDatepickerMax:{max:wi,actual:bi}}},this._lastValueValid=!1,this._localeSubscription=qe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(re){this._assignValueProgrammatically(re)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(re){const qe=(0,j.Ig)(re),bt=this._elementRef.nativeElement;this._disabled!==qe&&(this._disabled=qe,this.stateChanges.next(void 0)),qe&&this._isInitialized&&bt.blur&&bt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(re){this._model=re,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(qe=>{if(this._shouldHandleChangeEvent(qe)){const bt=this._getValueFromModel(qe.selection);this._lastValueValid=this._isValidValue(bt),this._cvaOnChange(bt),this._onTouched(),this._formatValue(bt),this.dateInput.emit(new nt(this,this._elementRef.nativeElement)),this.dateChange.emit(new nt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(re){(function Ee(Ke,yt){const re=Object.keys(Ke);for(let qe of re){const{previousValue:bt,currentValue:Vt}=Ke[qe];if(!yt.isDateInstance(bt)||!yt.isDateInstance(Vt))return!0;if(!yt.sameDate(bt,Vt))return!0}return!1})(re,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(re){this._validatorOnChange=re}validate(re){return this._validator?this._validator(re):null}writeValue(re){this._assignValueProgrammatically(re)}registerOnChange(re){this._cvaOnChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re}_onKeydown(re){re.altKey&&re.keyCode===S.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),re.preventDefault())}_onInput(re){const qe=this._lastValueValid;let bt=this._dateAdapter.parse(re,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(bt),bt=this._dateAdapter.getValidDateOrNull(bt);const Vt=!this._dateAdapter.sameDate(bt,this.value);!bt||Vt?this._cvaOnChange(bt):(re&&!this.value&&this._cvaOnChange(bt),qe!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(bt),this.dateInput.emit(new nt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new nt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(re){this._elementRef.nativeElement.value=null!=re?this._dateAdapter.format(re,this._dateFormats.display.dateInput):""}_assignValue(re){this._model?(this._assignValueToModel(re),this._pendingValue=null):this._pendingValue=re}_isValidValue(re){return!re||this._dateAdapter.isValid(re)}_parentDisabled(){return!1}_assignValueProgrammatically(re){re=this._dateAdapter.deserialize(re),this._lastValueValid=this._isValidValue(re),re=this._dateAdapter.getValidDateOrNull(re),this._assignValue(re),this._formatValue(re)}_matchesFilter(re){const qe=this._getDateFilter();return!qe||qe(re)}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.SBq),s.Y36(R._A,8),s.Y36(R.sG,8))},Ke.\u0275dir=s.lG2({type:Ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),Ke})();const Ge={provide:de.JU,useExisting:(0,s.Gpc)(()=>lt),multi:!0},ot={provide:de.Cf,useExisting:(0,s.Gpc)(()=>lt),multi:!0};let lt=(()=>{class Ke extends Xe{constructor(re,qe,bt,Vt){super(re,qe,bt),this._formField=Vt,this._closedSubscription=L.w0.EMPTY,this._validator=de.kI.compose(super._getValidators())}set matDatepicker(re){re&&(this._datepicker=re,this._closedSubscription=re.closedStream.subscribe(()=>this._onTouched()),this._registerModel(re.registerInput(this)))}get min(){return this._min}set min(re){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re));this._dateAdapter.sameDate(qe,this._min)||(this._min=qe,this._validatorOnChange())}get max(){return this._max}set max(re){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re));this._dateAdapter.sameDate(qe,this._max)||(this._max=qe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(re){const qe=this._matchesFilter(this.value);this._dateFilter=re,this._matchesFilter(this.value)!==qe&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(re){return re}_assignValueToModel(re){this._model&&this._model.updateSelection(re,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(re){return re.source!==this}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(s.SBq),s.Y36(R._A,8),s.Y36(R.sG,8),s.Y36(te.G_,8))},Ke.\u0275dir=s.lG2({type:Ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(re,qe){1&re&&s.NdJ("input",function(Vt){return qe._onInput(Vt.target.value)})("change",function(){return qe._onChange()})("blur",function(){return qe._onBlur()})("keydown",function(Vt){return qe._onKeydown(Vt)}),2&re&&(s.Ikx("disabled",qe.disabled),s.uIk("aria-haspopup",qe._datepicker?"dialog":null)("aria-owns",(null==qe._datepicker?null:qe._datepicker.opened)&&qe._datepicker.id||null)("min",qe.min?qe._dateAdapter.toIso8601(qe.min):null)("max",qe.max?qe._dateAdapter.toIso8601(qe.max):null)("data-mat-calendar",qe._datepicker?qe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([Ge,ot,{provide:ie.Jk,useExisting:Ke}]),s.qOj]}),Ke})(),Ct=(()=>{class Ke{}return Ke.\u0275fac=function(re){return new(re||Ke)},Ke.\u0275dir=s.lG2({type:Ke,selectors:[["","matDatepickerToggleIcon",""]]}),Ke})(),mi=(()=>{class Ke{constructor(re,qe,bt){this._intl=re,this._changeDetectorRef=qe,this._stateChanges=L.w0.EMPTY;const Vt=Number(bt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(re){this._disabled=(0,j.Ig)(re)}ngOnChanges(re){re.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(re){this.datepicker&&!this.disabled&&(this.datepicker.open(),re.stopPropagation())}_watchStateChanges(){const re=this.datepicker?this.datepicker.stateChanges:(0,D.of)(),qe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,D.of)(),bt=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,D.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,re,qe,bt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ke.\u0275fac=function(re){return new(re||Ke)(s.Y36(tt),s.Y36(s.sBO),s.$8M("tabindex"))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(re,qe,bt){if(1&re&&s.Suo(bt,Ct,5),2&re){let Vt;s.iGM(Vt=s.CRH())&&(qe._customIcon=Vt.first)}},viewQuery:function(re,qe){if(1&re&&s.Gf(n,5),2&re){let bt;s.iGM(bt=s.CRH())&&(qe._button=bt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(re,qe){1&re&&s.NdJ("click",function(Vt){return qe._open(Vt)}),2&re&&(s.uIk("tabindex",null)("data-mat-calendar",qe.datepicker?qe.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",qe.datepicker&&qe.datepicker.opened)("mat-accent",qe.datepicker&&"accent"===qe.datepicker.color)("mat-warn",qe.datepicker&&"warn"===qe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:N,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(re,qe){1&re&&(s.F$t(B),s.TgZ(0,"button",0,1),s.YNc(2,_,2,0,"svg",2),s.Hsn(3),s.qZA()),2&re&&(s.Q6J("disabled",qe.disabled)("disableRipple",qe.disableRipple),s.uIk("aria-haspopup",qe.datepicker?"dialog":null)("aria-label",qe.ariaLabel||qe._intl.openCalendarLabel)("tabindex",qe.disabled?-1:qe.tabIndex),s.xp6(2),s.Q6J("ngIf",!qe._customIcon))},directives:[b.lW,M.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),Ke})(),_e=(()=>{class Ke{}return Ke.\u0275fac=function(re){return new(re||Ke)},Ke.\u0275mod=s.oAB({type:Ke}),Ke.\u0275inj=s.cJS({providers:[tt,ht],imports:[[M.ez,b.ot,e.U8,t.rt,f.eL,R.BQ],d.ZD]}),Ke})()},8966:(ze,K,p)=>{"use strict";p.d(K,{Bq:()=>i,Is:()=>ue,WI:()=>C,ZT:()=>_,so:()=>$,uw:()=>I});var t=p(9776),e=p(7429),f=p(5e3),M=p(508),s=p(226),b=p(7579),d=p(9770),R=p(9646),h=p(9300),L=p(5698),w=p(8675),D=p(925),S=p(9808),k=p(1777),E=p(5664),U=p(1159),W=p(6360);function j(xe,Pe){}class ne{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const ee={dialogContainer:(0,k.X$)("dialogContainer",[(0,k.SB)("void, exit",(0,k.oB)({opacity:0,transform:"scale(0.7)"})),(0,k.SB)("enter",(0,k.oB)({transform:"none"})),(0,k.eR)("* => enter",(0,k.ru)([(0,k.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.oB)({transform:"none",opacity:1})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])),(0,k.eR)("* => void, * => exit",(0,k.ru)([(0,k.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,k.oB)({opacity:0})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})]))])};let te=(()=>{class xe extends e.en{constructor(Se,Q,Ue,Ce,q,Ae,ut,Ie){super(),this._elementRef=Se,this._focusTrapFactory=Q,this._changeDetectorRef=Ue,this._config=q,this._interactivityChecker=Ae,this._ngZone=ut,this._focusMonitor=Ie,this._animationStateChanged=new f.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=De=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(De)),this._ariaLabelledBy=q.ariaLabelledBy||null,this._document=Ce}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,D.ht)())}attachComponentPortal(Se){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Se)}attachTemplatePortal(Se){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Se)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Se,Q){this._interactivityChecker.isFocusable(Se)||(Se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ue=()=>{Se.removeEventListener("blur",Ue),Se.removeEventListener("mousedown",Ue),Se.removeAttribute("tabindex")};Se.addEventListener("blur",Ue),Se.addEventListener("mousedown",Ue)})),Se.focus(Q)}_focusByCssSelector(Se,Q){let Ue=this._elementRef.nativeElement.querySelector(Se);Ue&&this._forceFocus(Ue,Q)}_trapFocus(){const Se=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Se.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Q=>{Q||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Se=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Se&&"function"==typeof Se.focus){const Q=(0,D.ht)(),Ue=this._elementRef.nativeElement;(!Q||Q===this._document.body||Q===Ue||Ue.contains(Q))&&(this._focusMonitor?(this._focusMonitor.focusVia(Se,this._closeInteractionType),this._closeInteractionType=null):Se.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Se=this._elementRef.nativeElement,Q=(0,D.ht)();return Se===Q||Se.contains(Q)}}return xe.\u0275fac=function(Se){return new(Se||xe)(f.Y36(f.SBq),f.Y36(E.qV),f.Y36(f.sBO),f.Y36(S.K0,8),f.Y36(ne),f.Y36(E.ic),f.Y36(f.R0b),f.Y36(E.tE))},xe.\u0275dir=f.lG2({type:xe,viewQuery:function(Se,Q){if(1&Se&&f.Gf(e.Pl,7),2&Se){let Ue;f.iGM(Ue=f.CRH())&&(Q._portalOutlet=Ue.first)}},features:[f.qOj]}),xe})(),ie=(()=>{class xe extends te{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Se,totalTime:Q}){"enter"===Se?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Q})):"exit"===Se&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Q}))}_onAnimationStart({toState:Se,totalTime:Q}){"enter"===Se?this._animationStateChanged.next({state:"opening",totalTime:Q}):("exit"===Se||"void"===Se)&&this._animationStateChanged.next({state:"closing",totalTime:Q})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return xe.\u0275fac=function(){let Pe;return function(Q){return(Pe||(Pe=f.n5z(xe)))(Q||xe)}}(),xe.\u0275cmp=f.Xpm({type:xe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Se,Q){1&Se&&f.WFA("@dialogContainer.start",function(Ce){return Q._onAnimationStart(Ce)})("@dialogContainer.done",function(Ce){return Q._onAnimationDone(Ce)}),2&Se&&(f.Ikx("id",Q._id),f.uIk("role",Q._config.role)("aria-labelledby",Q._config.ariaLabel?null:Q._ariaLabelledBy)("aria-label",Q._config.ariaLabel)("aria-describedby",Q._config.ariaDescribedBy||null),f.d8E("@dialogContainer",Q._state))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Se,Q){1&Se&&f.YNc(0,j,0,0,"ng-template",0)},directives:[e.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ee.dialogContainer]}}),xe})(),le=0;class ${constructor(Pe,Se,Q="mat-dialog-"+le++){this._overlayRef=Pe,this._containerInstance=Se,this.id=Q,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new b.x,this._afterClosed=new b.x,this._beforeClosed=new b.x,this._state=0,Se._id=Q,Se._animationStateChanged.pipe((0,h.h)(Ue=>"opened"===Ue.state),(0,L.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Se._animationStateChanged.pipe((0,h.h)(Ue=>"closed"===Ue.state),(0,L.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Pe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Pe.keydownEvents().pipe((0,h.h)(Ue=>Ue.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ue))).subscribe(Ue=>{Ue.preventDefault(),ge(this,"keyboard")}),Pe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ge(this,"mouse")})}close(Pe){this._result=Pe,this._containerInstance._animationStateChanged.pipe((0,h.h)(Se=>"closing"===Se.state),(0,L.q)(1)).subscribe(Se=>{this._beforeClosed.next(Pe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Se.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Pe){let Se=this._getPositionStrategy();return Pe&&(Pe.left||Pe.right)?Pe.left?Se.left(Pe.left):Se.right(Pe.right):Se.centerHorizontally(),Pe&&(Pe.top||Pe.bottom)?Pe.top?Se.top(Pe.top):Se.bottom(Pe.bottom):Se.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Pe="",Se=""){return this._overlayRef.updateSize({width:Pe,height:Se}),this._overlayRef.updatePosition(),this}addPanelClass(Pe){return this._overlayRef.addPanelClass(Pe),this}removePanelClass(Pe){return this._overlayRef.removePanelClass(Pe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ge(xe,Pe,Se){return void 0!==xe._containerInstance&&(xe._containerInstance._closeInteractionType=Pe),xe.close(Se)}const C=new f.OlP("MatDialogData"),i=new f.OlP("mat-dialog-default-options"),r=new f.OlP("mat-dialog-scroll-strategy"),v={provide:r,deps:[t.aV],useFactory:function c(xe){return()=>xe.scrollStrategies.block()}};let T=(()=>{class xe{constructor(Se,Q,Ue,Ce,q,Ae,ut,Ie,De,ae){this._overlay=Se,this._injector=Q,this._defaultOptions=Ue,this._parentDialog=Ce,this._overlayContainer=q,this._dialogRefConstructor=ut,this._dialogContainerType=Ie,this._dialogDataToken=De,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.x,this._afterOpenedAtThisLevel=new b.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,w.O)(void 0))),this._scrollStrategy=Ae}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Se=this._parentDialog;return Se?Se._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Se,Q){Q=function y(xe,Pe){return Object.assign(Object.assign({},Pe),xe)}(Q,this._defaultOptions||new ne),Q.id&&this.getDialogById(Q.id);const Ue=this._createOverlay(Q),Ce=this._attachDialogContainer(Ue,Q),q=this._attachDialogContent(Se,Ce,Ue,Q);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(q),q.afterClosed().subscribe(()=>this._removeOpenDialog(q)),this.afterOpened.next(q),Ce._initializeWithAttachedContent(),q}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Se){return this.openDialogs.find(Q=>Q.id===Se)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Se){const Q=this._getOverlayConfig(Se);return this._overlay.create(Q)}_getOverlayConfig(Se){const Q=new t.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Se.scrollStrategy||this._scrollStrategy(),panelClass:Se.panelClass,hasBackdrop:Se.hasBackdrop,direction:Se.direction,minWidth:Se.minWidth,minHeight:Se.minHeight,maxWidth:Se.maxWidth,maxHeight:Se.maxHeight,disposeOnNavigation:Se.closeOnNavigation});return Se.backdropClass&&(Q.backdropClass=Se.backdropClass),Q}_attachDialogContainer(Se,Q){const Ce=f.zs3.create({parent:Q&&Q.viewContainerRef&&Q.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:Q}]}),q=new e.C5(this._dialogContainerType,Q.viewContainerRef,Ce,Q.componentFactoryResolver);return Se.attach(q).instance}_attachDialogContent(Se,Q,Ue,Ce){const q=new this._dialogRefConstructor(Ue,Q,Ce.id);if(Se instanceof f.Rgc)Q.attachTemplatePortal(new e.UE(Se,null,{$implicit:Ce.data,dialogRef:q}));else{const Ae=this._createInjector(Ce,q,Q),ut=Q.attachComponentPortal(new e.C5(Se,Ce.viewContainerRef,Ae,Ce.componentFactoryResolver));q.componentInstance=ut.instance}return q.updateSize(Ce.width,Ce.height).updatePosition(Ce.position),q}_createInjector(Se,Q,Ue){const Ce=Se&&Se.viewContainerRef&&Se.viewContainerRef.injector,q=[{provide:this._dialogContainerType,useValue:Ue},{provide:this._dialogDataToken,useValue:Se.data},{provide:this._dialogRefConstructor,useValue:Q}];return Se.direction&&(!Ce||!Ce.get(s.Is,null,f.XFs.Optional))&&q.push({provide:s.Is,useValue:{value:Se.direction,change:(0,R.of)()}}),f.zs3.create({parent:Ce||this._injector,providers:q})}_removeOpenDialog(Se){const Q=this.openDialogs.indexOf(Se);Q>-1&&(this.openDialogs.splice(Q,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ue,Ce)=>{Ue?Ce.setAttribute("aria-hidden",Ue):Ce.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Se=this._overlayContainer.getContainerElement();if(Se.parentElement){const Q=Se.parentElement.children;for(let Ue=Q.length-1;Ue>-1;Ue--){let Ce=Q[Ue];Ce!==Se&&"SCRIPT"!==Ce.nodeName&&"STYLE"!==Ce.nodeName&&!Ce.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ce,Ce.getAttribute("aria-hidden")),Ce.setAttribute("aria-hidden","true"))}}}_closeDialogs(Se){let Q=Se.length;for(;Q--;)Se[Q].close()}}return xe.\u0275fac=function(Se){f.$Z()},xe.\u0275dir=f.lG2({type:xe}),xe})(),I=(()=>{class xe extends T{constructor(Se,Q,Ue,Ce,q,Ae,ut,Ie){super(Se,Q,Ce,Ae,ut,q,$,ie,C,Ie)}}return xe.\u0275fac=function(Se){return new(Se||xe)(f.LFG(t.aV),f.LFG(f.zs3),f.LFG(S.Ye,8),f.LFG(i,8),f.LFG(r),f.LFG(xe,12),f.LFG(t.Xj),f.LFG(W.Qb,8))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac}),xe})(),_=(()=>{class xe{constructor(Se,Q,Ue){this.dialogRef=Se,this._elementRef=Q,this._dialog=Ue,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function J(xe,Pe){let Se=xe.nativeElement.parentElement;for(;Se&&!Se.classList.contains("mat-dialog-container");)Se=Se.parentElement;return Se?Pe.find(Q=>Q.id===Se.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Se){const Q=Se._matDialogClose||Se._matDialogCloseResult;Q&&(this.dialogResult=Q.currentValue)}_onButtonClick(Se){ge(this.dialogRef,0===Se.screenX&&0===Se.screenY?"keyboard":"mouse",this.dialogResult)}}return xe.\u0275fac=function(Se){return new(Se||xe)(f.Y36($,8),f.Y36(f.SBq),f.Y36(I))},xe.\u0275dir=f.lG2({type:xe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Se,Q){1&Se&&f.NdJ("click",function(Ce){return Q._onButtonClick(Ce)}),2&Se&&f.uIk("aria-label",Q.ariaLabel||null)("type",Q.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.TTD]}),xe})(),ue=(()=>{class xe{}return xe.\u0275fac=function(Se){return new(Se||xe)},xe.\u0275mod=f.oAB({type:xe}),xe.\u0275inj=f.cJS({providers:[I,v],imports:[[t.U8,e.eL,M.BQ],M.BQ]}),xe})()},4834:(ze,K,p)=>{"use strict";p.d(K,{d:()=>M,t:()=>s});var t=p(5e3),e=p(3191),f=p(508);let M=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,e.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,e.Ig)(R)}}return b.\u0275fac=function(R){return new(R||b)},b.\u0275cmp=t.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,h){2&R&&(t.uIk("aria-orientation",h.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",h.vertical)("mat-divider-horizontal",!h.vertical)("mat-divider-inset",h.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,h){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),b})(),s=(()=>{class b{}return b.\u0275fac=function(R){return new(R||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),b})()},1125:(ze,K,p)=>{"use strict";p.d(K,{pp:()=>Se,To:()=>Q,ib:()=>B,u4:()=>xe,yz:()=>ue,yK:()=>Pe});var t=p(5e3),e=p(3191),f=p(7579),M=p(727),s=p(449);let b=0;const d=new t.OlP("CdkAccordion");let R=(()=>{class Ue{constructor(){this._stateChanges=new f.x,this._openCloseAllActions=new f.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(q){this._multi=(0,e.Ig)(q)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(q){this._stateChanges.next(q)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:d,useExisting:Ue}]),t.TTD]}),Ue})(),h=0,L=(()=>{class Ue{constructor(q,Ae,ut){this.accordion=q,this._changeDetectorRef=Ae,this._expansionDispatcher=ut,this._openCloseAllSubscription=M.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ut.listen((Ie,De)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===De&&this.id!==Ie&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(q){q=(0,e.Ig)(q),this._expanded!==q&&(this._expanded=q,this.expandedChange.emit(q),q?(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(q){this._disabled=(0,e.Ig)(q)}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(q=>{this.disabled||(this.expanded=q)})}}return Ue.\u0275fac=function(q){return new(q||Ue)(t.Y36(d,12),t.Y36(t.sBO),t.Y36(s.A8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:d,useValue:void 0}])]}),Ue})(),w=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({}),Ue})();var D=p(7429),S=p(9808),k=p(508),E=p(5664),U=p(1884),W=p(8675),j=p(9300),ne=p(5698),ee=p(1159),de=p(6360),te=p(515),ie=p(6451),le=p(1777);const $=["body"];function ge(Ue,Ce){}const C=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function r(Ue,Ce){if(1&Ue&&t._UZ(0,"span",2),2&Ue){const q=t.oxw();t.Q6J("@indicatorRotate",q._getExpandedState())}}const u=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],v=new t.OlP("MAT_ACCORDION"),T="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,le.X$)("indicatorRotate",[(0,le.SB)("collapsed, void",(0,le.oB)({transform:"rotate(0deg)"})),(0,le.SB)("expanded",(0,le.oB)({transform:"rotate(180deg)"})),(0,le.eR)("expanded <=> collapsed, void => collapsed",(0,le.jt)(T))]),bodyExpansion:(0,le.X$)("bodyExpansion",[(0,le.SB)("collapsed, void",(0,le.oB)({height:"0px",visibility:"hidden"})),(0,le.SB)("expanded",(0,le.oB)({height:"*",visibility:"visible"})),(0,le.eR)("expanded <=> collapsed, void => collapsed",(0,le.jt)(T))])};let y=(()=>{class Ue{constructor(q){this._template=q}}return Ue.\u0275fac=function(q){return new(q||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ue})(),n=0;const _=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class Ue extends L{constructor(q,Ae,ut,Ie,De,ae,we){super(q,Ae,ut),this._viewContainerRef=Ie,this._animationMode=ae,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new f.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new f.x,this.accordion=q,this._document=De,this._bodyAnimationDone.pipe((0,U.x)((ye,Y)=>ye.fromState===Y.fromState&&ye.toState===Y.toState)).subscribe(ye=>{"void"!==ye.fromState&&("expanded"===ye.toState?this.afterExpand.emit():"collapsed"===ye.toState&&this.afterCollapse.emit())}),we&&(this.hideToggle=we.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(q){this._hideToggle=(0,e.Ig)(q)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(q){this._togglePosition=q}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,W.O)(null),(0,j.h)(()=>this.expanded&&!this._portal),(0,ne.q)(1)).subscribe(()=>{this._portal=new D.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(q){this._inputChanges.next(q)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const q=this._document.activeElement,Ae=this._body.nativeElement;return q===Ae||Ae.contains(q)}return!1}}return Ue.\u0275fac=function(q){return new(q||Ue)(t.Y36(v,12),t.Y36(t.sBO),t.Y36(s.A8),t.Y36(t.s_b),t.Y36(S.K0),t.Y36(de.Qb,8),t.Y36(_,8))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-expansion-panel"]],contentQueries:function(q,Ae,ut){if(1&q&&t.Suo(ut,y,5),2&q){let Ie;t.iGM(Ie=t.CRH())&&(Ae._lazyContent=Ie.first)}},viewQuery:function(q,Ae){if(1&q&&t.Gf($,5),2&q){let ut;t.iGM(ut=t.CRH())&&(Ae._body=ut.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(q,Ae){2&q&&t.ekj("mat-expanded",Ae.expanded)("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)("mat-expansion-panel-spacing",Ae._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:v,useValue:void 0}]),t.qOj,t.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(q,Ae){1&q&&(t.F$t(C),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Ie){return Ae._bodyAnimationDone.next(Ie)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,ge,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&q&&(t.xp6(1),t.Q6J("@bodyExpansion",Ae._getExpandedState())("id",Ae.id),t.uIk("aria-labelledby",Ae._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Ae._portal))},directives:[D.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),Ue})();class H{}const J=(0,k.sb)(H);let ue=(()=>{class Ue extends J{constructor(q,Ae,ut,Ie,De,ae,we){super(),this.panel=q,this._element=Ae,this._focusMonitor=ut,this._changeDetectorRef=Ie,this._animationMode=ae,this._parentChangeSubscription=M.w0.EMPTY;const ye=q.accordion?q.accordion._stateChanges.pipe((0,j.h)(Y=>!(!Y.hideToggle&&!Y.togglePosition))):te.E;this.tabIndex=parseInt(we||"")||0,this._parentChangeSubscription=(0,ie.T)(q.opened,q.closed,ye,q._inputChanges.pipe((0,j.h)(Y=>!!(Y.hideToggle||Y.disabled||Y.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),q.closed.pipe((0,j.h)(()=>q._containsFocus())).subscribe(()=>ut.focusVia(Ae,"program")),De&&(this.expandedHeight=De.expandedHeight,this.collapsedHeight=De.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const q=this._isExpanded();return q&&this.expandedHeight?this.expandedHeight:!q&&this.collapsedHeight?this.collapsedHeight:null}_keydown(q){switch(q.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(q)||(q.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(q))}}focus(q,Ae){q?this._focusMonitor.focusVia(this._element,q,Ae):this._element.nativeElement.focus(Ae)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(q=>{q&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ue.\u0275fac=function(q){return new(q||Ue)(t.Y36(B,1),t.Y36(t.SBq),t.Y36(E.tE),t.Y36(t.sBO),t.Y36(_,8),t.Y36(de.Qb,8),t.$8M("tabindex"))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(q,Ae){1&q&&t.NdJ("click",function(){return Ae._toggle()})("keydown",function(Ie){return Ae._keydown(Ie)}),2&q&&(t.uIk("id",Ae.panel._headerId)("tabindex",Ae.tabIndex)("aria-controls",Ae._getPanelId())("aria-expanded",Ae._isExpanded())("aria-disabled",Ae.panel.disabled),t.Udp("height",Ae._getHeaderHeight()),t.ekj("mat-expanded",Ae._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ae._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ae._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ae._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(q,Ae){1&q&&(t.F$t(u),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,r,1,1,"span",1)),2&q&&(t.xp6(4),t.Q6J("ngIf",Ae._showToggle()))},directives:[S.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),Ue})(),xe=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ue})(),Pe=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ue})(),Se=(()=>{class Ue extends R{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(q){this._hideToggle=(0,e.Ig)(q)}ngAfterContentInit(){this._headers.changes.pipe((0,W.O)(this._headers)).subscribe(q=>{this._ownHeaders.reset(q.filter(Ae=>Ae.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new E.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(q){this._keyManager.onKeydown(q)}_handleHeaderFocus(q){this._keyManager.updateActiveItem(q)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ue.\u0275fac=function(){let Ce;return function(Ae){return(Ce||(Ce=t.n5z(Ue)))(Ae||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-accordion"]],contentQueries:function(q,Ae,ut){if(1&q&&t.Suo(ut,ue,5),2&q){let Ie;t.iGM(Ie=t.CRH())&&(Ae._headers=Ie)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(q,Ae){2&q&&t.ekj("mat-accordion-multi",Ae.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:v,useExisting:Ue}]),t.qOj]}),Ue})(),Q=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({imports:[[S.ez,k.BQ,w,D.eL]]}),Ue})()},7322:(ze,K,p)=>{"use strict";p.d(K,{Eo:()=>n,G_:()=>ae,KE:()=>we,R9:()=>Ce,TO:()=>I,bx:()=>ue,lN:()=>ye});var t=p(7144),e=p(9808),f=p(5e3),M=p(508),s=p(3191),b=p(7579),d=p(6451),R=p(4968),h=p(8675),L=p(2722),w=p(5698),D=p(1777),S=p(6360),k=p(226),E=p(925);const U=["connectionContainer"],W=["inputContainer"],j=["label"];function ne(Y,z){1&Y&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function ee(Y,z){if(1&Y){const be=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){return f.CHM(be),f.oxw().updateOutlineGap()}),f.Hsn(1,1),f.qZA()}if(2&Y){const be=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=be.appearance)}}function de(Y,z){if(1&Y&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&Y){const be=f.oxw(2);f.xp6(3),f.Oqu(be._control.placeholder)}}function te(Y,z){1&Y&&f.Hsn(0,3,["*ngSwitchCase","true"])}function ie(Y,z){1&Y&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function le(Y,z){if(1&Y){const be=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){return f.CHM(be),f.oxw().updateOutlineGap()}),f.YNc(2,de,4,1,"ng-container",12),f.YNc(3,te,1,0,"ng-content",12),f.YNc(4,ie,2,0,"span",22),f.qZA()}if(2&Y){const be=f.oxw();f.ekj("mat-empty",be._control.empty&&!be._shouldAlwaysFloat())("mat-form-field-empty",be._control.empty&&!be._shouldAlwaysFloat())("mat-accent","accent"==be.color)("mat-warn","warn"==be.color),f.Q6J("cdkObserveContentDisabled","outline"!=be.appearance)("id",be._labelId)("ngSwitch",be._hasLabel()),f.uIk("for",be._control.id)("aria-owns",be._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!be.hideRequiredMarker&&be._control.required&&!be._control.disabled)}}function $(Y,z){1&Y&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function ge(Y,z){if(1&Y&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&Y){const be=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==be.color)("mat-warn","warn"==be.color)}}function C(Y,z){if(1&Y&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&Y){const be=f.oxw();f.Q6J("@transitionMessages",be._subscriptAnimationState)}}function i(Y,z){if(1&Y&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&Y){const be=f.oxw(2);f.Q6J("id",be._hintLabelId),f.xp6(1),f.Oqu(be.hintLabel)}}function r(Y,z){if(1&Y&&(f.TgZ(0,"div",27),f.YNc(1,i,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&Y){const be=f.oxw();f.Q6J("@transitionMessages",be._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",be.hintLabel)}}const u=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let v=0;const T=new f.OlP("MatError");let I=(()=>{class Y{constructor(be,fe){this.id="mat-error-"+v++,be||fe.nativeElement.setAttribute("aria-live","polite")}}return Y.\u0275fac=function(be){return new(be||Y)(f.$8M("aria-live"),f.Y36(f.SBq))},Y.\u0275dir=f.lG2({type:Y,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(be,fe){2&be&&f.uIk("id",fe.id)},inputs:{id:"id"},features:[f._Bn([{provide:T,useExisting:Y}])]}),Y})();const y={transitionMessages:(0,D.X$)("transitionMessages",[(0,D.SB)("enter",(0,D.oB)({opacity:1,transform:"translateY(0%)"})),(0,D.eR)("void => enter",[(0,D.oB)({opacity:0,transform:"translateY(-5px)"}),(0,D.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class Y{}return Y.\u0275fac=function(be){return new(be||Y)},Y.\u0275dir=f.lG2({type:Y}),Y})(),H=0;const J=new f.OlP("MatHint");let ue=(()=>{class Y{constructor(){this.align="start",this.id="mat-hint-"+H++}}return Y.\u0275fac=function(be){return new(be||Y)},Y.\u0275dir=f.lG2({type:Y,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(be,fe){2&be&&(f.uIk("id",fe.id)("align",null),f.ekj("mat-form-field-hint-end","end"===fe.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:J,useExisting:Y}])]}),Y})(),xe=(()=>{class Y{}return Y.\u0275fac=function(be){return new(be||Y)},Y.\u0275dir=f.lG2({type:Y,selectors:[["mat-label"]]}),Y})(),Pe=(()=>{class Y{}return Y.\u0275fac=function(be){return new(be||Y)},Y.\u0275dir=f.lG2({type:Y,selectors:[["mat-placeholder"]]}),Y})();const Se=new f.OlP("MatPrefix"),Ue=new f.OlP("MatSuffix");let Ce=(()=>{class Y{}return Y.\u0275fac=function(be){return new(be||Y)},Y.\u0275dir=f.lG2({type:Y,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:Ue,useExisting:Y}])]}),Y})(),q=0;const Ie=(0,M.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),De=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ae=new f.OlP("MatFormField");let we=(()=>{class Y extends Ie{constructor(be,fe,He,pt,et,Lt,di){super(be),this._changeDetectorRef=fe,this._dir=He,this._defaults=pt,this._platform=et,this._ngZone=Lt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new b.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+q++,this._labelId="mat-form-field-label-"+q++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==di,this.appearance=pt&&pt.appearance?pt.appearance:"legacy",this._hideRequiredMarker=!(!pt||null==pt.hideRequiredMarker)&&pt.hideRequiredMarker}get appearance(){return this._appearance}set appearance(be){const fe=this._appearance;this._appearance=be||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&fe!==be&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(be){this._hideRequiredMarker=(0,s.Ig)(be)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(be){this._hintLabel=be,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(be){be!==this._floatLabel&&(this._floatLabel=be||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(be){this._explicitFormFieldControl=be}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const be=this._control;be.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${be.controlType}`),be.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),be.ngControl&&be.ngControl.valueChanges&&be.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,d.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(be){const fe=this._control?this._control.ngControl:null;return fe&&fe[be]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,R.R)(this._label.nativeElement,"transitionend").pipe((0,w.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let be=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&be.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const fe=this._hintChildren?this._hintChildren.find(pt=>"start"===pt.align):null,He=this._hintChildren?this._hintChildren.find(pt=>"end"===pt.align):null;fe?be.push(fe.id):this._hintLabel&&be.push(this._hintLabelId),He&&be.push(He.id)}else this._errorChildren&&be.push(...this._errorChildren.map(fe=>fe.id));this._control.setDescribedByIds(be)}}_validateControlChild(){}updateOutlineGap(){const be=this._label?this._label.nativeElement:null,fe=this._connectionContainerRef.nativeElement,He=".mat-form-field-outline-start",pt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!be||!be.children.length||!be.textContent.trim()){const Gt=fe.querySelectorAll(`${He}, ${pt}`);for(let ui=0;ui<Gt.length;ui++)Gt[ui].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let et=0,Lt=0;const di=fe.querySelectorAll(He),Wt=fe.querySelectorAll(pt);if(this._label&&this._label.nativeElement.children.length){const Gt=fe.getBoundingClientRect();if(0===Gt.width&&0===Gt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const ui=this._getStartEnd(Gt),Ot=be.children,Nt=this._getStartEnd(Ot[0].getBoundingClientRect());let gt=0;for(let tt=0;tt<Ot.length;tt++)gt+=Ot[tt].offsetWidth;et=Math.abs(Nt-ui)-5,Lt=gt>0?.75*gt+10:0}for(let Gt=0;Gt<di.length;Gt++)di[Gt].style.width=`${et}px`;for(let Gt=0;Gt<Wt.length;Gt++)Wt[Gt].style.width=`${Lt}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(be){return this._dir&&"rtl"===this._dir.value?be.right:be.left}_isAttachedToDOM(){const be=this._elementRef.nativeElement;if(be.getRootNode){const fe=be.getRootNode();return fe&&fe!==be}return document.documentElement.contains(be)}}return Y.\u0275fac=function(be){return new(be||Y)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(k.Is,8),f.Y36(De,8),f.Y36(E.t4),f.Y36(f.R0b),f.Y36(S.Qb,8))},Y.\u0275cmp=f.Xpm({type:Y,selectors:[["mat-form-field"]],contentQueries:function(be,fe,He){if(1&be&&(f.Suo(He,n,5),f.Suo(He,n,7),f.Suo(He,xe,5),f.Suo(He,xe,7),f.Suo(He,Pe,5),f.Suo(He,T,5),f.Suo(He,J,5),f.Suo(He,Se,5),f.Suo(He,Ue,5)),2&be){let pt;f.iGM(pt=f.CRH())&&(fe._controlNonStatic=pt.first),f.iGM(pt=f.CRH())&&(fe._controlStatic=pt.first),f.iGM(pt=f.CRH())&&(fe._labelChildNonStatic=pt.first),f.iGM(pt=f.CRH())&&(fe._labelChildStatic=pt.first),f.iGM(pt=f.CRH())&&(fe._placeholderChild=pt.first),f.iGM(pt=f.CRH())&&(fe._errorChildren=pt),f.iGM(pt=f.CRH())&&(fe._hintChildren=pt),f.iGM(pt=f.CRH())&&(fe._prefixChildren=pt),f.iGM(pt=f.CRH())&&(fe._suffixChildren=pt)}},viewQuery:function(be,fe){if(1&be&&(f.Gf(U,7),f.Gf(W,5),f.Gf(j,5)),2&be){let He;f.iGM(He=f.CRH())&&(fe._connectionContainerRef=He.first),f.iGM(He=f.CRH())&&(fe._inputContainerRef=He.first),f.iGM(He=f.CRH())&&(fe._label=He.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(be,fe){2&be&&f.ekj("mat-form-field-appearance-standard","standard"==fe.appearance)("mat-form-field-appearance-fill","fill"==fe.appearance)("mat-form-field-appearance-outline","outline"==fe.appearance)("mat-form-field-appearance-legacy","legacy"==fe.appearance)("mat-form-field-invalid",fe._control.errorState)("mat-form-field-can-float",fe._canLabelFloat())("mat-form-field-should-float",fe._shouldLabelFloat())("mat-form-field-has-label",fe._hasFloatingLabel())("mat-form-field-hide-placeholder",fe._hideControlPlaceholder())("mat-form-field-disabled",fe._control.disabled)("mat-form-field-autofilled",fe._control.autofilled)("mat-focused",fe._control.focused)("ng-untouched",fe._shouldForward("untouched"))("ng-touched",fe._shouldForward("touched"))("ng-pristine",fe._shouldForward("pristine"))("ng-dirty",fe._shouldForward("dirty"))("ng-valid",fe._shouldForward("valid"))("ng-invalid",fe._shouldForward("invalid"))("ng-pending",fe._shouldForward("pending"))("_mat-animation-noopable",!fe._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[f._Bn([{provide:ae,useExisting:Y}]),f.qOj],ngContentSelectors:c,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(be,fe){1&be&&(f.F$t(u),f.TgZ(0,"div",0)(1,"div",1,2),f.NdJ("click",function(pt){return fe._control.onContainerClick&&fe._control.onContainerClick(pt)}),f.YNc(3,ne,9,0,"ng-container",3),f.YNc(4,ee,2,1,"div",4),f.TgZ(5,"div",5,6),f.Hsn(7),f.TgZ(8,"span",7),f.YNc(9,le,5,16,"label",8),f.qZA()(),f.YNc(10,$,2,0,"div",9),f.qZA(),f.YNc(11,ge,2,4,"div",10),f.TgZ(12,"div",11),f.YNc(13,C,2,1,"div",12),f.YNc(14,r,5,2,"div",13),f.qZA()()),2&be&&(f.xp6(3),f.Q6J("ngIf","outline"==fe.appearance),f.xp6(1),f.Q6J("ngIf",fe._prefixChildren.length),f.xp6(5),f.Q6J("ngIf",fe._hasFloatingLabel()),f.xp6(1),f.Q6J("ngIf",fe._suffixChildren.length),f.xp6(1),f.Q6J("ngIf","outline"!=fe.appearance),f.xp6(1),f.Q6J("ngSwitch",fe._getDisplayedMessages()),f.xp6(1),f.Q6J("ngSwitchCase","error"),f.xp6(1),f.Q6J("ngSwitchCase","hint"))},directives:[e.O5,t.wD,e.RF,e.n9],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[y.transitionMessages]},changeDetection:0}),Y})(),ye=(()=>{class Y{}return Y.\u0275fac=function(be){return new(be||Y)},Y.\u0275mod=f.oAB({type:Y}),Y.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.Q8],M.BQ]}),Y})()},3954:(ze,K,p)=>{"use strict";p.d(K,{DX:()=>D,Il:()=>$,N6:()=>ge});var t=p(5e3),e=p(508),f=p(3191),M=p(226);const s=["*"];class h{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(c=>this._trackTile(c))}_trackTile(r){const u=this._findMatchingGap(r.colspan);return this._markTilePosition(u,r),this.columnIndex=u+r.colspan,new L(this.rowIndex,u)}_findMatchingGap(r){let u=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(c=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)))}while(c-u<r||0==c);return Math.max(u,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let r=0;r<this.tracker.length;r++)this.tracker[r]=Math.max(0,this.tracker[r]-1)}_findGapEndIndex(r){for(let u=r+1;u<this.tracker.length;u++)if(0!=this.tracker[u])return u;return this.tracker.length}_markTilePosition(r,u){for(let c=0;c<u.colspan;c++)this.tracker[r+c]=u.rowspan}}class L{constructor(r,u){this.row=r,this.col=u}}const w=new t.OlP("MAT_GRID_LIST");let D=(()=>{class i{constructor(u,c){this._element=u,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,f.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,f.su)(u))}_setStyle(u,c){this._element.nativeElement.style[u]=c}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(w,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,c){2&u&&t.uIk("rowspan",c.rowspan)("colspan",c.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})();const W=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class j{constructor(){this._rows=0,this._rowspan=0}init(r,u,c,v){this._gutterSize=ie(r),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=c,this._direction=v}getBaseTileSize(r,u){return`(${r}% - (${this._gutterSize} * ${u}))`}getTilePosition(r,u){return 0===u?"0":te(`(${r} + ${this._gutterSize}) * ${u}`)}getTileSize(r,u){return`(${r} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(r,u,c){let v=100/this._cols,T=(this._cols-1)/this._cols;this.setColStyles(r,c,v,T),this.setRowStyles(r,u,v,T)}setColStyles(r,u,c,v){let T=this.getBaseTileSize(c,v);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(T,u)),r._setStyle("width",te(this.getTileSize(T,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ne extends j{constructor(r){super(),this.fixedRowHeight=r}init(r,u,c,v){super.init(r,u,c,v),this.fixedRowHeight=ie(this.fixedRowHeight),W.test(this.fixedRowHeight)}setRowStyles(r,u){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),r._setStyle("height",te(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",te(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class ee extends j{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,u,c,v){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,v),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),r._setStyle("paddingTop",te(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",te(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(r){const u=r.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class de extends j{setRowStyles(r,u){let T=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(T,u)),r._setStyle("height",te(this.getTileSize(T,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function te(i){return`calc(${i})`}function ie(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let $=(()=>{class i{constructor(u,c){this._element=u,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,f.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${null==u?"":u}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const c=`${null==u?"":u}`;c!==this._rowHeight&&(this._rowHeight=c,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new de:u&&u.indexOf(":")>-1?new ee(u):new ne(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new h);const u=this._tileCoordinator,c=this._tiles.filter(T=>!T._gridList||T._gridList===this),v=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,u,this.cols,v),c.forEach((T,I)=>{const y=u.positions[I];this._tileStyler.setStyle(T,y.row,y.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(M.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,c,v){if(1&u&&t.Suo(v,D,5),2&u){let T;t.iGM(T=t.CRH())&&(c._tiles=T)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,c){2&u&&t.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:w,useExisting:i}])],ngContentSelectors:s,decls:2,vars:0,template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})(),ge=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[e.uc,e.BQ],e.uc,e.BQ]}),i})()},5245:(ze,K,p)=>{"use strict";p.d(K,{Hw:()=>B,Ps:()=>N});var t=p(5e3),e=p(508),f=p(3191),M=p(9808),s=p(9646),b=p(2843),d=p(4128),R=p(727),h=p(8505),L=p(4004),w=p(262),D=p(8746),S=p(3099),k=p(5698),E=p(8138),U=p(2313);const W=["*"];let j;function ee(H){var J;return(null===(J=function ne(){if(void 0===j&&(j=null,"undefined"!=typeof window)){const H=window;void 0!==H.trustedTypes&&(j=H.trustedTypes.createPolicy("angular#components",{createHTML:J=>J}))}return j}())||void 0===J?void 0:J.createHTML(H))||H}function de(H){return Error(`Unable to find icon with the name "${H}"`)}function ie(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function le(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class ${constructor(J,ue,xe){this.url=J,this.svgText=ue,this.options=xe}}let ge=(()=>{class H{constructor(ue,xe,Pe,Se){this._httpClient=ue,this._sanitizer=xe,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",this._document=Pe}addSvgIcon(ue,xe,Pe){return this.addSvgIconInNamespace("",ue,xe,Pe)}addSvgIconLiteral(ue,xe,Pe){return this.addSvgIconLiteralInNamespace("",ue,xe,Pe)}addSvgIconInNamespace(ue,xe,Pe,Se){return this._addSvgIconConfig(ue,xe,new $(Pe,null,Se))}addSvgIconResolver(ue){return this._resolvers.push(ue),this}addSvgIconLiteralInNamespace(ue,xe,Pe,Se){const Q=this._sanitizer.sanitize(t.q3G.HTML,Pe);if(!Q)throw le(Pe);const Ue=ee(Q);return this._addSvgIconConfig(ue,xe,new $("",Ue,Se))}addSvgIconSet(ue,xe){return this.addSvgIconSetInNamespace("",ue,xe)}addSvgIconSetLiteral(ue,xe){return this.addSvgIconSetLiteralInNamespace("",ue,xe)}addSvgIconSetInNamespace(ue,xe,Pe){return this._addSvgIconSetConfig(ue,new $(xe,null,Pe))}addSvgIconSetLiteralInNamespace(ue,xe,Pe){const Se=this._sanitizer.sanitize(t.q3G.HTML,xe);if(!Se)throw le(xe);const Q=ee(Se);return this._addSvgIconSetConfig(ue,new $("",Q,Pe))}registerFontClassAlias(ue,xe=ue){return this._fontCssClassesByAlias.set(ue,xe),this}classNameForFontAlias(ue){return this._fontCssClassesByAlias.get(ue)||ue}setDefaultFontSetClass(ue){return this._defaultFontSetClass=ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ue){const xe=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,ue);if(!xe)throw ie(ue);const Pe=this._cachedIconsByUrl.get(xe);return Pe?(0,s.of)(r(Pe)):this._loadSvgIconFromConfig(new $(ue,null)).pipe((0,h.b)(Se=>this._cachedIconsByUrl.set(xe,Se)),(0,L.U)(Se=>r(Se)))}getNamedSvgIcon(ue,xe=""){const Pe=u(xe,ue);let Se=this._svgIconConfigs.get(Pe);if(Se)return this._getSvgFromConfig(Se);if(Se=this._getIconConfigFromResolvers(xe,ue),Se)return this._svgIconConfigs.set(Pe,Se),this._getSvgFromConfig(Se);const Q=this._iconSetConfigs.get(xe);return Q?this._getSvgFromIconSetConfigs(ue,Q):(0,b._)(de(Pe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ue){return ue.svgText?(0,s.of)(r(this._svgElementFromConfig(ue))):this._loadSvgIconFromConfig(ue).pipe((0,L.U)(xe=>r(xe)))}_getSvgFromIconSetConfigs(ue,xe){const Pe=this._extractIconWithNameFromAnySet(ue,xe);if(Pe)return(0,s.of)(Pe);const Se=xe.filter(Q=>!Q.svgText).map(Q=>this._loadSvgIconSetFromConfig(Q).pipe((0,w.K)(Ue=>{const q=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Q.url)} failed: ${Ue.message}`;return this._errorHandler.handleError(new Error(q)),(0,s.of)(null)})));return(0,d.D)(Se).pipe((0,L.U)(()=>{const Q=this._extractIconWithNameFromAnySet(ue,xe);if(!Q)throw de(ue);return Q}))}_extractIconWithNameFromAnySet(ue,xe){for(let Pe=xe.length-1;Pe>=0;Pe--){const Se=xe[Pe];if(Se.svgText&&Se.svgText.toString().indexOf(ue)>-1){const Q=this._svgElementFromConfig(Se),Ue=this._extractSvgIconFromSet(Q,ue,Se.options);if(Ue)return Ue}}return null}_loadSvgIconFromConfig(ue){return this._fetchIcon(ue).pipe((0,h.b)(xe=>ue.svgText=xe),(0,L.U)(()=>this._svgElementFromConfig(ue)))}_loadSvgIconSetFromConfig(ue){return ue.svgText?(0,s.of)(null):this._fetchIcon(ue).pipe((0,h.b)(xe=>ue.svgText=xe))}_extractSvgIconFromSet(ue,xe,Pe){const Se=ue.querySelector(`[id="${xe}"]`);if(!Se)return null;const Q=Se.cloneNode(!0);if(Q.removeAttribute("id"),"svg"===Q.nodeName.toLowerCase())return this._setSvgAttributes(Q,Pe);if("symbol"===Q.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Q),Pe);const Ue=this._svgElementFromString(ee("<svg></svg>"));return Ue.appendChild(Q),this._setSvgAttributes(Ue,Pe)}_svgElementFromString(ue){const xe=this._document.createElement("DIV");xe.innerHTML=ue;const Pe=xe.querySelector("svg");if(!Pe)throw Error("<svg> tag not found");return Pe}_toSvgElement(ue){const xe=this._svgElementFromString(ee("<svg></svg>")),Pe=ue.attributes;for(let Se=0;Se<Pe.length;Se++){const{name:Q,value:Ue}=Pe[Se];"id"!==Q&&xe.setAttribute(Q,Ue)}for(let Se=0;Se<ue.childNodes.length;Se++)ue.childNodes[Se].nodeType===this._document.ELEMENT_NODE&&xe.appendChild(ue.childNodes[Se].cloneNode(!0));return xe}_setSvgAttributes(ue,xe){return ue.setAttribute("fit",""),ue.setAttribute("height","100%"),ue.setAttribute("width","100%"),ue.setAttribute("preserveAspectRatio","xMidYMid meet"),ue.setAttribute("focusable","false"),xe&&xe.viewBox&&ue.setAttribute("viewBox",xe.viewBox),ue}_fetchIcon(ue){var xe;const{url:Pe,options:Se}=ue,Q=null!==(xe=null==Se?void 0:Se.withCredentials)&&void 0!==xe&&xe;if(!this._httpClient)throw function te(){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==Pe)throw Error(`Cannot fetch icon from URL "${Pe}".`);const Ue=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Pe);if(!Ue)throw ie(Pe);const Ce=this._inProgressUrlFetches.get(Ue);if(Ce)return Ce;const q=this._httpClient.get(Ue,{responseType:"text",withCredentials:Q}).pipe((0,L.U)(Ae=>ee(Ae)),(0,D.x)(()=>this._inProgressUrlFetches.delete(Ue)),(0,S.B)());return this._inProgressUrlFetches.set(Ue,q),q}_addSvgIconConfig(ue,xe,Pe){return this._svgIconConfigs.set(u(ue,xe),Pe),this}_addSvgIconSetConfig(ue,xe){const Pe=this._iconSetConfigs.get(ue);return Pe?Pe.push(xe):this._iconSetConfigs.set(ue,[xe]),this}_svgElementFromConfig(ue){if(!ue.svgElement){const xe=this._svgElementFromString(ue.svgText);this._setSvgAttributes(xe,ue.options),ue.svgElement=xe}return ue.svgElement}_getIconConfigFromResolvers(ue,xe){for(let Pe=0;Pe<this._resolvers.length;Pe++){const Se=this._resolvers[Pe](xe,ue);if(Se)return c(Se)?new $(Se.url,null,Se.options):new $(Se,null)}}}return H.\u0275fac=function(ue){return new(ue||H)(t.LFG(E.eN,8),t.LFG(U.H7),t.LFG(M.K0,8),t.LFG(t.qLn))},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function r(H){return H.cloneNode(!0)}function u(H,J){return H+":"+J}function c(H){return!(!H.url||!H.options)}const v=(0,e.pj)(class{constructor(H){this._elementRef=H}}),T=new t.OlP("mat-icon-location",{providedIn:"root",factory:function I(){const H=(0,t.f3M)(M.K0),J=H?H.location:null;return{getPathname:()=>J?J.pathname+J.search:""}}}),y=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=y.map(H=>`[${H}]`).join(", "),_=/^url\(['"]?#(.*?)['"]?\)$/;let B=(()=>{class H extends v{constructor(ue,xe,Pe,Se,Q){super(ue),this._iconRegistry=xe,this._location=Se,this._errorHandler=Q,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,Pe||ue.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ue){this._inline=(0,f.Ig)(ue)}get svgIcon(){return this._svgIcon}set svgIcon(ue){ue!==this._svgIcon&&(ue?this._updateSvgIcon(ue):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ue)}get fontSet(){return this._fontSet}set fontSet(ue){const xe=this._cleanupFontValue(ue);xe!==this._fontSet&&(this._fontSet=xe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ue){const xe=this._cleanupFontValue(ue);xe!==this._fontIcon&&(this._fontIcon=xe,this._updateFontIconClasses())}_splitIconName(ue){if(!ue)return["",""];const xe=ue.split(":");switch(xe.length){case 1:return["",xe[0]];case 2:return xe;default:throw Error(`Invalid icon name: "${ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ue=this._elementsWithExternalReferences;if(ue&&ue.size){const xe=this._location.getPathname();xe!==this._previousPath&&(this._previousPath=xe,this._prependPathToReferences(xe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ue){this._clearSvgElement();const xe=this._location.getPathname();this._previousPath=xe,this._cacheChildrenWithExternalReferences(ue),this._prependPathToReferences(xe),this._elementRef.nativeElement.appendChild(ue)}_clearSvgElement(){const ue=this._elementRef.nativeElement;let xe=ue.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();xe--;){const Pe=ue.childNodes[xe];(1!==Pe.nodeType||"svg"===Pe.nodeName.toLowerCase())&&Pe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ue=this._elementRef.nativeElement,xe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();xe!=this._previousFontSetClass&&(this._previousFontSetClass&&ue.classList.remove(this._previousFontSetClass),xe&&ue.classList.add(xe),this._previousFontSetClass=xe),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ue.classList.remove(this._previousFontIconClass),this.fontIcon&&ue.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ue){return"string"==typeof ue?ue.trim().split(" ")[0]:ue}_prependPathToReferences(ue){const xe=this._elementsWithExternalReferences;xe&&xe.forEach((Pe,Se)=>{Pe.forEach(Q=>{Se.setAttribute(Q.name,`url('${ue}#${Q.value}')`)})})}_cacheChildrenWithExternalReferences(ue){const xe=ue.querySelectorAll(n),Pe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Se=0;Se<xe.length;Se++)y.forEach(Q=>{const Ue=xe[Se],Ce=Ue.getAttribute(Q),q=Ce?Ce.match(_):null;if(q){let Ae=Pe.get(Ue);Ae||(Ae=[],Pe.set(Ue,Ae)),Ae.push({name:Q,value:q[1]})}})}_updateSvgIcon(ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ue){const[xe,Pe]=this._splitIconName(ue);xe&&(this._svgNamespace=xe),Pe&&(this._svgName=Pe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Pe,xe).pipe((0,k.q)(1)).subscribe(Se=>this._setSvgElement(Se),Se=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${xe}:${Pe}! ${Se.message}`))})}}}return H.\u0275fac=function(ue){return new(ue||H)(t.Y36(t.SBq),t.Y36(ge),t.$8M("aria-hidden"),t.Y36(T),t.Y36(t.qLn))},H.\u0275cmp=t.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ue,xe){2&ue&&(t.uIk("data-mat-icon-type",xe._usingFontIcon()?"font":"svg")("data-mat-icon-name",xe._svgName||xe.fontIcon)("data-mat-icon-namespace",xe._svgNamespace||xe.fontSet),t.ekj("mat-icon-inline",xe.inline)("mat-icon-no-color","primary"!==xe.color&&"accent"!==xe.color&&"warn"!==xe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(ue,xe){1&ue&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),H})(),N=(()=>{class H{}return H.\u0275fac=function(ue){return new(ue||H)},H.\u0275mod=t.oAB({type:H}),H.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),H})()},7531:(ze,K,p)=>{"use strict";p.d(K,{Jk:()=>E,Nt:()=>ne,c:()=>ee});var t=p(3191),e=p(925),f=p(5e3),M=p(3075),s=p(508),b=p(7322),d=p(7579),R=p(515);const h=(0,e.i$)({passive:!0});let L=(()=>{class de{constructor(ie,le){this._platform=ie,this._ngZone=le,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return R.E;const le=(0,t.fI)(ie),$=this._monitoredElements.get(le);if($)return $.subject;const ge=new d.x,C="cdk-text-field-autofilled",i=r=>{"cdk-text-field-autofill-start"!==r.animationName||le.classList.contains(C)?"cdk-text-field-autofill-end"===r.animationName&&le.classList.contains(C)&&(le.classList.remove(C),this._ngZone.run(()=>ge.next({target:r.target,isAutofilled:!1}))):(le.classList.add(C),this._ngZone.run(()=>ge.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{le.addEventListener("animationstart",i,h),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:ge,unlisten:()=>{le.removeEventListener("animationstart",i,h)}}),ge}stopMonitoring(ie){const le=(0,t.fI)(ie),$=this._monitoredElements.get(le);$&&($.unlisten(),$.subject.complete(),le.classList.remove("cdk-text-field-autofill-monitored"),le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(le))}ngOnDestroy(){this._monitoredElements.forEach((ie,le)=>this.stopMonitoring(le))}}return de.\u0275fac=function(ie){return new(ie||de)(f.LFG(e.t4),f.LFG(f.R0b))},de.\u0275prov=f.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),S=(()=>{class de{}return de.\u0275fac=function(ie){return new(ie||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({}),de})();const E=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),U=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let W=0;const j=(0,s.FD)(class{constructor(de,te,ie,le){this._defaultErrorStateMatcher=de,this._parentForm=te,this._parentFormGroup=ie,this.ngControl=le}});let ne=(()=>{class de extends j{constructor(ie,le,$,ge,C,i,r,u,c,v){super(i,ge,C,$),this._elementRef=ie,this._platform=le,this._autofillMonitor=u,this._formField=v,this._uid="mat-input-"+W++,this.focused=!1,this.stateChanges=new d.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(y=>(0,e.qK)().has(y)),this._iOSKeyupListener=y=>{const n=y.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const T=this._elementRef.nativeElement,I=T.nodeName.toLowerCase();this._inputValueAccessor=r||T,this._previousNativeValue=this.value,this.id=this.id,le.IOS&&c.runOutsideAngular(()=>{ie.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=T.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(ie){this._disabled=(0,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(){var ie,le,$,ge;return null!==(ge=null!==(ie=this._required)&&void 0!==ie?ie:null===($=null===(le=this.ngControl)||void 0===le?void 0:le.control)||void 0===$?void 0:$.hasValidator(M.kI.required))&&void 0!==ge&&ge}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)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ie=>{this.autofilled=ie.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ie){this._elementRef.nativeElement.focus(ie)}_focusChanged(ie){ie!==this.focused&&(this.focused=ie,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var ie,le;const $=(null===(le=null===(ie=this._formField)||void 0===ie?void 0:ie._hideControlPlaceholder)||void 0===le?void 0:le.call(ie))?null:this.placeholder;if($!==this._previousPlaceholder){const ge=this._elementRef.nativeElement;this._previousPlaceholder=$,$?ge.setAttribute("placeholder",$):ge.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const ie=this._elementRef.nativeElement.value;this._previousNativeValue!==ie&&(this._previousNativeValue=ie,this.stateChanges.next())}_validateType(){U.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,le=ie.options[0];return this.focused||ie.multiple||!this.empty||!!(ie.selectedIndex>-1&&le&&le.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 de.\u0275fac=function(ie){return new(ie||de)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(M.a5,10),f.Y36(M.F,8),f.Y36(M.sg,8),f.Y36(s.rD),f.Y36(E,10),f.Y36(L),f.Y36(f.R0b),f.Y36(b.G_,8))},de.\u0275dir=f.lG2({type:de,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(ie,le){1&ie&&f.NdJ("focus",function(){return le._focusChanged(!0)})("blur",function(){return le._focusChanged(!1)})("input",function(){return le._onInput()}),2&ie&&(f.Ikx("disabled",le.disabled)("required",le.required),f.uIk("id",le.id)("data-placeholder",le.placeholder)("name",le.name||null)("readonly",le.readonly&&!le._isNativeSelect||null)("aria-invalid",le.empty&&le.required?null:le.errorState)("aria-required",le.required),f.ekj("mat-input-server",le._isServer)("mat-native-select-inline",le._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:b.Eo,useExisting:de}]),f.qOj,f.TTD]}),de})(),ee=(()=>{class de{}return de.\u0275fac=function(ie){return new(ie||de)},de.\u0275mod=f.oAB({type:de}),de.\u0275inj=f.cJS({providers:[s.rD],imports:[[S,b.lN,s.BQ],S,b.lN]}),de})()},4623:(ze,K,p)=>{"use strict";p.d(K,{Tg:()=>u,i$:()=>ge,ie:()=>_});var t=p(9808),e=p(5e3),f=p(508),M=p(3191),s=p(7579),b=p(2722),D=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const S=["*"],E=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],U=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],de=(0,f.Id)((0,f.Kr)(class{})),te=(0,f.Kr)(class{}),ie=new e.OlP("MatList"),le=new e.OlP("MatNavList");let ge=(()=>{class B extends de{constructor(H){super(),this._elementRef=H,this._stateChanges=new s.x,"action-list"===this._getListType()&&H.nativeElement.classList.add("mat-action-list")}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return B.\u0275fac=function(H){return new(H||B)(e.Y36(e.SBq))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:ie,useExisting:B}]),e.qOj,e.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(H,J){1&H&&(e.F$t(),e.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),B})(),C=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275dir=e.lG2({type:B,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),B})(),i=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275dir=e.lG2({type:B,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),B})(),u=(()=>{class B extends te{constructor(H,J,ue,xe){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new s.x,this._disabled=!1,this._isInteractiveList=!!(ue||xe&&"action-list"===xe._getListType()),this._list=ue||xe;const Pe=this._getHostElement();"button"===Pe.nodeName.toLowerCase()&&!Pe.hasAttribute("type")&&Pe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{J.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,M.Ig)(H)}ngAfterContentInit(){(0,f.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return B.\u0275fac=function(H){return new(H||B)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(le,8),e.Y36(ie,8))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(H,J,ue){if(1&H&&(e.Suo(ue,C,5),e.Suo(ue,i,5),e.Suo(ue,f.X2,5)),2&H){let xe;e.iGM(xe=e.CRH())&&(J._avatar=xe.first),e.iGM(xe=e.CRH())&&(J._icon=xe.first),e.iGM(xe=e.CRH())&&(J._lines=xe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(H,J){2&H&&e.ekj("mat-list-item-disabled",J.disabled)("mat-list-item-avatar",J._avatar||J._icon)("mat-list-item-with-avatar",J._avatar||J._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:U,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(H,J){1&H&&(e.F$t(E),e.TgZ(0,"span",0),e._UZ(1,"span",1),e.Hsn(2),e.TgZ(3,"span",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&H&&(e.xp6(1),e.Q6J("matRippleTrigger",J._getHostElement())("matRippleDisabled",J._isRippleDisabled()))},directives:[f.wG],encapsulation:2,changeDetection:0}),B})(),_=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[[f.uc,f.si,f.BQ,f.us,t.ez],f.uc,f.BQ,f.us,D.t]}),B})()},2181:(ze,K,p)=>{"use strict";p.d(K,{OP:()=>H,Tx:()=>De,VK:()=>Se,p6:()=>Ie});var t=p(5664),e=p(3191),f=p(1159),M=p(5e3),s=p(7579),b=p(727),d=p(6451),R=p(9646),h=p(3101),L=p(8675),w=p(3900),D=p(5698),S=p(2722),k=p(9300),E=p(4086),U=p(1777),W=p(7429),j=p(9808),ne=p(508),ee=p(9776),de=p(925),te=p(226),ie=p(5303);const le=["mat-menu-item",""];function $(ae,we){1&ae&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const ge=["*"];function C(ae,we){if(1&ae){const ye=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(z){return M.CHM(ye),M.oxw()._handleKeydown(z)})("click",function(){return M.CHM(ye),M.oxw().closed.emit("click")})("@transformMenu.start",function(z){return M.CHM(ye),M.oxw()._onAnimationStart(z)})("@transformMenu.done",function(z){return M.CHM(ye),M.oxw()._onAnimationDone(z)}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&ae){const ye=M.oxw();M.Q6J("id",ye.panelId)("ngClass",ye._classList)("@transformMenu",ye._panelAnimationState),M.uIk("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby||null)("aria-describedby",ye.ariaDescribedby||null)}}const i={transformMenu:(0,U.X$)("transformMenu",[(0,U.SB)("void",(0,U.oB)({opacity:0,transform:"scale(0.8)"})),(0,U.eR)("void => enter",(0,U.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({opacity:1,transform:"scale(1)"}))),(0,U.eR)("* => void",(0,U.jt)("100ms 25ms linear",(0,U.oB)({opacity:0})))]),fadeInItems:(0,U.X$)("fadeInItems",[(0,U.SB)("showing",(0,U.oB)({opacity:1})),(0,U.eR)("void => *",[(0,U.oB)({opacity:0}),(0,U.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},c=new M.OlP("MatMenuContent"),B=new M.OlP("MAT_MENU_PANEL"),N=(0,ne.Kr)((0,ne.Id)(class{}));let H=(()=>{class ae extends N{constructor(ye,Y,z,be,fe){var He;super(),this._elementRef=ye,this._document=Y,this._focusMonitor=z,this._parentMenu=be,this._changeDetectorRef=fe,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(He=null==be?void 0:be.addItem)||void 0===He||He.call(be,this)}focus(ye,Y){this._focusMonitor&&ye?this._focusMonitor.focusVia(this._getHostElement(),ye,Y):this._getHostElement().focus(Y),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(ye){this.disabled&&(ye.preventDefault(),ye.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ye;const Y=this._elementRef.nativeElement.cloneNode(!0),z=Y.querySelectorAll("mat-icon, .material-icons");for(let be=0;be<z.length;be++)z[be].remove();return(null===(ye=Y.textContent)||void 0===ye?void 0:ye.trim())||""}_setHighlighted(ye){var Y;this._highlighted=ye,null===(Y=this._changeDetectorRef)||void 0===Y||Y.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return ae.\u0275fac=function(ye){return new(ye||ae)(M.Y36(M.SBq),M.Y36(j.K0),M.Y36(t.tE),M.Y36(B,8),M.Y36(M.sBO))},ae.\u0275cmp=M.Xpm({type:ae,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ye,Y){1&ye&&M.NdJ("click",function(be){return Y._checkDisabled(be)})("mouseenter",function(){return Y._handleMouseEnter()}),2&ye&&(M.uIk("role",Y.role)("tabindex",Y._getTabIndex())("aria-disabled",Y.disabled.toString())("disabled",Y.disabled||null),M.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",Y._highlighted)("mat-menu-item-submenu-trigger",Y._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[M.qOj],attrs:le,ngContentSelectors:ge,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ye,Y){1&ye&&(M.F$t(),M.Hsn(0),M._UZ(1,"div",0),M.YNc(2,$,2,0,"svg",1)),2&ye&&(M.xp6(1),M.Q6J("matRippleDisabled",Y.disableRipple||Y.disabled)("matRippleTrigger",Y._getHostElement()),M.xp6(1),M.Q6J("ngIf",Y._triggersSubmenu))},directives:[ne.wG,j.O5],encapsulation:2,changeDetection:0}),ae})();const J=new M.OlP("mat-menu-default-options",{providedIn:"root",factory:function ue(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let xe=0,Pe=(()=>{class ae{constructor(ye,Y,z,be){this._elementRef=ye,this._ngZone=Y,this._defaultOptions=z,this._changeDetectorRef=be,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=b.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new 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 M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xe++}get xPosition(){return this._xPosition}set xPosition(ye){this._xPosition=ye,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ye){this._yPosition=ye,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ye){this._overlapTrigger=(0,e.Ig)(ye)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ye){this._hasBackdrop=(0,e.Ig)(ye)}set panelClass(ye){const Y=this._previousPanelClass;Y&&Y.length&&Y.split(" ").forEach(z=>{this._classList[z]=!1}),this._previousPanelClass=ye,ye&&ye.length&&(ye.split(" ").forEach(z=>{this._classList[z]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ye){this.panelClass=ye}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new t.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,w.w)(ye=>(0,d.T)(...ye.map(Y=>Y._focused)))).subscribe(ye=>this._keyManager.updateActiveItem(ye)),this._directDescendantItems.changes.subscribe(ye=>{var Y;const z=this._keyManager;if("enter"===this._panelAnimationState&&(null===(Y=z.activeItem)||void 0===Y?void 0:Y._hasFocus())){const be=ye.toArray(),fe=Math.max(0,Math.min(be.length-1,z.activeItemIndex||0));be[fe]&&!be[fe].disabled?z.setActiveItem(fe):z.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,w.w)(Y=>(0,d.T)(...Y.map(z=>z._hovered))))}addItem(ye){}removeItem(ye){}_handleKeydown(ye){const Y=ye.keyCode,z=this._keyManager;switch(Y){case f.hY:(0,f.Vb)(ye)||(ye.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Y===f.LH||Y===f.JH)&&z.setFocusOrigin("keyboard"),void z.onKeydown(ye)}ye.stopPropagation()}focusFirstItem(ye="program"){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{let Y=null;if(this._directDescendantItems.length&&(Y=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Y||!Y.contains(document.activeElement)){const z=this._keyManager;z.setFocusOrigin(ye).setFirstItemActive(),!z.activeItem&&Y&&Y.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ye){const Y=Math.min(this._baseElevation+ye,24),z=`${this._elevationPrefix}${Y}`,be=Object.keys(this._classList).find(fe=>fe.startsWith(this._elevationPrefix));(!be||be===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[z]=!0,this._previousElevation=z)}setPositionClasses(ye=this.xPosition,Y=this.yPosition){var z;const be=this._classList;be["mat-menu-before"]="before"===ye,be["mat-menu-after"]="after"===ye,be["mat-menu-above"]="above"===Y,be["mat-menu-below"]="below"===Y,null===(z=this._changeDetectorRef)||void 0===z||z.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ye){this._animationDone.next(ye),this._isAnimating=!1}_onAnimationStart(ye){this._isAnimating=!0,"enter"===ye.toState&&0===this._keyManager.activeItemIndex&&(ye.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(ye=>{this._directDescendantItems.reset(ye.filter(Y=>Y._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ae.\u0275fac=function(ye){return new(ye||ae)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(J),M.Y36(M.sBO))},ae.\u0275dir=M.lG2({type:ae,contentQueries:function(ye,Y,z){if(1&ye&&(M.Suo(z,c,5),M.Suo(z,H,5),M.Suo(z,H,4)),2&ye){let be;M.iGM(be=M.CRH())&&(Y.lazyContent=be.first),M.iGM(be=M.CRH())&&(Y._allItems=be),M.iGM(be=M.CRH())&&(Y.items=be)}},viewQuery:function(ye,Y){if(1&ye&&M.Gf(M.Rgc,5),2&ye){let z;M.iGM(z=M.CRH())&&(Y.templateRef=z.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"}}),ae})(),Se=(()=>{class ae extends Pe{constructor(ye,Y,z,be){super(ye,Y,z,be),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ae.\u0275fac=function(ye){return new(ye||ae)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(J),M.Y36(M.sBO))},ae.\u0275cmp=M.Xpm({type:ae,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ye,Y){2&ye&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:B,useExisting:ae}]),M.qOj],ngContentSelectors:ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ye,Y){1&ye&&(M.F$t(),M.YNc(0,C,3,6,"ng-template"))},directives:[j.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[i.transformMenu,i.fadeInItems]},changeDetection:0}),ae})();const Q=new M.OlP("mat-menu-scroll-strategy"),Ce={provide:Q,deps:[ee.aV],useFactory:function Ue(ae){return()=>ae.scrollStrategies.reposition()}},Ae=(0,de.i$)({passive:!0});let ut=(()=>{class ae{constructor(ye,Y,z,be,fe,He,pt,et,Lt){this._overlay=ye,this._element=Y,this._viewContainerRef=z,this._menuItemInstance=He,this._dir=pt,this._focusMonitor=et,this._ngZone=Lt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=di=>{(0,t.yG)(di)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=be,this._parentMaterialMenu=fe instanceof Pe?fe:void 0,Y.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ae),He&&(He._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ye){this.menu=ye}get menu(){return this._menu}set menu(ye){ye!==this._menu&&(this._menu=ye,this._menuCloseSubscription.unsubscribe(),ye&&(this._menuCloseSubscription=ye.close.subscribe(Y=>{this._destroyMenu(Y),("click"===Y||"tab"===Y)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Y)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ae),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ye=this._createOverlay(),Y=ye.getConfig(),z=Y.positionStrategy;this._setPosition(z),Y.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ye.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Pe&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,S.R)(this.menu.close)).subscribe(()=>{z.withLockedPosition(!1).reapplyLastPosition(),z.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ye,Y){this._focusMonitor&&ye?this._focusMonitor.focusVia(this._element,ye,Y):this._element.nativeElement.focus(Y)}updatePosition(){var ye;null===(ye=this._overlayRef)||void 0===ye||ye.updatePosition()}_destroyMenu(ye){if(!this._overlayRef||!this.menuOpen)return;const Y=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ye||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Y instanceof Pe?(Y._resetAnimation(),Y.lazyContent?Y._animationDone.pipe((0,k.h)(z=>"void"===z.toState),(0,D.q)(1),(0,S.R)(Y.lazyContent._attached)).subscribe({next:()=>Y.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Y.lazyContent&&Y.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ye=0,Y=this.menu.parentMenu;for(;Y;)ye++,Y=Y.parentMenu;this.menu.setElevation(ye)}}_setIsMenuOpen(ye){this._menuOpen=ye,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ye)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ye=this._getOverlayConfig();this._subscribeToPositions(ye.positionStrategy),this._overlayRef=this._overlay.create(ye),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ye){this.menu.setPositionClasses&&ye.positionChanges.subscribe(Y=>{const z="start"===Y.connectionPair.overlayX?"after":"before",be="top"===Y.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(z,be)):this.menu.setPositionClasses(z,be)})}_setPosition(ye){let[Y,z]="before"===this.menu.xPosition?["end","start"]:["start","end"],[be,fe]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[He,pt]=[be,fe],[et,Lt]=[Y,z],di=0;this.triggersSubmenu()?(Lt=Y="before"===this.menu.xPosition?"start":"end",z=et="end"===Y?"start":"end",di="bottom"===be?8:-8):this.menu.overlapTrigger||(He="top"===be?"bottom":"top",pt="top"===fe?"bottom":"top"),ye.withPositions([{originX:Y,originY:He,overlayX:et,overlayY:be,offsetY:di},{originX:z,originY:He,overlayX:Lt,overlayY:be,offsetY:di},{originX:Y,originY:pt,overlayX:et,overlayY:fe,offsetY:-di},{originX:z,originY:pt,overlayX:Lt,overlayY:fe,offsetY:-di}])}_menuClosingActions(){const ye=this._overlayRef.backdropClick(),Y=this._overlayRef.detachments(),z=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),be=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(fe=>fe!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,R.of)();return(0,d.T)(ye,z,be,Y)}_handleMousedown(ye){(0,t.X6)(ye)||(this._openedBy=0===ye.button?"mouse":void 0,this.triggersSubmenu()&&ye.preventDefault())}_handleKeydown(ye){const Y=ye.keyCode;(Y===f.K5||Y===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Y===f.SV&&"ltr"===this.dir||Y===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ye){this.triggersSubmenu()?(ye.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(ye=>ye===this._menuItemInstance&&!ye.disabled),(0,E.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,D.q)(1),(0,E.g)(0,h.E),(0,S.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new W.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ae.\u0275fac=function(ye){return new(ye||ae)(M.Y36(ee.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(Q),M.Y36(B,8),M.Y36(H,10),M.Y36(te.Is,8),M.Y36(t.tE),M.Y36(M.R0b))},ae.\u0275dir=M.lG2({type:ae,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ye,Y){1&ye&&M.NdJ("click",function(be){return Y._handleClick(be)})("mousedown",function(be){return Y._handleMousedown(be)})("keydown",function(be){return Y._handleKeydown(be)}),2&ye&&M.uIk("aria-expanded",Y.menuOpen||null)("aria-controls",Y.menuOpen?Y.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"}}),ae})(),Ie=(()=>{class ae extends ut{}return ae.\u0275fac=function(){let we;return function(Y){return(we||(we=M.n5z(ae)))(Y||ae)}}(),ae.\u0275dir=M.lG2({type:ae,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),ae})(),De=(()=>{class ae{}return ae.\u0275fac=function(ye){return new(ye||ae)},ae.\u0275mod=M.oAB({type:ae}),ae.\u0275inj=M.cJS({providers:[Ce],imports:[[j.ez,ne.BQ,ne.si,ee.U8],ie.ZD,ne.BQ]}),ae})()},6087:(ze,K,p)=>{"use strict";p.d(K,{NW:()=>le,TU:()=>$,ye:()=>U});var t=p(9808),e=p(5e3),f=p(508),M=p(7423),s=p(4107),b=p(7238),d=p(3191),R=p(7579),h=p(7322);function L(ge,C){if(1&ge&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&ge){const i=C.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}function w(ge,C){if(1&ge){const i=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(u){return e.CHM(i),e.oxw(2)._changePageSize(u.value)}),e.YNc(2,L,2,2,"mat-option",18),e.qZA()()}if(2&ge){const i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function D(ge,C){if(1&ge&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&ge){const i=e.oxw(2);e.xp6(1),e.Oqu(i.pageSize)}}function S(ge,C){if(1&ge&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,w,3,6,"mat-form-field",14),e.YNc(4,D,2,1,"div",15),e.qZA()),2&ge){const i=e.oxw();e.xp6(2),e.hij(" ",i._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function k(ge,C){if(1&ge){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(i),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&ge){const i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function E(ge,C){if(1&ge){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(i),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&ge){const i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}let U=(()=>{class ge{constructor(){this.changes=new R.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,r,u)=>{if(0==u||0==r)return`0 of ${u}`;const c=i*r;return`${c+1} \u2013 ${c<(u=Math.max(u,0))?Math.min(c+r,u):c+r} of ${u}`}}}return ge.\u0275fac=function(i){return new(i||ge)},ge.\u0275prov=e.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();const j={provide:U,deps:[[new e.FiY,new e.tp0,U]],useFactory:function W(ge){return ge||new U}},de=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),te=(0,f.Id)((0,f.dB)(class{}));let ie=(()=>{class ge extends te{constructor(i,r,u){if(super(),this._intl=i,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new e.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:c,pageSizeOptions:v,hidePageSize:T,showFirstLastButtons:I}=u;null!=c&&(this._pageSize=c),null!=v&&(this._pageSizeOptions=v),null!=T&&(this._hidePageSize=T),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,d.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,d.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,d.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,d.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,d.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndex<i&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(i){const u=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/i)||0,this.pageSize=i,this._emitPageEvent(u)}_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((i,r)=>i-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ge.\u0275fac=function(i){e.$Z()},ge.\u0275dir=e.lG2({type:ge,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[e.qOj]}),ge})(),le=(()=>{class ge extends ie{constructor(i,r,u){super(i,r,u),u&&null!=u.formFieldAppearance&&(this._formFieldAppearance=u.formFieldAppearance)}}return ge.\u0275fac=function(i){return new(i||ge)(e.Y36(U),e.Y36(e.sBO),e.Y36(de,8))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,S,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,k,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return r.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return r.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,E,3,5,"button",11),e.qZA()()()),2&i&&(e.xp6(2),e.Q6J("ngIf",!r.hidePageSize),e.xp6(3),e.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),e.xp6(1),e.Q6J("ngIf",r.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),e.uIk("aria-label",r._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),e.uIk("aria-label",r._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",r.showFirstLastButtons))},directives:[h.KE,s.gD,f.ey,M.lW,t.O5,t.sg,b.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),ge})(),$=(()=>{class ge{}return ge.\u0275fac=function(i){return new(i||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({providers:[j],imports:[[t.ez,M.ot,s.LD,b.AV,f.BQ]]}),ge})()},5899:(ze,K,p)=>{"use strict";p.d(K,{Cv:()=>W,pW:()=>E});var t=p(5e3),e=p(9808),f=p(508),M=p(3191),s=p(6360),b=p(727),d=p(4968),R=p(9300);const h=["primaryValueBar"],L=(0,f.pj)(class{constructor(j){this._elementRef=j}},"primary"),w=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function D(){const j=(0,t.f3M)(e.K0),ne=j?j.location:null;return{getPathname:()=>ne?ne.pathname+ne.search:""}}}),S=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,E=(()=>{class j extends L{constructor(ee,de,te,ie,le,$){super(ee),this._ngZone=de,this._animationMode=te,this._changeDetectorRef=$,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=b.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const ge=ie?ie.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${ge}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===te,le&&(le.color&&(this.color=this.defaultColor=le.color),this.mode=le.mode||this.mode)}get value(){return this._value}set value(ee){var de;this._value=U((0,M.su)(ee)||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(ee){var de;this._bufferValue=U(ee||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,d.R)(ee,"transitionend").pipe((0,R.h)(de=>de.target===ee)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return j.\u0275fac=function(ee){return new(ee||j)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(s.Qb,8),t.Y36(w,8),t.Y36(S,8),t.Y36(t.sBO))},j.\u0275cmp=t.Xpm({type:j,selectors:[["mat-progress-bar"]],viewQuery:function(ee,de){if(1&ee&&t.Gf(h,5),2&ee){let te;t.iGM(te=t.CRH())&&(de._primaryValueBar=te.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,de){2&ee&&(t.uIk("aria-valuenow","indeterminate"===de.mode||"query"===de.mode?null:de.value)("mode",de.mode),t.ekj("_mat-animation-noopable",de._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ee,de){1&ee&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&ee&&(t.xp6(3),t.Q6J("id",de.progressbarId),t.xp6(2),t.uIk("fill",de._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",de._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",de._primaryTransform()))},directives:[e.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),j})();function U(j,ne=0,ee=100){return Math.max(ne,Math.min(ee,j))}let W=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=t.oAB({type:j}),j.\u0275inj=t.cJS({imports:[[e.ez,f.BQ],f.BQ]}),j})()},773:(ze,K,p)=>{"use strict";p.d(K,{Cq:()=>j,Ou:()=>W});var t=p(3191),e=p(925),f=p(9808),M=p(5e3),s=p(508),b=p(6360),d=p(727),R=p(5303);function h(ee,de){if(1&ee&&(M.O4$(),M._UZ(0,"circle",4)),2&ee){const te=M.oxw(),ie=M.MAs(1);M.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+te._spinnerAnimationLabel)("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ie)),M.uIk("r",te._getCircleRadius())}}function L(ee,de){if(1&ee&&(M.O4$(),M._UZ(0,"circle",4)),2&ee){const te=M.oxw(),ie=M.MAs(1);M.Udp("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ie)),M.uIk("r",te._getCircleRadius())}}const S=(0,s.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),k=new M.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function E(){return{diameter:100}}});class W extends S{constructor(de,te,ie,le,$,ge,C,i){super(de),this._document=ie,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(ie.head)||r.set(ie.head,new Set([100])),this._noopAnimations="NoopAnimations"===le&&!!$&&!$._forceAnimations,"mat-spinner"===de.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),$&&($.diameter&&(this.diameter=$.diameter),$.strokeWidth&&(this.strokeWidth=$.strokeWidth)),te.isBrowser&&te.SAFARI&&C&&ge&&i&&(this._resizeSubscription=C.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>ge.markForCheck())}))}get diameter(){return this._diameter}set diameter(de){this._diameter=(0,t.su)(de),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(de){this._strokeWidth=(0,t.su)(de)}get value(){return"determinate"===this.mode?this._value:0}set value(de){this._value=Math.max(0,Math.min(100,(0,t.su)(de)))}ngOnInit(){const de=this._elementRef.nativeElement;this._styleRoot=(0,e.kV)(de)||this._document.head,this._attachStyleNode(),de.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const de=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${de} ${de}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(de){var te;const ie=50*(null!==(te=de.currentScale)&&void 0!==te?te:1);return`${ie}% ${ie}%`}_attachStyleNode(){const de=this._styleRoot,te=this._diameter,ie=W._diameters;let le=ie.get(de);if(!le||!le.has(te)){const $=this._document.createElement("style");$.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),$.textContent=this._getAnimationText(),de.appendChild($),le||(le=new Set,ie.set(de,le)),le.add(te)}}_getAnimationText(){const de=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*de).replace(/END_VALUE/g,""+.2*de).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(de){return new(de||W)(M.Y36(M.SBq),M.Y36(e.t4),M.Y36(f.K0,8),M.Y36(b.Qb,8),M.Y36(k),M.Y36(M.sBO),M.Y36(R.rL),M.Y36(M.R0b))},W.\u0275cmp=M.Xpm({type:W,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(de,te){2&de&&(M.uIk("aria-valuemin","determinate"===te.mode?0:null)("aria-valuemax","determinate"===te.mode?100:null)("aria-valuenow","determinate"===te.mode?te.value:null)("mode",te.mode),M.Udp("width",te.diameter,"px")("height",te.diameter,"px"),M.ekj("_mat-animation-noopable",te._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[M.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(de,te){1&de&&(M.O4$(),M.TgZ(0,"svg",0,1),M.YNc(2,h,1,11,"circle",2),M.YNc(3,L,1,9,"circle",3),M.qZA()),2&de&&(M.Udp("width",te.diameter,"px")("height",te.diameter,"px"),M.Q6J("ngSwitch","indeterminate"===te.mode),M.uIk("viewBox",te._getViewBox()),M.xp6(2),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1))},directives:[f.RF,f.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let j=(()=>{class ee{}return ee.\u0275fac=function(te){return new(te||ee)},ee.\u0275mod=M.oAB({type:ee}),ee.\u0275inj=M.cJS({imports:[[s.BQ,f.ez],s.BQ]}),ee})()},9814:(ze,K,p)=>{"use strict";p.d(K,{Fk:()=>ie,U0:()=>te,VQ:()=>j});var t=p(5e3),e=p(508),f=p(3191),M=p(3075),s=p(6360),b=p(5664),d=p(449);const R=["input"],h=function(le){return{enterDuration:le}},L=["*"],w=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function D(){return{color:"accent"}}});let S=0;const k={provide:M.JU,useExisting:(0,t.Gpc)(()=>j),multi:!0};class E{constructor($,ge){this.source=$,this.value=ge}}const U=new t.OlP("MatRadioGroup");let W=(()=>{class le{constructor(ge){this._changeDetector=ge,this._value=null,this._name="mat-radio-group-"+S++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}get name(){return this._name}set name(ge){this._name=ge,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ge){this._labelPosition="before"===ge?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ge){this._value!==ge&&(this._value=ge,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ge){this._selected=ge,this.value=ge?ge.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,f.Ig)(ge),this._markRadiosForCheck()}get required(){return this._required}set required(ge){this._required=(0,f.Ig)(ge),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ge=>{ge.name=this.name,ge._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(C=>{C.checked=this.value===C.value,C.checked&&(this._selected=C)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new E(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ge=>ge._markForCheck())}writeValue(ge){this.value=ge,this._changeDetector.markForCheck()}registerOnChange(ge){this._controlValueAccessorChangeFn=ge}registerOnTouched(ge){this.onTouched=ge}setDisabledState(ge){this.disabled=ge,this._changeDetector.markForCheck()}}return le.\u0275fac=function(ge){return new(ge||le)(t.Y36(t.sBO))},le.\u0275dir=t.lG2({type:le,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),le})(),j=(()=>{class le extends W{}return le.\u0275fac=function(){let $;return function(C){return($||($=t.n5z(le)))(C||le)}}(),le.\u0275dir=t.lG2({type:le,selectors:[["mat-radio-group"]],contentQueries:function(ge,C,i){if(1&ge&&t.Suo(i,te,5),2&ge){let r;t.iGM(r=t.CRH())&&(C._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([k,{provide:U,useExisting:le}]),t.qOj]}),le})();class ne{constructor($){this._elementRef=$}}const ee=(0,e.Kr)((0,e.sb)(ne));let de=(()=>{class le extends ee{constructor(ge,C,i,r,u,c,v,T){super(C),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=u,this._providerOverride=v,this._uniqueId="mat-radio-"+ ++S,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ge,this._noopAnimations="NoopAnimations"===c,T&&(this.tabIndex=(0,f.su)(T,0)),this._removeUniqueSelectionListener=u.listen((I,y)=>{I!==this.id&&y===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ge){const C=(0,f.Ig)(ge);this._checked!==C&&(this._checked=C,C&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!C&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),C&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ge){this._value!==ge&&(this._value=ge,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ge),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ge){this._labelPosition=ge}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ge){this._setDisabled((0,f.Ig)(ge))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ge){this._required=(0,f.Ig)(ge)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ge){this._color=ge}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ge,C){C?this._focusMonitor.focusVia(this._inputElement,C,ge):this._inputElement.nativeElement.focus(ge)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ge=>{!ge&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new E(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ge){ge.stopPropagation()}_onInputInteraction(ge){if(ge.stopPropagation(),!this.checked&&!this.disabled){const C=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),C&&this.radioGroup._emitChangeEvent())}}_setDisabled(ge){this._disabled!==ge&&(this._disabled=ge,this._changeDetector.markForCheck())}_updateTabIndex(){var ge;const C=this.radioGroup;let i;if(i=C&&C.selected&&!this.disabled?C.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=null===(ge=this._inputElement)||void 0===ge?void 0:ge.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}}return le.\u0275fac=function(ge){t.$Z()},le.\u0275dir=t.lG2({type:le,viewQuery:function(ge,C){if(1&ge&&t.Gf(R,5),2&ge){let i;t.iGM(i=t.CRH())&&(C._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]}),le})(),te=(()=>{class le extends de{constructor(ge,C,i,r,u,c,v,T){super(ge,C,i,r,u,c,v,T)}}return le.\u0275fac=function(ge){return new(ge||le)(t.Y36(U,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(b.tE),t.Y36(d.A8),t.Y36(s.Qb,8),t.Y36(w,8),t.$8M("tabindex"))},le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ge,C){1&ge&&t.NdJ("focus",function(){return C._inputElement.nativeElement.focus()}),2&ge&&(t.uIk("tabindex",null)("id",C.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",C.checked)("mat-radio-disabled",C.disabled)("_mat-animation-noopable",C._noopAnimations)("mat-primary","primary"===C.color)("mat-accent","accent"===C.color)("mat-warn","warn"===C.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:L,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ge,C){if(1&ge&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(r){return C._onInputInteraction(r)})("click",function(r){return C._onInputClick(r)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&ge){const i=t.MAs(1);t.uIk("for",C.inputId),t.xp6(5),t.Q6J("id",C.inputId)("checked",C.checked)("disabled",C.disabled)("required",C.required),t.uIk("name",C.name)("value",C.value)("aria-label",C.ariaLabel)("aria-labelledby",C.ariaLabelledby)("aria-describedby",C.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",C._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,h,C._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==C.labelPosition)}},directives:[e.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),le})(),ie=(()=>{class le{}return le.\u0275fac=function(ge){return new(ge||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),le})()},4107:(ze,K,p)=>{"use strict";p.d(K,{$L:()=>ut,LD:()=>ae,gD:()=>De});var t=p(9776),e=p(9808),f=p(5e3),M=p(508),s=p(7322),b=p(5303),d=p(5664),R=p(3191),h=p(449),L=p(1159),w=p(3075),D=p(7579),S=p(9770),k=p(6451),E=p(8675),U=p(3900),W=p(5698),j=p(9300),ne=p(4004),ee=p(1884),de=p(2722),te=p(1777),ie=p(226);const le=["trigger"],$=["panel"];function ge(we,ye){if(1&we&&(f.TgZ(0,"span",8),f._uU(1),f.qZA()),2&we){const Y=f.oxw();f.xp6(1),f.Oqu(Y.placeholder)}}function C(we,ye){if(1&we&&(f.TgZ(0,"span",12),f._uU(1),f.qZA()),2&we){const Y=f.oxw(2);f.xp6(1),f.Oqu(Y.triggerValue)}}function i(we,ye){1&we&&f.Hsn(0,0,["*ngSwitchCase","true"])}function r(we,ye){if(1&we&&(f.TgZ(0,"span",9),f.YNc(1,C,2,1,"span",10),f.YNc(2,i,1,0,"ng-content",11),f.qZA()),2&we){const Y=f.oxw();f.Q6J("ngSwitch",!!Y.customTrigger),f.xp6(2),f.Q6J("ngSwitchCase",!0)}}function u(we,ye){if(1&we){const Y=f.EpF();f.TgZ(0,"div",13)(1,"div",14,15),f.NdJ("@transformPanel.done",function(be){return f.CHM(Y),f.oxw()._panelDoneAnimatingStream.next(be.toState)})("keydown",function(be){return f.CHM(Y),f.oxw()._handleKeydown(be)}),f.Hsn(3,1),f.qZA()()}if(2&we){const Y=f.oxw();f.Q6J("@transformPanelWrap",void 0),f.xp6(1),f.Gre("mat-select-panel ",Y._getPanelTheme(),""),f.Udp("transform-origin",Y._transformOrigin)("font-size",Y._triggerFontSize,"px"),f.Q6J("ngClass",Y.panelClass)("@transformPanel",Y.multiple?"showing-multiple":"showing"),f.uIk("id",Y.id+"-panel")("aria-multiselectable",Y.multiple)("aria-label",Y.ariaLabel||null)("aria-labelledby",Y._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],v=["mat-select-trigger","*"],T={transformPanelWrap:(0,te.X$)("transformPanelWrap",[(0,te.eR)("* => void",(0,te.IO)("@transformPanel",[(0,te.pV)()],{optional:!0}))]),transformPanel:(0,te.X$)("transformPanel",[(0,te.SB)("void",(0,te.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,te.SB)("showing",(0,te.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,te.SB)("showing-multiple",(0,te.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,te.eR)("void => *",(0,te.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,te.eR)("* => void",(0,te.jt)("100ms 25ms linear",(0,te.oB)({opacity:0})))])};let _=0;const B=256,Pe=new f.OlP("mat-select-scroll-strategy"),Q=new f.OlP("MAT_SELECT_CONFIG"),Ue={provide:Pe,deps:[t.aV],useFactory:function Se(we){return()=>we.scrollStrategies.reposition()}};class Ce{constructor(ye,Y){this.source=ye,this.value=Y}}const q=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(we,ye,Y,z,be){this._elementRef=we,this._defaultErrorStateMatcher=ye,this._parentForm=Y,this._parentFormGroup=z,this.ngControl=be}})))),Ae=new f.OlP("MatSelectTrigger");let ut=(()=>{class we{}return we.\u0275fac=function(Y){return new(Y||we)},we.\u0275dir=f.lG2({type:we,selectors:[["mat-select-trigger"]],features:[f._Bn([{provide:Ae,useExisting:we}])]}),we})(),Ie=(()=>{class we extends q{constructor(Y,z,be,fe,He,pt,et,Lt,di,Wt,Gt,ui,Ot,Nt){var gt,tt,xt;super(He,fe,et,Lt,Wt),this._viewportRuler=Y,this._changeDetectorRef=z,this._ngZone=be,this._dir=pt,this._parentFormField=di,this._liveAnnouncer=Ot,this._defaultOptions=Nt,this._panelOpen=!1,this._compareWith=(ei,Kt)=>ei===Kt,this._uid="mat-select-"+_++,this._triggerAriaLabelledBy=null,this._destroy=new D.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_++,this._panelDoneAnimatingStream=new D.x,this._overlayPanelClass=(null===(gt=this._defaultOptions)||void 0===gt?void 0:gt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(xt=null===(tt=this._defaultOptions)||void 0===tt?void 0:tt.disableOptionCentering)&&void 0!==xt&&xt,this.ariaLabel="",this.optionSelectionChanges=(0,S.P)(()=>{const ei=this.options;return ei?ei.changes.pipe((0,E.O)(ei),(0,U.w)(()=>(0,k.T)(...ei.map(Kt=>Kt.onSelectionChange)))):this._ngZone.onStable.pipe((0,W.q)(1),(0,U.w)(()=>this.optionSelectionChanges))}),this.openedChange=new f.vpe,this._openedStream=this.openedChange.pipe((0,j.h)(ei=>ei),(0,ne.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,j.h)(ei=>!ei),(0,ne.U)(()=>{})),this.selectionChange=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Nt?void 0:Nt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Nt.typeaheadDebounceInterval),this._scrollStrategyFactory=ui,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Gt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Y){this._placeholder=Y,this.stateChanges.next()}get required(){var Y,z,be,fe;return null!==(fe=null!==(Y=this._required)&&void 0!==Y?Y:null===(be=null===(z=this.ngControl)||void 0===z?void 0:z.control)||void 0===be?void 0:be.hasValidator(w.kI.required))&&void 0!==fe&&fe}set required(Y){this._required=(0,R.Ig)(Y),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Y){this._multiple=(0,R.Ig)(Y)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Y){this._disableOptionCentering=(0,R.Ig)(Y)}get compareWith(){return this._compareWith}set compareWith(Y){this._compareWith=Y,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Y){this._assignValue(Y)&&this._onChange(Y)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Y){this._typeaheadDebounceInterval=(0,R.su)(Y)}get id(){return this._id}set id(Y){this._id=Y||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,de.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,de.R)(this._destroy)).subscribe(Y=>{Y.added.forEach(z=>z.select()),Y.removed.forEach(z=>z.deselect())}),this.options.changes.pipe((0,E.O)(null),(0,de.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Y=this._getTriggerAriaLabelledby(),z=this.ngControl;if(Y!==this._triggerAriaLabelledBy){const be=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Y,Y?be.setAttribute("aria-labelledby",Y):be.removeAttribute("aria-labelledby")}z&&(this._previousControl!==z.control&&(void 0!==this._previousControl&&null!==z.disabled&&z.disabled!==this.disabled&&(this.disabled=z.disabled),this._previousControl=z.control),this.updateErrorState())}ngOnChanges(Y){Y.disabled&&this.stateChanges.next(),Y.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Y){this._assignValue(Y)}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){this.disabled=Y,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var Y,z;return this.multiple?(null===(Y=this._selectionModel)||void 0===Y?void 0:Y.selected)||[]:null===(z=this._selectionModel)||void 0===z?void 0:z.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Y=this._selectionModel.selected.map(z=>z.viewValue);return this._isRtl()&&Y.reverse(),Y.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Y){this.disabled||(this.panelOpen?this._handleOpenKeydown(Y):this._handleClosedKeydown(Y))}_handleClosedKeydown(Y){const z=Y.keyCode,be=z===L.JH||z===L.LH||z===L.oh||z===L.SV,fe=z===L.K5||z===L.L_,He=this._keyManager;if(!He.isTyping()&&fe&&!(0,L.Vb)(Y)||(this.multiple||Y.altKey)&&be)Y.preventDefault(),this.open();else if(!this.multiple){const pt=this.selected;He.onKeydown(Y);const et=this.selected;et&&pt!==et&&this._liveAnnouncer.announce(et.viewValue,1e4)}}_handleOpenKeydown(Y){const z=this._keyManager,be=Y.keyCode,fe=be===L.JH||be===L.LH,He=z.isTyping();if(fe&&Y.altKey)Y.preventDefault(),this.close();else if(He||be!==L.K5&&be!==L.L_||!z.activeItem||(0,L.Vb)(Y))if(!He&&this._multiple&&be===L.A&&Y.ctrlKey){Y.preventDefault();const pt=this.options.some(et=>!et.disabled&&!et.selected);this.options.forEach(et=>{et.disabled||(pt?et.select():et.deselect())})}else{const pt=z.activeItemIndex;z.onKeydown(Y),this._multiple&&fe&&Y.shiftKey&&z.activeItem&&z.activeItemIndex!==pt&&z.activeItem._selectViaInteraction()}else Y.preventDefault(),z.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,W.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(Y){if(this._selectionModel.selected.forEach(z=>z.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Y)Array.isArray(Y),Y.forEach(z=>this._selectOptionByValue(z)),this._sortValues();else{const z=this._selectOptionByValue(Y);z?this._keyManager.updateActiveItem(z):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Y){const z=this.options.find(be=>{if(this._selectionModel.isSelected(be))return!1;try{return null!=be.value&&this._compareWith(be.value,Y)}catch(fe){return!1}});return z&&this._selectionModel.select(z),z}_assignValue(Y){return!!(Y!==this._value||this._multiple&&Array.isArray(Y))&&(this.options&&this._setSelectionByValue(Y),this._value=Y,!0)}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,de.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,de.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Y=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(Y)).subscribe(z=>{this._onSelect(z.source,z.isUserInput),z.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(z=>z._stateChanges)).pipe((0,de.R)(Y)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(Y,z){const be=this._selectionModel.isSelected(Y);null!=Y.value||this._multiple?(be!==Y.selected&&(Y.selected?this._selectionModel.select(Y):this._selectionModel.deselect(Y)),z&&this._keyManager.setActiveItem(Y),this.multiple&&(this._sortValues(),z&&this.focus())):(Y.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Y.value)),be!==this._selectionModel.isSelected(Y)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Y=this.options.toArray();this._selectionModel.sort((z,be)=>this.sortComparator?this.sortComparator(z,be,Y):Y.indexOf(z)-Y.indexOf(be)),this.stateChanges.next()}}_propagateChanges(Y){let z=null;z=this.multiple?this.selected.map(be=>be.value):this.selected?this.selected.value:Y,this._value=z,this.valueChange.emit(z),this._onChange(z),this.selectionChange.emit(this._getChangeEvent(z)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var Y;return!this._panelOpen&&!this.disabled&&(null===(Y=this.options)||void 0===Y?void 0:Y.length)>0}focus(Y){this._elementRef.nativeElement.focus(Y)}_getPanelAriaLabelledby(){var Y;if(this.ariaLabel)return null;const z=null===(Y=this._parentFormField)||void 0===Y?void 0:Y.getLabelId();return this.ariaLabelledby?(z?z+" ":"")+this.ariaLabelledby:z}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var Y;if(this.ariaLabel)return null;const z=null===(Y=this._parentFormField)||void 0===Y?void 0:Y.getLabelId();let be=(z?z+" ":"")+this._valueId;return this.ariaLabelledby&&(be+=" "+this.ariaLabelledby),be}_panelDoneAnimating(Y){this.openedChange.emit(Y)}setDescribedByIds(Y){this._ariaDescribedby=Y.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return we.\u0275fac=function(Y){return new(Y||we)(f.Y36(b.rL),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(M.rD),f.Y36(f.SBq),f.Y36(ie.Is,8),f.Y36(w.F,8),f.Y36(w.sg,8),f.Y36(s.G_,8),f.Y36(w.a5,10),f.$8M("tabindex"),f.Y36(Pe),f.Y36(d.Kd),f.Y36(Q,8))},we.\u0275dir=f.lG2({type:we,viewQuery:function(Y,z){if(1&Y&&(f.Gf(le,5),f.Gf($,5),f.Gf(t.pI,5)),2&Y){let be;f.iGM(be=f.CRH())&&(z.trigger=be.first),f.iGM(be=f.CRH())&&(z.panel=be.first),f.iGM(be=f.CRH())&&(z._overlayDir=be.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[f.qOj,f.TTD]}),we})(),De=(()=>{class we extends Ie{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(Y,z,be){const fe=this._getItemHeight();return Math.min(Math.max(0,fe*Y-z+fe/2),be)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,de.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(Y){const z=(0,M.CB)(Y,this.options,this.optionGroups),be=this._getItemHeight();this.panel.nativeElement.scrollTop=0===Y&&1===z?0:(0,M.jH)((Y+z)*be,be,this.panel.nativeElement.scrollTop,B)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(Y){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(Y)}_getChangeEvent(Y){return new Ce(this,Y)}_calculateOverlayOffsetX(){const Y=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),z=this._viewportRuler.getViewportSize(),be=this._isRtl(),fe=this.multiple?56:32;let He;if(this.multiple)He=40;else if(this.disableOptionCentering)He=16;else{let Lt=this._selectionModel.selected[0]||this.options.first;He=Lt&&Lt.group?32:16}be||(He*=-1);const pt=0-(Y.left+He-(be?fe:0)),et=Y.right+He-z.width+(be?0:fe);pt>0?He+=pt+8:et>0&&(He-=et+8),this._overlayDir.offsetX=Math.round(He),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(Y,z,be){const fe=this._getItemHeight(),He=(fe-this._triggerRect.height)/2,pt=Math.floor(B/fe);let et;return this.disableOptionCentering?0:(et=0===this._scrollTop?Y*fe:this._scrollTop===be?(Y-(this._getItemCount()-pt))*fe+(fe-(this._getItemCount()*fe-B)%fe):z-fe/2,Math.round(-1*et-He))}_checkOverlayWithinViewport(Y){const z=this._getItemHeight(),be=this._viewportRuler.getViewportSize(),fe=this._triggerRect.top-8,He=be.height-this._triggerRect.bottom-8,pt=Math.abs(this._offsetY),Lt=Math.min(this._getItemCount()*z,B)-pt-this._triggerRect.height;Lt>He?this._adjustPanelUp(Lt,He):pt>fe?this._adjustPanelDown(pt,fe,Y):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(Y,z){const be=Math.round(Y-z);this._scrollTop-=be,this._offsetY-=be,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(Y,z,be){const fe=Math.round(Y-z);if(this._scrollTop+=fe,this._offsetY+=fe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=be)return this._scrollTop=be,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const Y=this._getItemHeight(),z=this._getItemCount(),be=Math.min(z*Y,B),He=z*Y-be;let pt;pt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),pt+=(0,M.CB)(pt,this.options,this.optionGroups);const et=be/2;this._scrollTop=this._calculateOverlayScroll(pt,et,He),this._offsetY=this._calculateOverlayOffsetY(pt,et,He),this._checkOverlayWithinViewport(He)}_getOriginBasedOnOption(){const Y=this._getItemHeight(),z=(Y-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-z+Y/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return we.\u0275fac=function(){let ye;return function(z){return(ye||(ye=f.n5z(we)))(z||we)}}(),we.\u0275cmp=f.Xpm({type:we,selectors:[["mat-select"]],contentQueries:function(Y,z,be){if(1&Y&&(f.Suo(be,Ae,5),f.Suo(be,M.ey,5),f.Suo(be,M.K7,5)),2&Y){let fe;f.iGM(fe=f.CRH())&&(z.customTrigger=fe.first),f.iGM(fe=f.CRH())&&(z.options=fe),f.iGM(fe=f.CRH())&&(z.optionGroups=fe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(Y,z){1&Y&&f.NdJ("keydown",function(fe){return z._handleKeydown(fe)})("focus",function(){return z._onFocus()})("blur",function(){return z._onBlur()}),2&Y&&(f.uIk("id",z.id)("tabindex",z.tabIndex)("aria-controls",z.panelOpen?z.id+"-panel":null)("aria-expanded",z.panelOpen)("aria-label",z.ariaLabel||null)("aria-required",z.required.toString())("aria-disabled",z.disabled.toString())("aria-invalid",z.errorState)("aria-describedby",z._ariaDescribedby||null)("aria-activedescendant",z._getAriaActiveDescendant()),f.ekj("mat-select-disabled",z.disabled)("mat-select-invalid",z.errorState)("mat-select-required",z.required)("mat-select-empty",z.empty)("mat-select-multiple",z.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[f._Bn([{provide:s.Eo,useExisting:we},{provide:M.HF,useExisting:we}]),f.qOj],ngContentSelectors:v,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Y,z){if(1&Y&&(f.F$t(c),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return z.toggle()}),f.TgZ(3,"div",2),f.YNc(4,ge,2,1,"span",3),f.YNc(5,r,3,2,"span",4),f.qZA(),f.TgZ(6,"div",5),f._UZ(7,"div",6),f.qZA()(),f.YNc(8,u,4,14,"ng-template",7),f.NdJ("backdropClick",function(){return z.close()})("attach",function(){return z._onAttached()})("detach",function(){return z.close()})),2&Y){const be=f.MAs(1);f.uIk("aria-owns",z.panelOpen?z.id+"-panel":null),f.xp6(3),f.Q6J("ngSwitch",z.empty),f.uIk("id",z._valueId),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(3),f.Q6J("cdkConnectedOverlayPanelClass",z._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",z._scrollStrategy)("cdkConnectedOverlayOrigin",be)("cdkConnectedOverlayOpen",z.panelOpen)("cdkConnectedOverlayPositions",z._positions)("cdkConnectedOverlayMinWidth",null==z._triggerRect?null:z._triggerRect.width)("cdkConnectedOverlayOffsetY",z._offsetY)}},directives:[t.xu,e.RF,e.n9,e.ED,t.pI,e.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[T.transformPanelWrap,T.transformPanel]},changeDetection:0}),we})(),ae=(()=>{class we{}return we.\u0275fac=function(Y){return new(Y||we)},we.\u0275mod=f.oAB({type:we}),we.\u0275inj=f.cJS({providers:[Ue],imports:[[e.ez,t.U8,M.Ng,M.BQ],b.ZD,s.lN,M.Ng,M.BQ]}),we})()},2638:(ze,K,p)=>{"use strict";p.d(K,{JX:()=>xe,Rh:()=>ue,SJ:()=>Se,TM:()=>Pe});var t=p(5303),e=p(9808),f=p(5e3),M=p(508),s=p(3191),b=p(1159),d=p(7579),R=p(4968),h=p(6451),L=p(9300),w=p(4004),D=p(9718),S=p(2722),k=p(1884),E=p(5698),U=p(8675),W=p(8372),j=p(1777),ne=p(6360),ee=p(5664),de=p(925),te=p(226);const ie=["*"],le=["content"];function $(Q,Ue){if(1&Q){const Ce=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(Ce),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&Q){const Ce=f.oxw();f.ekj("mat-drawer-shown",Ce._isShowingBackdrop())}}function ge(Q,Ue){1&Q&&(f.TgZ(0,"mat-drawer-content"),f.Hsn(1,2),f.qZA())}const C=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],i=["mat-drawer","mat-drawer-content","*"];function r(Q,Ue){if(1&Q){const Ce=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(Ce),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&Q){const Ce=f.oxw();f.ekj("mat-drawer-shown",Ce._isShowingBackdrop())}}function u(Q,Ue){1&Q&&(f.TgZ(0,"mat-sidenav-content"),f.Hsn(1,2),f.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],v=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,j.X$)("transform",[(0,j.SB)("open, open-instant",(0,j.oB)({transform:"none",visibility:"visible"})),(0,j.SB)("void",(0,j.oB)({"box-shadow":"none",visibility:"hidden"})),(0,j.eR)("void => open-instant",(0,j.jt)("0ms")),(0,j.eR)("void <=> open, open-instant => void",(0,j.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new f.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function B(){return!1}}),_=new f.OlP("MAT_DRAWER_CONTAINER");let N=(()=>{class Q extends t.PQ{constructor(Ce,q,Ae,ut,Ie){super(Ae,ut,Ie),this._changeDetectorRef=Ce,this._container=q}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Q.\u0275fac=function(Ce){return new(Ce||Q)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>J)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Ce,q){2&Ce&&f.Udp("margin-left",q._container._contentMargins.left,"px")("margin-right",q._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:Q}]),f.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(Ce,q){1&Ce&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),H=(()=>{class Q{constructor(Ce,q,Ae,ut,Ie,De,ae,we){this._elementRef=Ce,this._focusTrapFactory=q,this._focusMonitor=Ae,this._platform=ut,this._ngZone=Ie,this._interactivityChecker=De,this._doc=ae,this._container=we,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.x,this._animationEnd=new d.x,this._animationState="void",this.openedChange=new f.vpe(!0),this._openedStream=this.openedChange.pipe((0,L.h)(ye=>ye),(0,w.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,L.h)(ye=>ye.fromState!==ye.toState&&0===ye.toState.indexOf("open")),(0,D.h)(void 0)),this._closedStream=this.openedChange.pipe((0,L.h)(ye=>!ye),(0,w.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,L.h)(ye=>ye.fromState!==ye.toState&&"void"===ye.toState),(0,D.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new f.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(ye=>{ye?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,L.h)(ye=>ye.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(ye)),(0,S.R)(this._destroyed)).subscribe(ye=>this._ngZone.run(()=>{this.close(),ye.stopPropagation(),ye.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((ye,Y)=>ye.fromState===Y.fromState&&ye.toState===Y.toState)).subscribe(ye=>{const{fromState:Y,toState:z}=ye;(0===z.indexOf("open")&&"void"===Y||"void"===z&&0===Y.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Ce){(Ce="end"===Ce?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Ce),this._position=Ce,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Ce){this._mode=Ce,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Ce){this._disableClose=(0,s.Ig)(Ce)}get autoFocus(){const Ce=this._autoFocus;return null==Ce?"side"===this.mode?"dialog":"first-tabbable":Ce}set autoFocus(Ce){("true"===Ce||"false"===Ce||null==Ce)&&(Ce=(0,s.Ig)(Ce)),this._autoFocus=Ce}get opened(){return this._opened}set opened(Ce){this.toggle((0,s.Ig)(Ce))}_forceFocus(Ce,q){this._interactivityChecker.isFocusable(Ce)||(Ce.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ae=()=>{Ce.removeEventListener("blur",Ae),Ce.removeEventListener("mousedown",Ae),Ce.removeAttribute("tabindex")};Ce.addEventListener("blur",Ae),Ce.addEventListener("mousedown",Ae)})),Ce.focus(q)}_focusByCssSelector(Ce,q){let Ae=this._elementRef.nativeElement.querySelector(Ce);Ae&&this._forceFocus(Ae,q)}_takeFocus(){if(!this._focusTrap)return;const Ce=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(q=>{!q&&"function"==typeof this._elementRef.nativeElement.focus&&Ce.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Ce){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Ce):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Ce=this._doc.activeElement;return!!Ce&&this._elementRef.nativeElement.contains(Ce)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var Ce;this._focusTrap&&this._focusTrap.destroy(),null===(Ce=this._anchor)||void 0===Ce||Ce.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Ce){return this.toggle(!0,Ce)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Ce=!this.opened,q){Ce&&q&&(this._openedVia=q);const Ae=this._setOpen(Ce,!Ce&&this._isFocusWithinDrawer(),this._openedVia||"program");return Ce||(this._openedVia=null),Ae}_setOpen(Ce,q,Ae){return this._opened=Ce,Ce?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",q&&this._restoreFocus(Ae)),this._updateFocusTrapState(),new Promise(ut=>{this.openedChange.pipe((0,E.q)(1)).subscribe(Ie=>ut(Ie?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Ce){const q=this._elementRef.nativeElement,Ae=q.parentNode;"end"===Ce?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ae.insertBefore(this._anchor,q)),Ae.appendChild(q)):this._anchor&&this._anchor.parentNode.insertBefore(q,this._anchor)}}return Q.\u0275fac=function(Ce){return new(Ce||Q)(f.Y36(f.SBq),f.Y36(ee.qV),f.Y36(ee.tE),f.Y36(de.t4),f.Y36(f.R0b),f.Y36(ee.ic),f.Y36(e.K0,8),f.Y36(_,8))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer"]],viewQuery:function(Ce,q){if(1&Ce&&f.Gf(le,5),2&Ce){let Ae;f.iGM(Ae=f.CRH())&&(q._content=Ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ce,q){1&Ce&&f.WFA("@transform.start",function(ut){return q._animationStarted.next(ut)})("@transform.done",function(ut){return q._animationEnd.next(ut)}),2&Ce&&(f.uIk("align",null),f.d8E("@transform",q._animationState),f.ekj("mat-drawer-end","end"===q.position)("mat-drawer-over","over"===q.mode)("mat-drawer-push","push"===q.mode)("mat-drawer-side","side"===q.mode)("mat-drawer-opened",q.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ie,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ce,q){1&Ce&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),Q})(),J=(()=>{class Q{constructor(Ce,q,Ae,ut,Ie,De=!1,ae){this._dir=Ce,this._element=q,this._ngZone=Ae,this._changeDetectorRef=ut,this._animationMode=ae,this._drawers=new f.n_E,this.backdropClick=new f.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,Ce&&Ce.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ie.change().pipe((0,S.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=De}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Ce){this._autosize=(0,s.Ig)(Ce)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Ce){this._backdropOverride=null==Ce?null:(0,s.Ig)(Ce)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,U.O)(this._allDrawers),(0,S.R)(this._destroyed)).subscribe(Ce=>{this._drawers.reset(Ce.filter(q=>!q._container||q._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,U.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Ce=>{this._watchDrawerToggle(Ce),this._watchDrawerPosition(Ce),this._watchDrawerMode(Ce)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,S.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Ce=>Ce.open())}close(){this._drawers.forEach(Ce=>Ce.close())}updateContentMargins(){let Ce=0,q=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Ce+=this._left._getWidth();else if("push"==this._left.mode){const Ae=this._left._getWidth();Ce+=Ae,q-=Ae}if(this._right&&this._right.opened)if("side"==this._right.mode)q+=this._right._getWidth();else if("push"==this._right.mode){const Ae=this._right._getWidth();q+=Ae,Ce-=Ae}Ce=Ce||null,q=q||null,(Ce!==this._contentMargins.left||q!==this._contentMargins.right)&&(this._contentMargins={left:Ce,right:q},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Ce){Ce._animationStarted.pipe((0,L.h)(q=>q.fromState!==q.toState),(0,S.R)(this._drawers.changes)).subscribe(q=>{"open-instant"!==q.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Ce.mode&&Ce.openedChange.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Ce.opened))}_watchDrawerPosition(Ce){!Ce||Ce.onPositionChanged.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Ce){Ce&&Ce._modeChanged.pipe((0,S.R)((0,h.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Ce){const q=this._element.nativeElement.classList,Ae="mat-drawer-container-has-open";Ce?q.add(Ae):q.remove(Ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Ce=>{"end"==Ce.position?this._end=Ce:this._start=Ce}),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(Ce=>Ce&&!Ce.disableClose&&this._canHaveBackdrop(Ce)).forEach(Ce=>Ce._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Ce){return"side"!==Ce.mode||!!this._backdropOverride}_isDrawerOpen(Ce){return null!=Ce&&Ce.opened}}return Q.\u0275fac=function(Ce){return new(Ce||Q)(f.Y36(te.Is,8),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(t.rL),f.Y36(n),f.Y36(ne.Qb,8))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-drawer-container"]],contentQueries:function(Ce,q,Ae){if(1&Ce&&(f.Suo(Ae,N,5),f.Suo(Ae,H,5)),2&Ce){let ut;f.iGM(ut=f.CRH())&&(q._content=ut.first),f.iGM(ut=f.CRH())&&(q._allDrawers=ut)}},viewQuery:function(Ce,q){if(1&Ce&&f.Gf(N,5),2&Ce){let Ae;f.iGM(Ae=f.CRH())&&(q._userContent=Ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ce,q){2&Ce&&f.ekj("mat-drawer-container-explicit-backdrop",q._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f._Bn([{provide:_,useExisting:Q}])],ngContentSelectors:i,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ce,q){1&Ce&&(f.F$t(C),f.YNc(0,$,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,ge,2,0,"mat-drawer-content",1)),2&Ce&&(f.Q6J("ngIf",q.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!q._content))},directives:[N,e.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),Q})(),ue=(()=>{class Q extends N{constructor(Ce,q,Ae,ut,Ie){super(Ce,q,Ae,ut,Ie)}}return Q.\u0275fac=function(Ce){return new(Ce||Q)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>Pe)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Ce,q){2&Ce&&f.Udp("margin-left",q._container._contentMargins.left,"px")("margin-right",q._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:Q}]),f.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(Ce,q){1&Ce&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),xe=(()=>{class Q extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Ce){this._fixedInViewport=(0,s.Ig)(Ce)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Ce){this._fixedTopGap=(0,s.su)(Ce)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Ce){this._fixedBottomGap=(0,s.su)(Ce)}}return Q.\u0275fac=function(){let Ue;return function(q){return(Ue||(Ue=f.n5z(Q)))(q||Q)}}(),Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Ce,q){2&Ce&&(f.uIk("align",null),f.Udp("top",q.fixedInViewport?q.fixedTopGap:null,"px")("bottom",q.fixedInViewport?q.fixedBottomGap:null,"px"),f.ekj("mat-drawer-end","end"===q.position)("mat-drawer-over","over"===q.mode)("mat-drawer-push","push"===q.mode)("mat-drawer-side","side"===q.mode)("mat-drawer-opened",q.opened)("mat-sidenav-fixed",q.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.qOj],ngContentSelectors:ie,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ce,q){1&Ce&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),Q})(),Pe=(()=>{class Q extends J{}return Q.\u0275fac=function(){let Ue;return function(q){return(Ue||(Ue=f.n5z(Q)))(q||Q)}}(),Q.\u0275cmp=f.Xpm({type:Q,selectors:[["mat-sidenav-container"]],contentQueries:function(Ce,q,Ae){if(1&Ce&&(f.Suo(Ae,ue,5),f.Suo(Ae,xe,5)),2&Ce){let ut;f.iGM(ut=f.CRH())&&(q._content=ut.first),f.iGM(ut=f.CRH())&&(q._allDrawers=ut)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Ce,q){2&Ce&&f.ekj("mat-drawer-container-explicit-backdrop",q._backdropOverride)},exportAs:["matSidenavContainer"],features:[f._Bn([{provide:_,useExisting:Q}]),f.qOj],ngContentSelectors:v,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ce,q){1&Ce&&(f.F$t(c),f.YNc(0,r,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,u,2,0,"mat-sidenav-content",1)),2&Ce&&(f.Q6J("ngIf",q.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!q._content))},directives:[ue,e.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),Q})(),Se=(()=>{class Q{}return Q.\u0275fac=function(Ce){return new(Ce||Q)},Q.\u0275mod=f.oAB({type:Q}),Q.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.ZD],t.ZD,M.BQ]}),Q})()},2368:(ze,K,p)=>{"use strict";p.d(K,{Rr:()=>j,rP:()=>te});var t=p(7144),e=p(5e3),f=p(508),M=p(3191),s=p(3075),b=p(6360),d=p(5664);const R=["thumbContainer"],h=["toggleBar"],L=["input"],w=function(ie){return{enterDuration:ie}},D=["*"],S=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const E={provide:s.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class U{constructor(le,$){this.source=le,this.checked=$}}const W=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(ie){this._elementRef=ie}}))));let j=(()=>{class ie extends W{constructor($,ge,C,i,r,u){super($),this._focusMonitor=ge,this._changeDetectorRef=C,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===u}get required(){return this._required}set required($){this._required=(0,M.Ig)($)}get checked(){return this._checked}set checked($){this._checked=(0,M.Ig)($),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe($=>{$||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent($){$.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick($){$.stopPropagation()}writeValue($){this.checked=!!$}registerOnChange($){this._onChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$,this._changeDetectorRef.markForCheck()}focus($,ge){ge?this._focusMonitor.focusVia(this._inputElement,ge,$):this._inputElement.nativeElement.focus($)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new U(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return ie.\u0275fac=function($){return new($||ie)(e.Y36(e.SBq),e.Y36(d.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(S),e.Y36(b.Qb,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["mat-slide-toggle"]],viewQuery:function($,ge){if(1&$&&(e.Gf(R,5),e.Gf(h,5),e.Gf(L,5)),2&$){let C;e.iGM(C=e.CRH())&&(ge._thumbEl=C.first),e.iGM(C=e.CRH())&&(ge._thumbBarEl=C.first),e.iGM(C=e.CRH())&&(ge._inputElement=C.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function($,ge){2&$&&(e.Ikx("id",ge.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.ekj("mat-checked",ge.checked)("mat-disabled",ge.disabled)("mat-slide-toggle-label-before","before"==ge.labelPosition)("_mat-animation-noopable",ge._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[e._Bn([E]),e.qOj],ngContentSelectors:D,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function($,ge){if(1&$&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),e.NdJ("change",function(i){return ge._onChangeEvent(i)})("click",function(i){return ge._onInputClick(i)}),e.qZA(),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.TgZ(9,"span",9),e._UZ(10,"span",10),e.qZA()()(),e.TgZ(11,"span",11,12),e.NdJ("cdkObserveContent",function(){return ge._onLabelTextChange()}),e.TgZ(13,"span",13),e._uU(14,"\xa0"),e.qZA(),e.Hsn(15),e.qZA()()),2&$){const C=e.MAs(1),i=e.MAs(12);e.uIk("for",ge.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(2),e.Q6J("id",ge.inputId)("required",ge.required)("tabIndex",ge.tabIndex)("checked",ge.checked)("disabled",ge.disabled),e.uIk("name",ge.name)("aria-checked",ge.checked)("aria-label",ge.ariaLabel)("aria-labelledby",ge.ariaLabelledby)("aria-describedby",ge.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",C)("matRippleDisabled",ge.disableRipple||ge.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,w,ge._noopAnimations?0:150))}},directives:[f.wG,t.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),ie})(),de=(()=>{class ie{}return ie.\u0275fac=function($){return new($||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})(),te=(()=>{class ie{}return ie.\u0275fac=function($){return new($||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[de,f.si,f.BQ,t.Q8],de,f.BQ]}),ie})()},7261:(ze,K,p)=>{"use strict";p.d(K,{Ve:()=>le,ZX:()=>ie,ux:()=>C});var t=p(9776),e=p(7429),f=p(9808),M=p(5e3),s=p(508),b=p(7423),d=p(7579),R=p(5698),h=p(2722),L=p(1777),w=p(925),D=p(5113),S=p(5664);function k(i,r){if(1&i){const u=M.EpF();M.TgZ(0,"div",2)(1,"button",3),M.NdJ("click",function(){return M.CHM(u),M.oxw().action()}),M._uU(2),M.qZA()()}if(2&i){const u=M.oxw();M.xp6(2),M.Oqu(u.data.action)}}function E(i,r){}const U=new M.OlP("MatSnackBarData");class W{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const j=Math.pow(2,31)-1;class ne{constructor(r,u){this._overlayRef=u,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,j))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let ee=(()=>{class i{constructor(u,c){this.snackBarRef=u,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(ne),M.Y36(U))},i.\u0275cmp=M.Xpm({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(u,c){1&u&&(M.TgZ(0,"span",0),M._uU(1),M.qZA(),M.YNc(2,k,3,1,"div",1)),2&u&&(M.xp6(1),M.Oqu(c.data.message),M.xp6(1),M.Q6J("ngIf",c.hasAction))},directives:[b.lW,f.O5],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),i})();const de={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let te=(()=>{class i extends e.en{constructor(u,c,v,T,I){super(),this._ngZone=u,this._elementRef=c,this._changeDetectorRef=v,this._platform=T,this.snackBarConfig=I,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this.attachDomPortal=y=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(y)),this._live="assertive"!==I.politeness||I.announcementMessage?"off"===I.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(u)}attachTemplatePortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(u)}onAnimationEnd(u){const{fromState:c,toState:v}=u;if(("void"===v&&"void"!==c||"hidden"===v)&&this._completeExit(),"visible"===v){const T=this._onEnter;this._ngZone.run(()=>{T.next(),T.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const u=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(v=>u.classList.add(v)):u.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&u.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&u.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&c){let v=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(v=document.activeElement),u.removeAttribute("aria-hidden"),c.appendChild(u),null==v||v.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(M.R0b),M.Y36(M.SBq),M.Y36(M.sBO),M.Y36(w.t4),M.Y36(W))},i.\u0275cmp=M.Xpm({type:i,selectors:[["snack-bar-container"]],viewQuery:function(u,c){if(1&u&&M.Gf(e.Pl,7),2&u){let v;M.iGM(v=M.CRH())&&(c._portalOutlet=v.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(u,c){1&u&&M.WFA("@state.done",function(T){return c.onAnimationEnd(T)}),2&u&&M.d8E("@state",c._animationState)},features:[M.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(u,c){1&u&&(M.TgZ(0,"div",0),M.YNc(1,E,0,0,"ng-template",1),M.qZA(),M._UZ(2,"div")),2&u&&(M.xp6(2),M.uIk("aria-live",c._live)("role",c._role))},directives:[e.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[de.snackBarState]}}),i})(),ie=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=M.oAB({type:i}),i.\u0275inj=M.cJS({imports:[[t.U8,e.eL,f.ez,b.ot,s.BQ],s.BQ]}),i})();const le=new M.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function $(){return new W}});let ge=(()=>{class i{constructor(u,c,v,T,I,y){this._overlay=u,this._live=c,this._injector=v,this._breakpointObserver=T,this._parentSnackBar=I,this._defaultConfig=y,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}openFromComponent(u,c){return this._attach(u,c)}openFromTemplate(u,c){return this._attach(u,c)}open(u,c="",v){const T=Object.assign(Object.assign({},this._defaultConfig),v);return T.data={message:u,action:c},T.announcementMessage===u&&(T.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,T)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,c){const T=M.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:W,useValue:c}]}),I=new e.C5(this.snackBarContainerComponent,c.viewContainerRef,T),y=u.attach(I);return y.instance.snackBarConfig=c,y.instance}_attach(u,c){const v=Object.assign(Object.assign(Object.assign({},new W),this._defaultConfig),c),T=this._createOverlay(v),I=this._attachSnackBarContainer(T,v),y=new ne(I,T);if(u instanceof M.Rgc){const n=new e.UE(u,null,{$implicit:v.data,snackBarRef:y});y.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(v,y),_=new e.C5(u,void 0,n),B=I.attachComponentPortal(_);y.instance=B.instance}return this._breakpointObserver.observe(D.u3.HandsetPortrait).pipe((0,h.R)(T.detachments())).subscribe(n=>{T.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),v.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(v.announcementMessage,v.politeness)}),this._animateSnackBar(y,v),this._openedSnackBarRef=y,this._openedSnackBarRef}_animateSnackBar(u,c){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),c.duration&&c.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(c.duration))}_createOverlay(u){const c=new t.X_;c.direction=u.direction;let v=this._overlay.position().global();const T="rtl"===u.direction,I="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!T||"end"===u.horizontalPosition&&T,y=!I&&"center"!==u.horizontalPosition;return I?v.left("0"):y?v.right("0"):v.centerHorizontally(),"top"===u.verticalPosition?v.top("0"):v.bottom("0"),c.positionStrategy=v,this._overlay.create(c)}_createInjector(u,c){return M.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:c},{provide:U,useValue:u.data}]})}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(le))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac}),i})(),C=(()=>{class i extends ge{constructor(u,c,v,T,I,y){super(u,c,v,T,I,y),this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=te,this.handsetCssClass="mat-snack-bar-handset"}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(le))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac,providedIn:ie}),i})()},4847:(ze,K,p)=>{"use strict";p.d(K,{JX:()=>i,YE:()=>le,nU:()=>C});var t=p(5e3),e=p(3191),f=p(1159),M=p(508),s=p(7579),b=p(6451),d=p(1777),R=p(5664),h=p(9808);const L=["mat-sort-header",""];function w(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!1}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&r){const c=t.oxw();t.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",c._getArrowDirectionState())}}const D=["*"],S=M.mZ.ENTERING+" "+M.yN.STANDARD_CURVE,k={indicator:(0,d.X$)("indicator",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"translateY(0px)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"translateY(10px)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),leftPointer:(0,d.X$)("leftPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),rightPointer:(0,d.X$)("rightPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),arrowOpacity:(0,d.X$)("arrowOpacity",[(0,d.SB)("desc-to-active, asc-to-active, active",(0,d.oB)({opacity:1})),(0,d.SB)("desc-to-hint, asc-to-hint, hint",(0,d.oB)({opacity:.54})),(0,d.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,d.oB)({opacity:0})),(0,d.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,d.jt)("0ms")),(0,d.eR)("* <=> *",(0,d.jt)(S))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(-25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-desc, * => active-to-desc",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(25%)"})]))),(0,d.eR)("* => asc-to-hint, * => asc-to-active",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-asc, * => active-to-asc",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(-25%)"})]))),(0,d.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,d.oB)({transform:"translateY(0)"})),(0,d.SB)("hint-to-desc, active-to-desc, desc",(0,d.oB)({transform:"translateY(-25%)"})),(0,d.SB)("hint-to-asc, active-to-asc, asc",(0,d.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,d.X$)("allowChildren",[(0,d.eR)("* <=> *",[(0,d.IO)("@*",(0,d.pV)(),{optional:!0})])])};let ne=(()=>{class r{constructor(){this.changes=new s.x}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const de={provide:ne,deps:[[new t.FiY,new t.tp0,ne]],useFactory:function ee(r){return r||new ne}},te=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),ie=(0,M.dB)((0,M.Id)(class{}));let le=(()=>{class r extends ie{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new s.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.Ig)(c)}register(c){this.sortables.set(c.id,c)}deregister(c){this.sortables.delete(c.id)}sort(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(c){var v,T,I;if(!c)return"";const y=null!==(T=null!==(v=null==c?void 0:c.disableClear)&&void 0!==v?v:this.disableClear)&&void 0!==T?T:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function $(r,u){let c=["asc","desc"];return"desc"==r&&c.reverse(),u||c.push(""),c}(c.start||this.start,y),_=n.indexOf(this.direction)+1;return _>=n.length&&(_=0),n[_]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(te,8))},r.\u0275dir=t.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]}),r})();const ge=(0,M.Id)(class{});let C=(()=>{class r extends ge{constructor(c,v,T,I,y,n,_){super(),this._intl=c,this._changeDetectorRef=v,this._sort=T,this._columnDef=I,this._focusMonitor=y,this._elementRef=n,this._ariaDescriber=_,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(c){this._updateSortActionDescription(c)}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.Ig)(c)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(c=>{const v=!!c;v!==this._showIndicatorHint&&(this._setIndicatorHintVisible(v),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(c){!this._isDisabled()&&(c.keyCode===f.L_||c.keyCode===f.K5)&&(c.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const c=this._viewState.fromState;return(c?`${c}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(c){var v,T;this._sortButton&&(null===(v=this._ariaDescriber)||void 0===v||v.removeDescription(this._sortButton,this._sortActionDescription),null===(T=this._ariaDescriber)||void 0===T||T.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,b.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(ne),t.Y36(t.sBO),t.Y36(le,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(R.tE),t.Y36(t.SBq),t.Y36(R.$s,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v._handleClick()})("keydown",function(I){return v._handleKeydown(I)})("mouseenter",function(){return v._setIndicatorHintVisible(!0)})("mouseleave",function(){return v._setIndicatorHintVisible(!1)}),2&c&&(t.uIk("aria-sort",v._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",v._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:L,ngContentSelectors:D,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,w,6,6,"div",2),t.qZA()),2&c&&(t.ekj("mat-sort-header-sorted",v._isSorted())("mat-sort-header-position-before","before"==v.arrowPosition),t.uIk("tabindex",v._isDisabled()?null:0)("role",v._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",v._renderArrow()))},directives:[h.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),r})(),i=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[de],imports:[[h.ez,M.BQ]]}),r})()},5615:(ze,K,p)=>{"use strict";p.d(K,{C0:()=>Ce,Ic:()=>De,T5:()=>we,VY:()=>N,Vq:()=>Ie,fd:()=>ae,z9:()=>Q});var t=p(7429),e=p(1555),f=p(9808),M=p(5e3),s=p(7423),b=p(508),d=p(5245),R=p(7579),h=p(727),L=p(5664),w=p(3900),D=p(4004),S=p(8675),k=p(2722),E=p(1884),U=p(1777),W=p(226);function j(ye,Y){if(1&ye&&M.GkF(0,8),2&ye){const z=M.oxw();M.Q6J("ngTemplateOutlet",z.iconOverrides[z.state])("ngTemplateOutletContext",z._getIconContext())}}function ne(ye,Y){if(1&ye&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&ye){const z=M.oxw(2);M.xp6(1),M.Oqu(z._getDefaultTextForState(z.state))}}function ee(ye,Y){if(1&ye&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&ye){const z=M.oxw(2);M.xp6(1),M.Oqu(z._intl.completedLabel)}}function de(ye,Y){if(1&ye&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&ye){const z=M.oxw(2);M.xp6(1),M.Oqu(z._intl.editableLabel)}}function te(ye,Y){if(1&ye&&(M.TgZ(0,"mat-icon",13),M._uU(1),M.qZA()),2&ye){const z=M.oxw(2);M.xp6(1),M.Oqu(z._getDefaultTextForState(z.state))}}function ie(ye,Y){if(1&ye&&(M.ynx(0,9),M.YNc(1,ne,2,1,"span",10),M.YNc(2,ee,2,1,"span",11),M.YNc(3,de,2,1,"span",11),M.YNc(4,te,2,1,"mat-icon",12),M.BQk()),2&ye){const z=M.oxw();M.Q6J("ngSwitch",z.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===z.state),M.xp6(1),M.Q6J("ngIf","edit"===z.state)}}function le(ye,Y){if(1&ye&&(M.TgZ(0,"div",15),M.GkF(1,16),M.qZA()),2&ye){const z=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",z._templateLabel().template)}}function $(ye,Y){if(1&ye&&(M.TgZ(0,"div",15),M._uU(1),M.qZA()),2&ye){const z=M.oxw();M.xp6(1),M.Oqu(z.label)}}function ge(ye,Y){if(1&ye&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&ye){const z=M.oxw();M.xp6(1),M.Oqu(z._intl.optionalLabel)}}function C(ye,Y){if(1&ye&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&ye){const z=M.oxw();M.xp6(1),M.Oqu(z.errorMessage)}}function i(ye,Y){}function r(ye,Y){if(1&ye&&(M.Hsn(0),M.YNc(1,i,0,0,"ng-template",0)),2&ye){const z=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",z._portal)}}const u=["*"];function c(ye,Y){1&ye&&M._UZ(0,"div",9)}const v=function(ye,Y){return{step:ye,i:Y}};function T(ye,Y){if(1&ye&&(M.ynx(0),M.GkF(1,7),M.YNc(2,c,1,0,"div",8),M.BQk()),2&ye){const z=Y.$implicit,be=Y.index,fe=Y.last;M.oxw(2);const He=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",He)("ngTemplateOutletContext",M.WLB(3,v,z,be)),M.xp6(1),M.Q6J("ngIf",!fe)}}function I(ye,Y){if(1&ye){const z=M.EpF();M.TgZ(0,"div",10),M.NdJ("@horizontalStepTransition.done",function(fe){return M.CHM(z),M.oxw(2)._animationDone.next(fe)}),M.GkF(1,11),M.qZA()}if(2&ye){const z=Y.$implicit,be=Y.index,fe=M.oxw(2);M.Q6J("@horizontalStepTransition",fe._getAnimationDirection(be))("id",fe._getStepContentId(be)),M.uIk("aria-labelledby",fe._getStepLabelId(be))("aria-expanded",fe.selectedIndex===be),M.xp6(1),M.Q6J("ngTemplateOutlet",z.content)}}function y(ye,Y){if(1&ye&&(M.ynx(0),M.TgZ(1,"div",3),M.YNc(2,T,3,6,"ng-container",4),M.qZA(),M.TgZ(3,"div",5),M.YNc(4,I,2,5,"div",6),M.qZA(),M.BQk()),2&ye){const z=M.oxw();M.xp6(2),M.Q6J("ngForOf",z.steps),M.xp6(2),M.Q6J("ngForOf",z.steps)}}function n(ye,Y){if(1&ye){const z=M.EpF();M.TgZ(0,"div",13),M.GkF(1,7),M.TgZ(2,"div",14)(3,"div",15),M.NdJ("@verticalStepTransition.done",function(fe){return M.CHM(z),M.oxw(2)._animationDone.next(fe)}),M.TgZ(4,"div",16),M.GkF(5,11),M.qZA()()()()}if(2&ye){const z=Y.$implicit,be=Y.index,fe=Y.last,He=M.oxw(2),pt=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",pt)("ngTemplateOutletContext",M.WLB(9,v,z,be)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!fe),M.xp6(1),M.Q6J("@verticalStepTransition",He._getAnimationDirection(be))("id",He._getStepContentId(be)),M.uIk("aria-labelledby",He._getStepLabelId(be))("aria-expanded",He.selectedIndex===be),M.xp6(2),M.Q6J("ngTemplateOutlet",z.content)}}function _(ye,Y){if(1&ye&&(M.ynx(0),M.YNc(1,n,6,12,"div",12),M.BQk()),2&ye){const z=M.oxw();M.xp6(1),M.Q6J("ngForOf",z.steps)}}function B(ye,Y){if(1&ye){const z=M.EpF();M.TgZ(0,"mat-step-header",17),M.NdJ("click",function(){return M.CHM(z).step.select()})("keydown",function(fe){return M.CHM(z),M.oxw()._onKeydown(fe)}),M.qZA()}if(2&ye){const z=Y.step,be=Y.i,fe=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===fe.orientation)("mat-vertical-stepper-header","vertical"===fe.orientation),M.Q6J("tabIndex",fe._getFocusIndex()===be?0:-1)("id",fe._getStepLabelId(be))("index",be)("state",fe._getIndicatorType(be,z.state))("label",z.stepLabel||z.label)("selected",fe.selectedIndex===be)("active",fe._stepIsNavigable(be,z))("optional",z.optional)("errorMessage",z.errorMessage)("iconOverrides",fe._iconOverrides)("disableRipple",fe.disableRipple||!fe._stepIsNavigable(be,z))("color",z.color||fe.color),M.uIk("aria-posinset",be+1)("aria-setsize",fe.steps.length)("aria-controls",fe._getStepContentId(be))("aria-selected",fe.selectedIndex==be)("aria-label",z.ariaLabel||null)("aria-labelledby",!z.ariaLabel&&z.ariaLabelledby?z.ariaLabelledby:null)("aria-disabled",!fe._stepIsNavigable(be,z)||null)}}let N=(()=>{class ye extends e.u6{}return ye.\u0275fac=function(){let Y;return function(be){return(Y||(Y=M.n5z(ye)))(be||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["","matStepLabel",""]],features:[M.qOj]}),ye})(),H=(()=>{class ye{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ye.\u0275fac=function(z){return new(z||ye)},ye.\u0275prov=M.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const ue={provide:H,deps:[[new M.FiY,new M.tp0,H]],useFactory:function J(ye){return ye||new H}},xe=(0,b.pj)(class extends e.KL{constructor(Y){super(Y)}},"primary");let Pe=(()=>{class ye extends xe{constructor(z,be,fe,He){super(fe),this._intl=z,this._focusMonitor=be,this._intlSubscription=z.changes.subscribe(()=>He.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(z,be){z?this._focusMonitor.focusVia(this._elementRef,z,be):this._elementRef.nativeElement.focus(be)}_stringLabel(){return this.label instanceof N?null:this.label}_templateLabel(){return this.label instanceof N?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(z){return"number"==z?`${this.index+1}`:"edit"==z?"create":"error"==z?"warning":z}}return ye.\u0275fac=function(z){return new(z||ye)(M.Y36(H),M.Y36(L.tE),M.Y36(M.SBq),M.Y36(M.sBO))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[M.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(z,be){1&z&&(M._UZ(0,"div",0),M.TgZ(1,"div")(2,"div",1),M.YNc(3,j,1,2,"ng-container",2),M.YNc(4,ie,5,4,"ng-container",3),M.qZA()(),M.TgZ(5,"div",4),M.YNc(6,le,2,1,"div",5),M.YNc(7,$,2,1,"div",5),M.YNc(8,ge,2,1,"div",6),M.YNc(9,C,2,1,"div",7),M.qZA()),2&z&&(M.Q6J("matRippleTrigger",be._getHostElement())("matRippleDisabled",be.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",be.state," mat-step-icon"),M.ekj("mat-step-icon-selected",be.selected),M.xp6(1),M.Q6J("ngSwitch",!(!be.iconOverrides||!be.iconOverrides[be.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",be.active)("mat-step-label-selected",be.selected)("mat-step-label-error","error"==be.state),M.xp6(1),M.Q6J("ngIf",be._templateLabel()),M.xp6(1),M.Q6J("ngIf",be._stringLabel()),M.xp6(1),M.Q6J("ngIf",be.optional&&"error"!=be.state),M.xp6(1),M.Q6J("ngIf","error"==be.state))},directives:[d.Hw,b.wG,f.RF,f.n9,f.tP,f.ED,f.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ye})();const Se={horizontalStepTransition:(0,U.X$)("horizontalStepTransition",[(0,U.SB)("previous",(0,U.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({transform:"none",visibility:"inherit"})),(0,U.SB)("next",(0,U.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,U.eR)("* => *",(0,U.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,U.X$)("verticalStepTransition",[(0,U.SB)("previous",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("next",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({height:"*",visibility:"inherit"})),(0,U.eR)("* <=> current",(0,U.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let Q=(()=>{class ye{constructor(z){this.templateRef=z}}return ye.\u0275fac=function(z){return new(z||ye)(M.Y36(M.Rgc))},ye.\u0275dir=M.lG2({type:ye,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ye})(),Ue=(()=>{class ye{constructor(z){this._template=z}}return ye.\u0275fac=function(z){return new(z||ye)(M.Y36(M.Rgc))},ye.\u0275dir=M.lG2({type:ye,selectors:[["ng-template","matStepContent",""]]}),ye})(),Ce=(()=>{class ye extends e.be{constructor(z,be,fe,He){super(z,He),this._errorStateMatcher=be,this._viewContainerRef=fe,this._isSelected=h.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,w.w)(()=>this._stepper.selectionChange.pipe((0,D.U)(z=>z.selectedStep===this),(0,S.O)(this._stepper.selected===this)))).subscribe(z=>{z&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(z,be){return this._errorStateMatcher.isErrorState(z,be)||!!(z&&z.invalid&&this.interacted)}}return ye.\u0275fac=function(z){return new(z||ye)(M.Y36((0,M.Gpc)(()=>Ie)),M.Y36(b.rD,4),M.Y36(M.s_b),M.Y36(e.gx,8))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-step"]],contentQueries:function(z,be,fe){if(1&z&&(M.Suo(fe,N,5),M.Suo(fe,Ue,5)),2&z){let He;M.iGM(He=M.CRH())&&(be.stepLabel=He.first),M.iGM(He=M.CRH())&&(be._lazyContent=He.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:b.rD,useExisting:ye},{provide:e.be,useExisting:ye}]),M.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(z,be){1&z&&(M.F$t(),M.YNc(0,r,2,1,"ng-template"))},directives:[t.Pl],encapsulation:2,changeDetection:0}),ye})(),q=(()=>{class ye extends e.B8{}return ye.\u0275fac=function(){let Y;return function(be){return(Y||(Y=M.n5z(ye)))(be||ye)}}(),ye.\u0275dir=M.lG2({type:ye,features:[M.qOj]}),ye})(),Ae=(()=>{class ye extends q{}return ye.\u0275fac=function(){let Y;return function(be){return(Y||(Y=M.n5z(ye)))(be||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["mat-horizontal-stepper"]],features:[M.qOj]}),ye})(),ut=(()=>{class ye extends q{}return ye.\u0275fac=function(){let Y;return function(be){return(Y||(Y=M.n5z(ye)))(be||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["mat-vertical-stepper"]],features:[M.qOj]}),ye})(),Ie=(()=>{class ye extends e.B8{constructor(z,be,fe,He){super(z,be,fe,He),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const pt=fe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===pt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:z,templateRef:be})=>this._iconOverrides[z]=be),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,E.x)((z,be)=>z.fromState===be.fromState&&z.toState===be.toState),(0,k.R)(this._destroyed)).subscribe(z=>{"current"===z.toState&&this.animationDone.emit()})}_stepIsNavigable(z,be){return be.completed||this.selectedIndex===z||!this.linear}}return ye.\u0275fac=function(z){return new(z||ye)(M.Y36(W.Is,8),M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(f.K0))},ye.\u0275cmp=M.Xpm({type:ye,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(z,be,fe){if(1&z&&(M.Suo(fe,Ce,5),M.Suo(fe,Q,5)),2&z){let He;M.iGM(He=M.CRH())&&(be._steps=He),M.iGM(He=M.CRH())&&(be._icons=He)}},viewQuery:function(z,be){if(1&z&&M.Gf(Pe,5),2&z){let fe;M.iGM(fe=M.CRH())&&(be._stepHeader=fe)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(z,be){2&z&&(M.uIk("aria-orientation",be.orientation),M.ekj("mat-stepper-horizontal","horizontal"===be.orientation)("mat-stepper-vertical","vertical"===be.orientation)("mat-stepper-label-position-end","horizontal"===be.orientation&&"end"==be.labelPosition)("mat-stepper-label-position-bottom","horizontal"===be.orientation&&"bottom"==be.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[M._Bn([{provide:e.B8,useExisting:ye},{provide:Ae,useExisting:ye},{provide:ut,useExisting:ye}]),M.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(z,be){1&z&&(M.ynx(0,0),M.YNc(1,y,5,2,"ng-container",1),M.YNc(2,_,2,1,"ng-container",1),M.BQk(),M.YNc(3,B,1,23,"ng-template",null,2,M.W1O)),2&z&&(M.Q6J("ngSwitch",be.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},directives:[Pe,f.RF,f.n9,f.sg,f.tP,f.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Se.horizontalStepTransition,Se.verticalStepTransition]},changeDetection:0}),ye})(),De=(()=>{class ye extends e.st{}return ye.\u0275fac=function(){let Y;return function(be){return(Y||(Y=M.n5z(ye)))(be||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(z,be){2&z&&M.Ikx("type",be.type)},inputs:{type:"type"},features:[M.qOj]}),ye})(),ae=(()=>{class ye extends e.po{}return ye.\u0275fac=function(){let Y;return function(be){return(Y||(Y=M.n5z(ye)))(be||ye)}}(),ye.\u0275dir=M.lG2({type:ye,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(z,be){2&z&&M.Ikx("type",be.type)},inputs:{type:"type"},features:[M.qOj]}),ye})(),we=(()=>{class ye{}return ye.\u0275fac=function(z){return new(z||ye)},ye.\u0275mod=M.oAB({type:ye}),ye.\u0275inj=M.cJS({providers:[ue,b.rD],imports:[[b.BQ,f.ez,t.eL,s.ot,e.U5,d.Ps,b.si],b.BQ]}),ye})()},2075:(ze,K,p)=>{"use strict";p.d(K,{ev:()=>Ge,Dz:()=>Ht,w1:()=>nt,yh:()=>Ee,mD:()=>Ne,Q2:()=>Jt,Ke:()=>lt,ge:()=>Xe,fO:()=>it,XQ:()=>mi,as:()=>ot,Gk:()=>$t,nj:()=>Ct,BZ:()=>mt,by:()=>Ui,p0:()=>Ji});var t=p(5e3),e=p(3191),f=p(449),M=p(9808),s=p(7579),b=p(457),d=p(1135),R=p(5191),h=p(9646),L=p(2722),w=p(5698),D=p(226),S=p(925),k=p(5303);const E=[[["caption"]],[["colgroup"],["col"]]],U=["caption","colgroup, col"];function ne(Be){return class extends Be{constructor(...Tt){super(...Tt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Tt){const _e=this._sticky;this._sticky=(0,e.Ig)(Tt),this._hasStickyChanged=_e!==this._sticky}hasStickyChanged(){const Tt=this._hasStickyChanged;return this._hasStickyChanged=!1,Tt}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new t.OlP("CDK_TABLE");let te=(()=>{class Be{constructor(_e){this.template=_e}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkCellDef",""]]}),Be})(),ie=(()=>{class Be{constructor(_e){this.template=_e}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkHeaderCellDef",""]]}),Be})(),le=(()=>{class Be{constructor(_e){this.template=_e}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkFooterCellDef",""]]}),Be})();class ${}const ge=ne($);let C=(()=>{class Be extends ge{constructor(_e){super(),this._table=_e,this._stickyEnd=!1}get name(){return this._name}set name(_e){this._setNameInput(_e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(_e){const Ke=this._stickyEnd;this._stickyEnd=(0,e.Ig)(_e),this._hasStickyChanged=Ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(_e){_e&&(this._name=_e,this.cssClassFriendlyName=_e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(ee,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkColumnDef",""]],contentQueries:function(_e,Ke,yt){if(1&_e&&(t.Suo(yt,te,5),t.Suo(yt,ie,5),t.Suo(yt,le,5)),2&_e){let re;t.iGM(re=t.CRH())&&(Ke.cell=re.first),t.iGM(re=t.CRH())&&(Ke.headerCell=re.first),t.iGM(re=t.CRH())&&(Ke.footerCell=re.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Be}]),t.qOj]}),Be})();class i{constructor(Tt,_e){_e.nativeElement.classList.add(...Tt._columnCssClassName)}}let r=(()=>{class Be extends i{constructor(_e,Ke){super(_e,Ke)}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(C),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),Be})(),u=(()=>{class Be extends i{constructor(_e,Ke){var yt;if(super(_e,Ke),1===(null===(yt=_e._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const re=_e._table._elementRef.nativeElement.getAttribute("role");Ke.nativeElement.setAttribute("role","grid"===re||"treegrid"===re?"gridcell":"cell")}}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(C),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),Be})(),c=(()=>{class Be extends i{constructor(_e,Ke){var yt;if(super(_e,Ke),1===(null===(yt=_e._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const re=_e._table._elementRef.nativeElement.getAttribute("role");Ke.nativeElement.setAttribute("role","grid"===re||"treegrid"===re?"gridcell":"cell")}}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(C),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),Be})();class v{constructor(){this.tasks=[],this.endTasks=[]}}const T=new t.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Be{constructor(_e){this._ngZone=_e,this._currentSchedule=null,this._destroyed=new s.x}schedule(_e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(_e)}scheduleEnd(_e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(_e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new v,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const _e=this._currentSchedule;this._currentSchedule=new v;for(const Ke of _e.tasks)Ke();for(const Ke of _e.endTasks)Ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,b.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,w.q)(1))}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.LFG(t.R0b))},Be.\u0275prov=t.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),n=(()=>{class Be{constructor(_e,Ke){this.template=_e,this._differs=Ke}ngOnChanges(_e){if(!this._columnsDiffer){const Ke=_e.columns&&_e.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ke).create(),this._columnsDiffer.diff(Ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(_e){return this instanceof N?_e.headerCell.template:this instanceof ue?_e.footerCell.template:_e.cell.template}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Be.\u0275dir=t.lG2({type:Be,features:[t.TTD]}),Be})();class _ extends n{}const B=ne(_);let N=(()=>{class Be extends B{constructor(_e,Ke,yt){super(_e,Ke),this._table=yt}ngOnChanges(_e){super.ngOnChanges(_e)}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Be})();class H extends n{}const J=ne(H);let ue=(()=>{class Be extends J{constructor(_e,Ke,yt){super(_e,Ke),this._table=yt}ngOnChanges(_e){super.ngOnChanges(_e)}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Be})(),xe=(()=>{class Be extends n{constructor(_e,Ke,yt){super(_e,Ke),this._table=yt}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),Be})(),Pe=(()=>{class Be{constructor(_e){this._viewContainer=_e,Be.mostRecentCellOutlet=this}ngOnDestroy(){Be.mostRecentCellOutlet===this&&(Be.mostRecentCellOutlet=null)}}return Be.mostRecentCellOutlet=null,Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","cdkCellOutlet",""]]}),Be})(),Se=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Ke){1&_e&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Be})(),Q=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Ke){1&_e&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Be})(),Ue=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Ke){1&_e&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Be})(),Ce=(()=>{class Be{constructor(_e){this.templateRef=_e,this._contentClassName="cdk-no-data-row"}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.Rgc))},Be.\u0275dir=t.lG2({type:Be,selectors:[["ng-template","cdkNoDataRow",""]]}),Be})();const q=["top","bottom","left","right"];class Ae{constructor(Tt,_e,Ke,yt,re=!0,qe=!0,bt){this._isNativeHtmlTable=Tt,this._stickCellCss=_e,this.direction=Ke,this._coalescedStyleScheduler=yt,this._isBrowser=re,this._needsPositionStickyOnElement=qe,this._positionListener=bt,this._cachedCellWidths=[],this._borderCellCss={top:`${_e}-border-elem-top`,bottom:`${_e}-border-elem-bottom`,left:`${_e}-border-elem-left`,right:`${_e}-border-elem-right`}}clearStickyPositioning(Tt,_e){const Ke=[];for(const yt of Tt)if(yt.nodeType===yt.ELEMENT_NODE){Ke.push(yt);for(let re=0;re<yt.children.length;re++)Ke.push(yt.children[re])}this._coalescedStyleScheduler.schedule(()=>{for(const yt of Ke)this._removeStickyStyle(yt,_e)})}updateStickyColumns(Tt,_e,Ke,yt=!0){if(!Tt.length||!this._isBrowser||!_e.some(Zi=>Zi)&&!Ke.some(Zi=>Zi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const re=Tt[0],qe=re.children.length,bt=this._getCellWidths(re,yt),Vt=this._getStickyStartColumnPositions(bt,_e),bi=this._getStickyEndColumnPositions(bt,Ke),wi=_e.lastIndexOf(!0),Xi=Ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Zi="rtl"===this.direction,on=Zi?"right":"left",mn=Zi?"left":"right";for(const ti of Tt)for(let Pi=0;Pi<qe;Pi++){const st=ti.children[Pi];_e[Pi]&&this._addStickyStyle(st,on,Vt[Pi],Pi===wi),Ke[Pi]&&this._addStickyStyle(st,mn,bi[Pi],Pi===Xi)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===wi?[]:bt.slice(0,wi+1).map((ti,Pi)=>_e[Pi]?ti:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Xi?[]:bt.slice(Xi).map((ti,Pi)=>Ke[Pi+Xi]?ti:null).reverse()}))})}stickRows(Tt,_e,Ke){if(!this._isBrowser)return;const yt="bottom"===Ke?Tt.slice().reverse():Tt,re="bottom"===Ke?_e.slice().reverse():_e,qe=[],bt=[],Vt=[];for(let wi=0,Xi=0;wi<yt.length;wi++){if(!re[wi])continue;qe[wi]=Xi;const Zi=yt[wi];Vt[wi]=this._isNativeHtmlTable?Array.from(Zi.children):[Zi];const on=Zi.getBoundingClientRect().height;Xi+=on,bt[wi]=on}const bi=re.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var wi,Xi;for(let Zi=0;Zi<yt.length;Zi++){if(!re[Zi])continue;const on=qe[Zi],mn=Zi===bi;for(const ti of Vt[Zi])this._addStickyStyle(ti,Ke,on,mn)}"top"===Ke?null===(wi=this._positionListener)||void 0===wi||wi.stickyHeaderRowsUpdated({sizes:bt,offsets:qe,elements:Vt}):null===(Xi=this._positionListener)||void 0===Xi||Xi.stickyFooterRowsUpdated({sizes:bt,offsets:qe,elements:Vt})})}updateStickyFooterContainer(Tt,_e){if(!this._isNativeHtmlTable)return;const Ke=Tt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{_e.some(yt=>!yt)?this._removeStickyStyle(Ke,["bottom"]):this._addStickyStyle(Ke,"bottom",0,!1)})}_removeStickyStyle(Tt,_e){for(const yt of _e)Tt.style[yt]="",Tt.classList.remove(this._borderCellCss[yt]);q.some(yt=>-1===_e.indexOf(yt)&&Tt.style[yt])?Tt.style.zIndex=this._getCalculatedZIndex(Tt):(Tt.style.zIndex="",this._needsPositionStickyOnElement&&(Tt.style.position=""),Tt.classList.remove(this._stickCellCss))}_addStickyStyle(Tt,_e,Ke,yt){Tt.classList.add(this._stickCellCss),yt&&Tt.classList.add(this._borderCellCss[_e]),Tt.style[_e]=`${Ke}px`,Tt.style.zIndex=this._getCalculatedZIndex(Tt),this._needsPositionStickyOnElement&&(Tt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Tt){const _e={top:100,bottom:10,left:1,right:1};let Ke=0;for(const yt of q)Tt.style[yt]&&(Ke+=_e[yt]);return Ke?`${Ke}`:""}_getCellWidths(Tt,_e=!0){if(!_e&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ke=[],yt=Tt.children;for(let re=0;re<yt.length;re++)Ke.push(yt[re].getBoundingClientRect().width);return this._cachedCellWidths=Ke,Ke}_getStickyStartColumnPositions(Tt,_e){const Ke=[];let yt=0;for(let re=0;re<Tt.length;re++)_e[re]&&(Ke[re]=yt,yt+=Tt[re]);return Ke}_getStickyEndColumnPositions(Tt,_e){const Ke=[];let yt=0;for(let re=Tt.length;re>0;re--)_e[re]&&(Ke[re]=yt,yt+=Tt[re]);return Ke}}const be=new t.OlP("CDK_SPL");let He=(()=>{class Be{constructor(_e,Ke){this.viewContainer=_e,this.elementRef=Ke}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","rowOutlet",""]]}),Be})(),pt=(()=>{class Be{constructor(_e,Ke){this.viewContainer=_e,this.elementRef=Ke}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","headerRowOutlet",""]]}),Be})(),et=(()=>{class Be{constructor(_e,Ke){this.viewContainer=_e,this.elementRef=Ke}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","footerRowOutlet",""]]}),Be})(),Lt=(()=>{class Be{constructor(_e,Ke){this.viewContainer=_e,this.elementRef=Ke}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.s_b),t.Y36(t.SBq))},Be.\u0275dir=t.lG2({type:Be,selectors:[["","noDataRowOutlet",""]]}),Be})(),Gt=(()=>{class Be{constructor(_e,Ke,yt,re,qe,bt,Vt,bi,wi,Xi,Zi,on){this._differs=_e,this._changeDetectorRef=Ke,this._elementRef=yt,this._dir=qe,this._platform=Vt,this._viewRepeater=bi,this._coalescedStyleScheduler=wi,this._viewportRuler=Xi,this._stickyPositioningListener=Zi,this._ngZone=on,this._onDestroy=new s.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),re||this._elementRef.nativeElement.setAttribute("role","table"),this._document=bt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(_e){this._trackByFn=_e}get dataSource(){return this._dataSource}set dataSource(_e){this._dataSource!==_e&&this._switchDataSource(_e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(_e){this._multiTemplateDataRows=(0,e.Ig)(_e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(_e){this._fixedLayout=(0,e.Ig)(_e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((_e,Ke)=>this.trackBy?this.trackBy(Ke.dataIndex,Ke.data):Ke),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ke=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ke,this._forceRecalculateCellWidths=Ke,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(_e=>{_e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const _e=this._dataDiffer.diff(this._renderRows);if(!_e)return this._updateNoDataRow(),void this.contentChanged.next();const Ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(_e,Ke,(yt,re,qe)=>this._getEmbeddedViewArgs(yt.item,qe),yt=>yt.item.data,yt=>{1===yt.operation&&yt.context&&this._renderCellTemplateForItem(yt.record.item.rowDef,yt.context)}),this._updateRowIndexContext(),_e.forEachIdentityChange(yt=>{Ke.get(yt.currentIndex).context.$implicit=yt.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,w.q)(1),(0,L.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(_e){this._customColumnDefs.add(_e)}removeColumnDef(_e){this._customColumnDefs.delete(_e)}addRowDef(_e){this._customRowDefs.add(_e)}removeRowDef(_e){this._customRowDefs.delete(_e)}addHeaderRowDef(_e){this._customHeaderRowDefs.add(_e),this._headerRowDefChanged=!0}removeHeaderRowDef(_e){this._customHeaderRowDefs.delete(_e),this._headerRowDefChanged=!0}addFooterRowDef(_e){this._customFooterRowDefs.add(_e),this._footerRowDefChanged=!0}removeFooterRowDef(_e){this._customFooterRowDefs.delete(_e),this._footerRowDefChanged=!0}setNoDataRow(_e){this._customNoDataRow=_e}updateStickyHeaderRowStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),yt=this._elementRef.nativeElement.querySelector("thead");yt&&(yt.style.display=_e.length?"":"none");const re=this._headerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(_e,["top"]),this._stickyStyler.stickRows(_e,re,"top"),this._headerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyFooterRowStyles(){const _e=this._getRenderedRows(this._footerRowOutlet),yt=this._elementRef.nativeElement.querySelector("tfoot");yt&&(yt.style.display=_e.length?"":"none");const re=this._footerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(_e,["bottom"]),this._stickyStyler.stickRows(_e,re,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,re),this._footerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyColumnStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),Ke=this._getRenderedRows(this._rowOutlet),yt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([..._e,...Ke,...yt],["left","right"]),this._stickyColumnStylesNeedReset=!1),_e.forEach((re,qe)=>{this._addStickyColumnStyles([re],this._headerRowDefs[qe])}),this._rowDefs.forEach(re=>{const qe=[];for(let bt=0;bt<Ke.length;bt++)this._renderRows[bt].rowDef===re&&qe.push(Ke[bt]);this._addStickyColumnStyles(qe,re)}),yt.forEach((re,qe)=>{this._addStickyColumnStyles([re],this._footerRowDefs[qe])}),Array.from(this._columnDefsByName.values()).forEach(re=>re.resetStickyChanged())}_getAllRenderRows(){const _e=[],Ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let yt=0;yt<this._data.length;yt++){let re=this._data[yt];const qe=this._getRenderRowsForData(re,yt,Ke.get(re));this._cachedRenderRowsMap.has(re)||this._cachedRenderRowsMap.set(re,new WeakMap);for(let bt=0;bt<qe.length;bt++){let Vt=qe[bt];const bi=this._cachedRenderRowsMap.get(Vt.data);bi.has(Vt.rowDef)?bi.get(Vt.rowDef).push(Vt):bi.set(Vt.rowDef,[Vt]),_e.push(Vt)}}return _e}_getRenderRowsForData(_e,Ke,yt){return this._getRowDefs(_e,Ke).map(qe=>{const bt=yt&&yt.has(qe)?yt.get(qe):[];if(bt.length){const Vt=bt.shift();return Vt.dataIndex=Ke,Vt}return{data:_e,rowDef:qe,dataIndex:Ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ui(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ke=>{this._columnDefsByName.has(Ke.name),this._columnDefsByName.set(Ke.name,Ke)})}_cacheRowDefs(){this._headerRowDefs=ui(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ui(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ui(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const _e=this._rowDefs.filter(Ke=>!Ke.when);this._defaultRowDef=_e[0]}_renderUpdatedColumns(){const _e=(qe,bt)=>qe||!!bt.getColumnsDiff(),Ke=this._rowDefs.reduce(_e,!1);Ke&&this._forceRenderDataRows();const yt=this._headerRowDefs.reduce(_e,!1);yt&&this._forceRenderHeaderRows();const re=this._footerRowDefs.reduce(_e,!1);return re&&this._forceRenderFooterRows(),Ke||yt||re}_switchDataSource(_e){this._data=[],(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),_e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=_e}_observeRenderChanges(){if(!this.dataSource)return;let _e;(0,f.Z9)(this.dataSource)?_e=this.dataSource.connect(this):(0,R.b)(this.dataSource)?_e=this.dataSource:Array.isArray(this.dataSource)&&(_e=(0,h.of)(this.dataSource)),this._renderChangeSubscription=_e.pipe((0,L.R)(this._onDestroy)).subscribe(Ke=>{this._data=Ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((_e,Ke)=>this._renderRow(this._headerRowOutlet,_e,Ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((_e,Ke)=>this._renderRow(this._footerRowOutlet,_e,Ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(_e,Ke){const yt=Array.from(Ke.columns||[]).map(bt=>this._columnDefsByName.get(bt)),re=yt.map(bt=>bt.sticky),qe=yt.map(bt=>bt.stickyEnd);this._stickyStyler.updateStickyColumns(_e,re,qe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(_e){const Ke=[];for(let yt=0;yt<_e.viewContainer.length;yt++){const re=_e.viewContainer.get(yt);Ke.push(re.rootNodes[0])}return Ke}_getRowDefs(_e,Ke){if(1==this._rowDefs.length)return[this._rowDefs[0]];let yt=[];if(this.multiTemplateDataRows)yt=this._rowDefs.filter(re=>!re.when||re.when(Ke,_e));else{let re=this._rowDefs.find(qe=>qe.when&&qe.when(Ke,_e))||this._defaultRowDef;re&&yt.push(re)}return yt}_getEmbeddedViewArgs(_e,Ke){return{templateRef:_e.rowDef.template,context:{$implicit:_e.data},index:Ke}}_renderRow(_e,Ke,yt,re={}){const qe=_e.viewContainer.createEmbeddedView(Ke.template,re,yt);return this._renderCellTemplateForItem(Ke,re),qe}_renderCellTemplateForItem(_e,Ke){for(let yt of this._getCellTemplates(_e))Pe.mostRecentCellOutlet&&Pe.mostRecentCellOutlet._viewContainer.createEmbeddedView(yt,Ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const _e=this._rowOutlet.viewContainer;for(let Ke=0,yt=_e.length;Ke<yt;Ke++){const qe=_e.get(Ke).context;qe.count=yt,qe.first=0===Ke,qe.last=Ke===yt-1,qe.even=Ke%2==0,qe.odd=!qe.even,this.multiTemplateDataRows?(qe.dataIndex=this._renderRows[Ke].dataIndex,qe.renderIndex=Ke):qe.index=this._renderRows[Ke].dataIndex}}_getCellTemplates(_e){return _e&&_e.columns?Array.from(_e.columns,Ke=>{const yt=this._columnDefsByName.get(Ke);return _e.extractCellTemplate(yt)}):[]}_applyNativeTableSections(){const _e=this._document.createDocumentFragment(),Ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const yt of Ke){const re=this._document.createElement(yt.tag);re.setAttribute("role","rowgroup");for(const qe of yt.outlets)re.appendChild(qe.elementRef.nativeElement);_e.appendChild(re)}this._elementRef.nativeElement.appendChild(_e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const _e=(Ke,yt)=>Ke||yt.hasStickyChanged();this._headerRowDefs.reduce(_e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(_e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(_e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ae(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,h.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(Ke=>{this._stickyStyler.direction=Ke,this.updateStickyColumnStyles()})}_getOwnDefs(_e){return _e.filter(Ke=>!Ke._table||Ke._table===this)}_updateNoDataRow(){const _e=this._customNoDataRow||this._noDataRow;if(!_e)return;const Ke=0===this._rowOutlet.viewContainer.length;if(Ke===this._isShowingNoDataRow)return;const yt=this._noDataRowOutlet.viewContainer;if(Ke){const re=yt.createEmbeddedView(_e.templateRef),qe=re.rootNodes[0];1===re.rootNodes.length&&(null==qe?void 0:qe.nodeType)===this._document.ELEMENT_NODE&&(qe.setAttribute("role","row"),qe.classList.add(_e._contentClassName))}else yt.clear();this._isShowingNoDataRow=Ke}}return Be.\u0275fac=function(_e){return new(_e||Be)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(D.Is,8),t.Y36(M.K0),t.Y36(S.t4),t.Y36(f.k),t.Y36(T),t.Y36(k.rL),t.Y36(be,12),t.Y36(t.R0b,8))},Be.\u0275cmp=t.Xpm({type:Be,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(_e,Ke,yt){if(1&_e&&(t.Suo(yt,Ce,5),t.Suo(yt,C,5),t.Suo(yt,xe,5),t.Suo(yt,N,5),t.Suo(yt,ue,5)),2&_e){let re;t.iGM(re=t.CRH())&&(Ke._noDataRow=re.first),t.iGM(re=t.CRH())&&(Ke._contentColumnDefs=re),t.iGM(re=t.CRH())&&(Ke._contentRowDefs=re),t.iGM(re=t.CRH())&&(Ke._contentHeaderRowDefs=re),t.iGM(re=t.CRH())&&(Ke._contentFooterRowDefs=re)}},viewQuery:function(_e,Ke){if(1&_e&&(t.Gf(He,7),t.Gf(pt,7),t.Gf(et,7),t.Gf(Lt,7)),2&_e){let yt;t.iGM(yt=t.CRH())&&(Ke._rowOutlet=yt.first),t.iGM(yt=t.CRH())&&(Ke._headerRowOutlet=yt.first),t.iGM(yt=t.CRH())&&(Ke._footerRowOutlet=yt.first),t.iGM(yt=t.CRH())&&(Ke._noDataRowOutlet=yt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(_e,Ke){2&_e&&t.ekj("cdk-table-fixed-layout",Ke.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ee,useExisting:Be},{provide:f.k,useClass:f.yy},{provide:T,useClass:I},{provide:be,useValue:null}])],ngContentSelectors:U,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,Ke){1&_e&&(t.F$t(E),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[pt,He,Lt,et],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Be})();function ui(Be,Tt){return Be.concat(Array.from(Tt))}let gt=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({imports:[[k.Cl]]}),Be})();var tt=p(508),xt=p(6451),ei=p(9841),Kt=p(4004);const Re=[[["caption"]],[["colgroup"],["col"]]],Oe=["caption","colgroup, col"];let mt=(()=>{class Be extends Gt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(_e,Ke){2&_e&&t.ekj("mat-table-fixed-layout",Ke.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:f.k,useClass:f.yy},{provide:Gt,useExisting:Be},{provide:ee,useExisting:Be},{provide:T,useClass:I},{provide:be,useValue:null}]),t.qOj],ngContentSelectors:Oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,Ke){1&_e&&(t.F$t(Re),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[pt,He,Lt,et],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Be})(),Ht=(()=>{class Be extends te{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:te,useExisting:Be}]),t.qOj]}),Be})(),it=(()=>{class Be extends ie{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:ie,useExisting:Be}]),t.qOj]}),Be})(),Ne=(()=>{class Be extends le{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:le,useExisting:Be}]),t.qOj]}),Be})(),nt=(()=>{class Be extends C{get name(){return this._name}set name(_e){this._setNameInput(_e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:C,useExisting:Be},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Be}]),t.qOj]}),Be})(),Xe=(()=>{class Be extends r{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),Be})(),Ee=(()=>{class Be extends u{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]}),Be})(),Ge=(()=>{class Be extends c{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),Be})(),ot=(()=>{class Be extends N{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:N,useExisting:Be}]),t.qOj]}),Be})(),lt=(()=>{class Be extends ue{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:ue,useExisting:Be}]),t.qOj]}),Be})(),Ct=(()=>{class Be extends xe{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=t.lG2({type:Be,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:xe,useExisting:Be}]),t.qOj]}),Be})(),mi=(()=>{class Be extends Se{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Se,useExisting:Be}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Ke){1&_e&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Be})(),Jt=(()=>{class Be extends Q{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Q,useExisting:Be}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Ke){1&_e&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Be})(),$t=(()=>{class Be extends Ue{}return Be.\u0275fac=function(){let Tt;return function(Ke){return(Tt||(Tt=t.n5z(Be)))(Ke||Be)}}(),Be.\u0275cmp=t.Xpm({type:Be,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Ue,useExisting:Be}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,Ke){1&_e&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Be})(),Ji=(()=>{class Be{}return Be.\u0275fac=function(_e){return new(_e||Be)},Be.\u0275mod=t.oAB({type:Be}),Be.\u0275inj=t.cJS({imports:[[gt,tt.BQ],tt.BQ]}),Be})();class zi extends f.o2{constructor(Tt=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(_e,Ke)=>{const yt=_e[Ke];if((0,e.t6)(yt)){const re=Number(yt);return re<9007199254740991?re:yt}return yt},this.sortData=(_e,Ke)=>{const yt=Ke.active,re=Ke.direction;return yt&&""!=re?_e.sort((qe,bt)=>{let Vt=this.sortingDataAccessor(qe,yt),bi=this.sortingDataAccessor(bt,yt);const wi=typeof Vt,Xi=typeof bi;wi!==Xi&&("number"===wi&&(Vt+=""),"number"===Xi&&(bi+=""));let Zi=0;return null!=Vt&&null!=bi?Vt>bi?Zi=1:Vt<bi&&(Zi=-1):null!=Vt?Zi=1:null!=bi&&(Zi=-1),Zi*("asc"==re?1:-1)}):_e},this.filterPredicate=(_e,Ke)=>{const yt=Object.keys(_e).reduce((qe,bt)=>qe+_e[bt]+"\u25ec","").toLowerCase(),re=Ke.trim().toLowerCase();return-1!=yt.indexOf(re)},this._data=new d.X(Tt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Tt){Tt=Array.isArray(Tt)?Tt:[],this._data.next(Tt),this._renderChangesSubscription||this._filterData(Tt)}get filter(){return this._filter.value}set filter(Tt){this._filter.next(Tt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Tt){this._sort=Tt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Tt){this._paginator=Tt,this._updateChangeSubscription()}_updateChangeSubscription(){var Tt;const _e=this._sort?(0,xt.T)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),Ke=this._paginator?(0,xt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),re=(0,ei.a)([this._data,this._filter]).pipe((0,Kt.U)(([Vt])=>this._filterData(Vt))),qe=(0,ei.a)([re,_e]).pipe((0,Kt.U)(([Vt])=>this._orderData(Vt))),bt=(0,ei.a)([qe,Ke]).pipe((0,Kt.U)(([Vt])=>this._pageData(Vt)));null===(Tt=this._renderChangesSubscription)||void 0===Tt||Tt.unsubscribe(),this._renderChangesSubscription=bt.subscribe(Vt=>this._renderData.next(Vt))}_filterData(Tt){return this.filteredData=null==this.filter||""===this.filter?Tt:Tt.filter(_e=>this.filterPredicate(_e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Tt){return this.sort?this.sortData(Tt.slice(),this.sort):Tt}_pageData(Tt){if(!this.paginator)return Tt;const _e=this.paginator.pageIndex*this.paginator.pageSize;return Tt.slice(_e,_e+this.paginator.pageSize)}_updatePaginator(Tt){Promise.resolve().then(()=>{const _e=this.paginator;if(_e&&(_e.length=Tt,_e.pageIndex>0)){const Ke=Math.ceil(_e.length/_e.pageSize)-1||0,yt=Math.min(_e.pageIndex,Ke);yt!==_e.pageIndex&&(_e.pageIndex=yt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Tt;null===(Tt=this._renderChangesSubscription)||void 0===Tt||Tt.unsubscribe(),this._renderChangesSubscription=null}}class Ui extends zi{}},3251:(ze,K,p)=>{"use strict";p.d(K,{BU:()=>ce,Nh:()=>it,Nj:()=>mt,SP:()=>Kt,uD:()=>De,uX:()=>ye});var t=p(5664),e=p(7144),f=p(7429),M=p(9808),s=p(5e3),b=p(508),d=p(6360),R=p(5698),h=p(8675),L=p(1884),w=p(2722),D=p(3900),S=p(5684),k=p(7579),E=p(727),U=p(4968),W=p(9646),j=p(6451),ne=p(515),ee=p(8306),de=p(2805),te=p(1777),ie=p(226),le=p(3191),$=p(1159),ge=p(925),C=p(5303);function i(Ne,nt){1&Ne&&s.Hsn(0)}const r=["*"];function u(Ne,nt){}const c=function(Ne){return{animationDuration:Ne}},v=function(Ne,nt){return{value:Ne,params:nt}},T=["tabListContainer"],I=["tabList"],y=["tabListInner"],n=["nextPaginator"],_=["previousPaginator"],B=["tabBodyWrapper"],N=["tabHeader"];function H(Ne,nt){}function J(Ne,nt){if(1&Ne&&s.YNc(0,H,0,0,"ng-template",10),2&Ne){const Xe=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",Xe.templateLabel)}}function ue(Ne,nt){if(1&Ne&&s._uU(0),2&Ne){const Xe=s.oxw().$implicit;s.Oqu(Xe.textLabel)}}function xe(Ne,nt){if(1&Ne){const Xe=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const Ge=s.CHM(Xe),ot=Ge.$implicit,lt=Ge.index,Ct=s.oxw(),mi=s.MAs(1);return Ct._handleClick(ot,mi,lt)})("cdkFocusChange",function(Ge){const lt=s.CHM(Xe).index;return s.oxw()._tabFocusChanged(Ge,lt)}),s.TgZ(1,"div",7),s.YNc(2,J,1,1,"ng-template",8),s.YNc(3,ue,1,1,"ng-template",null,9,s.W1O),s.qZA()()}if(2&Ne){const Xe=nt.$implicit,Ee=nt.index,Ge=s.MAs(4),ot=s.oxw();s.ekj("mat-tab-label-active",ot.selectedIndex===Ee),s.Q6J("id",ot._getTabLabelId(Ee))("ngClass",Xe.labelClass)("disabled",Xe.disabled)("matRippleDisabled",Xe.disabled||ot.disableRipple),s.uIk("tabIndex",ot._getTabIndex(Xe,Ee))("aria-posinset",Ee+1)("aria-setsize",ot._tabs.length)("aria-controls",ot._getTabContentId(Ee))("aria-selected",ot.selectedIndex===Ee)("aria-label",Xe.ariaLabel||null)("aria-labelledby",!Xe.ariaLabel&&Xe.ariaLabelledby?Xe.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",Xe.templateLabel)("ngIfElse",Ge)}}function Pe(Ne,nt){if(1&Ne){const Xe=s.EpF();s.TgZ(0,"mat-tab-body",11),s.NdJ("_onCentered",function(){return s.CHM(Xe),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ge){return s.CHM(Xe),s.oxw()._setTabBodyWrapperHeight(Ge)}),s.qZA()}if(2&Ne){const Xe=nt.$implicit,Ee=nt.index,Ge=s.oxw();s.ekj("mat-tab-body-active",Ge.selectedIndex===Ee),s.Q6J("id",Ge._getTabContentId(Ee))("ngClass",Xe.bodyClass)("content",Xe.content)("position",Xe.position)("origin",Xe.origin)("animationDuration",Ge.animationDuration),s.uIk("tabindex",null!=Ge.contentTabIndex&&Ge.selectedIndex===Ee?Ge.contentTabIndex:null)("aria-labelledby",Ge._getTabLabelId(Ee))}}const Se=["mat-tab-nav-bar",""],Q=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ue(){return nt=>({left:nt?(nt.offsetLeft||0)+"px":"0",width:nt?(nt.offsetWidth||0)+"px":"0"})}});let Ce=(()=>{class Ne{constructor(Xe,Ee,Ge,ot){this._elementRef=Xe,this._ngZone=Ee,this._inkBarPositioner=Ge,this._animationMode=ot}alignToElement(Xe){this.show(),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{const Ee=this._inkBarPositioner(Xe),Ge=this._elementRef.nativeElement;Ge.style.left=Ee.left,Ge.style.width=Ee.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Q),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Xe,Ee){2&Xe&&s.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode)}}),Ne})();const q=new s.OlP("MatTabContent"),ut=new s.OlP("MatTabLabel"),Ie=new s.OlP("MAT_TAB");let De=(()=>{class Ne extends f.ig{constructor(Xe,Ee,Ge){super(Xe,Ee),this._closestTab=Ge}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(Ie,8))},Ne.\u0275dir=s.lG2({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:ut,useExisting:Ne}]),s.qOj]}),Ne})();const ae=(0,b.Id)(class{}),we=new s.OlP("MAT_TAB_GROUP");let ye=(()=>{class Ne extends ae{constructor(Xe,Ee){super(),this._viewContainerRef=Xe,this._closestTabGroup=Ee,this.textLabel="",this._contentPortal=null,this._stateChanges=new k.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Xe){this._setTemplateLabelInput(Xe)}get content(){return this._contentPortal}ngOnChanges(Xe){(Xe.hasOwnProperty("textLabel")||Xe.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Xe){Xe&&Xe._closestTab===this&&(this._templateLabel=Xe)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.s_b),s.Y36(we,8))},Ne.\u0275cmp=s.Xpm({type:Ne,selectors:[["mat-tab"]],contentQueries:function(Xe,Ee,Ge){if(1&Xe&&(s.Suo(Ge,ut,5),s.Suo(Ge,q,7,s.Rgc)),2&Xe){let ot;s.iGM(ot=s.CRH())&&(Ee.templateLabel=ot.first),s.iGM(ot=s.CRH())&&(Ee._explicitContent=ot.first)}},viewQuery:function(Xe,Ee){if(1&Xe&&s.Gf(s.Rgc,7),2&Xe){let Ge;s.iGM(Ge=s.CRH())&&(Ee._implicitContent=Ge.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[s._Bn([{provide:Ie,useExisting:Ne}]),s.qOj,s.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Xe,Ee){1&Xe&&(s.F$t(),s.YNc(0,i,1,0,"ng-template"))},encapsulation:2}),Ne})();const Y={translateTab:(0,te.X$)("translateTab",[(0,te.SB)("center, void, left-origin-center, right-origin-center",(0,te.oB)({transform:"none"})),(0,te.SB)("left",(0,te.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,te.SB)("right",(0,te.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,te.eR)("* => left, * => right, left => center, right => center",(0,te.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,te.eR)("void => left-origin-center",[(0,te.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,te.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,te.eR)("void => right-origin-center",[(0,te.oB)({transform:"translate3d(100%, 0, 0)"}),(0,te.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let z=(()=>{class Ne extends f.Pl{constructor(Xe,Ee,Ge,ot){super(Xe,Ee,ot),this._host=Ge,this._centeringSub=E.w0.EMPTY,this._leavingSub=E.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,h.O)(this._host._isCenterPosition(this._host._position))).subscribe(Xe=>{Xe&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(()=>fe)),s.Y36(M.K0))},Ne.\u0275dir=s.lG2({type:Ne,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),Ne})(),be=(()=>{class Ne{constructor(Xe,Ee,Ge){this._elementRef=Xe,this._dir=Ee,this._dirChangeSubscription=E.w0.EMPTY,this._translateTabComplete=new k.x,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",Ee&&(this._dirChangeSubscription=Ee.change.subscribe(ot=>{this._computePositionAnimationState(ot),Ge.markForCheck()})),this._translateTabComplete.pipe((0,L.x)((ot,lt)=>ot.fromState===lt.fromState&&ot.toState===lt.toState)).subscribe(ot=>{this._isCenterPosition(ot.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ot.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Xe){this._positionIndex=Xe,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Xe){const Ee=this._isCenterPosition(Xe.toState);this._beforeCentering.emit(Ee),Ee&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Xe){return"center"==Xe||"left-origin-center"==Xe||"right-origin-center"==Xe}_computePositionAnimationState(Xe=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Xe?"left":"right":this._positionIndex>0?"ltr"==Xe?"right":"left":"center"}_computePositionFromOrigin(Xe){const Ee=this._getLayoutDirection();return"ltr"==Ee&&Xe<=0||"rtl"==Ee&&Xe>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(ie.Is,8),s.Y36(s.sBO))},Ne.\u0275dir=s.lG2({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),fe=(()=>{class Ne extends be{constructor(Xe,Ee,Ge){super(Xe,Ee,Ge)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(ie.Is,8),s.Y36(s.sBO))},Ne.\u0275cmp=s.Xpm({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(Xe,Ee){if(1&Xe&&s.Gf(f.Pl,5),2&Xe){let Ge;s.iGM(Ge=s.CRH())&&(Ee._portalHost=Ge.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Xe,Ee){1&Xe&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(ot){return Ee._onTranslateTabStarted(ot)})("@translateTab.done",function(ot){return Ee._translateTabComplete.next(ot)}),s.YNc(2,u,0,0,"ng-template",2),s.qZA()),2&Xe&&s.Q6J("@translateTab",s.WLB(3,v,Ee._position,s.VKq(1,c,Ee.animationDuration)))},directives:[z],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[Y.translateTab]}}),Ne})();const He=new s.OlP("MAT_TABS_CONFIG"),pt=(0,b.Id)(class{});let et=(()=>{class Ne extends pt{constructor(Xe){super(),this.elementRef=Xe}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq))},Ne.\u0275dir=s.lG2({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Xe,Ee){2&Xe&&(s.uIk("aria-disabled",!!Ee.disabled),s.ekj("mat-tab-disabled",Ee.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),Ne})();const Lt=(0,ge.i$)({passive:!0});let ui=(()=>{class Ne{constructor(Xe,Ee,Ge,ot,lt,Ct,mi){this._elementRef=Xe,this._changeDetectorRef=Ee,this._viewportRuler=Ge,this._dir=ot,this._ngZone=lt,this._platform=Ct,this._animationMode=mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,lt.runOutsideAngular(()=>{(0,U.R)(Xe.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Xe){Xe=(0,le.su)(Xe),this._selectedIndex!=Xe&&(this._selectedIndexChanged=!0,this._selectedIndex=Xe,this._keyManager&&this._keyManager.updateActiveItem(Xe))}ngAfterViewInit(){(0,U.R)(this._previousPaginator.nativeElement,"touchstart",Lt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,U.R)(this._nextPaginator.nativeElement,"touchstart",Lt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Xe=this._dir?this._dir.change:(0,W.of)("ltr"),Ee=this._viewportRuler.change(150),Ge=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(Ge),(0,j.T)(Xe,Ee,this._items.changes,this._itemsResized()).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ge()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this.indexFocused.emit(ot),this._setTabFocus(ot)})}_itemsResized(){return"function"!=typeof ResizeObserver?ne.E:this._items.changes.pipe((0,h.O)(this._items),(0,D.w)(Xe=>new ee.y(Ee=>this._ngZone.runOutsideAngular(()=>{const Ge=new ResizeObserver(()=>{Ee.next()});return Xe.forEach(ot=>{Ge.observe(ot.elementRef.nativeElement)}),()=>{Ge.disconnect()}}))),(0,S.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Xe){if(!(0,$.Vb)(Xe))switch(Xe.keyCode){case $.K5:case $.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Xe));break;default:this._keyManager.onKeydown(Xe)}}_onContentChanges(){const Xe=this._elementRef.nativeElement.textContent;Xe!==this._currentTextContent&&(this._currentTextContent=Xe||"",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(Xe){!this._isValidIndex(Xe)||this.focusIndex===Xe||!this._keyManager||this._keyManager.setActiveItem(Xe)}_isValidIndex(Xe){if(!this._items)return!0;const Ee=this._items?this._items.toArray()[Xe]:null;return!!Ee&&!Ee.disabled}_setTabFocus(Xe){if(this._showPaginationControls&&this._scrollToLabel(Xe),this._items&&this._items.length){this._items.toArray()[Xe].focus();const Ee=this._tabListContainer.nativeElement;Ee.scrollLeft="ltr"==this._getLayoutDirection()?0:Ee.scrollWidth-Ee.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Xe=this.scrollDistance,Ee="ltr"===this._getLayoutDirection()?-Xe:Xe;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ee)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Xe){this._scrollTo(Xe)}_scrollHeader(Xe){return this._scrollTo(this._scrollDistance+("before"==Xe?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Xe){this._stopInterval(),this._scrollHeader(Xe)}_scrollToLabel(Xe){if(this.disablePagination)return;const Ee=this._items?this._items.toArray()[Xe]:null;if(!Ee)return;const Ge=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ot,offsetWidth:lt}=Ee.elementRef.nativeElement;let Ct,mi;"ltr"==this._getLayoutDirection()?(Ct=ot,mi=Ct+lt):(mi=this._tabListInner.nativeElement.offsetWidth-ot,Ct=mi-lt);const Jt=this.scrollDistance,$t=this.scrollDistance+Ge;Ct<Jt?this.scrollDistance-=Jt-Ct+60:mi>$t&&(this.scrollDistance+=mi-$t+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Xe=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Xe||(this.scrollDistance=0),Xe!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Xe}}_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 Xe=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ee=Xe?Xe.elementRef.nativeElement:null;Ee?this._inkBar.alignToElement(Ee):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Xe,Ee){Ee&&null!=Ee.button&&0!==Ee.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,w.R)((0,j.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ge,distance:ot}=this._scrollHeader(Xe);(0===ot||ot>=Ge)&&this._stopInterval()}))}_scrollTo(Xe){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ee=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ee,Xe)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ee,distance:this._scrollDistance}}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(ie.Is,8),s.Y36(s.R0b),s.Y36(ge.t4),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),Ot=(()=>{class Ne extends ui{constructor(Xe,Ee,Ge,ot,lt,Ct,mi){super(Xe,Ee,Ge,ot,lt,Ct,mi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Xe){this._disableRipple=(0,le.Ig)(Xe)}_itemSelected(Xe){Xe.preventDefault()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(ie.Is,8),s.Y36(s.R0b),s.Y36(ge.t4),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),Ne})(),Nt=(()=>{class Ne extends Ot{constructor(Xe,Ee,Ge,ot,lt,Ct,mi){super(Xe,Ee,Ge,ot,lt,Ct,mi)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(ie.Is,8),s.Y36(s.R0b),s.Y36(ge.t4),s.Y36(d.Qb,8))},Ne.\u0275cmp=s.Xpm({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(Xe,Ee,Ge){if(1&Xe&&s.Suo(Ge,et,4),2&Xe){let ot;s.iGM(ot=s.CRH())&&(Ee._items=ot)}},viewQuery:function(Xe,Ee){if(1&Xe&&(s.Gf(Ce,7),s.Gf(T,7),s.Gf(I,7),s.Gf(y,7),s.Gf(n,5),s.Gf(_,5)),2&Xe){let Ge;s.iGM(Ge=s.CRH())&&(Ee._inkBar=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabListContainer=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabList=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabListInner=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._nextPaginator=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Xe,Ee){2&Xe&&s.ekj("mat-tab-header-pagination-controls-enabled",Ee._showPaginationControls)("mat-tab-header-rtl","rtl"==Ee._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Xe,Ee){1&Xe&&(s.F$t(),s.TgZ(0,"button",0,1),s.NdJ("click",function(){return Ee._handlePaginatorClick("before")})("mousedown",function(ot){return Ee._handlePaginatorPress("before",ot)})("touchend",function(){return Ee._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(ot){return Ee._handleKeydown(ot)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return Ee._onContentChanges()}),s.TgZ(7,"div",7,8),s.Hsn(9),s.qZA(),s._UZ(10,"mat-ink-bar"),s.qZA()(),s.TgZ(11,"button",9,10),s.NdJ("mousedown",function(ot){return Ee._handlePaginatorPress("after",ot)})("click",function(){return Ee._handlePaginatorClick("after")})("touchend",function(){return Ee._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&Xe&&(s.ekj("mat-tab-header-pagination-disabled",Ee._disableScrollBefore),s.Q6J("matRippleDisabled",Ee._disableScrollBefore||Ee.disableRipple)("disabled",Ee._disableScrollBefore||null),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",Ee._disableScrollAfter),s.Q6J("matRippleDisabled",Ee._disableScrollAfter||Ee.disableRipple)("disabled",Ee._disableScrollAfter||null))},directives:[b.wG,e.wD,Ce],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Ne})(),gt=0;class tt{}const xt=(0,b.pj)((0,b.Kr)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let ei=(()=>{class Ne extends xt{constructor(Xe,Ee,Ge,ot){var lt;super(Xe),this._changeDetectorRef=Ee,this._animationMode=ot,this._tabs=new s.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=E.w0.EMPTY,this._tabLabelSubscription=E.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.vpe,this.focusChange=new s.vpe,this.animationDone=new s.vpe,this.selectedTabChange=new s.vpe(!0),this._groupId=gt++,this.animationDuration=Ge&&Ge.animationDuration?Ge.animationDuration:"500ms",this.disablePagination=!(!Ge||null==Ge.disablePagination)&&Ge.disablePagination,this.dynamicHeight=!(!Ge||null==Ge.dynamicHeight)&&Ge.dynamicHeight,this.contentTabIndex=null!==(lt=null==Ge?void 0:Ge.contentTabIndex)&&void 0!==lt?lt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Xe){this._dynamicHeight=(0,le.Ig)(Xe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Xe){this._indexToSelect=(0,le.su)(Xe,null)}get animationDuration(){return this._animationDuration}set animationDuration(Xe){this._animationDuration=/^\d+$/.test(Xe+"")?Xe+"ms":Xe}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Xe){this._contentTabIndex=(0,le.su)(Xe,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Xe){const Ee=this._elementRef.nativeElement;Ee.classList.remove(`mat-background-${this.backgroundColor}`),Xe&&Ee.classList.add(`mat-background-${Xe}`),this._backgroundColor=Xe}ngAfterContentChecked(){const Xe=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Xe){const Ee=null==this._selectedIndex;if(!Ee){this.selectedTabChange.emit(this._createChangeEvent(Xe));const Ge=this._tabBodyWrapper.nativeElement;Ge.style.minHeight=Ge.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ge,ot)=>Ge.isActive=ot===Xe),Ee||(this.selectedIndexChange.emit(Xe),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ee,Ge)=>{Ee.position=Ge-Xe,null!=this._selectedIndex&&0==Ee.position&&!Ee.origin&&(Ee.origin=Xe-this._selectedIndex)}),this._selectedIndex!==Xe&&(this._selectedIndex=Xe,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Xe=this._clampTabIndex(this._indexToSelect);if(Xe===this._selectedIndex){const Ee=this._tabs.toArray();let Ge;for(let ot=0;ot<Ee.length;ot++)if(Ee[ot].isActive){this._indexToSelect=this._selectedIndex=ot,this._lastFocusedTabIndex=null,Ge=Ee[ot];break}!Ge&&Ee[Xe]&&Promise.resolve().then(()=>{Ee[Xe].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Xe))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,h.O)(this._allTabs)).subscribe(Xe=>{this._tabs.reset(Xe.filter(Ee=>Ee._closestTabGroup===this||!Ee._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(Xe){const Ee=this._tabHeader;Ee&&(Ee.focusIndex=Xe)}_focusChanged(Xe){this._lastFocusedTabIndex=Xe,this.focusChange.emit(this._createChangeEvent(Xe))}_createChangeEvent(Xe){const Ee=new tt;return Ee.index=Xe,this._tabs&&this._tabs.length&&(Ee.tab=this._tabs.toArray()[Xe]),Ee}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,j.T)(...this._tabs.map(Xe=>Xe._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Xe){return Math.min(this._tabs.length-1,Math.max(Xe||0,0))}_getTabLabelId(Xe){return`mat-tab-label-${this._groupId}-${Xe}`}_getTabContentId(Xe){return`mat-tab-content-${this._groupId}-${Xe}`}_setTabBodyWrapperHeight(Xe){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Ee=this._tabBodyWrapper.nativeElement;Ee.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ee.style.height=Xe+"px")}_removeTabBodyWrapperHeight(){const Xe=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Xe.clientHeight,Xe.style.height="",this.animationDone.emit()}_handleClick(Xe,Ee,Ge){Xe.disabled||(this.selectedIndex=Ee.focusIndex=Ge)}_getTabIndex(Xe,Ee){var Ge;return Xe.disabled?null:Ee===(null!==(Ge=this._lastFocusedTabIndex)&&void 0!==Ge?Ge:this.selectedIndex)?0:-1}_tabFocusChanged(Xe,Ee){Xe&&"mouse"!==Xe&&"touch"!==Xe&&(this._tabHeader.focusIndex=Ee)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(He,8),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.qOj]}),Ne})(),Kt=(()=>{class Ne extends ei{constructor(Xe,Ee,Ge,ot){super(Xe,Ee,Ge,ot)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(He,8),s.Y36(d.Qb,8))},Ne.\u0275cmp=s.Xpm({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(Xe,Ee,Ge){if(1&Xe&&s.Suo(Ge,ye,5),2&Xe){let ot;s.iGM(ot=s.CRH())&&(Ee._allTabs=ot)}},viewQuery:function(Xe,Ee){if(1&Xe&&(s.Gf(B,5),s.Gf(N,5)),2&Xe){let Ge;s.iGM(Ge=s.CRH())&&(Ee._tabBodyWrapper=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabHeader=Ge.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Xe,Ee){2&Xe&&s.ekj("mat-tab-group-dynamic-height",Ee.dynamicHeight)("mat-tab-group-inverted-header","below"===Ee.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s._Bn([{provide:we,useExisting:Ne}]),s.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Xe,Ee){1&Xe&&(s.TgZ(0,"mat-tab-header",0,1),s.NdJ("indexFocused",function(ot){return Ee._focusChanged(ot)})("selectFocusedIndex",function(ot){return Ee.selectedIndex=ot}),s.YNc(2,xe,5,15,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.YNc(5,Pe,1,10,"mat-tab-body",5),s.qZA()),2&Xe&&(s.Q6J("selectedIndex",Ee.selectedIndex||0)("disableRipple",Ee.disableRipple)("disablePagination",Ee.disablePagination),s.xp6(2),s.Q6J("ngForOf",Ee._tabs),s.xp6(1),s.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode),s.xp6(2),s.Q6J("ngForOf",Ee._tabs))},directives:[Nt,fe,M.sg,et,b.wG,t.kH,M.mk,M.O5,f.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ne})(),Re=0,Oe=(()=>{class Ne extends ui{constructor(Xe,Ee,Ge,ot,lt,Ct,mi){super(Xe,ot,lt,Ee,Ge,Ct,mi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Xe){const Ee=this._elementRef.nativeElement.classList;Ee.remove(`mat-background-${this.backgroundColor}`),Xe&&Ee.add(`mat-background-${Xe}`),this._backgroundColor=Xe}get disableRipple(){return this._disableRipple}set disableRipple(Xe){this._disableRipple=(0,le.Ig)(Xe)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,h.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Xe=this._items.toArray();for(let Ee=0;Ee<Xe.length;Ee++)if(Xe[Ee].active)return this.selectedIndex=Ee,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Xe[Ee].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(ie.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(ge.t4),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[s.qOj]}),Ne})(),ce=(()=>{class Ne extends Oe{constructor(Xe,Ee,Ge,ot,lt,Ct,mi){super(Xe,Ee,Ge,ot,lt,Ct,mi)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(s.SBq),s.Y36(ie.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(ge.t4),s.Y36(d.Qb,8))},Ne.\u0275cmp=s.Xpm({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Xe,Ee,Ge){if(1&Xe&&s.Suo(Ge,mt,5),2&Xe){let ot;s.iGM(ot=s.CRH())&&(Ee._items=ot)}},viewQuery:function(Xe,Ee){if(1&Xe&&(s.Gf(Ce,7),s.Gf(T,7),s.Gf(I,7),s.Gf(y,7),s.Gf(n,5),s.Gf(_,5)),2&Xe){let Ge;s.iGM(Ge=s.CRH())&&(Ee._inkBar=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabListContainer=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabList=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._tabListInner=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._nextPaginator=Ge.first),s.iGM(Ge=s.CRH())&&(Ee._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Xe,Ee){2&Xe&&(s.uIk("role",Ee._getRole()),s.ekj("mat-tab-header-pagination-controls-enabled",Ee._showPaginationControls)("mat-tab-header-rtl","rtl"==Ee._getLayoutDirection())("mat-primary","warn"!==Ee.color&&"accent"!==Ee.color)("mat-accent","accent"===Ee.color)("mat-warn","warn"===Ee.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.qOj],attrs:Se,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Xe,Ee){1&Xe&&(s.F$t(),s.TgZ(0,"button",0,1),s.NdJ("click",function(){return Ee._handlePaginatorClick("before")})("mousedown",function(ot){return Ee._handlePaginatorPress("before",ot)})("touchend",function(){return Ee._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(ot){return Ee._handleKeydown(ot)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return Ee._onContentChanges()}),s.TgZ(7,"div",7,8),s.Hsn(9),s.qZA(),s._UZ(10,"mat-ink-bar"),s.qZA()(),s.TgZ(11,"button",9,10),s.NdJ("mousedown",function(ot){return Ee._handlePaginatorPress("after",ot)})("click",function(){return Ee._handlePaginatorClick("after")})("touchend",function(){return Ee._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&Xe&&(s.ekj("mat-tab-header-pagination-disabled",Ee._disableScrollBefore),s.Q6J("matRippleDisabled",Ee._disableScrollBefore||Ee.disableRipple)("disabled",Ee._disableScrollBefore||null),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",Ee._disableScrollAfter),s.Q6J("matRippleDisabled",Ee._disableScrollAfter||Ee.disableRipple)("disabled",Ee._disableScrollAfter||null))},directives:[b.wG,e.wD,Ce],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Ne})();const ve=(0,b.sb)((0,b.Kr)((0,b.Id)(class{})));let ht=(()=>{class Ne extends ve{constructor(Xe,Ee,Ge,ot,lt,Ct){super(),this._tabNavBar=Xe,this.elementRef=Ee,this._focusMonitor=lt,this._isActive=!1,this.id="mat-tab-link-"+Re++,this.rippleConfig=Ge||{},this.tabIndex=parseInt(ot)||0,"NoopAnimations"===Ct&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Xe){const Ee=(0,le.Ig)(Xe);Ee!==this._isActive&&(this._isActive=Ee,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Xe){this._tabNavBar.tabPanel&&Xe.keyCode===$.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var Xe;return this._tabNavBar.tabPanel?null===(Xe=this._tabNavBar.tabPanel)||void 0===Xe?void 0:Xe.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(Oe),s.Y36(s.SBq),s.Y36(b.Y2,8),s.$8M("tabindex"),s.Y36(t.tE),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,inputs:{active:"active",id:"id"},features:[s.qOj]}),Ne})(),mt=(()=>{class Ne extends ht{constructor(Xe,Ee,Ge,ot,lt,Ct,mi,Jt){super(Xe,Ee,lt,Ct,mi,Jt),this._tabLinkRipple=new b.IR(this,Ge,Ee,ot),this._tabLinkRipple.setupTriggerEvents(Ee.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(s.Y36(ce),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(ge.t4),s.Y36(b.Y2,8),s.$8M("tabindex"),s.Y36(t.tE),s.Y36(d.Qb,8))},Ne.\u0275dir=s.lG2({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Xe,Ee){1&Xe&&s.NdJ("focus",function(){return Ee._handleFocus()})("keydown",function(ot){return Ee._handleKeydown(ot)}),2&Xe&&(s.uIk("aria-controls",Ee._getAriaControls())("aria-current",Ee._getAriaCurrent())("aria-disabled",Ee.disabled)("aria-selected",Ee._getAriaSelected())("id",Ee.id)("tabIndex",Ee._getTabIndex())("role",Ee._getRole()),s.ekj("mat-tab-disabled",Ee.disabled)("mat-tab-label-active",Ee.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.qOj]}),Ne})(),it=(()=>{class Ne{}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)},Ne.\u0275mod=s.oAB({type:Ne}),Ne.\u0275inj=s.cJS({imports:[[M.ez,b.BQ,f.eL,b.si,e.Q8,t.rt],b.BQ]}),Ne})()},4594:(ze,K,p)=>{"use strict";p.d(K,{Ye:()=>h,g0:()=>w});var t=p(5e3),e=p(508),f=p(9808),M=p(925);const s=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"],d=(0,e.pj)(class{constructor(D){this._elementRef=D}});let R=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275dir=t.lG2({type:D,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),D})(),h=(()=>{class D extends d{constructor(k,E,U){super(k),this._platform=E,this._document=U}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return D.\u0275fac=function(k){return new(k||D)(t.Y36(t.SBq),t.Y36(M.t4),t.Y36(f.K0))},D.\u0275cmp=t.Xpm({type:D,selectors:[["mat-toolbar"]],contentQueries:function(k,E,U){if(1&k&&t.Suo(U,R,5),2&k){let W;t.iGM(W=t.CRH())&&(E._toolbarRows=W)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,E){2&k&&t.ekj("mat-toolbar-multiple-rows",E._toolbarRows.length>0)("mat-toolbar-single-row",0===E._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:b,decls:2,vars:0,template:function(k,E){1&k&&(t.F$t(s),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),D})(),w=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),D})()},7238:(ze,K,p)=>{"use strict";p.d(K,{AV:()=>I,gM:()=>c});var t=p(9776),e=p(5664),f=p(9808),M=p(5e3),s=p(508),b=p(5303),d=p(3191),R=p(1159),h=p(5113),L=p(925),w=p(7429),D=p(6360),S=p(7579),k=p(2722),E=p(5698),U=p(226);p(1777);const j=["tooltip"],de="tooltip-panel",te=(0,L.i$)({passive:!0}),$=new M.OlP("mat-tooltip-scroll-strategy"),C={provide:$,deps:[t.aV],useFactory:function ge(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},i=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let u=(()=>{class n{constructor(B,N,H,J,ue,xe,Pe,Se,Q,Ue,Ce,q){this._overlay=B,this._elementRef=N,this._scrollDispatcher=H,this._viewContainerRef=J,this._ngZone=ue,this._platform=xe,this._ariaDescriber=Pe,this._focusMonitor=Se,this._dir=Ue,this._defaultOptions=Ce,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S.x,this._scrollStrategy=Q,this._document=q,Ce&&(Ce.position&&(this.position=Ce.position),Ce.touchGestures&&(this.touchGestures=Ce.touchGestures)),Ue.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(B){var N;B!==this._position&&(this._position=B,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(N=this._tooltipInstance)||void 0===N||N.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,d.Ig)(B),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(B){this._showDelay=(0,d.su)(B)}get hideDelay(){return this._hideDelay}set hideDelay(B){this._hideDelay=(0,d.su)(B),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(B){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=B?String(B).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(B){this._tooltipClass=B,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(B=>{B?"keyboard"===B&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const B=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([N,H])=>{B.removeEventListener(N,H,te)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(B,this.message,"tooltip"),this._focusMonitor.stopMonitoring(B)}show(B=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const N=this._createOverlay();this._detach(),this._portal=this._portal||new w.C5(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=N.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(B)}hide(B=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(B)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var B;if(this._overlayRef)return this._overlayRef;const N=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),H=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(N);return H.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(J=>{this._updateCurrentPositionClass(J.connectionPair),this._tooltipInstance&&J.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:H,panelClass:`${this._cssClassPrefix}-${de}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,k.R)(this._destroyed)).subscribe(()=>{var J;return null===(J=this._tooltipInstance)||void 0===J?void 0:J._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe(J=>{this._isTooltipVisible()&&J.keyCode===R.hY&&!(0,R.Vb)(J)&&(J.preventDefault(),J.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(B=this._defaultOptions)||void 0===B?void 0:B.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(B){const N=B.getConfig().positionStrategy,H=this._getOrigin(),J=this._getOverlayPosition();N.withPositions([this._addOffset(Object.assign(Object.assign({},H.main),J.main)),this._addOffset(Object.assign(Object.assign({},H.fallback),J.fallback))])}_addOffset(B){return B}_getOrigin(){const B=!this._dir||"ltr"==this._dir.value,N=this.position;let H;"above"==N||"below"==N?H={originX:"center",originY:"above"==N?"top":"bottom"}:"before"==N||"left"==N&&B||"right"==N&&!B?H={originX:"start",originY:"center"}:("after"==N||"right"==N&&B||"left"==N&&!B)&&(H={originX:"end",originY:"center"});const{x:J,y:ue}=this._invertPosition(H.originX,H.originY);return{main:H,fallback:{originX:J,originY:ue}}}_getOverlayPosition(){const B=!this._dir||"ltr"==this._dir.value,N=this.position;let H;"above"==N?H={overlayX:"center",overlayY:"bottom"}:"below"==N?H={overlayX:"center",overlayY:"top"}:"before"==N||"left"==N&&B||"right"==N&&!B?H={overlayX:"end",overlayY:"center"}:("after"==N||"right"==N&&B||"left"==N&&!B)&&(H={overlayX:"start",overlayY:"center"});const{x:J,y:ue}=this._invertPosition(H.overlayX,H.overlayY);return{main:H,fallback:{overlayX:J,overlayY:ue}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1),(0,k.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(B){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=B,this._tooltipInstance._markForCheck())}_invertPosition(B,N){return"above"===this.position||"below"===this.position?"top"===N?N="bottom":"bottom"===N&&(N="top"):"end"===B?B="start":"start"===B&&(B="end"),{x:B,y:N}}_updateCurrentPositionClass(B){const{overlayY:N,originX:H,originY:J}=B;let ue;if(ue="center"===N?this._dir&&"rtl"===this._dir.value?"end"===H?"left":"right":"start"===H?"left":"right":"bottom"===N&&"top"===J?"above":"below",ue!==this._currentPosition){const xe=this._overlayRef;if(xe){const Pe=`${this._cssClassPrefix}-${de}-`;xe.removePanelClass(Pe+this._currentPosition),xe.addPanelClass(Pe+ue)}this._currentPosition=ue}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const B=[];if(this._platformSupportsMouseEvents())B.push(["mouseleave",N=>{var H;const J=N.relatedTarget;(!J||!(null===(H=this._overlayRef)||void 0===H?void 0:H.overlayElement.contains(J)))&&this.hide()}],["wheel",N=>this._wheelListener(N)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const N=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};B.push(["touchend",N],["touchcancel",N])}this._addListeners(B),this._passiveListeners.push(...B)}_addListeners(B){B.forEach(([N,H])=>{this._elementRef.nativeElement.addEventListener(N,H,te)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(B){if(this._isTooltipVisible()){const N=this._document.elementFromPoint(B.clientX,B.clientY),H=this._elementRef.nativeElement;N!==H&&!H.contains(N)&&this.hide()}}_disableNativeGesturesIfNecessary(){const B=this.touchGestures;if("off"!==B){const N=this._elementRef.nativeElement,H=N.style;("on"===B||"INPUT"!==N.nodeName&&"TEXTAREA"!==N.nodeName)&&(H.userSelect=H.msUserSelect=H.webkitUserSelect=H.MozUserSelect="none"),("on"===B||!N.draggable)&&(H.webkitUserDrag="none"),H.touchAction="none",H.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(B){M.$Z()},n.\u0275dir=M.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),c=(()=>{class n extends u{constructor(B,N,H,J,ue,xe,Pe,Se,Q,Ue,Ce,q){super(B,N,H,J,ue,xe,Pe,Se,Q,Ue,Ce,q),this._tooltipComponent=T}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(t.aV),M.Y36(M.SBq),M.Y36(b.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(L.t4),M.Y36(e.$s),M.Y36(e.tE),M.Y36($),M.Y36(U.Is,8),M.Y36(i,8),M.Y36(f.K0))},n.\u0275dir=M.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),n})(),v=(()=>{class n{constructor(B,N){this._changeDetectorRef=B,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new S.x,this._animationsDisabled="NoopAnimations"===N}show(B){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},B)}hide(B){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},B)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:B}){(!B||!this._triggerElement.contains(B))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:B}){(B===this._showAnimation||B===this._hideAnimation)&&this._finalizeAnimation(B===this._showAnimation)}_finalizeAnimation(B){B?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(B){const N=this._tooltip.nativeElement,H=this._showAnimation,J=this._hideAnimation;if(N.classList.remove(B?J:H),N.classList.add(B?H:J),this._isVisible=B,B&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ue=getComputedStyle(N);("0s"===ue.getPropertyValue("animation-duration")||"none"===ue.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}B&&this._onShow(),this._animationsDisabled&&(N.classList.add("_mat-animation-noopable"),this._finalizeAnimation(B))}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(M.sBO),M.Y36(D.Qb,8))},n.\u0275dir=M.lG2({type:n}),n})(),T=(()=>{class n extends v{constructor(B,N,H){super(B,H),this._breakpointObserver=N,this._isHandset=this._breakpointObserver.observe(h.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(B){return new(B||n)(M.Y36(M.sBO),M.Y36(h.Yg),M.Y36(D.Qb,8))},n.\u0275cmp=M.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(B,N){if(1&B&&M.Gf(j,7),2&B){let H;M.iGM(H=M.CRH())&&(N._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(B,N){1&B&&M.NdJ("mouseleave",function(J){return N._handleMouseLeave(J)}),2&B&&M.Udp("zoom",N.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(B,N){if(1&B&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(J){return N._handleAnimationEnd(J)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&B){let H;M.ekj("mat-tooltip-handset",null==(H=M.lcZ(2,4,N._isHandset))?null:H.matches),M.Q6J("ngClass",N.tooltipClass),M.xp6(3),M.Oqu(N.message)}},directives:[f.mk],pipes:[f.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(B){return new(B||n)},n.\u0275mod=M.oAB({type:n}),n.\u0275inj=M.cJS({providers:[C],imports:[[e.rt,f.ez,t.U8,s.BQ],s.BQ,b.ZD]}),n})()},149:(ze,K,p)=>{"use strict";p.d(K,{Ar:()=>k,GZ:()=>D,WX:()=>de,dp:()=>j,eu:()=>U,fQ:()=>w,gi:()=>E,uo:()=>L});var t=p(8258),e=p(5e3),f=p(508),M=p(3191),s=p(449),b=p(1135),d=p(6451),R=p(4004);const h=(0,f.sb)((0,f.Id)(t.Hs));let L=(()=>{class te extends h{constructor(le,$,ge){super(le,$),this.tabIndex=Number(ge)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return te.\u0275fac=function(le){return new(le||te)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},te.\u0275dir=e.lG2({type:te,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:te}]),e.qOj]}),te})(),w=(()=>{class te extends t.rO{}return te.\u0275fac=function(){let ie;return function($){return(ie||(ie=e.n5z(te)))($||te)}}(),te.\u0275dir=e.lG2({type:te,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:te}]),e.qOj]}),te})(),D=(()=>{class te extends t.Xx{constructor(le,$,ge,C){super(le,$,ge),this._disabled=!1,this.tabIndex=Number(C)||0}get disabled(){return this._disabled}set disabled(le){this._disabled=(0,M.Ig)(le)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(le){this._tabIndex=null!=le?le:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return te.\u0275fac=function(le){return new(le||te)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},te.\u0275dir=e.lG2({type:te,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:te},{provide:t.Hs,useExisting:te},{provide:t.HI,useExisting:te}]),e.qOj]}),te})(),k=(()=>{class te{constructor(le,$){this.viewContainer=le,this._node=$}}return te.\u0275fac=function(le){return new(le||te)(e.Y36(e.s_b),e.Y36(t.HI,8))},te.\u0275dir=e.lG2({type:te,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:te}])]}),te})(),E=(()=>{class te extends t._0{}return te.\u0275fac=function(){let ie;return function($){return(ie||(ie=e.n5z(te)))($||te)}}(),te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-tree"]],viewQuery:function(le,$){if(1&le&&e.Gf(k,7),2&le){let ge;e.iGM(ge=e.CRH())&&($._nodeOutlet=ge.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:te}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(le,$){1&le&&e.GkF(0,0)},directives:[k],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),te})(),U=(()=>{class te extends t.Ud{}return te.\u0275fac=function(){let ie;return function($){return(ie||(ie=e.n5z(te)))($||te)}}(),te.\u0275dir=e.lG2({type:te,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:te}]),e.qOj]}),te})(),j=(()=>{class te{}return te.\u0275fac=function(le){return new(le||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[t.nZ,f.BQ],f.BQ]}),te})();class de extends s.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(ie){this._data.next(ie)}connect(ie){return(0,d.T)(ie.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(ze,K,p)=>{"use strict";p.d(K,{Qb:()=>za,PW:()=>Ur});var t=p(5e3),e=p(2313),f=p(1777);const M=!1;function b(_t){return new t.vHH(3e3,M)}function ue(){return"undefined"!=typeof window&&void 0!==window.document}function xe(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pe(_t){switch(_t.length){case 0:return new f.ZN;case 1:return _t[0];default:return new f.ZE(_t)}}function Se(_t,se,pe,Ye,Mt={},zt={}){const ii=[],ni=[];let gi=-1,Oi=null;if(Ye.forEach(en=>{const hn=en.offset,Ln=hn==gi,zn=Ln&&Oi||{};Object.keys(en).forEach(En=>{let kn=En,rr=en[En];if("offset"!==En)switch(kn=se.normalizePropertyName(kn,ii),rr){case f.k1:rr=Mt[En];break;case f.l3:rr=zt[En];break;default:rr=se.normalizeStyleValue(En,kn,rr,ii)}zn[kn]=rr}),Ln||ni.push(zn),Oi=zn,gi=hn}),ii.length)throw function u(_t){return new t.vHH(3502,M)}();return ni}function Q(_t,se,pe,Ye){switch(se){case"start":_t.onStart(()=>Ye(pe&&Ue(pe,"start",_t)));break;case"done":_t.onDone(()=>Ye(pe&&Ue(pe,"done",_t)));break;case"destroy":_t.onDestroy(()=>Ye(pe&&Ue(pe,"destroy",_t)))}}function Ue(_t,se,pe){const Ye=pe.totalTime,zt=Ce(_t.element,_t.triggerName,_t.fromState,_t.toState,se||_t.phaseName,null==Ye?_t.totalTime:Ye,!!pe.disabled),ii=_t._data;return null!=ii&&(zt._data=ii),zt}function Ce(_t,se,pe,Ye,Mt="",zt=0,ii){return{element:_t,triggerName:se,fromState:pe,toState:Ye,phaseName:Mt,totalTime:zt,disabled:!!ii}}function q(_t,se,pe){let Ye;return _t instanceof Map?(Ye=_t.get(se),Ye||_t.set(se,Ye=pe)):(Ye=_t[se],Ye||(Ye=_t[se]=pe)),Ye}function Ae(_t){const se=_t.indexOf(":");return[_t.substring(1,se),_t.substr(se+1)]}let ut=(_t,se)=>!1,Ie=(_t,se,pe)=>[],De=null;function ae(_t){const se=_t.parentNode||_t.host;return se===De?null:se}(xe()||"undefined"!=typeof Element)&&(ue()?(De=(()=>document.documentElement)(),ut=(_t,se)=>{for(;se;){if(se===_t)return!0;se=ae(se)}return!1}):ut=(_t,se)=>_t.contains(se),Ie=(_t,se,pe)=>{if(pe)return Array.from(_t.querySelectorAll(se));const Ye=_t.querySelector(se);return Ye?[Ye]:[]});let Y=null,z=!1;function be(_t){Y||(Y=function fe(){return"undefined"!=typeof document?document.body:null}()||{},z=!!Y.style&&"WebkitAppearance"in Y.style);let se=!0;return Y.style&&!function ye(_t){return"ebkit"==_t.substring(1,6)}(_t)&&(se=_t in Y.style,!se&&z&&(se="Webkit"+_t.charAt(0).toUpperCase()+_t.substr(1)in Y.style)),se}const He=ut,pt=Ie;let Lt=(()=>{class _t{validateStyleProperty(pe){return be(pe)}matchesElement(pe,Ye){return!1}containsElement(pe,Ye){return He(pe,Ye)}getParentElement(pe){return ae(pe)}query(pe,Ye,Mt){return pt(pe,Ye,Mt)}computeStyle(pe,Ye,Mt){return Mt||""}animate(pe,Ye,Mt,zt,ii,ni=[],gi){return new f.ZN(Mt,zt)}}return _t.\u0275fac=function(pe){return new(pe||_t)},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})(),di=(()=>{class _t{}return _t.NOOP=new Lt,_t})();const Ot="ng-enter",Nt="ng-leave",gt="ng-trigger",tt=".ng-trigger",xt="ng-animating",ei=".ng-animating";function Kt(_t){if("number"==typeof _t)return _t;const se=_t.match(/^(-?[\.\d]+)(m?s)/);return!se||se.length<2?0:Re(parseFloat(se[1]),se[2])}function Re(_t,se){return"s"===se?1e3*_t:_t}function Oe(_t,se,pe){return _t.hasOwnProperty("duration")?_t:function ce(_t,se,pe){let Mt,zt=0,ii="";if("string"==typeof _t){const ni=_t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return se.push(b()),{duration:0,delay:0,easing:""};Mt=Re(parseFloat(ni[1]),ni[2]);const gi=ni[3];null!=gi&&(zt=Re(parseFloat(gi),ni[4]));const Oi=ni[5];Oi&&(ii=Oi)}else Mt=_t;if(!pe){let ni=!1,gi=se.length;Mt<0&&(se.push(function d(){return new t.vHH(3100,M)}()),ni=!0),zt<0&&(se.push(function R(){return new t.vHH(3101,M)}()),ni=!0),ni&&se.splice(gi,0,b())}return{duration:Mt,delay:zt,easing:ii}}(_t,se,pe)}function ve(_t,se={}){return Object.keys(_t).forEach(pe=>{se[pe]=_t[pe]}),se}function mt(_t,se,pe={}){if(se)for(let Ye in _t)pe[Ye]=_t[Ye];else ve(_t,pe);return pe}function Ht(_t,se,pe){return pe?se+":"+pe+";":""}function it(_t){let se="";for(let pe=0;pe<_t.style.length;pe++){const Ye=_t.style.item(pe);se+=Ht(0,Ye,_t.style.getPropertyValue(Ye))}for(const pe in _t.style)_t.style.hasOwnProperty(pe)&&!pe.startsWith("_")&&(se+=Ht(0,$t(pe),_t.style[pe]));_t.setAttribute("style",se)}function Ne(_t,se,pe){_t.style&&(Object.keys(se).forEach(Ye=>{const Mt=Jt(Ye);pe&&!pe.hasOwnProperty(Ye)&&(pe[Ye]=_t.style[Mt]),_t.style[Mt]=se[Ye]}),xe()&&it(_t))}function nt(_t,se){_t.style&&(Object.keys(se).forEach(pe=>{const Ye=Jt(pe);_t.style[Ye]=""}),xe()&&it(_t))}function Xe(_t){return Array.isArray(_t)?1==_t.length?_t[0]:(0,f.vP)(_t):_t}const Ge=new RegExp("{{\\s*(.+?)\\s*}}","g");function ot(_t){let se=[];if("string"==typeof _t){let pe;for(;pe=Ge.exec(_t);)se.push(pe[1]);Ge.lastIndex=0}return se}function lt(_t,se,pe){const Ye=_t.toString(),Mt=Ye.replace(Ge,(zt,ii)=>{let ni=se[ii];return se.hasOwnProperty(ii)||(pe.push(function L(_t){return new t.vHH(3003,M)}()),ni=""),ni.toString()});return Mt==Ye?_t:Mt}function Ct(_t){const se=[];let pe=_t.next();for(;!pe.done;)se.push(pe.value),pe=_t.next();return se}const mi=/-+([a-z0-9])/g;function Jt(_t){return _t.replace(mi,(...se)=>se[1].toUpperCase())}function $t(_t){return _t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ai(_t,se,pe){switch(se.type){case 7:return _t.visitTrigger(se,pe);case 0:return _t.visitState(se,pe);case 1:return _t.visitTransition(se,pe);case 2:return _t.visitSequence(se,pe);case 3:return _t.visitGroup(se,pe);case 4:return _t.visitAnimate(se,pe);case 5:return _t.visitKeyframes(se,pe);case 6:return _t.visitStyle(se,pe);case 8:return _t.visitReference(se,pe);case 9:return _t.visitAnimateChild(se,pe);case 10:return _t.visitAnimateRef(se,pe);case 11:return _t.visitQuery(se,pe);case 12:return _t.visitStagger(se,pe);default:throw function w(_t){return new t.vHH(3004,M)}()}}function Ji(_t,se){return window.getComputedStyle(_t)[se]}function re(_t,se){const pe=[];return"string"==typeof _t?_t.split(/\s*,\s*/).forEach(Ye=>function qe(_t,se,pe){if(":"==_t[0]){const gi=function bt(_t,se){switch(_t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,Ye)=>parseFloat(Ye)>parseFloat(pe);case":decrement":return(pe,Ye)=>parseFloat(Ye)<parseFloat(pe);default:return se.push(function ge(_t){return new t.vHH(3016,M)}()),"* => *"}}(_t,pe);if("function"==typeof gi)return void se.push(gi);_t=gi}const Ye=_t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ye||Ye.length<4)return pe.push(function $(_t){return new t.vHH(3015,M)}()),se;const Mt=Ye[1],zt=Ye[2],ii=Ye[3];se.push(wi(Mt,ii));"<"==zt[0]&&!("*"==Mt&&"*"==ii)&&se.push(wi(ii,Mt))}(Ye,pe,se)):pe.push(_t),pe}const Vt=new Set(["true","1"]),bi=new Set(["false","0"]);function wi(_t,se){const pe=Vt.has(_t)||bi.has(_t),Ye=Vt.has(se)||bi.has(se);return(Mt,zt)=>{let ii="*"==_t||_t==Mt,ni="*"==se||se==zt;return!ii&&pe&&"boolean"==typeof Mt&&(ii=Mt?Vt.has(_t):bi.has(_t)),!ni&&Ye&&"boolean"==typeof zt&&(ni=zt?Vt.has(se):bi.has(se)),ii&&ni}}const Zi=new RegExp("s*:selfs*,?","g");function on(_t,se,pe,Ye){return new ti(_t).build(se,pe,Ye)}class ti{constructor(se){this._driver=se}build(se,pe,Ye){const Mt=new Rt(pe);this._resetContextStyleTimingState(Mt);const zt=ai(this,Xe(se),Mt);return Mt.unsupportedCSSPropertiesFound.size&&Mt.unsupportedCSSPropertiesFound.keys(),zt}_resetContextStyleTimingState(se){se.currentQuerySelector="",se.collectedStyles={},se.collectedStyles[""]={},se.currentTime=0}visitTrigger(se,pe){let Ye=pe.queryCount=0,Mt=pe.depCount=0;const zt=[],ii=[];return"@"==se.name.charAt(0)&&pe.errors.push(function S(){return new t.vHH(3006,M)}()),se.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(pe),0==ni.type){const gi=ni,Oi=gi.name;Oi.toString().split(/\s*,\s*/).forEach(en=>{gi.name=en,zt.push(this.visitState(gi,pe))}),gi.name=Oi}else if(1==ni.type){const gi=this.visitTransition(ni,pe);Ye+=gi.queryCount,Mt+=gi.depCount,ii.push(gi)}else pe.errors.push(function k(){return new t.vHH(3007,M)}())}),{type:7,name:se.name,states:zt,transitions:ii,queryCount:Ye,depCount:Mt,options:null}}visitState(se,pe){const Ye=this.visitStyle(se.styles,pe),Mt=se.options&&se.options.params||null;if(Ye.containsDynamicStyles){const zt=new Set,ii=Mt||{};Ye.styles.forEach(ni=>{if(fi(ni)){const gi=ni;Object.keys(gi).forEach(Oi=>{ot(gi[Oi]).forEach(en=>{ii.hasOwnProperty(en)||zt.add(en)})})}}),zt.size&&(Ct(zt.values()),pe.errors.push(function E(_t,se){return new t.vHH(3008,M)}()))}return{type:0,name:se.name,style:Ye,options:Mt?{params:Mt}:null}}visitTransition(se,pe){pe.queryCount=0,pe.depCount=0;const Ye=ai(this,Xe(se.animation),pe);return{type:1,matchers:re(se.expr,pe.errors),animation:Ye,queryCount:pe.queryCount,depCount:pe.depCount,options:ki(se.options)}}visitSequence(se,pe){return{type:2,steps:se.steps.map(Ye=>ai(this,Ye,pe)),options:ki(se.options)}}visitGroup(se,pe){const Ye=pe.currentTime;let Mt=0;const zt=se.steps.map(ii=>{pe.currentTime=Ye;const ni=ai(this,ii,pe);return Mt=Math.max(Mt,pe.currentTime),ni});return pe.currentTime=Mt,{type:3,steps:zt,options:ki(se.options)}}visitAnimate(se,pe){const Ye=function Ni(_t,se){if(_t.hasOwnProperty("duration"))return _t;if("number"==typeof _t)return un(Oe(_t,se).duration,0,"");const pe=_t;if(pe.split(/\s+/).some(zt=>"{"==zt.charAt(0)&&"{"==zt.charAt(1))){const zt=un(0,0,"");return zt.dynamic=!0,zt.strValue=pe,zt}const Mt=Oe(pe,se);return un(Mt.duration,Mt.delay,Mt.easing)}(se.timings,pe.errors);pe.currentAnimateTimings=Ye;let Mt,zt=se.styles?se.styles:(0,f.oB)({});if(5==zt.type)Mt=this.visitKeyframes(zt,pe);else{let ii=se.styles,ni=!1;if(!ii){ni=!0;const Oi={};Ye.easing&&(Oi.easing=Ye.easing),ii=(0,f.oB)(Oi)}pe.currentTime+=Ye.duration+Ye.delay;const gi=this.visitStyle(ii,pe);gi.isEmptyStep=ni,Mt=gi}return pe.currentAnimateTimings=null,{type:4,timings:Ye,style:Mt,options:null}}visitStyle(se,pe){const Ye=this._makeStyleAst(se,pe);return this._validateStyleAst(Ye,pe),Ye}_makeStyleAst(se,pe){const Ye=[];Array.isArray(se.styles)?se.styles.forEach(ii=>{"string"==typeof ii?ii==f.l3?Ye.push(ii):pe.errors.push(function U(_t){return new t.vHH(3002,M)}()):Ye.push(ii)}):Ye.push(se.styles);let Mt=!1,zt=null;return Ye.forEach(ii=>{if(fi(ii)){const ni=ii,gi=ni.easing;if(gi&&(zt=gi,delete ni.easing),!Mt)for(let Oi in ni)if(ni[Oi].toString().indexOf("{{")>=0){Mt=!0;break}}}),{type:6,styles:Ye,easing:zt,offset:se.offset,containsDynamicStyles:Mt,options:null}}_validateStyleAst(se,pe){const Ye=pe.currentAnimateTimings;let Mt=pe.currentTime,zt=pe.currentTime;Ye&&zt>0&&(zt-=Ye.duration+Ye.delay),se.styles.forEach(ii=>{"string"!=typeof ii&&Object.keys(ii).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ii[ni],void pe.unsupportedCSSPropertiesFound.add(ni);const gi=pe.collectedStyles[pe.currentQuerySelector],Oi=gi[ni];let en=!0;Oi&&(zt!=Mt&&zt>=Oi.startTime&&Mt<=Oi.endTime&&(pe.errors.push(function j(_t,se,pe,Ye,Mt){return new t.vHH(3010,M)}()),en=!1),zt=Oi.startTime),en&&(gi[ni]={startTime:zt,endTime:Mt}),pe.options&&function Ee(_t,se,pe){const Ye=se.params||{},Mt=ot(_t);Mt.length&&Mt.forEach(zt=>{Ye.hasOwnProperty(zt)||pe.push(function h(_t){return new t.vHH(3001,M)}())})}(ii[ni],pe.options,pe.errors)})})}visitKeyframes(se,pe){const Ye={type:5,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.errors.push(function ne(){return new t.vHH(3011,M)}()),Ye;let zt=0;const ii=[];let ni=!1,gi=!1,Oi=0;const en=se.steps.map(Pr=>{const Sr=this._makeStyleAst(Pr,pe);let Nr=null!=Sr.offset?Sr.offset:function Zt(_t){if("string"==typeof _t)return null;let se=null;if(Array.isArray(_t))_t.forEach(pe=>{if(fi(pe)&&pe.hasOwnProperty("offset")){const Ye=pe;se=parseFloat(Ye.offset),delete Ye.offset}});else if(fi(_t)&&_t.hasOwnProperty("offset")){const pe=_t;se=parseFloat(pe.offset),delete pe.offset}return se}(Sr.styles),es=0;return null!=Nr&&(zt++,es=Sr.offset=Nr),gi=gi||es<0||es>1,ni=ni||es<Oi,Oi=es,ii.push(es),Sr});gi&&pe.errors.push(function ee(){return new t.vHH(3012,M)}()),ni&&pe.errors.push(function de(){return new t.vHH(3200,M)}());const hn=se.steps.length;let Ln=0;zt>0&&zt<hn?pe.errors.push(function te(){return new t.vHH(3202,M)}()):0==zt&&(Ln=1/(hn-1));const zn=hn-1,En=pe.currentTime,kn=pe.currentAnimateTimings,rr=kn.duration;return en.forEach((Pr,Sr)=>{const Nr=Ln>0?Sr==zn?1:Ln*Sr:ii[Sr],es=Nr*rr;pe.currentTime=En+kn.delay+es,kn.duration=es,this._validateStyleAst(Pr,pe),Pr.offset=Nr,Ye.styles.push(Pr)}),Ye}visitReference(se,pe){return{type:8,animation:ai(this,Xe(se.animation),pe),options:ki(se.options)}}visitAnimateChild(se,pe){return pe.depCount++,{type:9,options:ki(se.options)}}visitAnimateRef(se,pe){return{type:10,animation:this.visitReference(se.animation,pe),options:ki(se.options)}}visitQuery(se,pe){const Ye=pe.currentQuerySelector,Mt=se.options||{};pe.queryCount++,pe.currentQuery=se;const[zt,ii]=function Pi(_t){const se=!!_t.split(/\s*,\s*/).find(pe=>":self"==pe);return se&&(_t=_t.replace(Zi,"")),_t=_t.replace(/@\*/g,tt).replace(/@\w+/g,pe=>tt+"-"+pe.substr(1)).replace(/:animating/g,ei),[_t,se]}(se.selector);pe.currentQuerySelector=Ye.length?Ye+" "+zt:zt,q(pe.collectedStyles,pe.currentQuerySelector,{});const ni=ai(this,Xe(se.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=Ye,{type:11,selector:zt,limit:Mt.limit||0,optional:!!Mt.optional,includeSelf:ii,animation:ni,originalSelector:se.selector,options:ki(se.options)}}visitStagger(se,pe){pe.currentQuery||pe.errors.push(function ie(){return new t.vHH(3013,M)}());const Ye="full"===se.timings?{duration:0,delay:0,easing:"full"}:Oe(se.timings,pe.errors,!0);return{type:12,animation:ai(this,Xe(se.animation),pe),timings:Ye,options:null}}}class Rt{constructor(se){this.errors=se,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function fi(_t){return!Array.isArray(_t)&&"object"==typeof _t}function ki(_t){return _t?(_t=ve(_t)).params&&(_t.params=function st(_t){return _t?ve(_t):null}(_t.params)):_t={},_t}function un(_t,se,pe){return{duration:_t,delay:se,easing:pe}}function jn(_t,se,pe,Ye,Mt,zt,ii=null,ni=!1){return{type:1,element:_t,keyframes:se,preStyleProps:pe,postStyleProps:Ye,duration:Mt,delay:zt,totalTime:Mt+zt,easing:ii,subTimeline:ni}}class Nn{constructor(){this._map=new Map}get(se){return this._map.get(se)||[]}append(se,pe){let Ye=this._map.get(se);Ye||this._map.set(se,Ye=[]),Ye.push(...pe)}has(se){return this._map.has(se)}clear(){this._map.clear()}}const Si=new RegExp(":enter","g"),wn=new RegExp(":leave","g");function Kn(_t,se,pe,Ye,Mt,zt={},ii={},ni,gi,Oi=[]){return(new nr).buildKeyframes(_t,se,pe,Ye,Mt,zt,ii,ni,gi,Oi)}class nr{buildKeyframes(se,pe,Ye,Mt,zt,ii,ni,gi,Oi,en=[]){Oi=Oi||new Nn;const hn=new qr(se,pe,Oi,Mt,zt,en,[]);hn.options=gi,hn.currentTimeline.setStyles([ii],null,hn.errors,gi),ai(this,Ye,hn);const Ln=hn.timelines.filter(zn=>zn.containsAnimation());if(Object.keys(ni).length){let zn;for(let En=Ln.length-1;En>=0;En--){const kn=Ln[En];if(kn.element===pe){zn=kn;break}}zn&&!zn.allowOnlyTimelineStyles()&&zn.setStyles([ni],null,hn.errors,gi)}return Ln.length?Ln.map(zn=>zn.buildKeyframes()):[jn(pe,[],[],[],0,0,"",!1)]}visitTrigger(se,pe){}visitState(se,pe){}visitTransition(se,pe){}visitAnimateChild(se,pe){const Ye=pe.subInstructions.get(pe.element);if(Ye){const Mt=pe.createSubContext(se.options),zt=pe.currentTimeline.currentTime,ii=this._visitSubInstructions(Ye,Mt,Mt.options);zt!=ii&&pe.transformIntoNewTimeline(ii)}pe.previousNode=se}visitAnimateRef(se,pe){const Ye=pe.createSubContext(se.options);Ye.transformIntoNewTimeline(),this.visitReference(se.animation,Ye),pe.transformIntoNewTimeline(Ye.currentTimeline.currentTime),pe.previousNode=se}_visitSubInstructions(se,pe,Ye){let zt=pe.currentTimeline.currentTime;const ii=null!=Ye.duration?Kt(Ye.duration):null,ni=null!=Ye.delay?Kt(Ye.delay):null;return 0!==ii&&se.forEach(gi=>{const Oi=pe.appendInstructionToTimeline(gi,ii,ni);zt=Math.max(zt,Oi.duration+Oi.delay)}),zt}visitReference(se,pe){pe.updateOptions(se.options,!0),ai(this,se.animation,pe),pe.previousNode=se}visitSequence(se,pe){const Ye=pe.subContextCount;let Mt=pe;const zt=se.options;if(zt&&(zt.params||zt.delay)&&(Mt=pe.createSubContext(zt),Mt.transformIntoNewTimeline(),null!=zt.delay)){6==Mt.previousNode.type&&(Mt.currentTimeline.snapshotCurrentStyles(),Mt.previousNode=lr);const ii=Kt(zt.delay);Mt.delayNextStep(ii)}se.steps.length&&(se.steps.forEach(ii=>ai(this,ii,Mt)),Mt.currentTimeline.applyStylesToKeyframe(),Mt.subContextCount>Ye&&Mt.transformIntoNewTimeline()),pe.previousNode=se}visitGroup(se,pe){const Ye=[];let Mt=pe.currentTimeline.currentTime;const zt=se.options&&se.options.delay?Kt(se.options.delay):0;se.steps.forEach(ii=>{const ni=pe.createSubContext(se.options);zt&&ni.delayNextStep(zt),ai(this,ii,ni),Mt=Math.max(Mt,ni.currentTimeline.currentTime),Ye.push(ni.currentTimeline)}),Ye.forEach(ii=>pe.currentTimeline.mergeTimelineCollectedStyles(ii)),pe.transformIntoNewTimeline(Mt),pe.previousNode=se}_visitTiming(se,pe){if(se.dynamic){const Ye=se.strValue;return Oe(pe.params?lt(Ye,pe.params,pe.errors):Ye,pe.errors)}return{duration:se.duration,delay:se.delay,easing:se.easing}}visitAnimate(se,pe){const Ye=pe.currentAnimateTimings=this._visitTiming(se.timings,pe),Mt=pe.currentTimeline;Ye.delay&&(pe.incrementTime(Ye.delay),Mt.snapshotCurrentStyles());const zt=se.style;5==zt.type?this.visitKeyframes(zt,pe):(pe.incrementTime(Ye.duration),this.visitStyle(zt,pe),Mt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=se}visitStyle(se,pe){const Ye=pe.currentTimeline,Mt=pe.currentAnimateTimings;!Mt&&Ye.getCurrentStyleProperties().length&&Ye.forwardFrame();const zt=Mt&&Mt.easing||se.easing;se.isEmptyStep?Ye.applyEmptyStep(zt):Ye.setStyles(se.styles,zt,pe.errors,pe.options),pe.previousNode=se}visitKeyframes(se,pe){const Ye=pe.currentAnimateTimings,Mt=pe.currentTimeline.duration,zt=Ye.duration,ni=pe.createSubContext().currentTimeline;ni.easing=Ye.easing,se.styles.forEach(gi=>{ni.forwardTime((gi.offset||0)*zt),ni.setStyles(gi.styles,gi.easing,pe.errors,pe.options),ni.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(ni),pe.transformIntoNewTimeline(Mt+zt),pe.previousNode=se}visitQuery(se,pe){const Ye=pe.currentTimeline.currentTime,Mt=se.options||{},zt=Mt.delay?Kt(Mt.delay):0;zt&&(6===pe.previousNode.type||0==Ye&&pe.currentTimeline.getCurrentStyleProperties().length)&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=lr);let ii=Ye;const ni=pe.invokeQuery(se.selector,se.originalSelector,se.limit,se.includeSelf,!!Mt.optional,pe.errors);pe.currentQueryTotal=ni.length;let gi=null;ni.forEach((Oi,en)=>{pe.currentQueryIndex=en;const hn=pe.createSubContext(se.options,Oi);zt&&hn.delayNextStep(zt),Oi===pe.element&&(gi=hn.currentTimeline),ai(this,se.animation,hn),hn.currentTimeline.applyStylesToKeyframe(),ii=Math.max(ii,hn.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(ii),gi&&(pe.currentTimeline.mergeTimelineCollectedStyles(gi),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=se}visitStagger(se,pe){const Ye=pe.parentContext,Mt=pe.currentTimeline,zt=se.timings,ii=Math.abs(zt.duration),ni=ii*(pe.currentQueryTotal-1);let gi=ii*pe.currentQueryIndex;switch(zt.duration<0?"reverse":zt.easing){case"reverse":gi=ni-gi;break;case"full":gi=Ye.currentStaggerTime}const en=pe.currentTimeline;gi&&en.delayNextStep(gi);const hn=en.currentTime;ai(this,se.animation,pe),pe.previousNode=se,Ye.currentStaggerTime=Mt.currentTime-hn+(Mt.startTime-Ye.currentTimeline.startTime)}}const lr={};class qr{constructor(se,pe,Ye,Mt,zt,ii,ni,gi){this._driver=se,this.element=pe,this.subInstructions=Ye,this._enterClassName=Mt,this._leaveClassName=zt,this.errors=ii,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=gi||new zr(this._driver,pe,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(se,pe){if(!se)return;const Ye=se;let Mt=this.options;null!=Ye.duration&&(Mt.duration=Kt(Ye.duration)),null!=Ye.delay&&(Mt.delay=Kt(Ye.delay));const zt=Ye.params;if(zt){let ii=Mt.params;ii||(ii=this.options.params={}),Object.keys(zt).forEach(ni=>{(!pe||!ii.hasOwnProperty(ni))&&(ii[ni]=lt(zt[ni],ii,this.errors))})}}_copyOptions(){const se={};if(this.options){const pe=this.options.params;if(pe){const Ye=se.params={};Object.keys(pe).forEach(Mt=>{Ye[Mt]=pe[Mt]})}}return se}createSubContext(se=null,pe,Ye){const Mt=pe||this.element,zt=new qr(this._driver,Mt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Mt,Ye||0));return zt.previousNode=this.previousNode,zt.currentAnimateTimings=this.currentAnimateTimings,zt.options=this._copyOptions(),zt.updateOptions(se),zt.currentQueryIndex=this.currentQueryIndex,zt.currentQueryTotal=this.currentQueryTotal,zt.parentContext=this,this.subContextCount++,zt}transformIntoNewTimeline(se){return this.previousNode=lr,this.currentTimeline=this.currentTimeline.fork(this.element,se),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(se,pe,Ye){const Mt={duration:null!=pe?pe:se.duration,delay:this.currentTimeline.currentTime+(null!=Ye?Ye:0)+se.delay,easing:""},zt=new ls(this._driver,se.element,se.keyframes,se.preStyleProps,se.postStyleProps,Mt,se.stretchStartingKeyframe);return this.timelines.push(zt),Mt}incrementTime(se){this.currentTimeline.forwardTime(this.currentTimeline.duration+se)}delayNextStep(se){se>0&&this.currentTimeline.delayNextStep(se)}invokeQuery(se,pe,Ye,Mt,zt,ii){let ni=[];if(Mt&&ni.push(this.element),se.length>0){se=(se=se.replace(Si,"."+this._enterClassName)).replace(wn,"."+this._leaveClassName);let Oi=this._driver.query(this.element,se,1!=Ye);0!==Ye&&(Oi=Ye<0?Oi.slice(Oi.length+Ye,Oi.length):Oi.slice(0,Ye)),ni.push(...Oi)}return!zt&&0==ni.length&&ii.push(function le(_t){return new t.vHH(3014,M)}()),ni}}class zr{constructor(se,pe,Ye,Mt){this._driver=se,this.element=pe,this.startTime=Ye,this._elementTimelineStylesLookup=Mt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(se){const pe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||pe?(this.forwardTime(this.currentTime+se),pe&&this.snapshotCurrentStyles()):this.startTime+=se}fork(se,pe){return this.applyStylesToKeyframe(),new zr(this._driver,se,pe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(se){this.applyStylesToKeyframe(),this.duration=se,this._loadKeyframe()}_updateStyle(se,pe){this._localTimelineStyles[se]=pe,this._globalTimelineStyles[se]=pe,this._styleSummary[se]={time:this.currentTime,value:pe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(se){se&&(this._previousKeyframe.easing=se),Object.keys(this._globalTimelineStyles).forEach(pe=>{this._backFill[pe]=this._globalTimelineStyles[pe]||f.l3,this._currentKeyframe[pe]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(se,pe,Ye,Mt){pe&&(this._previousKeyframe.easing=pe);const zt=Mt&&Mt.params||{},ii=function zs(_t,se){const pe={};let Ye;return _t.forEach(Mt=>{"*"===Mt?(Ye=Ye||Object.keys(se),Ye.forEach(zt=>{pe[zt]=f.l3})):mt(Mt,!1,pe)}),pe}(se,this._globalTimelineStyles);Object.keys(ii).forEach(ni=>{const gi=lt(ii[ni],zt,Ye);this._pendingStyles[ni]=gi,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:f.l3),this._updateStyle(ni,gi)})}applyStylesToKeyframe(){const se=this._pendingStyles,pe=Object.keys(se);0!=pe.length&&(this._pendingStyles={},pe.forEach(Ye=>{this._currentKeyframe[Ye]=se[Ye]}),Object.keys(this._localTimelineStyles).forEach(Ye=>{this._currentKeyframe.hasOwnProperty(Ye)||(this._currentKeyframe[Ye]=this._localTimelineStyles[Ye])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(se=>{const pe=this._localTimelineStyles[se];this._pendingStyles[se]=pe,this._updateStyle(se,pe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const se=[];for(let pe in this._currentKeyframe)se.push(pe);return se}mergeTimelineCollectedStyles(se){Object.keys(se._styleSummary).forEach(pe=>{const Ye=this._styleSummary[pe],Mt=se._styleSummary[pe];(!Ye||Mt.time>Ye.time)&&this._updateStyle(pe,Mt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const se=new Set,pe=new Set,Ye=1===this._keyframes.size&&0===this.duration;let Mt=[];this._keyframes.forEach((ni,gi)=>{const Oi=mt(ni,!0);Object.keys(Oi).forEach(en=>{const hn=Oi[en];hn==f.k1?se.add(en):hn==f.l3&&pe.add(en)}),Ye||(Oi.offset=gi/this.duration),Mt.push(Oi)});const zt=se.size?Ct(se.values()):[],ii=pe.size?Ct(pe.values()):[];if(Ye){const ni=Mt[0],gi=ve(ni);ni.offset=0,gi.offset=1,Mt=[ni,gi]}return jn(this.element,Mt,zt,ii,this.duration,this.startTime,this.easing,!1)}}class ls extends zr{constructor(se,pe,Ye,Mt,zt,ii,ni=!1){super(se,pe,ii.delay),this.keyframes=Ye,this.preStyleProps=Mt,this.postStyleProps=zt,this._stretchStartingKeyframe=ni,this.timings={duration:ii.duration,delay:ii.delay,easing:ii.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let se=this.keyframes,{delay:pe,duration:Ye,easing:Mt}=this.timings;if(this._stretchStartingKeyframe&&pe){const zt=[],ii=Ye+pe,ni=pe/ii,gi=mt(se[0],!1);gi.offset=0,zt.push(gi);const Oi=mt(se[0],!1);Oi.offset=Jr(ni),zt.push(Oi);const en=se.length-1;for(let hn=1;hn<=en;hn++){let Ln=mt(se[hn],!1);Ln.offset=Jr((pe+Ln.offset*Ye)/ii),zt.push(Ln)}Ye=ii,pe=0,Mt="",se=zt}return jn(this.element,se,this.preStyleProps,this.postStyleProps,Ye,pe,Mt,!0)}}function Jr(_t,se=3){const pe=Math.pow(10,se-1);return Math.round(_t*pe)/pe}class cs{}class $r extends cs{normalizePropertyName(se,pe){return Jt(se)}normalizeStyleValue(se,pe,Ye,Mt){let zt="";const ii=Ye.toString().trim();if(ws[pe]&&0!==Ye&&"0"!==Ye)if("number"==typeof Ye)zt="px";else{const ni=Ye.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&Mt.push(function D(_t,se){return new t.vHH(3005,M)}())}return ii+zt}}const ws=(()=>function ds(_t){const se={};return _t.forEach(pe=>se[pe]=!0),se}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ws(_t,se,pe,Ye,Mt,zt,ii,ni,gi,Oi,en,hn,Ln){return{type:0,element:_t,triggerName:se,isRemovalTransition:Mt,fromState:pe,fromStyles:zt,toState:Ye,toStyles:ii,timelines:ni,queriedElements:gi,preStyleProps:Oi,postStyleProps:en,totalTime:hn,errors:Ln}}const Dr={};class Zn{constructor(se,pe,Ye){this._triggerName=se,this.ast=pe,this._stateStyles=Ye}match(se,pe,Ye,Mt){return function Vr(_t,se,pe,Ye,Mt){return _t.some(zt=>zt(se,pe,Ye,Mt))}(this.ast.matchers,se,pe,Ye,Mt)}buildStyles(se,pe,Ye){const Mt=this._stateStyles["*"],zt=this._stateStyles[se],ii=Mt?Mt.buildStyles(pe,Ye):{};return zt?zt.buildStyles(pe,Ye):ii}build(se,pe,Ye,Mt,zt,ii,ni,gi,Oi,en){const hn=[],Ln=this.ast.options&&this.ast.options.params||Dr,En=this.buildStyles(Ye,ni&&ni.params||Dr,hn),kn=gi&&gi.params||Dr,rr=this.buildStyles(Mt,kn,hn),Pr=new Set,Sr=new Map,Nr=new Map,es="void"===Mt,br={params:Object.assign(Object.assign({},Ln),kn)},Yr=en?[]:Kn(se,pe,this.ast.animation,zt,ii,En,rr,br,Oi,hn);let Gn=0;if(Yr.forEach(Ks=>{Gn=Math.max(Ks.duration+Ks.delay,Gn)}),hn.length)return Ws(pe,this._triggerName,Ye,Mt,es,En,rr,[],[],Sr,Nr,Gn,hn);Yr.forEach(Ks=>{const Hs=Ks.element,wa=q(Sr,Hs,{});Ks.preStyleProps.forEach(As=>wa[As]=!0);const Qs=q(Nr,Hs,{});Ks.postStyleProps.forEach(As=>Qs[As]=!0),Hs!==pe&&Pr.add(Hs)});const yr=Ct(Pr.values());return Ws(pe,this._triggerName,Ye,Mt,es,En,rr,Yr,yr,Sr,Nr,Gn)}}class cr{constructor(se,pe,Ye){this.styles=se,this.defaultParams=pe,this.normalizer=Ye}buildStyles(se,pe){const Ye={},Mt=ve(this.defaultParams);return Object.keys(se).forEach(zt=>{const ii=se[zt];null!=ii&&(Mt[zt]=ii)}),this.styles.styles.forEach(zt=>{if("string"!=typeof zt){const ii=zt;Object.keys(ii).forEach(ni=>{let gi=ii[ni];gi.length>1&&(gi=lt(gi,Mt,pe));const Oi=this.normalizer.normalizePropertyName(ni,pe);gi=this.normalizer.normalizeStyleValue(ni,Oi,gi,pe),Ye[Oi]=gi})}}),Ye}}class Zr{constructor(se,pe,Ye){this.name=se,this.ast=pe,this._normalizer=Ye,this.transitionFactories=[],this.states={},pe.states.forEach(Mt=>{this.states[Mt.name]=new cr(Mt.style,Mt.options&&Mt.options.params||{},Ye)}),ms(this.states,"true","1"),ms(this.states,"false","0"),pe.transitions.forEach(Mt=>{this.transitionFactories.push(new Zn(se,Mt,this.states))}),this.fallbackTransition=function js(_t,se,pe){return new Zn(_t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ii,ni)=>!0],options:null,queryCount:0,depCount:0},se)}(se,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(se,pe,Ye,Mt){return this.transitionFactories.find(ii=>ii.match(se,pe,Ye,Mt))||null}matchStyles(se,pe,Ye){return this.fallbackTransition.buildStyles(se,pe,Ye)}}function ms(_t,se,pe){_t.hasOwnProperty(se)?_t.hasOwnProperty(pe)||(_t[pe]=_t[se]):_t.hasOwnProperty(pe)&&(_t[se]=_t[pe])}const dr=new Nn;class gs{constructor(se,pe,Ye){this.bodyNode=se,this._driver=pe,this._normalizer=Ye,this._animations={},this._playersById={},this.players=[]}register(se,pe){const Ye=[],zt=on(this._driver,pe,Ye,[]);if(Ye.length)throw function c(_t){return new t.vHH(3503,M)}();this._animations[se]=zt}_buildPlayer(se,pe,Ye){const Mt=se.element,zt=Se(0,this._normalizer,0,se.keyframes,pe,Ye);return this._driver.animate(Mt,zt,se.duration,se.delay,se.easing,[],!0)}create(se,pe,Ye={}){const Mt=[],zt=this._animations[se];let ii;const ni=new Map;if(zt?(ii=Kn(this._driver,pe,zt,Ot,Nt,{},{},Ye,dr,Mt),ii.forEach(en=>{const hn=q(ni,en.element,{});en.postStyleProps.forEach(Ln=>hn[Ln]=null)})):(Mt.push(function v(){return new t.vHH(3300,M)}()),ii=[]),Mt.length)throw function T(_t){return new t.vHH(3504,M)}();ni.forEach((en,hn)=>{Object.keys(en).forEach(Ln=>{en[Ln]=this._driver.computeStyle(hn,Ln,f.l3)})});const Oi=Pe(ii.map(en=>{const hn=ni.get(en.element);return this._buildPlayer(en,{},hn)}));return this._playersById[se]=Oi,Oi.onDestroy(()=>this.destroy(se)),this.players.push(Oi),Oi}destroy(se){const pe=this._getPlayer(se);pe.destroy(),delete this._playersById[se];const Ye=this.players.indexOf(pe);Ye>=0&&this.players.splice(Ye,1)}_getPlayer(se){const pe=this._playersById[se];if(!pe)throw function I(_t){return new t.vHH(3301,M)}();return pe}listen(se,pe,Ye,Mt){const zt=Ce(pe,"","","");return Q(this._getPlayer(se),Ye,zt,Mt),()=>{}}command(se,pe,Ye,Mt){if("register"==Ye)return void this.register(se,Mt[0]);if("create"==Ye)return void this.create(se,pe,Mt[0]||{});const zt=this._getPlayer(se);switch(Ye){case"play":zt.play();break;case"pause":zt.pause();break;case"reset":zt.reset();break;case"restart":zt.restart();break;case"finish":zt.finish();break;case"init":zt.init();break;case"setPosition":zt.setPosition(parseFloat(Mt[0]));break;case"destroy":this.destroy(se)}}}const Ir="ng-animate-queued",is="ng-animate-disabled",or=[],ns={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},er="__ng_removed";class rs{constructor(se,pe=""){this.namespaceId=pe;const Ye=se&&se.hasOwnProperty("value");if(this.value=function je(_t){return null!=_t?_t:null}(Ye?se.value:se),Ye){const zt=ve(se);delete zt.value,this.options=zt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(se){const pe=se.params;if(pe){const Ye=this.options.params;Object.keys(pe).forEach(Mt=>{null==Ye[Mt]&&(Ye[Mt]=pe[Mt])})}}}const Wr="void",Or=new rs(Wr);class kr{constructor(se,pe,Ye){this.id=se,this.hostElement=pe,this._engine=Ye,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+se,Ii(pe,this._hostClassName)}listen(se,pe,Ye,Mt){if(!this._triggers.hasOwnProperty(pe))throw function y(_t,se){return new t.vHH(3302,M)}();if(null==Ye||0==Ye.length)throw function n(_t){return new t.vHH(3303,M)}();if(!function Je(_t){return"start"==_t||"done"==_t}(Ye))throw function _(_t,se){return new t.vHH(3400,M)}();const zt=q(this._elementListeners,se,[]),ii={name:pe,phase:Ye,callback:Mt};zt.push(ii);const ni=q(this._engine.statesByElement,se,{});return ni.hasOwnProperty(pe)||(Ii(se,gt),Ii(se,gt+"-"+pe),ni[pe]=Or),()=>{this._engine.afterFlush(()=>{const gi=zt.indexOf(ii);gi>=0&&zt.splice(gi,1),this._triggers[pe]||delete ni[pe]})}}register(se,pe){return!this._triggers[se]&&(this._triggers[se]=pe,!0)}_getTrigger(se){const pe=this._triggers[se];if(!pe)throw function B(_t){return new t.vHH(3401,M)}();return pe}trigger(se,pe,Ye,Mt=!0){const zt=this._getTrigger(pe),ii=new vs(this.id,pe,se);let ni=this._engine.statesByElement.get(se);ni||(Ii(se,gt),Ii(se,gt+"-"+pe),this._engine.statesByElement.set(se,ni={}));let gi=ni[pe];const Oi=new rs(Ye,this.id);if(!(Ye&&Ye.hasOwnProperty("value"))&&gi&&Oi.absorbOptions(gi.options),ni[pe]=Oi,gi||(gi=Or),Oi.value!==Wr&&gi.value===Oi.value){if(!function vt(_t,se){const pe=Object.keys(_t),Ye=Object.keys(se);if(pe.length!=Ye.length)return!1;for(let Mt=0;Mt<pe.length;Mt++){const zt=pe[Mt];if(!se.hasOwnProperty(zt)||_t[zt]!==se[zt])return!1}return!0}(gi.params,Oi.params)){const kn=[],rr=zt.matchStyles(gi.value,gi.params,kn),Pr=zt.matchStyles(Oi.value,Oi.params,kn);kn.length?this._engine.reportError(kn):this._engine.afterFlush(()=>{nt(se,rr),Ne(se,Pr)})}return}const Ln=q(this._engine.playersByElement,se,[]);Ln.forEach(kn=>{kn.namespaceId==this.id&&kn.triggerName==pe&&kn.queued&&kn.destroy()});let zn=zt.matchTransition(gi.value,Oi.value,se,Oi.params),En=!1;if(!zn){if(!Mt)return;zn=zt.fallbackTransition,En=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:se,triggerName:pe,transition:zn,fromState:gi,toState:Oi,player:ii,isFallbackTransition:En}),En||(Ii(se,Ir),ii.onStart(()=>{tn(se,Ir)})),ii.onDone(()=>{let kn=this.players.indexOf(ii);kn>=0&&this.players.splice(kn,1);const rr=this._engine.playersByElement.get(se);if(rr){let Pr=rr.indexOf(ii);Pr>=0&&rr.splice(Pr,1)}}),this.players.push(ii),Ln.push(ii),ii}deregister(se){delete this._triggers[se],this._engine.statesByElement.forEach((pe,Ye)=>{delete pe[se]}),this._elementListeners.forEach((pe,Ye)=>{this._elementListeners.set(Ye,pe.filter(Mt=>Mt.name!=se))})}clearElementCache(se){this._engine.statesByElement.delete(se),this._elementListeners.delete(se);const pe=this._engine.playersByElement.get(se);pe&&(pe.forEach(Ye=>Ye.destroy()),this._engine.playersByElement.delete(se))}_signalRemovalForInnerTriggers(se,pe){const Ye=this._engine.driver.query(se,tt,!0);Ye.forEach(Mt=>{if(Mt[er])return;const zt=this._engine.fetchNamespacesByElement(Mt);zt.size?zt.forEach(ii=>ii.triggerLeaveAnimation(Mt,pe,!1,!0)):this.clearElementCache(Mt)}),this._engine.afterFlushAnimationsDone(()=>Ye.forEach(Mt=>this.clearElementCache(Mt)))}triggerLeaveAnimation(se,pe,Ye,Mt){const zt=this._engine.statesByElement.get(se),ii=new Map;if(zt){const ni=[];if(Object.keys(zt).forEach(gi=>{if(ii.set(gi,zt[gi].value),this._triggers[gi]){const Oi=this.trigger(se,gi,Wr,Mt);Oi&&ni.push(Oi)}}),ni.length)return this._engine.markElementAsRemoved(this.id,se,!0,pe,ii),Ye&&Pe(ni).onDone(()=>this._engine.processLeaveNode(se)),!0}return!1}prepareLeaveAnimationListeners(se){const pe=this._elementListeners.get(se),Ye=this._engine.statesByElement.get(se);if(pe&&Ye){const Mt=new Set;pe.forEach(zt=>{const ii=zt.name;if(Mt.has(ii))return;Mt.add(ii);const gi=this._triggers[ii].fallbackTransition,Oi=Ye[ii]||Or,en=new rs(Wr),hn=new vs(this.id,ii,se);this._engine.totalQueuedPlayers++,this._queue.push({element:se,triggerName:ii,transition:gi,fromState:Oi,toState:en,player:hn,isFallbackTransition:!0})})}}removeNode(se,pe){const Ye=this._engine;if(se.childElementCount&&this._signalRemovalForInnerTriggers(se,pe),this.triggerLeaveAnimation(se,pe,!0))return;let Mt=!1;if(Ye.totalAnimations){const zt=Ye.players.length?Ye.playersByQueriedElement.get(se):[];if(zt&&zt.length)Mt=!0;else{let ii=se;for(;ii=ii.parentNode;)if(Ye.statesByElement.get(ii)){Mt=!0;break}}}if(this.prepareLeaveAnimationListeners(se),Mt)Ye.markElementAsRemoved(this.id,se,!1,pe);else{const zt=se[er];(!zt||zt===ns)&&(Ye.afterFlush(()=>this.clearElementCache(se)),Ye.destroyInnerAnimations(se),Ye._onRemovalComplete(se,pe))}}insertNode(se,pe){Ii(se,this._hostClassName)}drainQueuedTransitions(se){const pe=[];return this._queue.forEach(Ye=>{const Mt=Ye.player;if(Mt.destroyed)return;const zt=Ye.element,ii=this._elementListeners.get(zt);ii&&ii.forEach(ni=>{if(ni.name==Ye.triggerName){const gi=Ce(zt,Ye.triggerName,Ye.fromState.value,Ye.toState.value);gi._data=se,Q(Ye.player,ni.phase,gi,ni.callback)}}),Mt.markedForDestroy?this._engine.afterFlush(()=>{Mt.destroy()}):pe.push(Ye)}),this._queue=[],pe.sort((Ye,Mt)=>{const zt=Ye.transition.ast.depCount,ii=Mt.transition.ast.depCount;return 0==zt||0==ii?zt-ii:this._engine.driver.containsElement(Ye.element,Mt.element)?1:-1})}destroy(se){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,se)}elementContainsData(se){let pe=!1;return this._elementListeners.has(se)&&(pe=!0),pe=!!this._queue.find(Ye=>Ye.element===se)||pe,pe}}class us{constructor(se,pe,Ye){this.bodyNode=se,this.driver=pe,this._normalizer=Ye,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Mt,zt)=>{}}_onRemovalComplete(se,pe){this.onRemovalComplete(se,pe)}get queuedPlayers(){const se=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(Ye=>{Ye.queued&&se.push(Ye)})}),se}createNamespace(se,pe){const Ye=new kr(se,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(Ye,pe):(this.newHostElements.set(pe,Ye),this.collectEnterElement(pe)),this._namespaceLookup[se]=Ye}_balanceNamespaceList(se,pe){const Ye=this._namespaceList,Mt=this.namespacesByHostElement,zt=Ye.length-1;if(zt>=0){let ii=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(pe);for(;ni;){const gi=Mt.get(ni);if(gi){const Oi=Ye.indexOf(gi);Ye.splice(Oi+1,0,se),ii=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=zt;ni>=0;ni--)if(this.driver.containsElement(Ye[ni].hostElement,pe)){Ye.splice(ni+1,0,se),ii=!0;break}ii||Ye.unshift(se)}else Ye.push(se);return Mt.set(pe,se),se}register(se,pe){let Ye=this._namespaceLookup[se];return Ye||(Ye=this.createNamespace(se,pe)),Ye}registerTrigger(se,pe,Ye){let Mt=this._namespaceLookup[se];Mt&&Mt.register(pe,Ye)&&this.totalAnimations++}destroy(se,pe){if(!se)return;const Ye=this._fetchNamespace(se);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ye.hostElement),delete this._namespaceLookup[se];const Mt=this._namespaceList.indexOf(Ye);Mt>=0&&this._namespaceList.splice(Mt,1)}),this.afterFlushAnimationsDone(()=>Ye.destroy(pe))}_fetchNamespace(se){return this._namespaceLookup[se]}fetchNamespacesByElement(se){const pe=new Set,Ye=this.statesByElement.get(se);if(Ye){const Mt=Object.keys(Ye);for(let zt=0;zt<Mt.length;zt++){const ii=Ye[Mt[zt]].namespaceId;if(ii){const ni=this._fetchNamespace(ii);ni&&pe.add(ni)}}}return pe}trigger(se,pe,Ye,Mt){if(Et(pe)){const zt=this._fetchNamespace(se);if(zt)return zt.trigger(pe,Ye,Mt),!0}return!1}insertNode(se,pe,Ye,Mt){if(!Et(pe))return;const zt=pe[er];if(zt&&zt.setForRemoval){zt.setForRemoval=!1,zt.setForMove=!0;const ii=this.collectedLeaveElements.indexOf(pe);ii>=0&&this.collectedLeaveElements.splice(ii,1)}if(se){const ii=this._fetchNamespace(se);ii&&ii.insertNode(pe,Ye)}Mt&&this.collectEnterElement(pe)}collectEnterElement(se){this.collectedEnterElements.push(se)}markElementAsDisabled(se,pe){pe?this.disabledNodes.has(se)||(this.disabledNodes.add(se),Ii(se,is)):this.disabledNodes.has(se)&&(this.disabledNodes.delete(se),tn(se,is))}removeNode(se,pe,Ye,Mt){if(Et(pe)){const zt=se?this._fetchNamespace(se):null;if(zt?zt.removeNode(pe,Mt):this.markElementAsRemoved(se,pe,!1,Mt),Ye){const ii=this.namespacesByHostElement.get(pe);ii&&ii.id!==se&&ii.removeNode(pe,Mt)}}else this._onRemovalComplete(pe,Mt)}markElementAsRemoved(se,pe,Ye,Mt,zt){this.collectedLeaveElements.push(pe),pe[er]={namespaceId:se,setForRemoval:Mt,hasAnimation:Ye,removedBeforeQueried:!1,previousTriggersValues:zt}}listen(se,pe,Ye,Mt,zt){return Et(pe)?this._fetchNamespace(se).listen(pe,Ye,Mt,zt):()=>{}}_buildInstruction(se,pe,Ye,Mt,zt){return se.transition.build(this.driver,se.element,se.fromState.value,se.toState.value,Ye,Mt,se.fromState.options,se.toState.options,pe,zt)}destroyInnerAnimations(se){let pe=this.driver.query(se,tt,!0);pe.forEach(Ye=>this.destroyActiveAnimationsForElement(Ye)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(se,ei,!0),pe.forEach(Ye=>this.finishActiveQueriedAnimationOnElement(Ye)))}destroyActiveAnimationsForElement(se){const pe=this.playersByElement.get(se);pe&&pe.forEach(Ye=>{Ye.queued?Ye.markedForDestroy=!0:Ye.destroy()})}finishActiveQueriedAnimationOnElement(se){const pe=this.playersByQueriedElement.get(se);pe&&pe.forEach(Ye=>Ye.finish())}whenRenderingDone(){return new Promise(se=>{if(this.players.length)return Pe(this.players).onDone(()=>se());se()})}processLeaveNode(se){var pe;const Ye=se[er];if(Ye&&Ye.setForRemoval){if(se[er]=ns,Ye.namespaceId){this.destroyInnerAnimations(se);const Mt=this._fetchNamespace(Ye.namespaceId);Mt&&Mt.clearElementCache(se)}this._onRemovalComplete(se,Ye.setForRemoval)}(null===(pe=se.classList)||void 0===pe?void 0:pe.contains(is))&&this.markElementAsDisabled(se,!1),this.driver.query(se,".ng-animate-disabled",!0).forEach(Mt=>{this.markElementAsDisabled(Mt,!1)})}flush(se=-1){let pe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ye,Mt)=>this._balanceNamespaceList(Ye,Mt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ye=0;Ye<this.collectedEnterElements.length;Ye++)Ii(this.collectedEnterElements[Ye],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Ye=[];try{pe=this._flushAnimations(Ye,se)}finally{for(let Mt=0;Mt<Ye.length;Mt++)Ye[Mt]()}}else for(let Ye=0;Ye<this.collectedLeaveElements.length;Ye++)this.processLeaveNode(this.collectedLeaveElements[Ye]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Ye=>Ye()),this._flushFns=[],this._whenQuietFns.length){const Ye=this._whenQuietFns;this._whenQuietFns=[],pe.length?Pe(pe).onDone(()=>{Ye.forEach(Mt=>Mt())}):Ye.forEach(Mt=>Mt())}}reportError(se){throw function N(_t){return new t.vHH(3402,M)}()}_flushAnimations(se,pe){const Ye=new Nn,Mt=[],zt=new Map,ii=[],ni=new Map,gi=new Map,Oi=new Map,en=new Set;this.disabledNodes.forEach(dn=>{en.add(dn);const xn=this.driver.query(dn,".ng-animate-queued",!0);for(let Tn=0;Tn<xn.length;Tn++)en.add(xn[Tn])});const hn=this.bodyNode,Ln=Array.from(this.statesByElement.keys()),zn=Mi(Ln,this.collectedEnterElements),En=new Map;let kn=0;zn.forEach((dn,xn)=>{const Tn=Ot+kn++;En.set(xn,Tn),dn.forEach(Jn=>Ii(Jn,Tn))});const rr=[],Pr=new Set,Sr=new Set;for(let dn=0;dn<this.collectedLeaveElements.length;dn++){const xn=this.collectedLeaveElements[dn],Tn=xn[er];Tn&&Tn.setForRemoval&&(rr.push(xn),Pr.add(xn),Tn.hasAnimation?this.driver.query(xn,".ng-star-inserted",!0).forEach(Jn=>Pr.add(Jn)):Sr.add(xn))}const Nr=new Map,es=Mi(Ln,Array.from(Pr));es.forEach((dn,xn)=>{const Tn=Nt+kn++;Nr.set(xn,Tn),dn.forEach(Jn=>Ii(Jn,Tn))}),se.push(()=>{zn.forEach((dn,xn)=>{const Tn=En.get(xn);dn.forEach(Jn=>tn(Jn,Tn))}),es.forEach((dn,xn)=>{const Tn=Nr.get(xn);dn.forEach(Jn=>tn(Jn,Tn))}),rr.forEach(dn=>{this.processLeaveNode(dn)})});const br=[],Yr=[];for(let dn=this._namespaceList.length-1;dn>=0;dn--)this._namespaceList[dn].drainQueuedTransitions(pe).forEach(Tn=>{const Jn=Tn.player,gr=Tn.element;if(br.push(Jn),this.collectedEnterElements.length){const wt=gr[er];if(wt&&wt.setForMove){if(wt.previousTriggersValues&&wt.previousTriggersValues.has(Tn.triggerName)){const Ft=wt.previousTriggersValues.get(Tn.triggerName),Xt=this.statesByElement.get(Tn.element);Xt&&Xt[Tn.triggerName]&&(Xt[Tn.triggerName].value=Ft)}return void Jn.destroy()}}const Ls=!hn||!this.driver.containsElement(hn,gr),Gr=Nr.get(gr),ia=En.get(gr),ur=this._buildInstruction(Tn,Ye,ia,Gr,Ls);if(ur.errors&&ur.errors.length)return void Yr.push(ur);if(Ls)return Jn.onStart(()=>nt(gr,ur.fromStyles)),Jn.onDestroy(()=>Ne(gr,ur.toStyles)),void Mt.push(Jn);if(Tn.isFallbackTransition)return Jn.onStart(()=>nt(gr,ur.fromStyles)),Jn.onDestroy(()=>Ne(gr,ur.toStyles)),void Mt.push(Jn);const rt=[];ur.timelines.forEach(wt=>{wt.stretchStartingKeyframe=!0,this.disabledNodes.has(wt.element)||rt.push(wt)}),ur.timelines=rt,Ye.append(gr,ur.timelines),ii.push({instruction:ur,player:Jn,element:gr}),ur.queriedElements.forEach(wt=>q(ni,wt,[]).push(Jn)),ur.preStyleProps.forEach((wt,Ft)=>{const Xt=Object.keys(wt);if(Xt.length){let pi=gi.get(Ft);pi||gi.set(Ft,pi=new Set),Xt.forEach(_i=>pi.add(_i))}}),ur.postStyleProps.forEach((wt,Ft)=>{const Xt=Object.keys(wt);let pi=Oi.get(Ft);pi||Oi.set(Ft,pi=new Set),Xt.forEach(_i=>pi.add(_i))})});if(Yr.length){const dn=[];Yr.forEach(xn=>{dn.push(function J(_t,se){return new t.vHH(3505,M)}())}),br.forEach(xn=>xn.destroy()),this.reportError(dn)}const Gn=new Map,yr=new Map;ii.forEach(dn=>{const xn=dn.element;Ye.has(xn)&&(yr.set(xn,xn),this._beforeAnimationBuild(dn.player.namespaceId,dn.instruction,Gn))}),Mt.forEach(dn=>{const xn=dn.element;this._getPreviousPlayers(xn,!1,dn.namespaceId,dn.triggerName,null).forEach(Jn=>{q(Gn,xn,[]).push(Jn),Jn.destroy()})});const Ks=rr.filter(dn=>qt(dn,gi,Oi)),Hs=new Map;ri(Hs,this.driver,Sr,Oi,f.l3).forEach(dn=>{qt(dn,gi,Oi)&&Ks.push(dn)});const Qs=new Map;zn.forEach((dn,xn)=>{ri(Qs,this.driver,new Set(dn),gi,f.k1)}),Ks.forEach(dn=>{const xn=Hs.get(dn),Tn=Qs.get(dn);Hs.set(dn,Object.assign(Object.assign({},xn),Tn))});const As=[],ya=[],xa={};ii.forEach(dn=>{const{element:xn,player:Tn,instruction:Jn}=dn;if(Ye.has(xn)){if(en.has(xn))return Tn.onDestroy(()=>Ne(xn,Jn.toStyles)),Tn.disabled=!0,Tn.overrideTotalTime(Jn.totalTime),void Mt.push(Tn);let gr=xa;if(yr.size>1){let Gr=xn;const ia=[];for(;Gr=Gr.parentNode;){const ur=yr.get(Gr);if(ur){gr=ur;break}ia.push(Gr)}ia.forEach(ur=>yr.set(ur,gr))}const Ls=this._buildAnimation(Tn.namespaceId,Jn,Gn,zt,Qs,Hs);if(Tn.setRealPlayer(Ls),gr===xa)As.push(Tn);else{const Gr=this.playersByElement.get(gr);Gr&&Gr.length&&(Tn.parentPlayer=Pe(Gr)),Mt.push(Tn)}}else nt(xn,Jn.fromStyles),Tn.onDestroy(()=>Ne(xn,Jn.toStyles)),ya.push(Tn),en.has(xn)&&Mt.push(Tn)}),ya.forEach(dn=>{const xn=zt.get(dn.element);if(xn&&xn.length){const Tn=Pe(xn);dn.setRealPlayer(Tn)}}),Mt.forEach(dn=>{dn.parentPlayer?dn.syncPlayerEvents(dn.parentPlayer):dn.destroy()});for(let dn=0;dn<rr.length;dn++){const xn=rr[dn],Tn=xn[er];if(tn(xn,Nt),Tn&&Tn.hasAnimation)continue;let Jn=[];if(ni.size){let Ls=ni.get(xn);Ls&&Ls.length&&Jn.push(...Ls);let Gr=this.driver.query(xn,ei,!0);for(let ia=0;ia<Gr.length;ia++){let ur=ni.get(Gr[ia]);ur&&ur.length&&Jn.push(...ur)}}const gr=Jn.filter(Ls=>!Ls.destroyed);gr.length?tr(this,xn,gr):this.processLeaveNode(xn)}return rr.length=0,As.forEach(dn=>{this.players.push(dn),dn.onDone(()=>{dn.destroy();const xn=this.players.indexOf(dn);this.players.splice(xn,1)}),dn.play()}),As}elementContainsData(se,pe){let Ye=!1;const Mt=pe[er];return Mt&&Mt.setForRemoval&&(Ye=!0),this.playersByElement.has(pe)&&(Ye=!0),this.playersByQueriedElement.has(pe)&&(Ye=!0),this.statesByElement.has(pe)&&(Ye=!0),this._fetchNamespace(se).elementContainsData(pe)||Ye}afterFlush(se){this._flushFns.push(se)}afterFlushAnimationsDone(se){this._whenQuietFns.push(se)}_getPreviousPlayers(se,pe,Ye,Mt,zt){let ii=[];if(pe){const ni=this.playersByQueriedElement.get(se);ni&&(ii=ni)}else{const ni=this.playersByElement.get(se);if(ni){const gi=!zt||zt==Wr;ni.forEach(Oi=>{Oi.queued||!gi&&Oi.triggerName!=Mt||ii.push(Oi)})}}return(Ye||Mt)&&(ii=ii.filter(ni=>!(Ye&&Ye!=ni.namespaceId||Mt&&Mt!=ni.triggerName))),ii}_beforeAnimationBuild(se,pe,Ye){const zt=pe.element,ii=pe.isRemovalTransition?void 0:se,ni=pe.isRemovalTransition?void 0:pe.triggerName;for(const gi of pe.timelines){const Oi=gi.element,en=Oi!==zt,hn=q(Ye,Oi,[]);this._getPreviousPlayers(Oi,en,ii,ni,pe.toState).forEach(zn=>{const En=zn.getRealPlayer();En.beforeDestroy&&En.beforeDestroy(),zn.destroy(),hn.push(zn)})}nt(zt,pe.fromStyles)}_buildAnimation(se,pe,Ye,Mt,zt,ii){const ni=pe.triggerName,gi=pe.element,Oi=[],en=new Set,hn=new Set,Ln=pe.timelines.map(En=>{const kn=En.element;en.add(kn);const rr=kn[er];if(rr&&rr.removedBeforeQueried)return new f.ZN(En.duration,En.delay);const Pr=kn!==gi,Sr=function It(_t){const se=[];return li(_t,se),se}((Ye.get(kn)||or).map(Gn=>Gn.getRealPlayer())).filter(Gn=>!!Gn.element&&Gn.element===kn),Nr=zt.get(kn),es=ii.get(kn),br=Se(0,this._normalizer,0,En.keyframes,Nr,es),Yr=this._buildPlayer(En,br,Sr);if(En.subTimeline&&Mt&&hn.add(kn),Pr){const Gn=new vs(se,ni,kn);Gn.setRealPlayer(Yr),Oi.push(Gn)}return Yr});Oi.forEach(En=>{q(this.playersByQueriedElement,En.element,[]).push(En),En.onDone(()=>function Vn(_t,se,pe){let Ye;if(_t instanceof Map){if(Ye=_t.get(se),Ye){if(Ye.length){const Mt=Ye.indexOf(pe);Ye.splice(Mt,1)}0==Ye.length&&_t.delete(se)}}else if(Ye=_t[se],Ye){if(Ye.length){const Mt=Ye.indexOf(pe);Ye.splice(Mt,1)}0==Ye.length&&delete _t[se]}return Ye}(this.playersByQueriedElement,En.element,En))}),en.forEach(En=>Ii(En,xt));const zn=Pe(Ln);return zn.onDestroy(()=>{en.forEach(En=>tn(En,xt)),Ne(gi,pe.toStyles)}),hn.forEach(En=>{q(Mt,En,[]).push(zn)}),zn}_buildPlayer(se,pe,Ye){return pe.length>0?this.driver.animate(se.element,pe,se.duration,se.delay,se.easing,Ye):new f.ZN(se.duration,se.delay)}}class vs{constructor(se,pe,Ye){this.namespaceId=se,this.triggerName=pe,this.element=Ye,this._player=new f.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(se){this._containsRealPlayer||(this._player=se,Object.keys(this._queuedCallbacks).forEach(pe=>{this._queuedCallbacks[pe].forEach(Ye=>Q(se,pe,void 0,Ye))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(se.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(se){this.totalTime=se}syncPlayerEvents(se){const pe=this._player;pe.triggerCallback&&se.onStart(()=>pe.triggerCallback("start")),se.onDone(()=>this.finish()),se.onDestroy(()=>this.destroy())}_queueEvent(se,pe){q(this._queuedCallbacks,se,[]).push(pe)}onDone(se){this.queued&&this._queueEvent("done",se),this._player.onDone(se)}onStart(se){this.queued&&this._queueEvent("start",se),this._player.onStart(se)}onDestroy(se){this.queued&&this._queueEvent("destroy",se),this._player.onDestroy(se)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(se){this.queued||this._player.setPosition(se)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(se){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(se)}}function Et(_t){return _t&&1===_t.nodeType}function Pt(_t,se){const pe=_t.style.display;return _t.style.display=null!=se?se:"none",pe}function ri(_t,se,pe,Ye,Mt){const zt=[];pe.forEach(gi=>zt.push(Pt(gi)));const ii=[];Ye.forEach((gi,Oi)=>{const en={};gi.forEach(hn=>{const Ln=en[hn]=se.computeStyle(Oi,hn,Mt);(!Ln||0==Ln.length)&&(Oi[er]=Vs,ii.push(Oi))}),_t.set(Oi,en)});let ni=0;return pe.forEach(gi=>Pt(gi,zt[ni++])),ii}function Mi(_t,se){const pe=new Map;if(_t.forEach(ni=>pe.set(ni,[])),0==se.length)return pe;const Mt=new Set(se),zt=new Map;function ii(ni){if(!ni)return 1;let gi=zt.get(ni);if(gi)return gi;const Oi=ni.parentNode;return gi=pe.has(Oi)?Oi:Mt.has(Oi)?1:ii(Oi),zt.set(ni,gi),gi}return se.forEach(ni=>{const gi=ii(ni);1!==gi&&pe.get(gi).push(ni)}),pe}function Ii(_t,se){var pe;null===(pe=_t.classList)||void 0===pe||pe.add(se)}function tn(_t,se){var pe;null===(pe=_t.classList)||void 0===pe||pe.remove(se)}function tr(_t,se,pe){Pe(pe).onDone(()=>_t.processLeaveNode(se))}function li(_t,se){for(let pe=0;pe<_t.length;pe++){const Ye=_t[pe];Ye instanceof f.ZE?li(Ye.players,se):se.push(Ye)}}function qt(_t,se,pe){const Ye=pe.get(_t);if(!Ye)return!1;let Mt=se.get(_t);return Mt?Ye.forEach(zt=>Mt.add(zt)):se.set(_t,Ye),pe.delete(_t),!0}class Ei{constructor(se,pe,Ye){this.bodyNode=se,this._driver=pe,this._normalizer=Ye,this._triggerCache={},this.onRemovalComplete=(Mt,zt)=>{},this._transitionEngine=new us(se,pe,Ye),this._timelineEngine=new gs(se,pe,Ye),this._transitionEngine.onRemovalComplete=(Mt,zt)=>this.onRemovalComplete(Mt,zt)}registerTrigger(se,pe,Ye,Mt,zt){const ii=se+"-"+Mt;let ni=this._triggerCache[ii];if(!ni){const gi=[],en=on(this._driver,zt,gi,[]);if(gi.length)throw function r(_t,se){return new t.vHH(3404,M)}();ni=function Ys(_t,se,pe){return new Zr(_t,se,pe)}(Mt,en,this._normalizer),this._triggerCache[ii]=ni}this._transitionEngine.registerTrigger(pe,Mt,ni)}register(se,pe){this._transitionEngine.register(se,pe)}destroy(se,pe){this._transitionEngine.destroy(se,pe)}onInsert(se,pe,Ye,Mt){this._transitionEngine.insertNode(se,pe,Ye,Mt)}onRemove(se,pe,Ye,Mt){this._transitionEngine.removeNode(se,pe,Mt||!1,Ye)}disableAnimations(se,pe){this._transitionEngine.markElementAsDisabled(se,pe)}process(se,pe,Ye,Mt){if("@"==Ye.charAt(0)){const[zt,ii]=Ae(Ye);this._timelineEngine.command(zt,pe,ii,Mt)}else this._transitionEngine.trigger(se,pe,Ye,Mt)}listen(se,pe,Ye,Mt,zt){if("@"==Ye.charAt(0)){const[ii,ni]=Ae(Ye);return this._timelineEngine.listen(ii,pe,ni,zt)}return this._transitionEngine.listen(se,pe,Ye,Mt,zt)}flush(se=-1){this._transitionEngine.flush(se)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let $e=(()=>{class _t{constructor(pe,Ye,Mt){this._element=pe,this._startStyles=Ye,this._endStyles=Mt,this._state=0;let zt=_t.initialStylesByElement.get(pe);zt||_t.initialStylesByElement.set(pe,zt={}),this._initialStyles=zt}start(){this._state<1&&(this._startStyles&&Ne(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ne(this._element,this._initialStyles),this._endStyles&&(Ne(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_t.initialStylesByElement.delete(this._element),this._startStyles&&(nt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),Ne(this._element,this._initialStyles),this._state=3)}}return _t.initialStylesByElement=new WeakMap,_t})();function We(_t){let se=null;const pe=Object.keys(_t);for(let Ye=0;Ye<pe.length;Ye++){const Mt=pe[Ye];Fe(Mt)&&(se=se||{},se[Mt]=_t[Mt])}return se}function Fe(_t){return"display"===_t||"position"===_t}class Dt{constructor(se,pe,Ye,Mt){this.element=se,this.keyframes=pe,this.options=Ye,this._specialStyles=Mt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=Ye.duration,this._delay=Ye.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(se=>se()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const se=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,se,this.options),this._finalKeyframe=se.length?se[se.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(se,pe,Ye){return se.animate(pe,Ye)}onStart(se){this._onStartFns.push(se)}onDone(se){this._onDoneFns.push(se)}onDestroy(se){this._onDestroyFns.push(se)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(se=>se()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(se=>se()),this._onDestroyFns=[])}setPosition(se){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=se*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const se={};if(this.hasStarted()){const pe=this._finalKeyframe;Object.keys(pe).forEach(Ye=>{"offset"!=Ye&&(se[Ye]=this._finished?pe[Ye]:Ji(this.element,Ye))})}this.currentSnapshot=se}triggerCallback(se){const pe="start"==se?this._onStartFns:this._onDoneFns;pe.forEach(Ye=>Ye()),pe.length=0}}class yi{validateStyleProperty(se){return be(se)}matchesElement(se,pe){return!1}containsElement(se,pe){return He(se,pe)}getParentElement(se){return ae(se)}query(se,pe,Ye){return pt(se,pe,Ye)}computeStyle(se,pe,Ye){return window.getComputedStyle(se)[pe]}animate(se,pe,Ye,Mt,zt,ii=[]){const gi={duration:Ye,delay:Mt,fill:0==Mt?"both":"forwards"};zt&&(gi.easing=zt);const Oi={},en=ii.filter(Ln=>Ln instanceof Dt);(function Ki(_t,se){return 0===_t||0===se})(Ye,Mt)&&en.forEach(Ln=>{let zn=Ln.currentSnapshot;Object.keys(zn).forEach(En=>Oi[En]=zn[En])}),pe=function hi(_t,se,pe){const Ye=Object.keys(pe);if(Ye.length&&se.length){let zt=se[0],ii=[];if(Ye.forEach(ni=>{zt.hasOwnProperty(ni)||ii.push(ni),zt[ni]=pe[ni]}),ii.length)for(var Mt=1;Mt<se.length;Mt++){let ni=se[Mt];ii.forEach(function(gi){ni[gi]=Ji(_t,gi)})}}return se}(se,pe=pe.map(Ln=>mt(Ln,!1)),Oi);const hn=function Wi(_t,se){let pe=null,Ye=null;return Array.isArray(se)&&se.length?(pe=We(se[0]),se.length>1&&(Ye=We(se[se.length-1]))):se&&(pe=We(se)),pe||Ye?new $e(_t,pe,Ye):null}(se,pe);return new Dt(se,pe,gi,hn)}}var qi=p(9808);let Bn=(()=>{class _t extends f._j{constructor(pe,Ye){super(),this._nextAnimationId=0,this._renderer=pe.createRenderer(Ye.body,{id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}})}build(pe){const Ye=this._nextAnimationId.toString();this._nextAnimationId++;const Mt=Array.isArray(pe)?(0,f.vP)(pe):pe;return ys(this._renderer,null,Ye,"register",[Mt]),new Br(Ye,this._renderer)}}return _t.\u0275fac=function(pe){return new(pe||_t)(t.LFG(t.FYo),t.LFG(qi.K0))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();class Br extends f.LC{constructor(se,pe){super(),this._id=se,this._renderer=pe}create(se,pe){return new ta(this._id,se,pe||{},this._renderer)}}class ta{constructor(se,pe,Ye,Mt){this.id=se,this.element=pe,this._renderer=Mt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ye)}_listen(se,pe){return this._renderer.listen(this.element,`@@${this.id}:${se}`,pe)}_command(se,...pe){return ys(this._renderer,this.element,this.id,se,pe)}onDone(se){this._listen("done",se)}onStart(se){this._listen("start",se)}onDestroy(se){this._listen("destroy",se)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(se){this._command("setPosition",se)}getPosition(){var se,pe;return null!==(pe=null===(se=this._renderer.engine.players[+this.id])||void 0===se?void 0:se.getPosition())&&void 0!==pe?pe:0}}function ys(_t,se,pe,Ye,Mt){return _t.setProperty(se,`@@${pe}:${Ye}`,Mt)}const Hi="@.disabled";let Wn=(()=>{class _t{constructor(pe,Ye,Mt){this.delegate=pe,this.engine=Ye,this._zone=Mt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ye.onRemovalComplete=(zt,ii)=>{const ni=null==ii?void 0:ii.parentNode(zt);ni&&ii.removeChild(ni,zt)}}createRenderer(pe,Ye){const zt=this.delegate.createRenderer(pe,Ye);if(!(pe&&Ye&&Ye.data&&Ye.data.animation)){let en=this._rendererCache.get(zt);return en||(en=new Fa("",zt,this.engine),this._rendererCache.set(zt,en)),en}const ii=Ye.id,ni=Ye.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,pe);const gi=en=>{Array.isArray(en)?en.forEach(gi):this.engine.registerTrigger(ii,ni,pe,en.name,en)};return Ye.data.animation.forEach(gi),new wr(this,ni,zt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(pe,Ye,Mt){pe>=0&&pe<this._microtaskId?this._zone.run(()=>Ye(Mt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(zt=>{const[ii,ni]=zt;ii(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ye,Mt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return _t.\u0275fac=function(pe){return new(pe||_t)(t.LFG(t.FYo),t.LFG(Ei),t.LFG(t.R0b))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();class Fa{constructor(se,pe,Ye){this.namespaceId=se,this.delegate=pe,this.engine=Ye,this.destroyNode=this.delegate.destroyNode?Mt=>pe.destroyNode(Mt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(se,pe){return this.delegate.createElement(se,pe)}createComment(se){return this.delegate.createComment(se)}createText(se){return this.delegate.createText(se)}appendChild(se,pe){this.delegate.appendChild(se,pe),this.engine.onInsert(this.namespaceId,pe,se,!1)}insertBefore(se,pe,Ye,Mt=!0){this.delegate.insertBefore(se,pe,Ye),this.engine.onInsert(this.namespaceId,pe,se,Mt)}removeChild(se,pe,Ye){this.engine.onRemove(this.namespaceId,pe,this.delegate,Ye)}selectRootElement(se,pe){return this.delegate.selectRootElement(se,pe)}parentNode(se){return this.delegate.parentNode(se)}nextSibling(se){return this.delegate.nextSibling(se)}setAttribute(se,pe,Ye,Mt){this.delegate.setAttribute(se,pe,Ye,Mt)}removeAttribute(se,pe,Ye){this.delegate.removeAttribute(se,pe,Ye)}addClass(se,pe){this.delegate.addClass(se,pe)}removeClass(se,pe){this.delegate.removeClass(se,pe)}setStyle(se,pe,Ye,Mt){this.delegate.setStyle(se,pe,Ye,Mt)}removeStyle(se,pe,Ye){this.delegate.removeStyle(se,pe,Ye)}setProperty(se,pe,Ye){"@"==pe.charAt(0)&&pe==Hi?this.disableAnimations(se,!!Ye):this.delegate.setProperty(se,pe,Ye)}setValue(se,pe){this.delegate.setValue(se,pe)}listen(se,pe,Ye){return this.delegate.listen(se,pe,Ye)}disableAnimations(se,pe){this.engine.disableAnimations(se,pe)}}class wr extends Fa{constructor(se,pe,Ye,Mt){super(pe,Ye,Mt),this.factory=se,this.namespaceId=pe}setProperty(se,pe,Ye){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==Hi?this.disableAnimations(se,Ye=void 0===Ye||!!Ye):this.engine.process(this.namespaceId,se,pe.substr(1),Ye):this.delegate.setProperty(se,pe,Ye)}listen(se,pe,Ye){if("@"==pe.charAt(0)){const Mt=function $a(_t){switch(_t){case"body":return document.body;case"document":return document;case"window":return window;default:return _t}}(se);let zt=pe.substr(1),ii="";return"@"!=zt.charAt(0)&&([zt,ii]=function va(_t){const se=_t.indexOf(".");return[_t.substring(0,se),_t.substr(se+1)]}(zt)),this.engine.listen(this.namespaceId,Mt,zt,ii,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ye,ni)})}return this.delegate.listen(se,pe,Ye)}}let Ts=(()=>{class _t extends Ei{constructor(pe,Ye,Mt){super(pe.body,Ye,Mt)}ngOnDestroy(){this.flush()}}return _t.\u0275fac=function(pe){return new(pe||_t)(t.LFG(qi.K0),t.LFG(di),t.LFG(cs))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();const za=new t.OlP("AnimationModuleType"),Va=[{provide:f._j,useClass:Bn},{provide:cs,useFactory:function La(){return new $r}},{provide:Ei,useClass:Ts},{provide:t.FYo,useFactory:function Da(_t,se,pe){return new Wn(_t,se,pe)},deps:[e.se,Ei,t.R0b]}],Ba=[{provide:di,useFactory:()=>new yi},{provide:za,useValue:"BrowserAnimations"},...Va],aa=[{provide:di,useClass:Lt},{provide:za,useValue:"NoopAnimations"},...Va];let Ur=(()=>{class _t{static withConfig(pe){return{ngModule:_t,providers:pe.disableAnimations?aa:Ba}}}return _t.\u0275fac=function(pe){return new(pe||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({providers:Ba,imports:[e.b2]}),_t})()},2313:(ze,K,p)=>{"use strict";p.d(K,{H7:()=>it,b2:()=>ut,q6:()=>q,se:()=>c,t6:()=>Ht});var t=p(9808),e=p(5e3);class f extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends f{static makeCurrent(){(0,t.HT)(new M)}onAndCancel(Ge,ot,lt){return Ge.addEventListener(ot,lt,!1),()=>{Ge.removeEventListener(ot,lt,!1)}}dispatchEvent(Ge,ot){Ge.dispatchEvent(ot)}remove(Ge){Ge.parentNode&&Ge.parentNode.removeChild(Ge)}createElement(Ge,ot){return(ot=ot||this.getDefaultDocument()).createElement(Ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ge){return Ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ge){return Ge instanceof DocumentFragment}getGlobalEventTarget(Ge,ot){return"window"===ot?window:"document"===ot?Ge:"body"===ot?Ge.body:null}getBaseHref(Ge){const ot=function b(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==ot?null:function R(Ee){d=d||document.createElement("a"),d.setAttribute("href",Ee);const Ge=d.pathname;return"/"===Ge.charAt(0)?Ge:`/${Ge}`}(ot)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ge){return(0,t.Mx)(document.cookie,Ge)}}let d,s=null;const h=new e.OlP("TRANSITION_ID"),w=[{provide:e.ip1,useFactory:function L(Ee,Ge,ot){return()=>{ot.get(e.CZH).donePromise.then(()=>{const lt=(0,t.q)(),Ct=Ge.querySelectorAll(`style[ng-transition="${Ee}"]`);for(let mi=0;mi<Ct.length;mi++)lt.remove(Ct[mi])})}},deps:[h,t.K0,e.zs3],multi:!0}];class D{static init(){(0,e.VLi)(new D)}addToWindow(Ge){e.dqk.getAngularTestability=(lt,Ct=!0)=>{const mi=Ge.findTestabilityInTree(lt,Ct);if(null==mi)throw new Error("Could not find testability for element.");return mi},e.dqk.getAllAngularTestabilities=()=>Ge.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ge.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(lt=>{const Ct=e.dqk.getAllAngularTestabilities();let mi=Ct.length,Jt=!1;const $t=function(Ki){Jt=Jt||Ki,mi--,0==mi&&lt(Jt)};Ct.forEach(function(Ki){Ki.whenStable($t)})})}findTestabilityInTree(Ge,ot,lt){if(null==ot)return null;const Ct=Ge.getTestability(ot);return null!=Ct?Ct:lt?(0,t.q)().isShadowRoot(ot)?this.findTestabilityInTree(Ge,ot.host,!0):this.findTestabilityInTree(Ge,ot.parentElement,!0):null}}let S=(()=>{class Ee{build(){return new XMLHttpRequest}}return Ee.\u0275fac=function(ot){return new(ot||Ee)},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const k=new e.OlP("EventManagerPlugins");let E=(()=>{class Ee{constructor(ot,lt){this._zone=lt,this._eventNameToPlugin=new Map,ot.forEach(Ct=>Ct.manager=this),this._plugins=ot.slice().reverse()}addEventListener(ot,lt,Ct){return this._findPluginFor(lt).addEventListener(ot,lt,Ct)}addGlobalEventListener(ot,lt,Ct){return this._findPluginFor(lt).addGlobalEventListener(ot,lt,Ct)}getZone(){return this._zone}_findPluginFor(ot){const lt=this._eventNameToPlugin.get(ot);if(lt)return lt;const Ct=this._plugins;for(let mi=0;mi<Ct.length;mi++){const Jt=Ct[mi];if(Jt.supports(ot))return this._eventNameToPlugin.set(ot,Jt),Jt}throw new Error(`No event manager plugin found for event ${ot}`)}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(k),e.LFG(e.R0b))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();class U{constructor(Ge){this._doc=Ge}addGlobalEventListener(Ge,ot,lt){const Ct=(0,t.q)().getGlobalEventTarget(this._doc,Ge);if(!Ct)throw new Error(`Unsupported event target ${Ct} for event ${ot}`);return this.addEventListener(Ct,ot,lt)}}let W=(()=>{class Ee{constructor(){this._stylesSet=new Set}addStyles(ot){const lt=new Set;ot.forEach(Ct=>{this._stylesSet.has(Ct)||(this._stylesSet.add(Ct),lt.add(Ct))}),this.onStylesAdded(lt)}onStylesAdded(ot){}getAllStyles(){return Array.from(this._stylesSet)}}return Ee.\u0275fac=function(ot){return new(ot||Ee)},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),j=(()=>{class Ee extends W{constructor(ot){super(),this._doc=ot,this._hostNodes=new Map,this._hostNodes.set(ot.head,[])}_addStylesToHost(ot,lt,Ct){ot.forEach(mi=>{const Jt=this._doc.createElement("style");Jt.textContent=mi,Ct.push(lt.appendChild(Jt))})}addHost(ot){const lt=[];this._addStylesToHost(this._stylesSet,ot,lt),this._hostNodes.set(ot,lt)}removeHost(ot){const lt=this._hostNodes.get(ot);lt&&lt.forEach(ne),this._hostNodes.delete(ot)}onStylesAdded(ot){this._hostNodes.forEach((lt,Ct)=>{this._addStylesToHost(ot,Ct,lt)})}ngOnDestroy(){this._hostNodes.forEach(ot=>ot.forEach(ne))}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(t.K0))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();function ne(Ee){(0,t.q)().remove(Ee)}const ee={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},de=/%COMP%/g;function i(Ee,Ge,ot){for(let lt=0;lt<Ge.length;lt++){let Ct=Ge[lt];Array.isArray(Ct)?i(Ee,Ct,ot):(Ct=Ct.replace(de,Ee),ot.push(Ct))}return ot}function r(Ee){return Ge=>{if("__ngUnwrap__"===Ge)return Ee;!1===Ee(Ge)&&(Ge.preventDefault(),Ge.returnValue=!1)}}let c=(()=>{class Ee{constructor(ot,lt,Ct){this.eventManager=ot,this.sharedStylesHost=lt,this.appId=Ct,this.rendererByCompId=new Map,this.defaultRenderer=new v(ot)}createRenderer(ot,lt){if(!ot||!lt)return this.defaultRenderer;switch(lt.encapsulation){case e.ifc.Emulated:{let Ct=this.rendererByCompId.get(lt.id);return Ct||(Ct=new y(this.eventManager,this.sharedStylesHost,lt,this.appId),this.rendererByCompId.set(lt.id,Ct)),Ct.applyToHost(ot),Ct}case 1:case e.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,ot,lt);default:if(!this.rendererByCompId.has(lt.id)){const Ct=i(lt.id,lt.styles,[]);this.sharedStylesHost.addStyles(Ct),this.rendererByCompId.set(lt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(E),e.LFG(j),e.LFG(e.AFp))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();class v{constructor(Ge){this.eventManager=Ge,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ge,ot){return ot?document.createElementNS(ee[ot]||ot,Ge):document.createElement(Ge)}createComment(Ge){return document.createComment(Ge)}createText(Ge){return document.createTextNode(Ge)}appendChild(Ge,ot){Ge.appendChild(ot)}insertBefore(Ge,ot,lt){Ge&&Ge.insertBefore(ot,lt)}removeChild(Ge,ot){Ge&&Ge.removeChild(ot)}selectRootElement(Ge,ot){let lt="string"==typeof Ge?document.querySelector(Ge):Ge;if(!lt)throw new Error(`The selector "${Ge}" did not match any elements`);return ot||(lt.textContent=""),lt}parentNode(Ge){return Ge.parentNode}nextSibling(Ge){return Ge.nextSibling}setAttribute(Ge,ot,lt,Ct){if(Ct){ot=Ct+":"+ot;const mi=ee[Ct];mi?Ge.setAttributeNS(mi,ot,lt):Ge.setAttribute(ot,lt)}else Ge.setAttribute(ot,lt)}removeAttribute(Ge,ot,lt){if(lt){const Ct=ee[lt];Ct?Ge.removeAttributeNS(Ct,ot):Ge.removeAttribute(`${lt}:${ot}`)}else Ge.removeAttribute(ot)}addClass(Ge,ot){Ge.classList.add(ot)}removeClass(Ge,ot){Ge.classList.remove(ot)}setStyle(Ge,ot,lt,Ct){Ct&(e.JOm.DashCase|e.JOm.Important)?Ge.style.setProperty(ot,lt,Ct&e.JOm.Important?"important":""):Ge.style[ot]=lt}removeStyle(Ge,ot,lt){lt&e.JOm.DashCase?Ge.style.removeProperty(ot):Ge.style[ot]=""}setProperty(Ge,ot,lt){Ge[ot]=lt}setValue(Ge,ot){Ge.nodeValue=ot}listen(Ge,ot,lt){return"string"==typeof Ge?this.eventManager.addGlobalEventListener(Ge,ot,r(lt)):this.eventManager.addEventListener(Ge,ot,r(lt))}}class y extends v{constructor(Ge,ot,lt,Ct){super(Ge),this.component=lt;const mi=i(Ct+"-"+lt.id,lt.styles,[]);ot.addStyles(mi),this.contentAttr=function ge(Ee){return"_ngcontent-%COMP%".replace(de,Ee)}(Ct+"-"+lt.id),this.hostAttr=function C(Ee){return"_nghost-%COMP%".replace(de,Ee)}(Ct+"-"+lt.id)}applyToHost(Ge){super.setAttribute(Ge,this.hostAttr,"")}createElement(Ge,ot){const lt=super.createElement(Ge,ot);return super.setAttribute(lt,this.contentAttr,""),lt}}class n extends v{constructor(Ge,ot,lt,Ct){super(Ge),this.sharedStylesHost=ot,this.hostEl=lt,this.shadowRoot=lt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mi=i(Ct.id,Ct.styles,[]);for(let Jt=0;Jt<mi.length;Jt++){const $t=document.createElement("style");$t.textContent=mi[Jt],this.shadowRoot.appendChild($t)}}nodeOrShadowRoot(Ge){return Ge===this.hostEl?this.shadowRoot:Ge}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ge,ot){return super.appendChild(this.nodeOrShadowRoot(Ge),ot)}insertBefore(Ge,ot,lt){return super.insertBefore(this.nodeOrShadowRoot(Ge),ot,lt)}removeChild(Ge,ot){return super.removeChild(this.nodeOrShadowRoot(Ge),ot)}parentNode(Ge){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ge)))}}let _=(()=>{class Ee extends U{constructor(ot){super(ot)}supports(ot){return!0}addEventListener(ot,lt,Ct){return ot.addEventListener(lt,Ct,!1),()=>this.removeEventListener(ot,lt,Ct)}removeEventListener(ot,lt,Ct){return ot.removeEventListener(lt,Ct)}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(t.K0))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const B=["alt","control","meta","shift"],H={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},J={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ue={alt:Ee=>Ee.altKey,control:Ee=>Ee.ctrlKey,meta:Ee=>Ee.metaKey,shift:Ee=>Ee.shiftKey};let xe=(()=>{class Ee extends U{constructor(ot){super(ot)}supports(ot){return null!=Ee.parseEventName(ot)}addEventListener(ot,lt,Ct){const mi=Ee.parseEventName(lt),Jt=Ee.eventCallback(mi.fullKey,Ct,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(ot,mi.domEventName,Jt))}static parseEventName(ot){const lt=ot.toLowerCase().split("."),Ct=lt.shift();if(0===lt.length||"keydown"!==Ct&&"keyup"!==Ct)return null;const mi=Ee._normalizeKey(lt.pop());let Jt="";if(B.forEach(Ki=>{const hi=lt.indexOf(Ki);hi>-1&&(lt.splice(hi,1),Jt+=Ki+".")}),Jt+=mi,0!=lt.length||0===mi.length)return null;const $t={};return $t.domEventName=Ct,$t.fullKey=Jt,$t}static getEventFullKey(ot){let lt="",Ct=function Pe(Ee){let Ge=Ee.key;if(null==Ge){if(Ge=Ee.keyIdentifier,null==Ge)return"Unidentified";Ge.startsWith("U+")&&(Ge=String.fromCharCode(parseInt(Ge.substring(2),16)),3===Ee.location&&J.hasOwnProperty(Ge)&&(Ge=J[Ge]))}return H[Ge]||Ge}(ot);return Ct=Ct.toLowerCase()," "===Ct?Ct="space":"."===Ct&&(Ct="dot"),B.forEach(mi=>{mi!=Ct&&ue[mi](ot)&&(lt+=mi+".")}),lt+=Ct,lt}static eventCallback(ot,lt,Ct){return mi=>{Ee.getEventFullKey(mi)===ot&&Ct.runGuarded(()=>lt(mi))}}static _normalizeKey(ot){return"esc"===ot?"escape":ot}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(t.K0))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const q=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function Se(){M.makeCurrent(),D.init()},multi:!0},{provide:t.K0,useFactory:function Ue(){return(0,e.RDi)(document),document},deps:[]}]),Ae=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Q(){return new e.qLn},deps:[]},{provide:k,useClass:_,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:k,useClass:xe,multi:!0,deps:[t.K0]},{provide:c,useClass:c,deps:[E,j,e.AFp]},{provide:e.FYo,useExisting:c},{provide:W,useExisting:j},{provide:j,useClass:j,deps:[t.K0]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b]},{provide:E,useClass:E,deps:[k,e.R0b]},{provide:t.JF,useClass:S,deps:[]}];let ut=(()=>{class Ee{constructor(ot){if(ot)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ot){return{ngModule:Ee,providers:[{provide:e.AFp,useValue:ot.appId},{provide:h,useExisting:e.AFp},w]}}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(Ee,12))},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({providers:Ae,imports:[t.ez,e.hGG]}),Ee})();"undefined"!=typeof window&&window;const Oe={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},ce=new e.OlP("HammerGestureConfig"),ve=new e.OlP("HammerLoader");let ht=(()=>{class Ee{constructor(){this.events=[],this.overrides={}}buildHammer(ot){const lt=new Hammer(ot,this.options);lt.get("pinch").set({enable:!0}),lt.get("rotate").set({enable:!0});for(const Ct in this.overrides)lt.get(Ct).set(this.overrides[Ct]);return lt}}return Ee.\u0275fac=function(ot){return new(ot||Ee)},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),mt=(()=>{class Ee extends U{constructor(ot,lt,Ct,mi){super(ot),this._config=lt,this.console=Ct,this.loader=mi,this._loaderPromise=null}supports(ot){return!(!Oe.hasOwnProperty(ot.toLowerCase())&&!this.isCustomEvent(ot)||!window.Hammer&&!this.loader)}addEventListener(ot,lt,Ct){const mi=this.manager.getZone();if(lt=lt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Jt=!1,$t=()=>{Jt=!0};return this._loaderPromise.then(()=>{window.Hammer?Jt||($t=this.addEventListener(ot,lt,Ct)):$t=()=>{}}).catch(()=>{$t=()=>{}}),()=>{$t()}}return mi.runOutsideAngular(()=>{const Jt=this._config.buildHammer(ot),$t=function(Ki){mi.runGuarded(function(){Ct(Ki)})};return Jt.on(lt,$t),()=>{Jt.off(lt,$t),"function"==typeof Jt.destroy&&Jt.destroy()}})}isCustomEvent(ot){return this._config.events.indexOf(ot)>-1}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(t.K0),e.LFG(ce),e.LFG(e.c2e),e.LFG(ve,8))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Ht=(()=>{class Ee{}return Ee.\u0275fac=function(ot){return new(ot||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({providers:[{provide:k,useClass:mt,multi:!0,deps:[t.K0,ce,e.c2e,[new e.FiY,ve]]},{provide:ce,useClass:ht,deps:[]}]}),Ee})(),it=(()=>{class Ee{}return Ee.\u0275fac=function(ot){return new(ot||Ee)},Ee.\u0275prov=e.Yz7({token:Ee,factory:function(ot){let lt=null;return lt=ot?new(ot||Ee):e.LFG(nt),lt},providedIn:"root"}),Ee})(),nt=(()=>{class Ee extends it{constructor(ot){super(),this._doc=ot}sanitize(ot,lt){if(null==lt)return null;switch(ot){case e.q3G.NONE:return lt;case e.q3G.HTML:return(0,e.qzn)(lt,"HTML")?(0,e.z3N)(lt):(0,e.EiD)(this._doc,String(lt)).toString();case e.q3G.STYLE:return(0,e.qzn)(lt,"Style")?(0,e.z3N)(lt):lt;case e.q3G.SCRIPT:if((0,e.qzn)(lt,"Script"))return(0,e.z3N)(lt);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.yhl)(lt),(0,e.qzn)(lt,"URL")?(0,e.z3N)(lt):(0,e.mCW)(String(lt));case e.q3G.RESOURCE_URL:if((0,e.qzn)(lt,"ResourceURL"))return(0,e.z3N)(lt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ot} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ot){return(0,e.JVY)(ot)}bypassSecurityTrustStyle(ot){return(0,e.L6k)(ot)}bypassSecurityTrustScript(ot){return(0,e.eBb)(ot)}bypassSecurityTrustUrl(ot){return(0,e.LAX)(ot)}bypassSecurityTrustResourceUrl(ot){return(0,e.pB0)(ot)}}return Ee.\u0275fac=function(ot){return new(ot||Ee)(e.LFG(t.K0))},Ee.\u0275prov=e.Yz7({token:Ee,factory:function(ot){let lt=null;return lt=ot?new ot:function Ne(Ee){return new nt(Ee.get(t.K0))}(e.LFG(e.zs3)),lt},providedIn:"root"}),Ee})()},1402:(ze,K,p)=>{"use strict";p.d(K,{gz:()=>Zi,gk:()=>H,m2:()=>N,Q3:()=>J,OD:()=>B,Av:()=>Q,F0:()=>yr,rH:()=>wa,Od:()=>ya,yS:()=>Qs,Bz:()=>St,lC:()=>is});var t=p(5e3),e=p(8306),f=p(727),M=p(4482),s=p(5403);function b(){return(0,M.e)((Ve,Me)=>{let me=null;Ve._refCount++;const Qe=(0,s.x)(Me,void 0,void 0,void 0,()=>{if(!Ve||Ve._refCount<=0||0<--Ve._refCount)return void(me=null);const ct=Ve._connection,kt=me;me=null,ct&&(!kt||ct===kt)&&ct.unsubscribe(),Me.unsubscribe()});Ve.subscribe(Qe),Qe.closed||(me=Ve.connect())})}class d extends e.y{constructor(Me,me){super(),this.source=Me,this.subjectFactory=me,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(Me)&&(this.lift=Me.lift)}_subscribe(Me){return this.getSubject().subscribe(Me)}getSubject(){const Me=this._subject;return(!Me||Me.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Me}=this;this._subject=this._connection=null,null==Me||Me.unsubscribe()}connect(){let Me=this._connection;if(!Me){Me=this._connection=new f.w0;const me=this.getSubject();Me.add(this.source.subscribe((0,s.x)(me,void 0,()=>{this._teardown(),me.complete()},Qe=>{this._teardown(),me.error(Qe)},()=>this._teardown()))),Me.closed&&(this._connection=null,Me=f.w0.EMPTY)}return Me}refCount(){return b()(this)}}var R=p(457),h=p(9646),L=p(1135),w=p(9841),D=p(2843),S=p(6805),k=p(7272),E=p(9770),U=p(515),W=p(7579),j=p(9300);function ne(Ve){return Ve<=0?()=>U.E:(0,M.e)((Me,me)=>{let Qe=[];Me.subscribe((0,s.x)(me,ct=>{Qe.push(ct),Ve<Qe.length&&Qe.shift()},()=>{for(const ct of Qe)me.next(ct);me.complete()},void 0,()=>{Qe=null}))})}var ee=p(8068),de=p(6590),te=p(4671),le=p(4004),$=p(3900),ge=p(5698),C=p(8675),i=p(5026),r=p(262),u=p(4351),c=p(590),v=p(5577),T=p(8505),I=p(8746),y=p(8189),n=p(9808);class _{constructor(Me,me){this.id=Me,this.url=me}}class B extends _{constructor(Me,me,Qe="imperative",ct=null){super(Me,me),this.navigationTrigger=Qe,this.restoredState=ct}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class N extends _{constructor(Me,me,Qe){super(Me,me),this.urlAfterRedirects=Qe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends _{constructor(Me,me,Qe){super(Me,me),this.reason=Qe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J extends _{constructor(Me,me,Qe){super(Me,me),this.error=Qe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ue extends _{constructor(Me,me,Qe,ct){super(Me,me),this.urlAfterRedirects=Qe,this.state=ct}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xe extends _{constructor(Me,me,Qe,ct){super(Me,me),this.urlAfterRedirects=Qe,this.state=ct}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pe extends _{constructor(Me,me,Qe,ct,kt){super(Me,me),this.urlAfterRedirects=Qe,this.state=ct,this.shouldActivate=kt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Se extends _{constructor(Me,me,Qe,ct){super(Me,me),this.urlAfterRedirects=Qe,this.state=ct}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Q extends _{constructor(Me,me,Qe,ct){super(Me,me),this.urlAfterRedirects=Qe,this.state=ct}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ue{constructor(Me){this.route=Me}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ce{constructor(Me){this.route=Me}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class q{constructor(Me){this.snapshot=Me}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(Me){this.snapshot=Me}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(Me){this.snapshot=Me}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(Me){this.snapshot=Me}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class De{constructor(Me,me,Qe){this.routerEvent=Me,this.position=me,this.anchor=Qe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ae="primary";class we{constructor(Me){this.params=Me||{}}has(Me){return Object.prototype.hasOwnProperty.call(this.params,Me)}get(Me){if(this.has(Me)){const me=this.params[Me];return Array.isArray(me)?me[0]:me}return null}getAll(Me){if(this.has(Me)){const me=this.params[Me];return Array.isArray(me)?me:[me]}return[]}get keys(){return Object.keys(this.params)}}function ye(Ve){return new we(Ve)}const Y="ngNavigationCancelingError";function z(Ve){const Me=Error("NavigationCancelingError: "+Ve);return Me[Y]=!0,Me}function fe(Ve,Me,me){const Qe=me.path.split("/");if(Qe.length>Ve.length||"full"===me.pathMatch&&(Me.hasChildren()||Qe.length<Ve.length))return null;const ct={};for(let kt=0;kt<Qe.length;kt++){const Qt=Qe[kt],si=Ve[kt];if(Qt.startsWith(":"))ct[Qt.substring(1)]=si;else if(Qt!==si.path)return null}return{consumed:Ve.slice(0,Qe.length),posParams:ct}}function pt(Ve,Me){const me=Ve?Object.keys(Ve):void 0,Qe=Me?Object.keys(Me):void 0;if(!me||!Qe||me.length!=Qe.length)return!1;let ct;for(let kt=0;kt<me.length;kt++)if(ct=me[kt],!et(Ve[ct],Me[ct]))return!1;return!0}function et(Ve,Me){if(Array.isArray(Ve)&&Array.isArray(Me)){if(Ve.length!==Me.length)return!1;const me=[...Ve].sort(),Qe=[...Me].sort();return me.every((ct,kt)=>Qe[kt]===ct)}return Ve===Me}function Lt(Ve){return Array.prototype.concat.apply([],Ve)}function di(Ve){return Ve.length>0?Ve[Ve.length-1]:null}function Gt(Ve,Me){for(const me in Ve)Ve.hasOwnProperty(me)&&Me(Ve[me],me)}function ui(Ve){return(0,t.CqO)(Ve)?Ve:(0,t.QGY)(Ve)?(0,R.D)(Promise.resolve(Ve)):(0,h.of)(Ve)}const Nt={exact:function ei(Ve,Me,me){if(!it(Ve.segments,Me.segments)||!ce(Ve.segments,Me.segments,me)||Ve.numberOfChildren!==Me.numberOfChildren)return!1;for(const Qe in Me.children)if(!Ve.children[Qe]||!ei(Ve.children[Qe],Me.children[Qe],me))return!1;return!0},subset:Re},gt={exact:function xt(Ve,Me){return pt(Ve,Me)},subset:function Kt(Ve,Me){return Object.keys(Me).length<=Object.keys(Ve).length&&Object.keys(Me).every(me=>et(Ve[me],Me[me]))},ignored:()=>!0};function tt(Ve,Me,me){return Nt[me.paths](Ve.root,Me.root,me.matrixParams)&&gt[me.queryParams](Ve.queryParams,Me.queryParams)&&!("exact"===me.fragment&&Ve.fragment!==Me.fragment)}function Re(Ve,Me,me){return Oe(Ve,Me,Me.segments,me)}function Oe(Ve,Me,me,Qe){if(Ve.segments.length>me.length){const ct=Ve.segments.slice(0,me.length);return!(!it(ct,me)||Me.hasChildren()||!ce(ct,me,Qe))}if(Ve.segments.length===me.length){if(!it(Ve.segments,me)||!ce(Ve.segments,me,Qe))return!1;for(const ct in Me.children)if(!Ve.children[ct]||!Re(Ve.children[ct],Me.children[ct],Qe))return!1;return!0}{const ct=me.slice(0,Ve.segments.length),kt=me.slice(Ve.segments.length);return!!(it(Ve.segments,ct)&&ce(Ve.segments,ct,Qe)&&Ve.children[ae])&&Oe(Ve.children[ae],Me,kt,Qe)}}function ce(Ve,Me,me){return Me.every((Qe,ct)=>gt[me](Ve[ct].parameters,Qe.parameters))}class ve{constructor(Me,me,Qe){this.root=Me,this.queryParams=me,this.fragment=Qe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return Ee.serialize(this)}}class ht{constructor(Me,me){this.segments=Me,this.children=me,this.parent=null,Gt(me,(Qe,ct)=>Qe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ge(this)}}class mt{constructor(Me,me){this.path=Me,this.parameters=me}get parameterMap(){return this._parameterMap||(this._parameterMap=ye(this.parameters)),this._parameterMap}toString(){return hi(this)}}function it(Ve,Me){return Ve.length===Me.length&&Ve.every((me,Qe)=>me.path===Me[Qe].path)}class nt{}class Xe{parse(Me){const me=new Ke(Me);return new ve(me.parseRootSegment(),me.parseQueryParams(),me.parseFragment())}serialize(Me){const me=`/${ot(Me.root,!0)}`,Qe=function Ji(Ve){const Me=Object.keys(Ve).map(me=>{const Qe=Ve[me];return Array.isArray(Qe)?Qe.map(ct=>`${Ct(me)}=${Ct(ct)}`).join("&"):`${Ct(me)}=${Ct(Qe)}`}).filter(me=>!!me);return Me.length?`?${Me.join("&")}`:""}(Me.queryParams);return`${me}${Qe}${"string"==typeof Me.fragment?`#${function mi(Ve){return encodeURI(Ve)}(Me.fragment)}`:""}`}}const Ee=new Xe;function Ge(Ve){return Ve.segments.map(Me=>hi(Me)).join("/")}function ot(Ve,Me){if(!Ve.hasChildren())return Ge(Ve);if(Me){const me=Ve.children[ae]?ot(Ve.children[ae],!1):"",Qe=[];return Gt(Ve.children,(ct,kt)=>{kt!==ae&&Qe.push(`${kt}:${ot(ct,!1)}`)}),Qe.length>0?`${me}(${Qe.join("//")})`:me}{const me=function Ne(Ve,Me){let me=[];return Gt(Ve.children,(Qe,ct)=>{ct===ae&&(me=me.concat(Me(Qe,ct)))}),Gt(Ve.children,(Qe,ct)=>{ct!==ae&&(me=me.concat(Me(Qe,ct)))}),me}(Ve,(Qe,ct)=>ct===ae?[ot(Ve.children[ae],!1)]:[`${ct}:${ot(Qe,!1)}`]);return 1===Object.keys(Ve.children).length&&null!=Ve.children[ae]?`${Ge(Ve)}/${me[0]}`:`${Ge(Ve)}/(${me.join("//")})`}}function lt(Ve){return encodeURIComponent(Ve).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(Ve){return lt(Ve).replace(/%3B/gi,";")}function Jt(Ve){return lt(Ve).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $t(Ve){return decodeURIComponent(Ve)}function Ki(Ve){return $t(Ve.replace(/\+/g,"%20"))}function hi(Ve){return`${Jt(Ve.path)}${function ai(Ve){return Object.keys(Ve).map(Me=>`;${Jt(Me)}=${Jt(Ve[Me])}`).join("")}(Ve.parameters)}`}const Gi=/^[^\/()?;=#]+/;function zi(Ve){const Me=Ve.match(Gi);return Me?Me[0]:""}const Ui=/^[^=?&#]+/,Tt=/^[^&#]+/;class Ke{constructor(Me){this.url=Me,this.remaining=Me}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const Me={};if(this.consumeOptional("?"))do{this.parseQueryParam(Me)}while(this.consumeOptional("&"));return Me}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Me=[];for(this.peekStartsWith("(")||Me.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Me.push(this.parseSegment());let me={};this.peekStartsWith("/(")&&(this.capture("/"),me=this.parseParens(!0));let Qe={};return this.peekStartsWith("(")&&(Qe=this.parseParens(!1)),(Me.length>0||Object.keys(me).length>0)&&(Qe[ae]=new ht(Me,me)),Qe}parseSegment(){const Me=zi(this.remaining);if(""===Me&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Me),new mt($t(Me),this.parseMatrixParams())}parseMatrixParams(){const Me={};for(;this.consumeOptional(";");)this.parseParam(Me);return Me}parseParam(Me){const me=zi(this.remaining);if(!me)return;this.capture(me);let Qe="";if(this.consumeOptional("=")){const ct=zi(this.remaining);ct&&(Qe=ct,this.capture(Qe))}Me[$t(me)]=$t(Qe)}parseQueryParam(Me){const me=function Be(Ve){const Me=Ve.match(Ui);return Me?Me[0]:""}(this.remaining);if(!me)return;this.capture(me);let Qe="";if(this.consumeOptional("=")){const Qt=function _e(Ve){const Me=Ve.match(Tt);return Me?Me[0]:""}(this.remaining);Qt&&(Qe=Qt,this.capture(Qe))}const ct=Ki(me),kt=Ki(Qe);if(Me.hasOwnProperty(ct)){let Qt=Me[ct];Array.isArray(Qt)||(Qt=[Qt],Me[ct]=Qt),Qt.push(kt)}else Me[ct]=kt}parseParens(Me){const me={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Qe=zi(this.remaining),ct=this.remaining[Qe.length];if("/"!==ct&&")"!==ct&&";"!==ct)throw new Error(`Cannot parse url '${this.url}'`);let kt;Qe.indexOf(":")>-1?(kt=Qe.substr(0,Qe.indexOf(":")),this.capture(kt),this.capture(":")):Me&&(kt=ae);const Qt=this.parseChildren();me[kt]=1===Object.keys(Qt).length?Qt[ae]:new ht([],Qt),this.consumeOptional("//")}return me}peekStartsWith(Me){return this.remaining.startsWith(Me)}consumeOptional(Me){return!!this.peekStartsWith(Me)&&(this.remaining=this.remaining.substring(Me.length),!0)}capture(Me){if(!this.consumeOptional(Me))throw new Error(`Expected "${Me}".`)}}class yt{constructor(Me){this._root=Me}get root(){return this._root.value}parent(Me){const me=this.pathFromRoot(Me);return me.length>1?me[me.length-2]:null}children(Me){const me=re(Me,this._root);return me?me.children.map(Qe=>Qe.value):[]}firstChild(Me){const me=re(Me,this._root);return me&&me.children.length>0?me.children[0].value:null}siblings(Me){const me=qe(Me,this._root);return me.length<2?[]:me[me.length-2].children.map(ct=>ct.value).filter(ct=>ct!==Me)}pathFromRoot(Me){return qe(Me,this._root).map(me=>me.value)}}function re(Ve,Me){if(Ve===Me.value)return Me;for(const me of Me.children){const Qe=re(Ve,me);if(Qe)return Qe}return null}function qe(Ve,Me){if(Ve===Me.value)return[Me];for(const me of Me.children){const Qe=qe(Ve,me);if(Qe.length)return Qe.unshift(Me),Qe}return[]}class bt{constructor(Me,me){this.value=Me,this.children=me}toString(){return`TreeNode(${this.value})`}}function Vt(Ve){const Me={};return Ve&&Ve.children.forEach(me=>Me[me.value.outlet]=me),Me}class bi extends yt{constructor(Me,me){super(Me),this.snapshot=me,st(this,Me)}toString(){return this.snapshot.toString()}}function wi(Ve,Me){const me=function Xi(Ve,Me){const Qt=new ti([],{},{},"",{},ae,Me,null,Ve.root,-1,{});return new Pi("",new bt(Qt,[]))}(Ve,Me),Qe=new L.X([new mt("",{})]),ct=new L.X({}),kt=new L.X({}),Qt=new L.X({}),si=new L.X(""),Li=new Zi(Qe,ct,Qt,si,kt,ae,Me,me.root);return Li.snapshot=me.root,new bi(new bt(Li,[]),me)}class Zi{constructor(Me,me,Qe,ct,kt,Qt,si,Li){this.url=Me,this.params=me,this.queryParams=Qe,this.fragment=ct,this.data=kt,this.outlet=Qt,this.component=si,this._futureSnapshot=Li}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,le.U)(Me=>ye(Me)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(Me=>ye(Me)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function on(Ve,Me="emptyOnly"){const me=Ve.pathFromRoot;let Qe=0;if("always"!==Me)for(Qe=me.length-1;Qe>=1;){const ct=me[Qe],kt=me[Qe-1];if(ct.routeConfig&&""===ct.routeConfig.path)Qe--;else{if(kt.component)break;Qe--}}return function mn(Ve){return Ve.reduce((Me,me)=>({params:Object.assign(Object.assign({},Me.params),me.params),data:Object.assign(Object.assign({},Me.data),me.data),resolve:Object.assign(Object.assign({},Me.resolve),me._resolvedData)}),{params:{},data:{},resolve:{}})}(me.slice(Qe))}class ti{constructor(Me,me,Qe,ct,kt,Qt,si,Li,an,In,bn){this.url=Me,this.params=me,this.queryParams=Qe,this.fragment=ct,this.data=kt,this.outlet=Qt,this.component=si,this.routeConfig=Li,this._urlSegment=an,this._lastPathIndex=In,this._resolve=bn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ye(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Qe=>Qe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pi extends yt{constructor(Me,me){super(me),this.url=Me,st(this,me)}toString(){return Rt(this._root)}}function st(Ve,Me){Me.value._routerState=Ve,Me.children.forEach(me=>st(Ve,me))}function Rt(Ve){const Me=Ve.children.length>0?` { ${Ve.children.map(Rt).join(", ")} } `:"";return`${Ve.value}${Me}`}function Zt(Ve){if(Ve.snapshot){const Me=Ve.snapshot,me=Ve._futureSnapshot;Ve.snapshot=me,pt(Me.queryParams,me.queryParams)||Ve.queryParams.next(me.queryParams),Me.fragment!==me.fragment&&Ve.fragment.next(me.fragment),pt(Me.params,me.params)||Ve.params.next(me.params),function He(Ve,Me){if(Ve.length!==Me.length)return!1;for(let me=0;me<Ve.length;++me)if(!pt(Ve[me],Me[me]))return!1;return!0}(Me.url,me.url)||Ve.url.next(me.url),pt(Me.data,me.data)||Ve.data.next(me.data)}else Ve.snapshot=Ve._futureSnapshot,Ve.data.next(Ve._futureSnapshot.data)}function fi(Ve,Me){const me=pt(Ve.params,Me.params)&&function Ht(Ve,Me){return it(Ve,Me)&&Ve.every((me,Qe)=>pt(me.parameters,Me[Qe].parameters))}(Ve.url,Me.url);return me&&!(!Ve.parent!=!Me.parent)&&(!Ve.parent||fi(Ve.parent,Me.parent))}function ki(Ve,Me,me){if(me&&Ve.shouldReuseRoute(Me.value,me.value.snapshot)){const Qe=me.value;Qe._futureSnapshot=Me.value;const ct=function un(Ve,Me,me){return Me.children.map(Qe=>{for(const ct of me.children)if(Ve.shouldReuseRoute(Qe.value,ct.value.snapshot))return ki(Ve,Qe,ct);return ki(Ve,Qe)})}(Ve,Me,me);return new bt(Qe,ct)}{if(Ve.shouldAttach(Me.value)){const kt=Ve.retrieve(Me.value);if(null!==kt){const Qt=kt.route;return Qt.value._futureSnapshot=Me.value,Qt.children=Me.children.map(si=>ki(Ve,si)),Qt}}const Qe=function jn(Ve){return new Zi(new L.X(Ve.url),new L.X(Ve.params),new L.X(Ve.queryParams),new L.X(Ve.fragment),new L.X(Ve.data),Ve.outlet,Ve.component,Ve)}(Me.value),ct=Me.children.map(kt=>ki(Ve,kt));return new bt(Qe,ct)}}function $n(Ve){return"object"==typeof Ve&&null!=Ve&&!Ve.outlets&&!Ve.segmentPath}function _n(Ve){return"object"==typeof Ve&&null!=Ve&&Ve.outlets}function Si(Ve,Me,me,Qe,ct){let kt={};if(Qe&&Gt(Qe,(si,Li)=>{kt[Li]=Array.isArray(si)?si.map(an=>`${an}`):`${si}`}),Ve===Me)return new ve(me,kt,ct);const Qt=ji(Ve,Me,me);return new ve(Qt,kt,ct)}function ji(Ve,Me,me){const Qe={};return Gt(Ve.children,(ct,kt)=>{Qe[kt]=ct===Me?me:ji(ct,Me,me)}),new ht(Ve.segments,Qe)}class wn{constructor(Me,me,Qe){if(this.isAbsolute=Me,this.numberOfDoubleDots=me,this.commands=Qe,Me&&Qe.length>0&&$n(Qe[0]))throw new Error("Root segment cannot have matrix parameters");const ct=Qe.find(_n);if(ct&&ct!==di(Qe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class nr{constructor(Me,me,Qe){this.segmentGroup=Me,this.processChildren=me,this.index=Qe}}function ls(Ve,Me,me){if(Ve||(Ve=new ht([],{})),0===Ve.segments.length&&Ve.hasChildren())return Jr(Ve,Me,me);const Qe=function zs(Ve,Me,me){let Qe=0,ct=Me;const kt={match:!1,pathIndex:0,commandIndex:0};for(;ct<Ve.segments.length;){if(Qe>=me.length)return kt;const Qt=Ve.segments[ct],si=me[Qe];if(_n(si))break;const Li=`${si}`,an=Qe<me.length-1?me[Qe+1]:null;if(ct>0&&void 0===Li)break;if(Li&&an&&"object"==typeof an&&void 0===an.outlets){if(!$r(Li,an,Qt))return kt;Qe+=2}else{if(!$r(Li,{},Qt))return kt;Qe++}ct++}return{match:!0,pathIndex:ct,commandIndex:Qe}}(Ve,Me,me),ct=me.slice(Qe.commandIndex);if(Qe.match&&Qe.pathIndex<Ve.segments.length){const kt=new ht(Ve.segments.slice(0,Qe.pathIndex),{});return kt.children[ae]=new ht(Ve.segments.slice(Qe.pathIndex),Ve.children),Jr(kt,0,ct)}return Qe.match&&0===ct.length?new ht(Ve.segments,{}):Qe.match&&!Ve.hasChildren()?Ms(Ve,Me,me):Qe.match?Jr(Ve,0,ct):Ms(Ve,Me,me)}function Jr(Ve,Me,me){if(0===me.length)return new ht(Ve.segments,{});{const Qe=function zr(Ve){return _n(Ve[0])?Ve[0].outlets:{[ae]:Ve}}(me),ct={};return Gt(Qe,(kt,Qt)=>{"string"==typeof kt&&(kt=[kt]),null!==kt&&(ct[Qt]=ls(Ve.children[Qt],Me,kt))}),Gt(Ve.children,(kt,Qt)=>{void 0===Qe[Qt]&&(ct[Qt]=kt)}),new ht(Ve.segments,ct)}}function Ms(Ve,Me,me){const Qe=Ve.segments.slice(0,Me);let ct=0;for(;ct<me.length;){const kt=me[ct];if(_n(kt)){const Li=cs(kt.outlets);return new ht(Qe,Li)}if(0===ct&&$n(me[0])){Qe.push(new mt(Ve.segments[Me].path,Xr(me[0]))),ct++;continue}const Qt=_n(kt)?kt.outlets[ae]:`${kt}`,si=ct<me.length-1?me[ct+1]:null;Qt&&si&&$n(si)?(Qe.push(new mt(Qt,Xr(si))),ct+=2):(Qe.push(new mt(Qt,{})),ct++)}return new ht(Qe,{})}function cs(Ve){const Me={};return Gt(Ve,(me,Qe)=>{"string"==typeof me&&(me=[me]),null!==me&&(Me[Qe]=Ms(new ht([],{}),0,me))}),Me}function Xr(Ve){const Me={};return Gt(Ve,(me,Qe)=>Me[Qe]=`${me}`),Me}function $r(Ve,Me,me){return Ve==me.path&&pt(Me,me.parameters)}class ds{constructor(Me,me,Qe,ct){this.routeReuseStrategy=Me,this.futureState=me,this.currState=Qe,this.forwardEvent=ct}activate(Me){const me=this.futureState._root,Qe=this.currState?this.currState._root:null;this.deactivateChildRoutes(me,Qe,Me),Zt(this.futureState.root),this.activateChildRoutes(me,Qe,Me)}deactivateChildRoutes(Me,me,Qe){const ct=Vt(me);Me.children.forEach(kt=>{const Qt=kt.value.outlet;this.deactivateRoutes(kt,ct[Qt],Qe),delete ct[Qt]}),Gt(ct,(kt,Qt)=>{this.deactivateRouteAndItsChildren(kt,Qe)})}deactivateRoutes(Me,me,Qe){const ct=Me.value,kt=me?me.value:null;if(ct===kt)if(ct.component){const Qt=Qe.getContext(ct.outlet);Qt&&this.deactivateChildRoutes(Me,me,Qt.children)}else this.deactivateChildRoutes(Me,me,Qe);else kt&&this.deactivateRouteAndItsChildren(me,Qe)}deactivateRouteAndItsChildren(Me,me){Me.value.component&&this.routeReuseStrategy.shouldDetach(Me.value.snapshot)?this.detachAndStoreRouteSubtree(Me,me):this.deactivateRouteAndOutlet(Me,me)}detachAndStoreRouteSubtree(Me,me){const Qe=me.getContext(Me.value.outlet),ct=Qe&&Me.value.component?Qe.children:me,kt=Vt(Me);for(const Qt of Object.keys(kt))this.deactivateRouteAndItsChildren(kt[Qt],ct);if(Qe&&Qe.outlet){const Qt=Qe.outlet.detach(),si=Qe.children.onOutletDeactivated();this.routeReuseStrategy.store(Me.value.snapshot,{componentRef:Qt,route:Me,contexts:si})}}deactivateRouteAndOutlet(Me,me){const Qe=me.getContext(Me.value.outlet),ct=Qe&&Me.value.component?Qe.children:me,kt=Vt(Me);for(const Qt of Object.keys(kt))this.deactivateRouteAndItsChildren(kt[Qt],ct);Qe&&Qe.outlet&&(Qe.outlet.deactivate(),Qe.children.onOutletDeactivated(),Qe.attachRef=null,Qe.resolver=null,Qe.route=null)}activateChildRoutes(Me,me,Qe){const ct=Vt(me);Me.children.forEach(kt=>{this.activateRoutes(kt,ct[kt.value.outlet],Qe),this.forwardEvent(new Ie(kt.value.snapshot))}),Me.children.length&&this.forwardEvent(new Ae(Me.value.snapshot))}activateRoutes(Me,me,Qe){const ct=Me.value,kt=me?me.value:null;if(Zt(ct),ct===kt)if(ct.component){const Qt=Qe.getOrCreateContext(ct.outlet);this.activateChildRoutes(Me,me,Qt.children)}else this.activateChildRoutes(Me,me,Qe);else if(ct.component){const Qt=Qe.getOrCreateContext(ct.outlet);if(this.routeReuseStrategy.shouldAttach(ct.snapshot)){const si=this.routeReuseStrategy.retrieve(ct.snapshot);this.routeReuseStrategy.store(ct.snapshot,null),Qt.children.onOutletReAttached(si.contexts),Qt.attachRef=si.componentRef,Qt.route=si.route.value,Qt.outlet&&Qt.outlet.attach(si.componentRef,si.route.value),Zt(si.route.value),this.activateChildRoutes(Me,null,Qt.children)}else{const si=function Ws(Ve){for(let Me=Ve.parent;Me;Me=Me.parent){const me=Me.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig;if(me&&me.component)return null}return null}(ct.snapshot),Li=si?si.module.componentFactoryResolver:null;Qt.attachRef=null,Qt.route=ct,Qt.resolver=Li,Qt.outlet&&Qt.outlet.activateWith(ct,Li),this.activateChildRoutes(Me,null,Qt.children)}}else this.activateChildRoutes(Me,null,Qe)}}class Dr{constructor(Me,me){this.routes=Me,this.module=me}}function Zn(Ve){return"function"==typeof Ve}function cr(Ve){return Ve instanceof ve}const dr=Symbol("INITIAL_VALUE");function gs(){return(0,$.w)(Ve=>(0,w.a)(Ve.map(Me=>Me.pipe((0,ge.q)(1),(0,C.O)(dr)))).pipe((0,i.R)((Me,me)=>{let Qe=!1;return me.reduce((ct,kt,Qt)=>ct!==dr?ct:(kt===dr&&(Qe=!0),Qe||!1!==kt&&Qt!==me.length-1&&!cr(kt)?ct:kt),Me)},dr),(0,j.h)(Me=>Me!==dr),(0,le.U)(Me=>cr(Me)?Me:!0===Me),(0,ge.q)(1)))}class Ir{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Tr,this.attachRef=null}}class Tr{constructor(){this.contexts=new Map}onChildOutletCreated(Me,me){const Qe=this.getOrCreateContext(Me);Qe.outlet=me,this.contexts.set(Me,Qe)}onChildOutletDestroyed(Me){const me=this.getContext(Me);me&&(me.outlet=null,me.attachRef=null)}onOutletDeactivated(){const Me=this.contexts;return this.contexts=new Map,Me}onOutletReAttached(Me){this.contexts=Me}getOrCreateContext(Me){let me=this.getContext(Me);return me||(me=new Ir,this.contexts.set(Me,me)),me}getContext(Me){return this.contexts.get(Me)||null}}let is=(()=>{class Ve{constructor(me,Qe,ct,kt,Qt){this.parentContexts=me,this.location=Qe,this.resolver=ct,this.changeDetector=Qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=kt||ae,me.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const me=this.parentContexts.getContext(this.name);me&&me.route&&(me.attachRef?this.attach(me.attachRef,me.route):this.activateWith(me.route,me.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const me=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(me.instance),me}attach(me,Qe){this.activated=me,this._activatedRoute=Qe,this.location.insert(me.hostView),this.attachEvents.emit(me.instance)}deactivate(){if(this.activated){const me=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(me)}}activateWith(me,Qe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=me;const Qt=(Qe=Qe||this.resolver).resolveComponentFactory(me._futureSnapshot.routeConfig.component),si=this.parentContexts.getOrCreateContext(this.name).children,Li=new Ss(me,si,this.location.injector);this.activated=this.location.createComponent(Qt,this.location.length,Li),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.Y36(Tr),t.Y36(t.s_b),t.Y36(t._Vd),t.$8M("name"),t.Y36(t.sBO))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ve})();class Ss{constructor(Me,me,Qe){this.route=Me,this.childContexts=me,this.parent=Qe}get(Me,me){return Me===Zi?this.route:Me===Tr?this.childContexts:this.parent.get(Me,me)}}let Rs=(()=>{class Ve{}return Ve.\u0275fac=function(me){return new(me||Ve)},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["ng-component"]],decls:1,vars:0,template:function(me,Qe){1&me&&t._UZ(0,"router-outlet")},directives:[is],encapsulation:2}),Ve})();function _s(Ve,Me=""){for(let me=0;me<Ve.length;me++){const Qe=Ve[me];or(Qe,ns(Me,Qe))}}function or(Ve,Me){Ve.children&&_s(Ve.children,Me)}function ns(Ve,Me){return Me?Ve||Me.path?Ve&&!Me.path?`${Ve}/`:!Ve&&Me.path?Me.path:`${Ve}/${Me.path}`:"":Ve}function Vs(Ve){const Me=Ve.children&&Ve.children.map(Vs),me=Me?Object.assign(Object.assign({},Ve),{children:Me}):Object.assign({},Ve);return!me.component&&(Me||me.loadChildren)&&me.outlet&&me.outlet!==ae&&(me.component=Rs),me}function er(Ve){return Ve.outlet||ae}function rs(Ve,Me){const me=Ve.filter(Qe=>er(Qe)===Me);return me.push(...Ve.filter(Qe=>er(Qe)!==Me)),me}const Wr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Or(Ve,Me,me){var Qe;if(""===Me.path)return"full"===Me.pathMatch&&(Ve.hasChildren()||me.length>0)?Object.assign({},Wr):{matched:!0,consumedSegments:[],remainingSegments:me,parameters:{},positionalParamSegments:{}};const kt=(Me.matcher||fe)(me,Ve,Me);if(!kt)return Object.assign({},Wr);const Qt={};Gt(kt.posParams,(Li,an)=>{Qt[an]=Li.path});const si=kt.consumed.length>0?Object.assign(Object.assign({},Qt),kt.consumed[kt.consumed.length-1].parameters):Qt;return{matched:!0,consumedSegments:kt.consumed,remainingSegments:me.slice(kt.consumed.length),parameters:si,positionalParamSegments:null!==(Qe=kt.posParams)&&void 0!==Qe?Qe:{}}}function kr(Ve,Me,me,Qe,ct="corrected"){if(me.length>0&&function Vn(Ve,Me,me){return me.some(Qe=>Et(Ve,Me,Qe)&&er(Qe)!==ae)}(Ve,me,Qe)){const Qt=new ht(Me,function vs(Ve,Me,me,Qe){const ct={};ct[ae]=Qe,Qe._sourceSegment=Ve,Qe._segmentIndexShift=Me.length;for(const kt of me)if(""===kt.path&&er(kt)!==ae){const Qt=new ht([],{});Qt._sourceSegment=Ve,Qt._segmentIndexShift=Me.length,ct[er(kt)]=Qt}return ct}(Ve,Me,Qe,new ht(me,Ve.children)));return Qt._sourceSegment=Ve,Qt._segmentIndexShift=Me.length,{segmentGroup:Qt,slicedSegments:[]}}if(0===me.length&&function je(Ve,Me,me){return me.some(Qe=>Et(Ve,Me,Qe))}(Ve,me,Qe)){const Qt=new ht(Ve.segments,function us(Ve,Me,me,Qe,ct,kt){const Qt={};for(const si of Qe)if(Et(Ve,me,si)&&!ct[er(si)]){const Li=new ht([],{});Li._sourceSegment=Ve,Li._segmentIndexShift="legacy"===kt?Ve.segments.length:Me.length,Qt[er(si)]=Li}return Object.assign(Object.assign({},ct),Qt)}(Ve,Me,me,Qe,Ve.children,ct));return Qt._sourceSegment=Ve,Qt._segmentIndexShift=Me.length,{segmentGroup:Qt,slicedSegments:me}}const kt=new ht(Ve.segments,Ve.children);return kt._sourceSegment=Ve,kt._segmentIndexShift=Me.length,{segmentGroup:kt,slicedSegments:me}}function Et(Ve,Me,me){return(!(Ve.hasChildren()||Me.length>0)||"full"!==me.pathMatch)&&""===me.path}function Je(Ve,Me,me,Qe){return!!(er(Ve)===Qe||Qe!==ae&&Et(Me,me,Ve))&&("**"===Ve.path||Or(Me,Ve,me).matched)}function Pt(Ve,Me,me){return 0===Me.length&&!Ve.children[me]}class ri{constructor(Me){this.segmentGroup=Me||null}}class Mi{constructor(Me){this.urlTree=Me}}function Ii(Ve){return(0,D._)(new ri(Ve))}function tn(Ve){return(0,D._)(new Mi(Ve))}class vt{constructor(Me,me,Qe,ct,kt){this.configLoader=me,this.urlSerializer=Qe,this.urlTree=ct,this.config=kt,this.allowRedirects=!0,this.ngModule=Me.get(t.h0i)}apply(){const Me=kr(this.urlTree.root,[],[],this.config).segmentGroup,me=new ht(Me.segments,Me.children);return this.expandSegmentGroup(this.ngModule,this.config,me,ae).pipe((0,le.U)(kt=>this.createUrlTree(Ei(kt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(kt=>{if(kt instanceof Mi)return this.allowRedirects=!1,this.match(kt.urlTree);throw kt instanceof ri?this.noMatchError(kt):kt}))}match(Me){return this.expandSegmentGroup(this.ngModule,this.config,Me.root,ae).pipe((0,le.U)(ct=>this.createUrlTree(Ei(ct),Me.queryParams,Me.fragment))).pipe((0,r.K)(ct=>{throw ct instanceof ri?this.noMatchError(ct):ct}))}noMatchError(Me){return new Error(`Cannot match any routes. URL Segment: '${Me.segmentGroup}'`)}createUrlTree(Me,me,Qe){const ct=Me.segments.length>0?new ht([],{[ae]:Me}):Me;return new ve(ct,me,Qe)}expandSegmentGroup(Me,me,Qe,ct){return 0===Qe.segments.length&&Qe.hasChildren()?this.expandChildren(Me,me,Qe).pipe((0,le.U)(kt=>new ht([],kt))):this.expandSegment(Me,Qe,me,Qe.segments,ct,!0)}expandChildren(Me,me,Qe){const ct=[];for(const kt of Object.keys(Qe.children))"primary"===kt?ct.unshift(kt):ct.push(kt);return(0,R.D)(ct).pipe((0,u.b)(kt=>{const Qt=Qe.children[kt],si=rs(me,kt);return this.expandSegmentGroup(Me,si,Qt,kt).pipe((0,le.U)(Li=>({segment:Li,outlet:kt})))}),(0,i.R)((kt,Qt)=>(kt[Qt.outlet]=Qt.segment,kt),{}),function ie(Ve,Me){const me=arguments.length>=2;return Qe=>Qe.pipe(Ve?(0,j.h)((ct,kt)=>Ve(ct,kt,Qe)):te.y,ne(1),me?(0,de.d)(Me):(0,ee.T)(()=>new S.K))}())}expandSegment(Me,me,Qe,ct,kt,Qt){return(0,R.D)(Qe).pipe((0,u.b)(si=>this.expandSegmentAgainstRoute(Me,me,Qe,si,ct,kt,Qt).pipe((0,r.K)(an=>{if(an instanceof ri)return(0,h.of)(null);throw an}))),(0,c.P)(si=>!!si),(0,r.K)((si,Li)=>{if(si instanceof S.K||"EmptyError"===si.name)return Pt(me,ct,kt)?(0,h.of)(new ht([],{})):Ii(me);throw si}))}expandSegmentAgainstRoute(Me,me,Qe,ct,kt,Qt,si){return Je(ct,me,kt,Qt)?void 0===ct.redirectTo?this.matchSegmentAgainstRoute(Me,me,ct,kt,Qt):si&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Me,me,Qe,ct,kt,Qt):Ii(me):Ii(me)}expandSegmentAgainstRouteUsingRedirect(Me,me,Qe,ct,kt,Qt){return"**"===ct.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Me,Qe,ct,Qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Me,me,Qe,ct,kt,Qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Me,me,Qe,ct){const kt=this.applyRedirectCommands([],Qe.redirectTo,{});return Qe.redirectTo.startsWith("/")?tn(kt):this.lineralizeSegments(Qe,kt).pipe((0,v.z)(Qt=>{const si=new ht(Qt,{});return this.expandSegment(Me,si,me,Qt,ct,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Me,me,Qe,ct,kt,Qt){const{matched:si,consumedSegments:Li,remainingSegments:an,positionalParamSegments:In}=Or(me,ct,kt);if(!si)return Ii(me);const bn=this.applyRedirectCommands(Li,ct.redirectTo,In);return ct.redirectTo.startsWith("/")?tn(bn):this.lineralizeSegments(ct,bn).pipe((0,v.z)(_r=>this.expandSegment(Me,me,Qe,_r.concat(an),Qt,!1)))}matchSegmentAgainstRoute(Me,me,Qe,ct,kt){if("**"===Qe.path)return Qe.loadChildren?(Qe._loadedConfig?(0,h.of)(Qe._loadedConfig):this.configLoader.load(Me.injector,Qe)).pipe((0,le.U)(bn=>(Qe._loadedConfig=bn,new ht(ct,{})))):(0,h.of)(new ht(ct,{}));const{matched:Qt,consumedSegments:si,remainingSegments:Li}=Or(me,Qe,ct);return Qt?this.getChildConfig(Me,Qe,ct).pipe((0,v.z)(In=>{const bn=In.module,_r=In.routes,{segmentGroup:hr,slicedSegments:oa}=kr(me,si,Li,_r),Ia=new ht(hr.segments,hr.children);if(0===oa.length&&Ia.hasChildren())return this.expandChildren(bn,_r,Ia).pipe((0,le.U)(Ua=>new ht(si,Ua)));if(0===_r.length&&0===oa.length)return(0,h.of)(new ht(si,{}));const Ko=er(Qe)===kt;return this.expandSegment(bn,Ia,_r,oa,Ko?ae:kt,!0).pipe((0,le.U)(Ds=>new ht(si.concat(Ds.segments),Ds.children)))})):Ii(me)}getChildConfig(Me,me,Qe){return me.children?(0,h.of)(new Dr(me.children,Me)):me.loadChildren?void 0!==me._loadedConfig?(0,h.of)(me._loadedConfig):this.runCanLoadGuards(Me.injector,me,Qe).pipe((0,v.z)(ct=>ct?this.configLoader.load(Me.injector,me).pipe((0,le.U)(kt=>(me._loadedConfig=kt,kt))):function It(Ve){return(0,D._)(z(`Cannot load children because the guard of the route "path: '${Ve.path}'" returned false`))}(me))):(0,h.of)(new Dr([],Me))}runCanLoadGuards(Me,me,Qe){const ct=me.canLoad;if(!ct||0===ct.length)return(0,h.of)(!0);const kt=ct.map(Qt=>{const si=Me.get(Qt);let Li;if(function Ys(Ve){return Ve&&Zn(Ve.canLoad)}(si))Li=si.canLoad(me,Qe);else{if(!Zn(si))throw new Error("Invalid CanLoad guard");Li=si(me,Qe)}return ui(Li)});return(0,h.of)(kt).pipe(gs(),(0,T.b)(Qt=>{if(!cr(Qt))return;const si=z(`Redirecting to "${this.urlSerializer.serialize(Qt)}"`);throw si.url=Qt,si}),(0,le.U)(Qt=>!0===Qt))}lineralizeSegments(Me,me){let Qe=[],ct=me.root;for(;;){if(Qe=Qe.concat(ct.segments),0===ct.numberOfChildren)return(0,h.of)(Qe);if(ct.numberOfChildren>1||!ct.children[ae])return(0,D._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Me.redirectTo}'`));ct=ct.children[ae]}}applyRedirectCommands(Me,me,Qe){return this.applyRedirectCreatreUrlTree(me,this.urlSerializer.parse(me),Me,Qe)}applyRedirectCreatreUrlTree(Me,me,Qe,ct){const kt=this.createSegmentGroup(Me,me.root,Qe,ct);return new ve(kt,this.createQueryParams(me.queryParams,this.urlTree.queryParams),me.fragment)}createQueryParams(Me,me){const Qe={};return Gt(Me,(ct,kt)=>{if("string"==typeof ct&&ct.startsWith(":")){const si=ct.substring(1);Qe[kt]=me[si]}else Qe[kt]=ct}),Qe}createSegmentGroup(Me,me,Qe,ct){const kt=this.createSegments(Me,me.segments,Qe,ct);let Qt={};return Gt(me.children,(si,Li)=>{Qt[Li]=this.createSegmentGroup(Me,si,Qe,ct)}),new ht(kt,Qt)}createSegments(Me,me,Qe,ct){return me.map(kt=>kt.path.startsWith(":")?this.findPosParam(Me,kt,ct):this.findOrReturn(kt,Qe))}findPosParam(Me,me,Qe){const ct=Qe[me.path.substring(1)];if(!ct)throw new Error(`Cannot redirect to '${Me}'. Cannot find '${me.path}'.`);return ct}findOrReturn(Me,me){let Qe=0;for(const ct of me){if(ct.path===Me.path)return me.splice(Qe),ct;Qe++}return Me}}function Ei(Ve){const Me={};for(const Qe of Object.keys(Ve.children)){const kt=Ei(Ve.children[Qe]);(kt.segments.length>0||kt.hasChildren())&&(Me[Qe]=kt)}return function qt(Ve){if(1===Ve.numberOfChildren&&Ve.children[ae]){const Me=Ve.children[ae];return new ht(Ve.segments.concat(Me.segments),Me.children)}return Ve}(new ht(Ve.segments,Me))}class $e{constructor(Me){this.path=Me,this.route=this.path[this.path.length-1]}}class We{constructor(Me,me){this.component=Me,this.route=me}}function Fe(Ve,Me,me){const Qe=Ve._root;return Bn(Qe,Me?Me._root:null,me,[Qe.value])}function yi(Ve,Me,me){const Qe=function qi(Ve){if(!Ve)return null;for(let Me=Ve.parent;Me;Me=Me.parent){const me=Me.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig}return null}(Me);return(Qe?Qe.module.injector:me).get(Ve)}function Bn(Ve,Me,me,Qe,ct={canDeactivateChecks:[],canActivateChecks:[]}){const kt=Vt(Me);return Ve.children.forEach(Qt=>{(function Br(Ve,Me,me,Qe,ct={canDeactivateChecks:[],canActivateChecks:[]}){const kt=Ve.value,Qt=Me?Me.value:null,si=me?me.getContext(Ve.value.outlet):null;if(Qt&&kt.routeConfig===Qt.routeConfig){const Li=function ta(Ve,Me,me){if("function"==typeof me)return me(Ve,Me);switch(me){case"pathParamsChange":return!it(Ve.url,Me.url);case"pathParamsOrQueryParamsChange":return!it(Ve.url,Me.url)||!pt(Ve.queryParams,Me.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fi(Ve,Me)||!pt(Ve.queryParams,Me.queryParams);default:return!fi(Ve,Me)}}(Qt,kt,kt.routeConfig.runGuardsAndResolvers);Li?ct.canActivateChecks.push(new $e(Qe)):(kt.data=Qt.data,kt._resolvedData=Qt._resolvedData),Bn(Ve,Me,kt.component?si?si.children:null:me,Qe,ct),Li&&si&&si.outlet&&si.outlet.isActivated&&ct.canDeactivateChecks.push(new We(si.outlet.component,Qt))}else Qt&&ys(Me,si,ct),ct.canActivateChecks.push(new $e(Qe)),Bn(Ve,null,kt.component?si?si.children:null:me,Qe,ct)})(Qt,kt[Qt.value.outlet],me,Qe.concat([Qt.value]),ct),delete kt[Qt.value.outlet]}),Gt(kt,(Qt,si)=>ys(Qt,me.getContext(si),ct)),ct}function ys(Ve,Me,me){const Qe=Vt(Ve),ct=Ve.value;Gt(Qe,(kt,Qt)=>{ys(kt,ct.component?Me?Me.children.getContext(Qt):null:Me,me)}),me.canDeactivateChecks.push(new We(ct.component&&Me&&Me.outlet&&Me.outlet.isActivated?Me.outlet.component:null,ct))}class La{}function Da(Ve){return new e.y(Me=>Me.error(Ve))}class Va{constructor(Me,me,Qe,ct,kt,Qt){this.rootComponentType=Me,this.config=me,this.urlTree=Qe,this.url=ct,this.paramsInheritanceStrategy=kt,this.relativeLinkResolution=Qt}recognize(){const Me=kr(this.urlTree.root,[],[],this.config.filter(Qt=>void 0===Qt.redirectTo),this.relativeLinkResolution).segmentGroup,me=this.processSegmentGroup(this.config,Me,ae);if(null===me)return null;const Qe=new ti([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ae,this.rootComponentType,null,this.urlTree.root,-1,{}),ct=new bt(Qe,me),kt=new Pi(this.url,ct);return this.inheritParamsAndData(kt._root),kt}inheritParamsAndData(Me){const me=Me.value,Qe=on(me,this.paramsInheritanceStrategy);me.params=Object.freeze(Qe.params),me.data=Object.freeze(Qe.data),Me.children.forEach(ct=>this.inheritParamsAndData(ct))}processSegmentGroup(Me,me,Qe){return 0===me.segments.length&&me.hasChildren()?this.processChildren(Me,me):this.processSegment(Me,me,me.segments,Qe)}processChildren(Me,me){const Qe=[];for(const kt of Object.keys(me.children)){const Qt=me.children[kt],si=rs(Me,kt),Li=this.processSegmentGroup(si,Qt,kt);if(null===Li)return null;Qe.push(...Li)}const ct=hs(Qe);return function Ba(Ve){Ve.sort((Me,me)=>Me.value.outlet===ae?-1:me.value.outlet===ae?1:Me.value.outlet.localeCompare(me.value.outlet))}(ct),ct}processSegment(Me,me,Qe,ct){for(const kt of Me){const Qt=this.processSegmentAgainstRoute(kt,me,Qe,ct);if(null!==Qt)return Qt}return Pt(me,Qe,ct)?[]:null}processSegmentAgainstRoute(Me,me,Qe,ct){if(Me.redirectTo||!Je(Me,me,Qe,ct))return null;let kt,Qt=[],si=[];if("**"===Me.path){const hr=Qe.length>0?di(Qe).parameters:{};kt=new ti(Qe,hr,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ye(Me),er(Me),Me.component,Me,se(me),pe(me)+Qe.length,Mt(Me))}else{const hr=Or(me,Me,Qe);if(!hr.matched)return null;Qt=hr.consumedSegments,si=hr.remainingSegments,kt=new ti(Qt,hr.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ye(Me),er(Me),Me.component,Me,se(me),pe(me)+Qt.length,Mt(Me))}const Li=function aa(Ve){return Ve.children?Ve.children:Ve.loadChildren?Ve._loadedConfig.routes:[]}(Me),{segmentGroup:an,slicedSegments:In}=kr(me,Qt,si,Li.filter(hr=>void 0===hr.redirectTo),this.relativeLinkResolution);if(0===In.length&&an.hasChildren()){const hr=this.processChildren(Li,an);return null===hr?null:[new bt(kt,hr)]}if(0===Li.length&&0===In.length)return[new bt(kt,[])];const bn=er(Me)===ct,_r=this.processSegment(Li,an,In,bn?ae:ct);return null===_r?null:[new bt(kt,_r)]}}function Ur(Ve){const Me=Ve.value.routeConfig;return Me&&""===Me.path&&void 0===Me.redirectTo}function hs(Ve){const Me=[],me=new Set;for(const Qe of Ve){if(!Ur(Qe)){Me.push(Qe);continue}const ct=Me.find(kt=>Qe.value.routeConfig===kt.value.routeConfig);void 0!==ct?(ct.children.push(...Qe.children),me.add(ct)):Me.push(Qe)}for(const Qe of me){const ct=hs(Qe.children);Me.push(new bt(Qe.value,ct))}return Me.filter(Qe=>!me.has(Qe))}function se(Ve){let Me=Ve;for(;Me._sourceSegment;)Me=Me._sourceSegment;return Me}function pe(Ve){let Me=Ve,me=Me._segmentIndexShift?Me._segmentIndexShift:0;for(;Me._sourceSegment;)Me=Me._sourceSegment,me+=Me._segmentIndexShift?Me._segmentIndexShift:0;return me-1}function Ye(Ve){return Ve.data||{}}function Mt(Ve){return Ve.resolve||{}}function Oi(Ve){return[...Object.keys(Ve),...Object.getOwnPropertySymbols(Ve)]}function hn(Ve){return(0,$.w)(Me=>{const me=Ve(Me);return me?(0,R.D)(me).pipe((0,le.U)(()=>Me)):(0,h.of)(Me)})}class En extends class zn{shouldDetach(Me){return!1}store(Me,me){}shouldAttach(Me){return!1}retrieve(Me){return null}shouldReuseRoute(Me,me){return Me.routeConfig===me.routeConfig}}{}const kn=new t.OlP("ROUTES");class rr{constructor(Me,me,Qe,ct){this.injector=Me,this.compiler=me,this.onLoadStartListener=Qe,this.onLoadEndListener=ct}load(Me,me){if(me._loader$)return me._loader$;this.onLoadStartListener&&this.onLoadStartListener(me);const ct=this.loadModuleFactory(me.loadChildren).pipe((0,le.U)(kt=>{this.onLoadEndListener&&this.onLoadEndListener(me);const Qt=kt.create(Me);return new Dr(Lt(Qt.injector.get(kn,void 0,t.XFs.Self|t.XFs.Optional)).map(Vs),Qt)}),(0,r.K)(kt=>{throw me._loader$=void 0,kt}));return me._loader$=new d(ct,()=>new W.x).pipe(b()),me._loader$}loadModuleFactory(Me){return ui(Me()).pipe((0,v.z)(me=>me instanceof t.YKP?(0,h.of)(me):(0,R.D)(this.compiler.compileModuleAsync(me))))}}class Sr{shouldProcessUrl(Me){return!0}extract(Me){return Me}merge(Me,me){return Me}}function Nr(Ve){throw Ve}function es(Ve,Me,me){return Me.parse("/")}function br(Ve,Me){return(0,h.of)(null)}const Yr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yr=(()=>{class Ve{constructor(me,Qe,ct,kt,Qt,si,Li){this.rootComponentType=me,this.urlSerializer=Qe,this.rootContexts=ct,this.location=kt,this.config=Li,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new W.x,this.errorHandler=Nr,this.malformedUriErrorHandler=es,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:br,afterPreactivation:br},this.urlHandlingStrategy=new Sr,this.routeReuseStrategy=new En,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Qt.get(t.h0i),this.console=Qt.get(t.c2e);const bn=Qt.get(t.R0b);this.isNgZoneEnabled=bn instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(Li),this.currentUrlTree=function Ot(){return new ve(new ht([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rr(Qt,si,_r=>this.triggerEvent(new Ue(_r)),_r=>this.triggerEvent(new Ce(_r))),this.routerState=wi(this.currentUrlTree,this.rootComponentType),this.transitions=new L.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var me;return null===(me=this.location.getState())||void 0===me?void 0:me.\u0275routerPageId}setupNavigations(me){const Qe=this.events;return me.pipe((0,j.h)(ct=>0!==ct.id),(0,le.U)(ct=>Object.assign(Object.assign({},ct),{extractedUrl:this.urlHandlingStrategy.extract(ct.rawUrl)})),(0,$.w)(ct=>{let kt=!1,Qt=!1;return(0,h.of)(ct).pipe((0,T.b)(si=>{this.currentNavigation={id:si.id,initialUrl:si.currentRawUrl,extractedUrl:si.extractedUrl,trigger:si.source,extras:si.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,$.w)(si=>{const Li=this.browserUrlTree.toString(),an=!this.navigated||si.extractedUrl.toString()!==Li||Li!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(si.rawUrl))return Hs(si.source)&&(this.browserUrlTree=si.extractedUrl),(0,h.of)(si).pipe((0,$.w)(bn=>{const _r=this.transitions.getValue();return Qe.next(new B(bn.id,this.serializeUrl(bn.extractedUrl),bn.source,bn.restoredState)),_r!==this.transitions.getValue()?U.E:Promise.resolve(bn)}),function Wi(Ve,Me,me,Qe){return(0,$.w)(ct=>function li(Ve,Me,me,Qe,ct){return new vt(Ve,Me,me,Qe,ct).apply()}(Ve,Me,me,ct.extractedUrl,Qe).pipe((0,le.U)(kt=>Object.assign(Object.assign({},ct),{urlAfterRedirects:kt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,T.b)(bn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:bn.urlAfterRedirects})}),function zt(Ve,Me,me,Qe,ct){return(0,v.z)(kt=>function za(Ve,Me,me,Qe,ct="emptyOnly",kt="legacy"){try{const Qt=new Va(Ve,Me,me,Qe,ct,kt).recognize();return null===Qt?Da(new La):(0,h.of)(Qt)}catch(Qt){return Da(Qt)}}(Ve,Me,kt.urlAfterRedirects,me(kt.urlAfterRedirects),Qe,ct).pipe((0,le.U)(Qt=>Object.assign(Object.assign({},kt),{targetSnapshot:Qt}))))}(this.rootComponentType,this.config,bn=>this.serializeUrl(bn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,T.b)(bn=>{if("eager"===this.urlUpdateStrategy){if(!bn.extras.skipLocationChange){const hr=this.urlHandlingStrategy.merge(bn.urlAfterRedirects,bn.rawUrl);this.setBrowserUrl(hr,bn)}this.browserUrlTree=bn.urlAfterRedirects}const _r=new ue(bn.id,this.serializeUrl(bn.extractedUrl),this.serializeUrl(bn.urlAfterRedirects),bn.targetSnapshot);Qe.next(_r)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:_r,extractedUrl:hr,source:oa,restoredState:Ia,extras:Ko}=si,Qo=new B(_r,this.serializeUrl(hr),oa,Ia);Qe.next(Qo);const Ds=wi(hr,this.rootComponentType).snapshot;return(0,h.of)(Object.assign(Object.assign({},si),{targetSnapshot:Ds,urlAfterRedirects:hr,extras:Object.assign(Object.assign({},Ko),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=si.rawUrl,si.resolve(null),U.E}),hn(si=>{const{targetSnapshot:Li,id:an,extractedUrl:In,rawUrl:bn,extras:{skipLocationChange:_r,replaceUrl:hr}}=si;return this.hooks.beforePreactivation(Li,{navigationId:an,appliedUrlTree:In,rawUrlTree:bn,skipLocationChange:!!_r,replaceUrl:!!hr})}),(0,T.b)(si=>{const Li=new xe(si.id,this.serializeUrl(si.extractedUrl),this.serializeUrl(si.urlAfterRedirects),si.targetSnapshot);this.triggerEvent(Li)}),(0,le.U)(si=>Object.assign(Object.assign({},si),{guards:Fe(si.targetSnapshot,si.currentSnapshot,this.rootContexts)})),function Es(Ve,Me){return(0,v.z)(me=>{const{targetSnapshot:Qe,currentSnapshot:ct,guards:{canActivateChecks:kt,canDeactivateChecks:Qt}}=me;return 0===Qt.length&&0===kt.length?(0,h.of)(Object.assign(Object.assign({},me),{guardsResult:!0})):function Hi(Ve,Me,me,Qe){return(0,R.D)(Ve).pipe((0,v.z)(ct=>function Ts(Ve,Me,me,Qe,ct){const kt=Me&&Me.routeConfig?Me.routeConfig.canDeactivate:null;if(!kt||0===kt.length)return(0,h.of)(!0);const Qt=kt.map(si=>{const Li=yi(si,Me,ct);let an;if(function ms(Ve){return Ve&&Zn(Ve.canDeactivate)}(Li))an=ui(Li.canDeactivate(Ve,Me,me,Qe));else{if(!Zn(Li))throw new Error("Invalid CanDeactivate guard");an=ui(Li(Ve,Me,me,Qe))}return an.pipe((0,c.P)())});return(0,h.of)(Qt).pipe(gs())}(ct.component,ct.route,me,Me,Qe)),(0,c.P)(ct=>!0!==ct,!0))}(Qt,Qe,ct,Ve).pipe((0,v.z)(si=>si&&function Vr(Ve){return"boolean"==typeof Ve}(si)?function Wn(Ve,Me,me,Qe){return(0,R.D)(Me).pipe((0,u.b)(ct=>(0,k.z)(function wr(Ve,Me){return null!==Ve&&Me&&Me(new q(Ve)),(0,h.of)(!0)}(ct.route.parent,Qe),function Fa(Ve,Me){return null!==Ve&&Me&&Me(new ut(Ve)),(0,h.of)(!0)}(ct.route,Qe),function va(Ve,Me,me){const Qe=Me[Me.length-1],kt=Me.slice(0,Me.length-1).reverse().map(Qt=>function Dt(Ve){const Me=Ve.routeConfig?Ve.routeConfig.canActivateChild:null;return Me&&0!==Me.length?{node:Ve,guards:Me}:null}(Qt)).filter(Qt=>null!==Qt).map(Qt=>(0,E.P)(()=>{const si=Qt.guards.map(Li=>{const an=yi(Li,Qt.node,me);let In;if(function js(Ve){return Ve&&Zn(Ve.canActivateChild)}(an))In=ui(an.canActivateChild(Qe,Ve));else{if(!Zn(an))throw new Error("Invalid CanActivateChild guard");In=ui(an(Qe,Ve))}return In.pipe((0,c.P)())});return(0,h.of)(si).pipe(gs())}));return(0,h.of)(kt).pipe(gs())}(Ve,ct.path,me),function $a(Ve,Me,me){const Qe=Me.routeConfig?Me.routeConfig.canActivate:null;if(!Qe||0===Qe.length)return(0,h.of)(!0);const ct=Qe.map(kt=>(0,E.P)(()=>{const Qt=yi(kt,Me,me);let si;if(function Zr(Ve){return Ve&&Zn(Ve.canActivate)}(Qt))si=ui(Qt.canActivate(Me,Ve));else{if(!Zn(Qt))throw new Error("Invalid CanActivate guard");si=ui(Qt(Me,Ve))}return si.pipe((0,c.P)())}));return(0,h.of)(ct).pipe(gs())}(Ve,ct.route,me))),(0,c.P)(ct=>!0!==ct,!0))}(Qe,kt,Ve,Me):(0,h.of)(si)),(0,le.U)(si=>Object.assign(Object.assign({},me),{guardsResult:si})))})}(this.ngModule.injector,si=>this.triggerEvent(si)),(0,T.b)(si=>{if(cr(si.guardsResult)){const an=z(`Redirecting to "${this.serializeUrl(si.guardsResult)}"`);throw an.url=si.guardsResult,an}const Li=new Pe(si.id,this.serializeUrl(si.extractedUrl),this.serializeUrl(si.urlAfterRedirects),si.targetSnapshot,!!si.guardsResult);this.triggerEvent(Li)}),(0,j.h)(si=>!!si.guardsResult||(this.restoreHistory(si),this.cancelNavigationTransition(si,""),!1)),hn(si=>{if(si.guards.canActivateChecks.length)return(0,h.of)(si).pipe((0,T.b)(Li=>{const an=new Se(Li.id,this.serializeUrl(Li.extractedUrl),this.serializeUrl(Li.urlAfterRedirects),Li.targetSnapshot);this.triggerEvent(an)}),(0,$.w)(Li=>{let an=!1;return(0,h.of)(Li).pipe(function ii(Ve,Me){return(0,v.z)(me=>{const{targetSnapshot:Qe,guards:{canActivateChecks:ct}}=me;if(!ct.length)return(0,h.of)(me);let kt=0;return(0,R.D)(ct).pipe((0,u.b)(Qt=>function ni(Ve,Me,me,Qe){return function gi(Ve,Me,me,Qe){const ct=Oi(Ve);if(0===ct.length)return(0,h.of)({});const kt={};return(0,R.D)(ct).pipe((0,v.z)(Qt=>function en(Ve,Me,me,Qe){const ct=yi(Ve,Me,Qe);return ui(ct.resolve?ct.resolve(Me,me):ct(Me,me))}(Ve[Qt],Me,me,Qe).pipe((0,T.b)(si=>{kt[Qt]=si}))),ne(1),(0,v.z)(()=>Oi(kt).length===ct.length?(0,h.of)(kt):U.E))}(Ve._resolve,Ve,Me,Qe).pipe((0,le.U)(kt=>(Ve._resolvedData=kt,Ve.data=Object.assign(Object.assign({},Ve.data),on(Ve,me).resolve),null)))}(Qt.route,Qe,Ve,Me)),(0,T.b)(()=>kt++),ne(1),(0,v.z)(Qt=>kt===ct.length?(0,h.of)(me):U.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,T.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Li),this.cancelNavigationTransition(Li,"At least one route resolver didn't emit any value."))}}))}),(0,T.b)(Li=>{const an=new Q(Li.id,this.serializeUrl(Li.extractedUrl),this.serializeUrl(Li.urlAfterRedirects),Li.targetSnapshot);this.triggerEvent(an)}))}),hn(si=>{const{targetSnapshot:Li,id:an,extractedUrl:In,rawUrl:bn,extras:{skipLocationChange:_r,replaceUrl:hr}}=si;return this.hooks.afterPreactivation(Li,{navigationId:an,appliedUrlTree:In,rawUrlTree:bn,skipLocationChange:!!_r,replaceUrl:!!hr})}),(0,le.U)(si=>{const Li=function Ni(Ve,Me,me){const Qe=ki(Ve,Me._root,me?me._root:void 0);return new bi(Qe,Me)}(this.routeReuseStrategy,si.targetSnapshot,si.currentRouterState);return Object.assign(Object.assign({},si),{targetRouterState:Li})}),(0,T.b)(si=>{this.currentUrlTree=si.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(si.urlAfterRedirects,si.rawUrl),this.routerState=si.targetRouterState,"deferred"===this.urlUpdateStrategy&&(si.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,si),this.browserUrlTree=si.urlAfterRedirects)}),((Ve,Me,me)=>(0,le.U)(Qe=>(new ds(Me,Qe.targetRouterState,Qe.currentRouterState,me).activate(Ve),Qe)))(this.rootContexts,this.routeReuseStrategy,si=>this.triggerEvent(si)),(0,T.b)({next(){kt=!0},complete(){kt=!0}}),(0,I.x)(()=>{var si;kt||Qt||this.cancelNavigationTransition(ct,`Navigation ID ${ct.id} is not equal to the current navigation id ${this.navigationId}`),(null===(si=this.currentNavigation)||void 0===si?void 0:si.id)===ct.id&&(this.currentNavigation=null)}),(0,r.K)(si=>{if(Qt=!0,function be(Ve){return Ve&&Ve[Y]}(si)){const Li=cr(si.url);Li||(this.navigated=!0,this.restoreHistory(ct,!0));const an=new H(ct.id,this.serializeUrl(ct.extractedUrl),si.message);Qe.next(an),Li?setTimeout(()=>{const In=this.urlHandlingStrategy.merge(si.url,this.rawUrlTree),bn={skipLocationChange:ct.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hs(ct.source)};this.scheduleNavigation(In,"imperative",null,bn,{resolve:ct.resolve,reject:ct.reject,promise:ct.promise})},0):ct.resolve(!1)}else{this.restoreHistory(ct,!0);const Li=new J(ct.id,this.serializeUrl(ct.extractedUrl),si);Qe.next(Li);try{ct.resolve(this.errorHandler(si))}catch(an){ct.reject(an)}}return U.E}))}))}resetRootComponentType(me){this.rootComponentType=me,this.routerState.root.component=this.rootComponentType}setTransition(me){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),me))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(me=>{const Qe="popstate"===me.type?"popstate":"hashchange";"popstate"===Qe&&setTimeout(()=>{var ct;const kt={replaceUrl:!0},Qt=(null===(ct=me.state)||void 0===ct?void 0:ct.navigationId)?me.state:null;if(Qt){const Li=Object.assign({},Qt);delete Li.navigationId,delete Li.\u0275routerPageId,0!==Object.keys(Li).length&&(kt.state=Li)}const si=this.parseUrl(me.url);this.scheduleNavigation(si,Qe,Qt,kt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(me){this.events.next(me)}resetConfig(me){_s(me),this.config=me.map(Vs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(me,Qe={}){const{relativeTo:ct,queryParams:kt,fragment:Qt,queryParamsHandling:si,preserveFragment:Li}=Qe,an=ct||this.routerState.root,In=Li?this.currentUrlTree.fragment:Qt;let bn=null;switch(si){case"merge":bn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),kt);break;case"preserve":bn=this.currentUrlTree.queryParams;break;default:bn=kt||null}return null!==bn&&(bn=this.removeEmptyProps(bn)),function Nn(Ve,Me,me,Qe,ct){if(0===me.length)return Si(Me.root,Me.root,Me.root,Qe,ct);const kt=function Kn(Ve){if("string"==typeof Ve[0]&&1===Ve.length&&"/"===Ve[0])return new wn(!0,0,Ve);let Me=0,me=!1;const Qe=Ve.reduce((ct,kt,Qt)=>{if("object"==typeof kt&&null!=kt){if(kt.outlets){const si={};return Gt(kt.outlets,(Li,an)=>{si[an]="string"==typeof Li?Li.split("/"):Li}),[...ct,{outlets:si}]}if(kt.segmentPath)return[...ct,kt.segmentPath]}return"string"!=typeof kt?[...ct,kt]:0===Qt?(kt.split("/").forEach((si,Li)=>{0==Li&&"."===si||(0==Li&&""===si?me=!0:".."===si?Me++:""!=si&&ct.push(si))}),ct):[...ct,kt]},[]);return new wn(me,Me,Qe)}(me);if(kt.toRoot())return Si(Me.root,Me.root,new ht([],{}),Qe,ct);const Qt=function lr(Ve,Me,me){if(Ve.isAbsolute)return new nr(Me.root,!0,0);if(-1===me.snapshot._lastPathIndex){const kt=me.snapshot._urlSegment;return new nr(kt,kt===Me.root,0)}const Qe=$n(Ve.commands[0])?0:1;return function qr(Ve,Me,me){let Qe=Ve,ct=Me,kt=me;for(;kt>ct;){if(kt-=ct,Qe=Qe.parent,!Qe)throw new Error("Invalid number of '../'");ct=Qe.segments.length}return new nr(Qe,!1,ct-kt)}(me.snapshot._urlSegment,me.snapshot._lastPathIndex+Qe,Ve.numberOfDoubleDots)}(kt,Me,Ve),si=Qt.processChildren?Jr(Qt.segmentGroup,Qt.index,kt.commands):ls(Qt.segmentGroup,Qt.index,kt.commands);return Si(Me.root,Qt.segmentGroup,si,Qe,ct)}(an,this.currentUrlTree,me,bn,null!=In?In:null)}navigateByUrl(me,Qe={skipLocationChange:!1}){const ct=cr(me)?me:this.parseUrl(me),kt=this.urlHandlingStrategy.merge(ct,this.rawUrlTree);return this.scheduleNavigation(kt,"imperative",null,Qe)}navigate(me,Qe={skipLocationChange:!1}){return function Ks(Ve){for(let Me=0;Me<Ve.length;Me++){const me=Ve[Me];if(null==me)throw new Error(`The requested path contains ${me} segment at index ${Me}`)}}(me),this.navigateByUrl(this.createUrlTree(me,Qe),Qe)}serializeUrl(me){return this.urlSerializer.serialize(me)}parseUrl(me){let Qe;try{Qe=this.urlSerializer.parse(me)}catch(ct){Qe=this.malformedUriErrorHandler(ct,this.urlSerializer,me)}return Qe}isActive(me,Qe){let ct;if(ct=!0===Qe?Object.assign({},Yr):!1===Qe?Object.assign({},Gn):Qe,cr(me))return tt(this.currentUrlTree,me,ct);const kt=this.parseUrl(me);return tt(this.currentUrlTree,kt,ct)}removeEmptyProps(me){return Object.keys(me).reduce((Qe,ct)=>{const kt=me[ct];return null!=kt&&(Qe[ct]=kt),Qe},{})}processNavigations(){this.navigations.subscribe(me=>{this.navigated=!0,this.lastSuccessfulId=me.id,this.currentPageId=me.targetPageId,this.events.next(new N(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,me.resolve(!0)},me=>{this.console.warn(`Unhandled Navigation Error: ${me}`)})}scheduleNavigation(me,Qe,ct,kt,Qt){var si,Li;if(this.disposed)return Promise.resolve(!1);let an,In,bn;Qt?(an=Qt.resolve,In=Qt.reject,bn=Qt.promise):bn=new Promise((oa,Ia)=>{an=oa,In=Ia});const _r=++this.navigationId;let hr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ct=this.location.getState()),hr=ct&&ct.\u0275routerPageId?ct.\u0275routerPageId:kt.replaceUrl||kt.skipLocationChange?null!==(si=this.browserPageId)&&void 0!==si?si:0:(null!==(Li=this.browserPageId)&&void 0!==Li?Li:0)+1):hr=0,this.setTransition({id:_r,targetPageId:hr,source:Qe,restoredState:ct,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:me,extras:kt,resolve:an,reject:In,promise:bn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),bn.catch(oa=>Promise.reject(oa))}setBrowserUrl(me,Qe){const ct=this.urlSerializer.serialize(me),kt=Object.assign(Object.assign({},Qe.extras.state),this.generateNgRouterState(Qe.id,Qe.targetPageId));this.location.isCurrentPathEqualTo(ct)||Qe.extras.replaceUrl?this.location.replaceState(ct,"",kt):this.location.go(ct,"",kt)}restoreHistory(me,Qe=!1){var ct,kt;if("computed"===this.canceledNavigationResolution){const Qt=this.currentPageId-me.targetPageId;"popstate"!==me.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ct=this.currentNavigation)||void 0===ct?void 0:ct.finalUrl)||0===Qt?this.currentUrlTree===(null===(kt=this.currentNavigation)||void 0===kt?void 0:kt.finalUrl)&&0===Qt&&(this.resetState(me),this.browserUrlTree=me.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Qt)}else"replace"===this.canceledNavigationResolution&&(Qe&&this.resetState(me),this.resetUrlToCurrentUrlTree())}resetState(me){this.routerState=me.currentRouterState,this.currentUrlTree=me.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,me.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(me,Qe){const ct=new H(me.id,this.serializeUrl(me.extractedUrl),Qe);this.triggerEvent(ct),me.resolve(!1)}generateNgRouterState(me,Qe){return"computed"===this.canceledNavigationResolution?{navigationId:me,\u0275routerPageId:Qe}:{navigationId:me}}}return Ve.\u0275fac=function(me){t.$Z()},Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function Hs(Ve){return"imperative"!==Ve}let wa=(()=>{class Ve{constructor(me,Qe,ct,kt,Qt){this.router=me,this.route=Qe,this.tabIndexAttribute=ct,this.renderer=kt,this.el=Qt,this.commands=null,this.onChanges=new W.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(me){if(null!=this.tabIndexAttribute)return;const Qe=this.renderer,ct=this.el.nativeElement;null!==me?Qe.setAttribute(ct,"tabindex",me):Qe.removeAttribute(ct,"tabindex")}ngOnChanges(me){this.onChanges.next(this)}set routerLink(me){null!=me?(this.commands=Array.isArray(me)?me:[me],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const me={skipLocationChange:As(this.skipLocationChange),replaceUrl:As(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,me),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:As(this.preserveFragment)})}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.Y36(yr),t.Y36(Zi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(me,Qe){1&me&&t.NdJ("click",function(){return Qe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),Ve})(),Qs=(()=>{class Ve{constructor(me,Qe,ct){this.router=me,this.route=Qe,this.locationStrategy=ct,this.commands=null,this.href=null,this.onChanges=new W.x,this.subscription=me.events.subscribe(kt=>{kt instanceof N&&this.updateTargetUrlAndHref()})}set routerLink(me){this.commands=null!=me?Array.isArray(me)?me:[me]:null}ngOnChanges(me){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(me,Qe,ct,kt,Qt){if(0!==me||Qe||ct||kt||Qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const si={skipLocationChange:As(this.skipLocationChange),replaceUrl:As(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,si),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:As(this.preserveFragment)})}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.Y36(yr),t.Y36(Zi),t.Y36(n.S$))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(me,Qe){1&me&&t.NdJ("click",function(kt){return Qe.onClick(kt.button,kt.ctrlKey,kt.shiftKey,kt.altKey,kt.metaKey)}),2&me&&t.uIk("target",Qe.target)("href",Qe.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),Ve})();function As(Ve){return""===Ve||!!Ve}let ya=(()=>{class Ve{constructor(me,Qe,ct,kt,Qt,si){this.router=me,this.element=Qe,this.renderer=ct,this.cdr=kt,this.link=Qt,this.linkWithHref=si,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=me.events.subscribe(Li=>{Li instanceof N&&this.update()})}ngAfterContentInit(){(0,h.of)(this.links.changes,this.linksWithHrefs.changes,(0,h.of)(null)).pipe((0,y.J)()).subscribe(me=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var me;null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe();const Qe=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ct=>!!ct).map(ct=>ct.onChanges);this.linkInputChangesSubscription=(0,R.D)(Qe).pipe((0,y.J)()).subscribe(ct=>{this.isActive!==this.isLinkActive(this.router)(ct)&&this.update()})}set routerLinkActive(me){const Qe=Array.isArray(me)?me:me.split(" ");this.classes=Qe.filter(ct=>!!ct)}ngOnChanges(me){this.update()}ngOnDestroy(){var me;this.routerEventsSubscription.unsubscribe(),null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const me=this.hasActiveLinks();this.isActive!==me&&(this.isActive=me,this.cdr.markForCheck(),this.classes.forEach(Qe=>{me?this.renderer.addClass(this.element.nativeElement,Qe):this.renderer.removeClass(this.element.nativeElement,Qe)}),this.isActiveChange.emit(me))})}isLinkActive(me){const Qe=function xa(Ve){return!!Ve.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ct=>!!ct.urlTree&&me.isActive(ct.urlTree,Qe)}hasActiveLinks(){const me=this.isLinkActive(this.router);return this.link&&me(this.link)||this.linkWithHref&&me(this.linkWithHref)||this.links.some(me)||this.linksWithHrefs.some(me)}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.Y36(yr),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(wa,8),t.Y36(Qs,8))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","routerLinkActive",""]],contentQueries:function(me,Qe,ct){if(1&me&&(t.Suo(ct,wa,5),t.Suo(ct,Qs,5)),2&me){let kt;t.iGM(kt=t.CRH())&&(Qe.links=kt),t.iGM(kt=t.CRH())&&(Qe.linksWithHrefs=kt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[t.TTD]}),Ve})();class dn{}class Tn{preload(Me,me){return(0,h.of)(null)}}let Jn=(()=>{class Ve{constructor(me,Qe,ct,kt){this.router=me,this.injector=ct,this.preloadingStrategy=kt,this.loader=new rr(ct,Qe,Li=>me.triggerEvent(new Ue(Li)),Li=>me.triggerEvent(new Ce(Li)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(me=>me instanceof N),(0,u.b)(()=>this.preload())).subscribe(()=>{})}preload(){const me=this.injector.get(t.h0i);return this.processRoutes(me,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(me,Qe){const ct=[];for(const kt of Qe)if(kt.loadChildren&&!kt.canLoad&&kt._loadedConfig){const Qt=kt._loadedConfig;ct.push(this.processRoutes(Qt.module,Qt.routes))}else kt.loadChildren&&!kt.canLoad?ct.push(this.preloadConfig(me,kt)):kt.children&&ct.push(this.processRoutes(me,kt.children));return(0,R.D)(ct).pipe((0,y.J)(),(0,le.U)(kt=>{}))}preloadConfig(me,Qe){return this.preloadingStrategy.preload(Qe,()=>(Qe._loadedConfig?(0,h.of)(Qe._loadedConfig):this.loader.load(me.injector,Qe)).pipe((0,v.z)(kt=>(Qe._loadedConfig=kt,this.processRoutes(kt.module,kt.routes)))))}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.LFG(yr),t.LFG(t.Sil),t.LFG(t.zs3),t.LFG(dn))},Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),gr=(()=>{class Ve{constructor(me,Qe,ct={}){this.router=me,this.viewportScroller=Qe,this.options=ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ct.scrollPositionRestoration=ct.scrollPositionRestoration||"disabled",ct.anchorScrolling=ct.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(me=>{me instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=me.navigationTrigger,this.restoredId=me.restoredState?me.restoredState.navigationId:0):me instanceof N&&(this.lastId=me.id,this.scheduleScrollEvent(me,this.router.parseUrl(me.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(me=>{me instanceof De&&(me.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(me.position):me.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(me.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(me,Qe){this.router.triggerEvent(new De(me,"popstate"===this.lastSource?this.store[this.restoredId]:null,Qe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ve.\u0275fac=function(me){t.$Z()},Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Gr=new t.OlP("ROUTER_CONFIGURATION"),ia=new t.OlP("ROUTER_FORROOT_GUARD"),ur=[n.Ye,{provide:nt,useClass:Xe},{provide:yr,useFactory:function _i(Ve,Me,me,Qe,ct,kt,Qt={},si,Li){const an=new yr(null,Ve,Me,me,Qe,ct,Lt(kt));return si&&(an.urlHandlingStrategy=si),Li&&(an.routeReuseStrategy=Li),function Di(Ve,Me){Ve.errorHandler&&(Me.errorHandler=Ve.errorHandler),Ve.malformedUriErrorHandler&&(Me.malformedUriErrorHandler=Ve.malformedUriErrorHandler),Ve.onSameUrlNavigation&&(Me.onSameUrlNavigation=Ve.onSameUrlNavigation),Ve.paramsInheritanceStrategy&&(Me.paramsInheritanceStrategy=Ve.paramsInheritanceStrategy),Ve.relativeLinkResolution&&(Me.relativeLinkResolution=Ve.relativeLinkResolution),Ve.urlUpdateStrategy&&(Me.urlUpdateStrategy=Ve.urlUpdateStrategy),Ve.canceledNavigationResolution&&(Me.canceledNavigationResolution=Ve.canceledNavigationResolution)}(Qt,an),Qt.enableTracing&&an.events.subscribe(In=>{var bn,_r;null===(bn=console.group)||void 0===bn||bn.call(console,`Router Event: ${In.constructor.name}`),console.log(In.toString()),console.log(In),null===(_r=console.groupEnd)||void 0===_r||_r.call(console)}),an},deps:[nt,Tr,n.Ye,t.zs3,t.Sil,kn,Gr,[class Pr{},new t.FiY],[class Ln{},new t.FiY]]},Tr,{provide:Zi,useFactory:function Fi(Ve){return Ve.routerState.root},deps:[yr]},Jn,Tn,class xn{preload(Me,me){return me().pipe((0,r.K)(()=>(0,h.of)(null)))}},{provide:Gr,useValue:{enableTracing:!1}}];function rt(){return new t.PXZ("Router",yr)}let St=(()=>{class Ve{constructor(me,Qe){}static forRoot(me,Qe){return{ngModule:Ve,providers:[ur,pi(me),{provide:ia,useFactory:Xt,deps:[[yr,new t.FiY,new t.tp0]]},{provide:Gr,useValue:Qe||{}},{provide:n.S$,useFactory:Ft,deps:[n.lw,[new t.tBr(n.mr),new t.FiY],Gr]},{provide:gr,useFactory:wt,deps:[yr,n.EM,Gr]},{provide:dn,useExisting:Qe&&Qe.preloadingStrategy?Qe.preloadingStrategy:Tn},{provide:t.PXZ,multi:!0,useFactory:rt},[ln,{provide:t.ip1,multi:!0,useFactory:rn,deps:[ln]},{provide:Qn,useFactory:fn,deps:[ln]},{provide:t.tb,multi:!0,useExisting:Qn}]]}}static forChild(me){return{ngModule:Ve,providers:[pi(me)]}}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.LFG(ia,8),t.LFG(yr,8))},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({}),Ve})();function wt(Ve,Me,me){return me.scrollOffset&&Me.setOffset(me.scrollOffset),new gr(Ve,Me,me)}function Ft(Ve,Me,me={}){return me.useHash?new n.Do(Ve,Me):new n.b0(Ve,Me)}function Xt(Ve){return"guarded"}function pi(Ve){return[{provide:t.deG,multi:!0,useValue:Ve},{provide:kn,multi:!0,useValue:Ve}]}let ln=(()=>{class Ve{constructor(me){this.injector=me,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new W.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Qe=null;const ct=new Promise(si=>Qe=si),kt=this.injector.get(yr),Qt=this.injector.get(Gr);return"disabled"===Qt.initialNavigation?(kt.setUpLocationChangeListener(),Qe(!0)):"enabled"===Qt.initialNavigation||"enabledBlocking"===Qt.initialNavigation?(kt.hooks.afterPreactivation=()=>this.initNavigation?(0,h.of)(null):(this.initNavigation=!0,Qe(!0),this.resultOfPreactivationDone),kt.initialNavigation()):Qe(!0),ct})}bootstrapListener(me){const Qe=this.injector.get(Gr),ct=this.injector.get(Jn),kt=this.injector.get(gr),Qt=this.injector.get(yr),si=this.injector.get(t.z2F);me===si.components[0]&&(("enabledNonBlocking"===Qe.initialNavigation||void 0===Qe.initialNavigation)&&Qt.initialNavigation(),ct.setUpPreloading(),kt.init(),Qt.resetRootComponentType(si.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ve.\u0275fac=function(me){return new(me||Ve)(t.LFG(t.zs3))},Ve.\u0275prov=t.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function rn(Ve){return Ve.appInitializer.bind(Ve)}function fn(Ve){return Ve.bootstrapListener.bind(Ve)}const Qn=new t.OlP("Router Initializer")},9546:(ze,K,p)=>{"use strict";p.d(K,{BN:()=>Tn,uH:()=>ur});var t=p(5e3);function e(rt,St){var wt=Object.keys(rt);if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(rt);St&&(Ft=Ft.filter(function(Xt){return Object.getOwnPropertyDescriptor(rt,Xt).enumerable})),wt.push.apply(wt,Ft)}return wt}function f(rt){for(var St=1;St<arguments.length;St++){var wt=null!=arguments[St]?arguments[St]:{};St%2?e(Object(wt),!0).forEach(function(Ft){h(rt,Ft,wt[Ft])}):Object.getOwnPropertyDescriptors?Object.defineProperties(rt,Object.getOwnPropertyDescriptors(wt)):e(Object(wt)).forEach(function(Ft){Object.defineProperty(rt,Ft,Object.getOwnPropertyDescriptor(wt,Ft))})}return rt}function M(rt){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(St){return typeof St}:function(St){return St&&"function"==typeof Symbol&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St})(rt)}function d(rt,St){for(var wt=0;wt<St.length;wt++){var Ft=St[wt];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(rt,Ft.key,Ft)}}function h(rt,St,wt){return St in rt?Object.defineProperty(rt,St,{value:wt,enumerable:!0,configurable:!0,writable:!0}):rt[St]=wt,rt}function D(rt,St){return function E(rt){if(Array.isArray(rt))return rt}(rt)||function W(rt,St){var wt=null==rt?null:"undefined"!=typeof Symbol&&rt[Symbol.iterator]||rt["@@iterator"];if(null!=wt){var _i,Di,Ft=[],Xt=!0,pi=!1;try{for(wt=wt.call(rt);!(Xt=(_i=wt.next()).done)&&(Ft.push(_i.value),!St||Ft.length!==St);Xt=!0);}catch(Fi){pi=!0,Di=Fi}finally{try{!Xt&&null!=wt.return&&wt.return()}finally{if(pi)throw Di}}return Ft}}(rt,St)||j(rt,St)||function de(){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 S(rt){return function k(rt){if(Array.isArray(rt))return ne(rt)}(rt)||function U(rt){if("undefined"!=typeof Symbol&&null!=rt[Symbol.iterator]||null!=rt["@@iterator"])return Array.from(rt)}(rt)||j(rt)||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 j(rt,St){if(rt){if("string"==typeof rt)return ne(rt,St);var wt=Object.prototype.toString.call(rt).slice(8,-1);if("Object"===wt&&rt.constructor&&(wt=rt.constructor.name),"Map"===wt||"Set"===wt)return Array.from(rt);if("Arguments"===wt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(wt))return ne(rt,St)}}function ne(rt,St){(null==St||St>rt.length)&&(St=rt.length);for(var wt=0,Ft=new Array(St);wt<St;wt++)Ft[wt]=rt[wt];return Ft}var te=function(){},ie={},le={},$=null,ge={mark:te,measure:te};try{"undefined"!=typeof window&&(ie=window),"undefined"!=typeof document&&(le=document),"undefined"!=typeof MutationObserver&&($=MutationObserver),"undefined"!=typeof performance&&(ge=performance)}catch(rt){}var _,B,N,H,J,i=(ie.navigator||{}).userAgent,r=void 0===i?"":i,u=ie,c=le,v=$,T=ge,y=!!c.documentElement&&!!c.head&&"function"==typeof c.addEventListener&&"function"==typeof c.createElement,n=~r.indexOf("MSIE")||~r.indexOf("Trident/"),ue="___FONT_AWESOME___",Se="svg-inline--fa",Q="data-fa-i2svg",Ue="data-fa-pseudo-element",q="data-prefix",Ae="data-icon",ut="fontawesome-i2svg",De=["HTML","HEAD","STYLE","SCRIPT"],ae=function(){try{return!0}catch(rt){return!1}}(),we="classic",ye="sharp",Y=[we,ye];function z(rt){return new Proxy(rt,{get:function(wt,Ft){return Ft in wt?wt[Ft]:wt[we]}})}var be=z((h(_={},we,{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"}),h(_,ye,{fa:"solid",fass:"solid","fa-solid":"solid"}),_)),fe=z((h(B={},we,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),h(B,ye,{solid:"fass"}),B)),He=z((h(N={},we,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),h(N,ye,{fass:"fa-solid"}),N)),pt=z((h(H={},we,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),h(H,ye,{"fa-solid":"fass"}),H)),et=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Lt="fa-layers-text",di=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Wt=z((h(J={},we,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),h(J,ye,{900:"fass"}),J)),Gt=[1,2,3,4,5,6,7,8,9,10],ui=Gt.concat([11,12,13,14,15,16,17,18,19,20]),Ot=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],gt=new Set;Object.keys(fe[we]).map(gt.add.bind(gt)),Object.keys(fe[ye]).map(gt.add.bind(gt));var tt=[].concat(Y,S(gt),["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","duotone-group","swap-opacity","primary","secondary"]).concat(Gt.map(function(rt){return"".concat(rt,"x")})).concat(ui.map(function(rt){return"w-".concat(rt)})),xt=u.FontAwesomeConfig||{};c&&"function"==typeof c.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(rt){var St=D(rt,2),Ft=St[1],Xt=function Kt(rt){return""===rt||"false"!==rt&&("true"===rt||rt)}(function ei(rt){var St=c.querySelector("script["+rt+"]");if(St)return St.getAttribute(rt)}(St[0]));null!=Xt&&(xt[Ft]=Xt)});var Oe={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Se,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};xt.familyPrefix&&(xt.cssPrefix=xt.familyPrefix);var ce=f(f({},Oe),xt);ce.autoReplaceSvg||(ce.observeMutations=!1);var ve={};Object.keys(Oe).forEach(function(rt){Object.defineProperty(ve,rt,{enumerable:!0,set:function(wt){ce[rt]=wt,ht.forEach(function(Ft){return Ft(ve)})},get:function(){return ce[rt]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(St){ce.cssPrefix=St,ht.forEach(function(wt){return wt(ve)})},get:function(){return ce.cssPrefix}}),u.FontAwesomeConfig=ve;var ht=[],it={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Xe(){for(var rt=12,St="";rt-- >0;)St+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return St}function Ee(rt){for(var St=[],wt=(rt||[]).length>>>0;wt--;)St[wt]=rt[wt];return St}function Ge(rt){return rt.classList?Ee(rt.classList):(rt.getAttribute("class")||"").split(" ").filter(function(St){return St})}function ot(rt){return"".concat(rt).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ct(rt){return Object.keys(rt||{}).reduce(function(St,wt){return St+"".concat(wt,": ").concat(rt[wt].trim(),";")},"")}function mi(rt){return rt.size!==it.size||rt.x!==it.x||rt.y!==it.y||rt.rotate!==it.rotate||rt.flipX||rt.flipY}function hi(){var St=Se,wt=ve.cssPrefix,Ft=ve.replacementClass,Xt=':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-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 transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==wt||Ft!==St){var pi=new RegExp("\\.".concat("fa","\\-"),"g"),_i=new RegExp("\\--".concat("fa","\\-"),"g"),Di=new RegExp("\\.".concat(St),"g");Xt=Xt.replace(pi,".".concat(wt,"-")).replace(_i,"--".concat(wt,"-")).replace(Di,".".concat(Ft))}return Xt}var ai=!1;function Ji(){ve.autoAddCss&&!ai&&(function Ne(rt){if(rt&&y){var St=c.createElement("style");St.setAttribute("type","text/css"),St.innerHTML=rt;for(var wt=c.head.childNodes,Ft=null,Xt=wt.length-1;Xt>-1;Xt--){var pi=wt[Xt],_i=(pi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(_i)>-1&&(Ft=pi)}c.head.insertBefore(St,Ft)}}(hi()),ai=!0)}var Gi={mixout:function(){return{dom:{css:hi,insertCss:Ji}}},hooks:function(){return{beforeDOMElementCreation:function(){Ji()},beforeI2svg:function(){Ji()}}}},zi=u||{};zi[ue]||(zi[ue]={}),zi[ue].styles||(zi[ue].styles={}),zi[ue].hooks||(zi[ue].hooks={}),zi[ue].shims||(zi[ue].shims=[]);var Ui=zi[ue],Be=[],_e=!1;function Ke(rt){!y||(_e?setTimeout(rt,0):Be.push(rt))}function yt(rt){var St=rt.tag,wt=rt.attributes,Ft=void 0===wt?{}:wt,Xt=rt.children,pi=void 0===Xt?[]:Xt;return"string"==typeof rt?ot(rt):"<".concat(St," ").concat(function lt(rt){return Object.keys(rt||{}).reduce(function(St,wt){return St+"".concat(wt,'="').concat(ot(rt[wt]),'" ')},"").trim()}(Ft),">").concat(pi.map(yt).join(""),"</").concat(St,">")}function re(rt,St,wt){if(rt&&rt[St]&&rt[St][wt])return{prefix:St,iconName:wt,icon:rt[St][wt]}}y&&((_e=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function rt(){c.removeEventListener("DOMContentLoaded",rt),_e=1,Be.map(function(St){return St()})}));var bt=function(St,wt,Ft,Xt){var Fi,ln,rn,pi=Object.keys(St),_i=pi.length,Di=void 0!==Xt?function(St,wt){return function(Ft,Xt,pi,_i){return St.call(wt,Ft,Xt,pi,_i)}}(wt,Xt):wt;for(void 0===Ft?(Fi=1,rn=St[pi[0]]):(Fi=0,rn=Ft);Fi<_i;Fi++)rn=Di(rn,St[ln=pi[Fi]],ln,St);return rn};function bi(rt){var St=function Vt(rt){for(var St=[],wt=0,Ft=rt.length;wt<Ft;){var Xt=rt.charCodeAt(wt++);if(Xt>=55296&&Xt<=56319&&wt<Ft){var pi=rt.charCodeAt(wt++);56320==(64512&pi)?St.push(((1023&Xt)<<10)+(1023&pi)+65536):(St.push(Xt),wt--)}else St.push(Xt)}return St}(rt);return 1===St.length?St[0].toString(16):null}function Xi(rt){return Object.keys(rt).reduce(function(St,wt){var Ft=rt[wt];return Ft.icon?St[Ft.iconName]=Ft.icon:St[wt]=Ft,St},{})}function Zi(rt,St){var wt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ft=wt.skipHooks,Xt=void 0!==Ft&&Ft,pi=Xi(St);"function"!=typeof Ui.hooks.addPack||Xt?Ui.styles[rt]=f(f({},Ui.styles[rt]||{}),pi):Ui.hooks.addPack(rt,Xi(St)),"fas"===rt&&Zi("fa",St)}var mn,ti,Pi,st=Ui.styles,Rt=Ui.shims,Zt=(h(mn={},we,Object.values(He[we])),h(mn,ye,Object.values(He[ye])),mn),fi=null,Ni={},ki={},un={},jn={},Nn={},$n=(h(ti={},we,Object.keys(be[we])),h(ti,ye,Object.keys(be[ye])),ti);function Si(rt,St){var wt=St.split("-"),Ft=wt[0],Xt=wt.slice(1).join("-");return Ft!==rt||""===Xt||function _n(rt){return~tt.indexOf(rt)}(Xt)?null:Xt}var ji=function(){var St=function(pi){return bt(st,function(_i,Di,Fi){return _i[Fi]=bt(Di,pi,{}),_i},{})};Ni=St(function(Xt,pi,_i){return pi[3]&&(Xt[pi[3]]=_i),pi[2]&&pi[2].filter(function(Fi){return"number"==typeof Fi}).forEach(function(Fi){Xt[Fi.toString(16)]=_i}),Xt}),ki=St(function(Xt,pi,_i){return Xt[_i]=_i,pi[2]&&pi[2].filter(function(Fi){return"string"==typeof Fi}).forEach(function(Fi){Xt[Fi]=_i}),Xt}),Nn=St(function(Xt,pi,_i){var Di=pi[2];return Xt[_i]=_i,Di.forEach(function(Fi){Xt[Fi]=_i}),Xt});var wt="far"in st||ve.autoFetchSvg,Ft=bt(Rt,function(Xt,pi){var _i=pi[0],Di=pi[1],Fi=pi[2];return"far"===Di&&!wt&&(Di="fas"),"string"==typeof _i&&(Xt.names[_i]={prefix:Di,iconName:Fi}),"number"==typeof _i&&(Xt.unicodes[_i.toString(16)]={prefix:Di,iconName:Fi}),Xt},{names:{},unicodes:{}});un=Ft.names,jn=Ft.unicodes,fi=Jr(ve.styleDefault,{family:ve.familyDefault})};function wn(rt,St){return(Ni[rt]||{})[St]}function nr(rt,St){return(Nn[rt]||{})[St]}function lr(rt){return un[rt]||{prefix:null,iconName:null}}function zr(){return fi}function Jr(rt){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=St.family,Ft=void 0===wt?we:wt,Xt=be[Ft][rt],pi=fe[Ft][rt]||fe[Ft][Xt],_i=rt in Ui.styles?rt:null;return pi||_i||null}(function mt(rt){ht.push(rt)})(function(rt){fi=Jr(rt.styleDefault,{family:ve.familyDefault})}),ji();var zs=(h(Pi={},we,Object.keys(He[we])),h(Pi,ye,Object.keys(He[ye])),Pi);function Ms(rt){var St,wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=wt.skipLookups,Xt=void 0!==Ft&&Ft,pi=(h(St={},we,"".concat(ve.cssPrefix,"-").concat(we)),h(St,ye,"".concat(ve.cssPrefix,"-").concat(ye)),St),_i=null,Di=we;(rt.includes(pi[we])||rt.some(function(ln){return zs[we].includes(ln)}))&&(Di=we),(rt.includes(pi[ye])||rt.some(function(ln){return zs[ye].includes(ln)}))&&(Di=ye);var Fi=rt.reduce(function(ln,rn){var fn=Si(ve.cssPrefix,rn);if(st[rn]?(rn=Zt[Di].includes(rn)?pt[Di][rn]:rn,_i=rn,ln.prefix=rn):$n[Di].indexOf(rn)>-1?(_i=rn,ln.prefix=Jr(rn,{family:Di})):fn?ln.iconName=fn:rn!==ve.replacementClass&&rn!==pi[we]&&rn!==pi[ye]&&ln.rest.push(rn),!Xt&&ln.prefix&&ln.iconName){var Qn="fa"===_i?lr(ln.iconName):{},ir=nr(ln.prefix,ln.iconName);Qn.prefix&&(_i=null),ln.iconName=Qn.iconName||ir||ln.iconName,ln.prefix=Qn.prefix||ln.prefix,"far"===ln.prefix&&!st.far&&st.fas&&!ve.autoFetchSvg&&(ln.prefix="fas")}return ln},{prefix:null,iconName:null,rest:[]});return(rt.includes("fa-brands")||rt.includes("fab"))&&(Fi.prefix="fab"),(rt.includes("fa-duotone")||rt.includes("fad"))&&(Fi.prefix="fad"),!Fi.prefix&&Di===ye&&(st.fass||ve.autoFetchSvg)&&(Fi.prefix="fass",Fi.iconName=nr(Fi.prefix,Fi.iconName)||Fi.iconName),("fa"===Fi.prefix||"fa"===_i)&&(Fi.prefix=zr()||"fas"),Fi}var cs=function(){function rt(){(function b(rt,St){if(!(rt instanceof St))throw new TypeError("Cannot call a class as a function")})(this,rt),this.definitions={}}return function R(rt,St,wt){St&&d(rt.prototype,St),wt&&d(rt,wt),Object.defineProperty(rt,"prototype",{writable:!1})}(rt,[{key:"add",value:function(){for(var wt=this,Ft=arguments.length,Xt=new Array(Ft),pi=0;pi<Ft;pi++)Xt[pi]=arguments[pi];var _i=Xt.reduce(this._pullDefinitions,{});Object.keys(_i).forEach(function(Di){wt.definitions[Di]=f(f({},wt.definitions[Di]||{}),_i[Di]),Zi(Di,_i[Di]);var Fi=He[we][Di];Fi&&Zi(Fi,_i[Di]),ji()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(wt,Ft){var Xt=Ft.prefix&&Ft.iconName&&Ft.icon?{0:Ft}:Ft;return Object.keys(Xt).map(function(pi){var _i=Xt[pi],Di=_i.prefix,Fi=_i.iconName,ln=_i.icon,rn=ln[2];wt[Di]||(wt[Di]={}),rn.length>0&&rn.forEach(function(fn){"string"==typeof fn&&(wt[Di][fn]=ln)}),wt[Di][Fi]=ln}),wt}}]),rt}(),Xr=[],$r={},ws={},ds=Object.keys(ws);function Dr(rt,St){for(var wt=arguments.length,Ft=new Array(wt>2?wt-2:0),Xt=2;Xt<wt;Xt++)Ft[Xt-2]=arguments[Xt];var pi=$r[rt]||[];return pi.forEach(function(_i){St=_i.apply(null,[St].concat(Ft))}),St}function Zn(rt){for(var St=arguments.length,wt=new Array(St>1?St-1:0),Ft=1;Ft<St;Ft++)wt[Ft-1]=arguments[Ft];var Xt=$r[rt]||[];Xt.forEach(function(pi){pi.apply(null,wt)})}function Vr(){var rt=arguments[0],St=Array.prototype.slice.call(arguments,1);return ws[rt]?ws[rt].apply(null,St):void 0}function cr(rt){"fa"===rt.prefix&&(rt.prefix="fas");var St=rt.iconName,wt=rt.prefix||zr();if(St)return St=nr(wt,St)||St,re(Ys.definitions,wt,St)||re(Ui.styles,wt,St)}var Ys=new cs,js={i2svg:function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y?(Zn("beforeI2svg",St),Vr("pseudoElements2svg",St),Vr("i2svg",St)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=St.autoReplaceSvgRoot;!1===ve.autoReplaceSvg&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,Ke(function(){gs({autoReplaceSvgRoot:wt}),Zn("watch",St)})}},dr={noAuto:function(){ve.autoReplaceSvg=!1,ve.observeMutations=!1,Zn("noAuto")},config:ve,dom:js,parse:{icon:function(St){if(null===St)return null;if("object"===M(St)&&St.prefix&&St.iconName)return{prefix:St.prefix,iconName:nr(St.prefix,St.iconName)||St.iconName};if(Array.isArray(St)&&2===St.length){var wt=0===St[1].indexOf("fa-")?St[1].slice(3):St[1],Ft=Jr(St[0]);return{prefix:Ft,iconName:nr(Ft,wt)||wt}}if("string"==typeof St&&(St.indexOf("".concat(ve.cssPrefix,"-"))>-1||St.match(et))){var Xt=Ms(St.split(" "),{skipLookups:!0});return{prefix:Xt.prefix||zr(),iconName:nr(Xt.prefix,Xt.iconName)||Xt.iconName}}if("string"==typeof St){var pi=zr();return{prefix:pi,iconName:nr(pi,St)||St}}}},library:Ys,findIconDefinition:cr,toHtml:yt},gs=function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=St.autoReplaceSvgRoot,Ft=void 0===wt?c:wt;(Object.keys(Ui.styles).length>0||ve.autoFetchSvg)&&y&&ve.autoReplaceSvg&&dr.dom.i2svg({node:Ft})};function Ir(rt,St){return Object.defineProperty(rt,"abstract",{get:St}),Object.defineProperty(rt,"html",{get:function(){return rt.abstract.map(function(Ft){return yt(Ft)})}}),Object.defineProperty(rt,"node",{get:function(){if(y){var Ft=c.createElement("div");return Ft.innerHTML=rt.html,Ft.children}}}),rt}function Ss(rt){var St=rt.icons,wt=St.main,Ft=St.mask,Xt=rt.prefix,pi=rt.iconName,_i=rt.transform,Di=rt.symbol,Fi=rt.title,ln=rt.maskId,rn=rt.titleId,fn=rt.extra,Qn=rt.watchable,ir=void 0!==Qn&&Qn,ss=Ft.found?Ft:wt,Ve=ss.width,Me=ss.height,me="fak"===Xt,Qe=[ve.replacementClass,pi?"".concat(ve.cssPrefix,"-").concat(pi):""].filter(function(In){return-1===fn.classes.indexOf(In)}).filter(function(In){return""!==In||!!In}).concat(fn.classes).join(" "),ct={children:[],attributes:f(f({},fn.attributes),{},{"data-prefix":Xt,"data-icon":pi,class:Qe,role:fn.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Ve," ").concat(Me)})},kt=me&&!~fn.classes.indexOf("fa-fw")?{width:"".concat(Ve/Me*16*.0625,"em")}:{};ir&&(ct.attributes[Q]=""),Fi&&(ct.children.push({tag:"title",attributes:{id:ct.attributes["aria-labelledby"]||"title-".concat(rn||Xe())},children:[Fi]}),delete ct.attributes.title);var Qt=f(f({},ct),{},{prefix:Xt,iconName:pi,main:wt,mask:Ft,maskId:ln,transform:_i,symbol:Di,styles:f(f({},kt),fn.styles)}),si=Ft.found&&wt.found?Vr("generateAbstractMask",Qt)||{children:[],attributes:{}}:Vr("generateAbstractIcon",Qt)||{children:[],attributes:{}},an=si.attributes;return Qt.children=si.children,Qt.attributes=an,Di?function is(rt){var wt=rt.iconName,Ft=rt.children,Xt=rt.attributes,pi=rt.symbol,_i=!0===pi?"".concat(rt.prefix,"-").concat(ve.cssPrefix,"-").concat(wt):pi;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:f(f({},Xt),{},{id:_i}),children:Ft}]}]}(Qt):function Tr(rt){var St=rt.children,wt=rt.main,Ft=rt.mask,Xt=rt.attributes,pi=rt.styles,_i=rt.transform;if(mi(_i)&&wt.found&&!Ft.found){var ln={x:wt.width/wt.height/2,y:.5};Xt.style=Ct(f(f({},pi),{},{"transform-origin":"".concat(ln.x+_i.x/16,"em ").concat(ln.y+_i.y/16,"em")}))}return[{tag:"svg",attributes:Xt,children:St}]}(Qt)}function Rs(rt){var St=rt.content,wt=rt.width,Ft=rt.height,Xt=rt.transform,pi=rt.title,_i=rt.extra,Di=rt.watchable,Fi=void 0!==Di&&Di,ln=f(f(f({},_i.attributes),pi?{title:pi}:{}),{},{class:_i.classes.join(" ")});Fi&&(ln[Q]="");var rn=f({},_i.styles);mi(Xt)&&(rn.transform=function $t(rt){var St=rt.transform,wt=rt.width,Xt=rt.height,pi=void 0===Xt?16:Xt,_i=rt.startCentered,Di=void 0!==_i&&_i,Fi="";return Fi+=Di&&n?"translate(".concat(St.x/16-(void 0===wt?16:wt)/2,"em, ").concat(St.y/16-pi/2,"em) "):Di?"translate(calc(-50% + ".concat(St.x/16,"em), calc(-50% + ").concat(St.y/16,"em)) "):"translate(".concat(St.x/16,"em, ").concat(St.y/16,"em) "),(Fi+="scale(".concat(St.size/16*(St.flipX?-1:1),", ").concat(St.size/16*(St.flipY?-1:1),") "))+"rotate(".concat(St.rotate,"deg) ")}({transform:Xt,startCentered:!0,width:wt,height:Ft}),rn["-webkit-transform"]=rn.transform);var fn=Ct(rn);fn.length>0&&(ln.style=fn);var Qn=[];return Qn.push({tag:"span",attributes:ln,children:[St]}),pi&&Qn.push({tag:"span",attributes:{class:"sr-only"},children:[pi]}),Qn}function _s(rt){var St=rt.content,wt=rt.title,Ft=rt.extra,Xt=f(f(f({},Ft.attributes),wt?{title:wt}:{}),{},{class:Ft.classes.join(" ")}),pi=Ct(Ft.styles);pi.length>0&&(Xt.style=pi);var _i=[];return _i.push({tag:"span",attributes:Xt,children:[St]}),wt&&_i.push({tag:"span",attributes:{class:"sr-only"},children:[wt]}),_i}var or=Ui.styles;function ns(rt){var St=rt[0],wt=rt[1],pi=D(rt.slice(4),1)[0];return{found:!0,width:St,height:wt,icon:Array.isArray(pi)?{tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:pi[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat("primary"),fill:"currentColor",d:pi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:pi}}}}var Vs={found:!1,width:512,height:512};function rs(rt,St){var wt=St;return"fa"===St&&null!==ve.styleDefault&&(St=zr()),new Promise(function(Ft,Xt){if(Vr("missingIconAbstract"),"fa"===wt){var _i=lr(rt)||{};rt=_i.iconName||rt,St=_i.prefix||St}if(rt&&St&&or[St]&&or[St][rt])return Ft(ns(or[St][rt]));(function er(rt,St){!ae&&!ve.showMissingIcons&&rt&&console.error('Icon with name "'.concat(rt,'" and prefix "').concat(St,'" is missing.'))})(rt,St),Ft(f(f({},Vs),{},{icon:ve.showMissingIcons&&rt&&Vr("missingIconAbstract")||{}}))})}var Wr=function(){},Or=ve.measurePerformance&&T&&T.mark&&T.measure?T:{mark:Wr,measure:Wr},kr='FA "6.2.0"',Vn_begin=function(St){return Or.mark("".concat(kr," ").concat(St," begins")),function(){return function(St){Or.mark("".concat(kr," ").concat(St," ends")),Or.measure("".concat(kr," ").concat(St),"".concat(kr," ").concat(St," begins"),"".concat(kr," ").concat(St," ends"))}(St)}},je=function(){};function Et(rt){return"string"==typeof(rt.getAttribute?rt.getAttribute(Q):null)}function Mi(rt){return c.createElementNS("http://www.w3.org/2000/svg",rt)}function Ii(rt){return c.createElement(rt)}function tn(rt){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=St.ceFn,Ft=void 0===wt?"svg"===rt.tag?Mi:Ii:wt;if("string"==typeof rt)return c.createTextNode(rt);var Xt=Ft(rt.tag);Object.keys(rt.attributes||[]).forEach(function(_i){Xt.setAttribute(_i,rt.attributes[_i])});var pi=rt.children||[];return pi.forEach(function(_i){Xt.appendChild(tn(_i,{ceFn:Ft}))}),Xt}var It={replace:function(St){var wt=St[0];if(wt.parentNode)if(St[1].forEach(function(Xt){wt.parentNode.insertBefore(tn(Xt),wt)}),null===wt.getAttribute(Q)&&ve.keepOriginalSource){var Ft=c.createComment(function tr(rt){var St=" ".concat(rt.outerHTML," ");return"".concat(St,"Font Awesome fontawesome.com ")}(wt));wt.parentNode.replaceChild(Ft,wt)}else wt.remove()},nest:function(St){var wt=St[0],Ft=St[1];if(~Ge(wt).indexOf(ve.replacementClass))return It.replace(St);var Xt=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete Ft[0].attributes.id,Ft[0].attributes.class){var pi=Ft[0].attributes.class.split(" ").reduce(function(Di,Fi){return Fi===ve.replacementClass||Fi.match(Xt)?Di.toSvg.push(Fi):Di.toNode.push(Fi),Di},{toNode:[],toSvg:[]});Ft[0].attributes.class=pi.toSvg.join(" "),0===pi.toNode.length?wt.removeAttribute("class"):wt.setAttribute("class",pi.toNode.join(" "))}var _i=Ft.map(function(Di){return yt(Di)}).join("\n");wt.setAttribute(Q,""),wt.innerHTML=_i}};function li(rt){rt()}function vt(rt,St){var wt="function"==typeof St?St:je;if(0===rt.length)wt();else{var Ft=li;"async"===ve.mutateApproach&&(Ft=u.requestAnimationFrame||li),Ft(function(){var Xt=function ri(){return!0===ve.autoReplaceSvg?It.replace:It[ve.autoReplaceSvg]||It.replace}(),pi=Vn_begin("mutate");rt.map(Xt),pi(),wt()})}}var qt=!1;function Ei(){qt=!0}function Wi(){qt=!1}var $e=null;function We(rt){if(v&&ve.observeMutations){var St=rt.treeCallback,wt=void 0===St?je:St,Ft=rt.nodeCallback,Xt=void 0===Ft?je:Ft,pi=rt.pseudoElementsCallback,_i=void 0===pi?je:pi,Di=rt.observeMutationsRoot,Fi=void 0===Di?c:Di;$e=new v(function(ln){if(!qt){var rn=zr();Ee(ln).forEach(function(fn){if("childList"===fn.type&&fn.addedNodes.length>0&&!Et(fn.addedNodes[0])&&(ve.searchPseudoElements&&_i(fn.target),wt(fn.target)),"attributes"===fn.type&&fn.target.parentNode&&ve.searchPseudoElements&&_i(fn.target.parentNode),"attributes"===fn.type&&Et(fn.target)&&~Ot.indexOf(fn.attributeName))if("class"===fn.attributeName&&function Je(rt){var St=rt.getAttribute?rt.getAttribute(q):null,wt=rt.getAttribute?rt.getAttribute(Ae):null;return St&&wt}(fn.target)){var Qn=Ms(Ge(fn.target)),ss=Qn.iconName;fn.target.setAttribute(q,Qn.prefix||rn),ss&&fn.target.setAttribute(Ae,ss)}else(function Pt(rt){return rt&&rt.classList&&rt.classList.contains&&rt.classList.contains(ve.replacementClass)})(fn.target)&&Xt(fn.target)})}}),y&&$e.observe(Fi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Dt(rt){var St=rt.getAttribute("style"),wt=[];return St&&(wt=St.split(";").reduce(function(Ft,Xt){var pi=Xt.split(":"),_i=pi[0],Di=pi.slice(1);return _i&&Di.length>0&&(Ft[_i]=Di.join(":").trim()),Ft},{})),wt}function yi(rt){var St=rt.getAttribute("data-prefix"),wt=rt.getAttribute("data-icon"),Ft=void 0!==rt.innerText?rt.innerText.trim():"",Xt=Ms(Ge(rt));return Xt.prefix||(Xt.prefix=zr()),St&&wt&&(Xt.prefix=St,Xt.iconName=wt),Xt.iconName&&Xt.prefix||(Xt.prefix&&Ft.length>0&&(Xt.iconName=function Kn(rt,St){return(ki[rt]||{})[St]}(Xt.prefix,rt.innerText)||wn(Xt.prefix,bi(rt.innerText))),!Xt.iconName&&ve.autoFetchSvg&&rt.firstChild&&rt.firstChild.nodeType===Node.TEXT_NODE&&(Xt.iconName=rt.firstChild.data)),Xt}function qi(rt){var St=Ee(rt.attributes).reduce(function(Xt,pi){return"class"!==Xt.name&&"style"!==Xt.name&&(Xt[pi.name]=pi.value),Xt},{}),wt=rt.getAttribute("title"),Ft=rt.getAttribute("data-fa-title-id");return ve.autoA11y&&(wt?St["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(Ft||Xe()):(St["aria-hidden"]="true",St.focusable="false")),St}function Br(rt){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},wt=yi(rt),Ft=wt.iconName,Xt=wt.prefix,pi=wt.rest,_i=qi(rt),Di=Dr("parseNodeAttributes",{},rt),Fi=St.styleParser?Dt(rt):[];return f({iconName:Ft,title:rt.getAttribute("title"),titleId:rt.getAttribute("data-fa-title-id"),prefix:Xt,transform:it,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:pi,styles:Fi,attributes:_i}},Di)}var ta=Ui.styles;function ys(rt){var St="nest"===ve.autoReplaceSvg?Br(rt,{styleParser:!1}):Br(rt);return~St.extra.classes.indexOf(Lt)?Vr("generateLayersText",rt,St):Vr("generateSvgReplacementMutation",rt,St)}var Es=new Set;function Hi(rt){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!y)return Promise.resolve();var wt=c.documentElement.classList,Ft=function(fn){return wt.add("".concat(ut,"-").concat(fn))},Xt=function(fn){return wt.remove("".concat(ut,"-").concat(fn))},pi=ve.autoFetchSvg?Es:Y.map(function(rn){return"fa-".concat(rn)}).concat(Object.keys(ta));pi.includes("fa")||pi.push("fa");var _i=[".".concat(Lt,":not([").concat(Q,"])")].concat(pi.map(function(rn){return".".concat(rn,":not([").concat(Q,"])")})).join(", ");if(0===_i.length)return Promise.resolve();var Di=[];try{Di=Ee(rt.querySelectorAll(_i))}catch(rn){}if(!(Di.length>0))return Promise.resolve();Ft("pending"),Xt("complete");var Fi=Vn_begin("onTree"),ln=Di.reduce(function(rn,fn){try{var Qn=ys(fn);Qn&&rn.push(Qn)}catch(ir){ae||"MissingIcon"===ir.name&&console.error(ir)}return rn},[]);return new Promise(function(rn,fn){Promise.all(ln).then(function(Qn){vt(Qn,function(){Ft("active"),Ft("complete"),Xt("pending"),"function"==typeof St&&St(),Fi(),rn()})}).catch(function(Qn){Fi(),fn(Qn)})})}function Wn(rt){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ys(rt).then(function(wt){wt&&vt([wt],St)})}Y.map(function(rt){Es.add("fa-".concat(rt))}),Object.keys(be[we]).map(Es.add.bind(Es)),Object.keys(be[ye]).map(Es.add.bind(Es)),Es=S(Es);var wr=function(St){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=wt.transform,Xt=void 0===Ft?it:Ft,pi=wt.symbol,_i=void 0!==pi&&pi,Di=wt.mask,Fi=void 0===Di?null:Di,ln=wt.maskId,rn=void 0===ln?null:ln,fn=wt.title,Qn=void 0===fn?null:fn,ir=wt.titleId,ss=void 0===ir?null:ir,Ve=wt.classes,Me=void 0===Ve?[]:Ve,me=wt.attributes,Qe=void 0===me?{}:me,ct=wt.styles,kt=void 0===ct?{}:ct;if(St){var Qt=St.prefix,si=St.iconName,Li=St.icon;return Ir(f({type:"icon"},St),function(){return Zn("beforeDOMElementCreation",{iconDefinition:St,params:wt}),ve.autoA11y&&(Qn?Qe["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(ss||Xe()):(Qe["aria-hidden"]="true",Qe.focusable="false")),Ss({icons:{main:ns(Li),mask:Fi?ns(Fi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Qt,iconName:si,transform:f(f({},it),Xt),symbol:_i,title:Qn,maskId:rn,titleId:ss,extra:{attributes:Qe,styles:kt,classes:Me}})})}},$a={mixout:function(){return{icon:(rt=wr,function(St){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=(St||{}).icon?St:cr(St||{}),Xt=wt.mask;return Xt&&(Xt=(Xt||{}).icon?Xt:cr(Xt||{})),rt(Ft,f(f({},wt),{},{mask:Xt}))})};var rt},hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.treeCallback=Hi,wt.nodeCallback=Wn,wt}}},provides:function(St){St.i2svg=function(wt){var Ft=wt.node,pi=wt.callback;return Hi(void 0===Ft?c:Ft,void 0===pi?function(){}:pi)},St.generateSvgReplacementMutation=function(wt,Ft){var Xt=Ft.iconName,pi=Ft.title,_i=Ft.titleId,Di=Ft.prefix,Fi=Ft.transform,ln=Ft.symbol,rn=Ft.mask,fn=Ft.maskId,Qn=Ft.extra;return new Promise(function(ir,ss){Promise.all([rs(Xt,Di),rn.iconName?rs(rn.iconName,rn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Ve){var Me=D(Ve,2);ir([wt,Ss({icons:{main:Me[0],mask:Me[1]},prefix:Di,iconName:Xt,transform:Fi,symbol:ln,maskId:fn,title:pi,titleId:_i,extra:Qn,watchable:!0})])}).catch(ss)})},St.generateAbstractIcon=function(wt){var ln,Ft=wt.children,Xt=wt.attributes,pi=wt.main,_i=wt.transform,Fi=Ct(wt.styles);return Fi.length>0&&(Xt.style=Fi),mi(_i)&&(ln=Vr("generateAbstractTransformGrouping",{main:pi,transform:_i,containerWidth:pi.width,iconWidth:pi.width})),Ft.push(ln||pi.icon),{children:Ft,attributes:Xt}}}},va={mixout:function(){return{layer:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xt=Ft.classes,pi=void 0===Xt?[]:Xt;return Ir({type:"layer"},function(){Zn("beforeDOMElementCreation",{assembler:wt,params:Ft});var _i=[];return wt(function(Di){Array.isArray(Di)?Di.map(function(Fi){_i=_i.concat(Fi.abstract)}):_i=_i.concat(Di.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers")].concat(S(pi)).join(" ")},children:_i}]})}}}},Ts={mixout:function(){return{counter:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xt=Ft.title,pi=void 0===Xt?null:Xt,_i=Ft.classes,Di=void 0===_i?[]:_i,Fi=Ft.attributes,ln=void 0===Fi?{}:Fi,rn=Ft.styles,fn=void 0===rn?{}:rn;return Ir({type:"counter",content:wt},function(){return Zn("beforeDOMElementCreation",{content:wt,params:Ft}),_s({content:wt.toString(),title:pi,extra:{attributes:ln,styles:fn,classes:["".concat(ve.cssPrefix,"-layers-counter")].concat(S(Di))}})})}}}},La={mixout:function(){return{text:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Xt=Ft.transform,pi=void 0===Xt?it:Xt,_i=Ft.title,Di=void 0===_i?null:_i,Fi=Ft.classes,ln=void 0===Fi?[]:Fi,rn=Ft.attributes,fn=void 0===rn?{}:rn,Qn=Ft.styles,ir=void 0===Qn?{}:Qn;return Ir({type:"text",content:wt},function(){return Zn("beforeDOMElementCreation",{content:wt,params:Ft}),Rs({content:wt,transform:f(f({},it),pi),title:Di,extra:{attributes:fn,styles:ir,classes:["".concat(ve.cssPrefix,"-layers-text")].concat(S(ln))}})})}}},provides:function(St){St.generateLayersText=function(wt,Ft){var Xt=Ft.title,pi=Ft.transform,_i=Ft.extra,Di=null,Fi=null;if(n){var ln=parseInt(getComputedStyle(wt).fontSize,10),rn=wt.getBoundingClientRect();Di=rn.width/ln,Fi=rn.height/ln}return ve.autoA11y&&!Xt&&(_i.attributes["aria-hidden"]="true"),Promise.resolve([wt,Rs({content:wt.innerHTML,width:Di,height:Fi,transform:pi,title:Xt,extra:_i,watchable:!0})])}}},Da=new RegExp('"',"ug"),za=[1105920,1112319];function Ba(rt,St){var wt="".concat("data-fa-pseudo-element-pending").concat(St.replace(":","-"));return new Promise(function(Ft,Xt){if(null!==rt.getAttribute(wt))return Ft();var _i=Ee(rt.children).filter(function(Li){return Li.getAttribute(Ue)===St})[0],Di=u.getComputedStyle(rt,St),Fi=Di.getPropertyValue("font-family").match(di),ln=Di.getPropertyValue("font-weight"),rn=Di.getPropertyValue("content");if(_i&&!Fi)return rt.removeChild(_i),Ft();if(Fi&&"none"!==rn&&""!==rn){var fn=Di.getPropertyValue("content"),Qn=~["Sharp"].indexOf(Fi[2])?ye:we,ir=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Fi[2])?fe[Qn][Fi[2].toLowerCase()]:Wt[Qn][ln],ss=function Va(rt){var St=rt.replace(Da,""),wt=function wi(rt,St){var Xt,wt=rt.length,Ft=rt.charCodeAt(St);return Ft>=55296&&Ft<=56319&&wt>St+1&&(Xt=rt.charCodeAt(St+1))>=56320&&Xt<=57343?1024*(Ft-55296)+Xt-56320+65536:Ft}(St,0),Ft=wt>=za[0]&&wt<=za[1],Xt=2===St.length&&St[0]===St[1];return{value:bi(Xt?St[0]:St),isSecondary:Ft||Xt}}(fn),Ve=ss.value,Me=ss.isSecondary,me=Fi[0].startsWith("FontAwesome"),Qe=wn(ir,Ve),ct=Qe;if(me){var kt=function qr(rt){var St=jn[rt],wt=wn("fas",rt);return St||(wt?{prefix:"fas",iconName:wt}:null)||{prefix:null,iconName:null}}(Ve);kt.iconName&&kt.prefix&&(Qe=kt.iconName,ir=kt.prefix)}if(!Qe||Me||_i&&_i.getAttribute(q)===ir&&_i.getAttribute(Ae)===ct)Ft();else{rt.setAttribute(wt,ct),_i&&rt.removeChild(_i);var Qt=function Bn(){return{iconName:null,title:null,titleId:null,prefix:null,transform:it,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),si=Qt.extra;si.attributes[Ue]=St,rs(Qe,ir).then(function(Li){var an=Ss(f(f({},Qt),{},{icons:{main:Li,mask:{prefix:null,iconName:null,rest:[]}},prefix:ir,iconName:ct,extra:si,watchable:!0})),In=c.createElement("svg");"::before"===St?rt.insertBefore(In,rt.firstChild):rt.appendChild(In),In.outerHTML=an.map(function(bn){return yt(bn)}).join("\n"),rt.removeAttribute(wt),Ft()}).catch(Xt)}}else Ft()})}function aa(rt){return Promise.all([Ba(rt,"::before"),Ba(rt,"::after")])}function Ur(rt){return!(rt.parentNode===document.head||~De.indexOf(rt.tagName.toUpperCase())||rt.getAttribute(Ue)||rt.parentNode&&"svg"===rt.parentNode.tagName)}function hs(rt){if(y)return new Promise(function(St,wt){var Ft=Ee(rt.querySelectorAll("*")).filter(Ur).map(aa),Xt=Vn_begin("searchPseudoElements");Ei(),Promise.all(Ft).then(function(){Xt(),Wi(),St()}).catch(function(){Xt(),Wi(),wt()})})}var se=!1,Ye=function(St){return St.toLowerCase().split(" ").reduce(function(Ft,Xt){var pi=Xt.toLowerCase().split("-"),_i=pi[0],Di=pi.slice(1).join("-");if(_i&&"h"===Di)return Ft.flipX=!0,Ft;if(_i&&"v"===Di)return Ft.flipY=!0,Ft;if(Di=parseFloat(Di),isNaN(Di))return Ft;switch(_i){case"grow":Ft.size=Ft.size+Di;break;case"shrink":Ft.size=Ft.size-Di;break;case"left":Ft.x=Ft.x-Di;break;case"right":Ft.x=Ft.x+Di;break;case"up":Ft.y=Ft.y-Di;break;case"down":Ft.y=Ft.y+Di;break;case"rotate":Ft.rotate=Ft.rotate+Di}return Ft},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},zt={x:0,y:0,width:"100%",height:"100%"};function ii(rt){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return rt.attributes&&(rt.attributes.fill||St)&&(rt.attributes.fill="black"),rt}!function Ws(rt,St){var wt=St.mixoutsTo;Xr=rt,$r={},Object.keys(ws).forEach(function(Ft){-1===ds.indexOf(Ft)&&delete ws[Ft]}),Xr.forEach(function(Ft){var Xt=Ft.mixout?Ft.mixout():{};if(Object.keys(Xt).forEach(function(_i){"function"==typeof Xt[_i]&&(wt[_i]=Xt[_i]),"object"===M(Xt[_i])&&Object.keys(Xt[_i]).forEach(function(Di){wt[_i]||(wt[_i]={}),wt[_i][Di]=Xt[_i][Di]})}),Ft.hooks){var pi=Ft.hooks();Object.keys(pi).forEach(function(_i){$r[_i]||($r[_i]=[]),$r[_i].push(pi[_i])})}Ft.provides&&Ft.provides(ws)})}([Gi,$a,va,Ts,La,{hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.pseudoElementsCallback=hs,wt}}},provides:function(St){St.pseudoElements2svg=function(wt){var Ft=wt.node;ve.searchPseudoElements&&hs(void 0===Ft?c:Ft)}}},{mixout:function(){return{dom:{unwatch:function(){Ei(),se=!0}}}},hooks:function(){return{bootstrap:function(){We(Dr("mutationObserverCallbacks",{}))},noAuto:function(){!function Fe(){!$e||$e.disconnect()}()},watch:function(wt){var Ft=wt.observeMutationsRoot;se?Wi():We(Dr("mutationObserverCallbacks",{observeMutationsRoot:Ft}))}}}},{mixout:function(){return{parse:{transform:function(wt){return Ye(wt)}}}},hooks:function(){return{parseNodeAttributes:function(wt,Ft){var Xt=Ft.getAttribute("data-fa-transform");return Xt&&(wt.transform=Ye(Xt)),wt}}},provides:function(St){St.generateAbstractTransformGrouping=function(wt){var Ft=wt.main,Xt=wt.transform,_i=wt.iconWidth,Di={transform:"translate(".concat(wt.containerWidth/2," 256)")},Fi="translate(".concat(32*Xt.x,", ").concat(32*Xt.y,") "),ln="scale(".concat(Xt.size/16*(Xt.flipX?-1:1),", ").concat(Xt.size/16*(Xt.flipY?-1:1),") "),rn="rotate(".concat(Xt.rotate," 0 0)"),ir={outer:Di,inner:{transform:"".concat(Fi," ").concat(ln," ").concat(rn)},path:{transform:"translate(".concat(_i/2*-1," -256)")}};return{tag:"g",attributes:f({},ir.outer),children:[{tag:"g",attributes:f({},ir.inner),children:[{tag:Ft.icon.tag,children:Ft.icon.children,attributes:f(f({},Ft.icon.attributes),ir.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var Xt=Ft.getAttribute("data-fa-mask"),pi=Xt?Ms(Xt.split(" ").map(function(_i){return _i.trim()})):{prefix:null,iconName:null,rest:[]};return pi.prefix||(pi.prefix=zr()),wt.mask=pi,wt.maskId=Ft.getAttribute("data-fa-mask-id"),wt}}},provides:function(St){St.generateAbstractMask=function(wt){var rt,Ft=wt.children,Xt=wt.attributes,pi=wt.main,_i=wt.mask,Di=wt.maskId,rn=pi.icon,Qn=_i.icon,ir=function Jt(rt){var St=rt.transform,Ft=rt.iconWidth,Xt={transform:"translate(".concat(rt.containerWidth/2," 256)")},pi="translate(".concat(32*St.x,", ").concat(32*St.y,") "),_i="scale(".concat(St.size/16*(St.flipX?-1:1),", ").concat(St.size/16*(St.flipY?-1:1),") "),Di="rotate(".concat(St.rotate," 0 0)");return{outer:Xt,inner:{transform:"".concat(pi," ").concat(_i," ").concat(Di)},path:{transform:"translate(".concat(Ft/2*-1," -256)")}}}({transform:wt.transform,containerWidth:_i.width,iconWidth:pi.width}),ss={tag:"rect",attributes:f(f({},zt),{},{fill:"white"})},Ve=rn.children?{children:rn.children.map(ii)}:{},Me={tag:"g",attributes:f({},ir.inner),children:[ii(f({tag:rn.tag,attributes:f(f({},rn.attributes),ir.path)},Ve))]},me={tag:"g",attributes:f({},ir.outer),children:[Me]},Qe="mask-".concat(Di||Xe()),ct="clip-".concat(Di||Xe()),kt={tag:"mask",attributes:f(f({},zt),{},{id:Qe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ss,me]},Qt={tag:"defs",children:[{tag:"clipPath",attributes:{id:ct},children:(rt=Qn,"g"===rt.tag?rt.children:[rt])},kt]};return Ft.push(Qt,{tag:"rect",attributes:f({fill:"currentColor","clip-path":"url(#".concat(ct,")"),mask:"url(#".concat(Qe,")")},zt)}),{children:Ft,attributes:Xt}}}},{provides:function(St){var wt=!1;u.matchMedia&&(wt=u.matchMedia("(prefers-reduced-motion: reduce)").matches),St.missingIconAbstract=function(){var Ft=[],Xt={fill:"currentColor"},pi={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ft.push({tag:"path",attributes:f(f({},Xt),{},{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 _i=f(f({},pi),{},{attributeName:"opacity"}),Di={tag:"circle",attributes:f(f({},Xt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return wt||Di.children.push({tag:"animate",attributes:f(f({},pi),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:f(f({},_i),{},{values:"1;0;1;1;0;1;"})}),Ft.push(Di),Ft.push({tag:"path",attributes:f(f({},Xt),{},{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:wt?[]:[{tag:"animate",attributes:f(f({},_i),{},{values:"1;0;0;0;0;1;"})}]}),wt||Ft.push({tag:"path",attributes:f(f({},Xt),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:f(f({},_i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ft}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var Xt=Ft.getAttribute("data-fa-symbol");return wt.symbol=null!==Xt&&(""===Xt||Xt),wt}}}}],{mixoutsTo:dr});var rr=dr.parse,Nr=dr.icon,Gn=p(2313);const yr=["*"],wa=rt=>{const St={"fa-spin":rt.spin,"fa-pulse":rt.pulse,"fa-fw":rt.fixedWidth,"fa-border":rt.border,"fa-inverse":rt.inverse,"fa-layers-counter":rt.counter,"fa-flip-horizontal":"horizontal"===rt.flip||"both"===rt.flip,"fa-flip-vertical":"vertical"===rt.flip||"both"===rt.flip,[`fa-${rt.size}`]:null!==rt.size,[`fa-rotate-${rt.rotate}`]:null!==rt.rotate,[`fa-pull-${rt.pull}`]:null!==rt.pull,[`fa-stack-${rt.stackItemSize}`]:null!=rt.stackItemSize};return Object.keys(St).map(wt=>St[wt]?wt:null).filter(wt=>wt)};let ya=(()=>{class rt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275prov=t.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),xa=(()=>{class rt{constructor(){this.definitions={}}addIcons(...wt){for(const Ft of wt){Ft.prefix in this.definitions||(this.definitions[Ft.prefix]={}),this.definitions[Ft.prefix][Ft.iconName]=Ft;for(const Xt of Ft.icon[2])"string"==typeof Xt&&(this.definitions[Ft.prefix][Xt]=Ft)}}addIconPacks(...wt){for(const Ft of wt){const Xt=Object.keys(Ft).map(pi=>Ft[pi]);this.addIcons(...Xt)}}getIconDefinition(wt,Ft){return wt in this.definitions&&Ft in this.definitions[wt]?this.definitions[wt][Ft]:null}}return rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275prov=t.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),dn=(()=>{class rt{constructor(){this.stackItemSize="1x"}ngOnChanges(wt){if("size"in wt)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 rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275dir=t.lG2({type:rt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),rt})(),xn=(()=>{class rt{constructor(wt,Ft){this.renderer=wt,this.elementRef=Ft}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(wt){"size"in wt&&(null!=wt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${wt.size.currentValue}`),null!=wt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${wt.size.previousValue}`))}}return rt.\u0275fac=function(wt){return new(wt||rt)(t.Y36(t.Qsj),t.Y36(t.SBq))},rt.\u0275cmp=t.Xpm({type:rt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:yr,decls:1,vars:0,template:function(wt,Ft){1&wt&&(t.F$t(),t.Hsn(0))},encapsulation:2}),rt})(),Tn=(()=>{class rt{constructor(wt,Ft,Xt,pi,_i){this.sanitizer=wt,this.config=Ft,this.iconLibrary=Xt,this.stackItem=pi,this.classes=[],null!=_i&&null==pi&&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>.')}ngOnChanges(wt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Ft=null;if(Ft=null==this.icon?this.config.fallbackIcon:this.icon,wt){const Xt=this.findIconDefinition(Ft);if(null!=Xt){const pi=this.buildParams();this.renderIcon(Xt,pi)}}}render(){this.ngOnChanges({})}findIconDefinition(wt){const Ft=((rt,St)=>(rt=>void 0!==rt.prefix&&void 0!==rt.iconName)(rt)?rt:Array.isArray(rt)&&2===rt.length?{prefix:rt[0],iconName:rt[1]}:"string"==typeof rt?{prefix:St,iconName:rt}:void 0)(wt,this.config.defaultPrefix);if("icon"in Ft)return Ft;const Xt=this.iconLibrary.getIconDefinition(Ft.prefix,Ft.iconName);return null!=Xt?Xt:((rt=>{throw new Error(`Could not find icon with iconName=${rt.iconName} and prefix=${rt.prefix} in the icon library.`)})(Ft),null)}buildParams(){const wt={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Ft="string"==typeof this.transform?rr.transform(this.transform):this.transform;return{title:this.title,transform:Ft,classes:[...wa(wt),...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(wt,Ft){const Xt=Nr(wt,Ft);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Xt.html.join("\n"))}}return rt.\u0275fac=function(wt){return new(wt||rt)(t.Y36(Gn.H7),t.Y36(ya),t.Y36(xa),t.Y36(dn,8),t.Y36(xn,8))},rt.\u0275cmp=t.Xpm({type:rt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(wt,Ft){2&wt&&(t.Ikx("innerHTML",Ft.renderedIconHTML,t.oJD),t.uIk("title",Ft.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[t.TTD],decls:0,vars:0,template:function(wt,Ft){},encapsulation:2}),rt})(),ur=(()=>{class rt{}return rt.\u0275fac=function(wt){return new(wt||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({}),rt})()},2687:(ze,K,p)=>{"use strict";p.d(K,{Acd:()=>Pa,Aq:()=>pl,B$L:()=>zt,BDt:()=>Ld,CgH:()=>P4,DL8:()=>u_,FJU:()=>Dn,FVb:()=>Zl,FlN:()=>M5,FpQ:()=>J4,HLz:()=>W7,KOR:()=>Nc,Krp:()=>V6,Mdf:()=>Sn,N2j:()=>nr,NBC:()=>v9,OS1:()=>Ps,Psp:()=>y4,Sbq:()=>tt,SoD:()=>ns,Ssp:()=>M_,SuH:()=>Vl,TmZ:()=>f9,USL:()=>D9,Vfw:()=>Up,X5K:()=>Z4,XsY:()=>fn,aj4:()=>cc,b7W:()=>Sf,byT:()=>Qn,co4:()=>bf,dLy:()=>e9,dT$:()=>pa,eHv:()=>b_,gNZ:()=>_p,hkK:()=>Zt,hnx:()=>N_,kXW:()=>Z5,kZ_:()=>p9,koM:()=>_c,mh3:()=>D0,nNP:()=>kg,q7m:()=>F8,qO$:()=>U9,r8p:()=>zg,sqG:()=>jp,uli:()=>S_,vqe:()=>e_,wn1:()=>q7,wyP:()=>w3,xf3:()=>zd,yOe:()=>D3});var tt={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"]},Zt={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 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"]},nr={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"]},ns={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"]},zt={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"]},fn={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M371.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L600.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S549.7-4.4 531.1 9.6L294.4 187.2c-24 18-38.2 46.1-38.4 76.1L371.3 367.1zm-19.6 25.4l-116-104.4C175.9 290.3 128 339.6 128 400c0 3.9 .2 7.8 .6 11.6c1.8 17.5-10.2 36.4-27.8 36.4H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H240c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},Qn={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"]},Zl={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 160c-44.2 0-80-35.8-80-80S99.8 0 144 0s80 35.8 80 80s-35.8 80-80 80zm368 0c-44.2 0-80-35.8-80-80s35.8-80 80-80s80 35.8 80 80s-35.8 80-80 80zM0 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.3zM416 224c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zM128 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"]},pl={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.5c5.2-11.8 8-24.8 8-38.5c0-53-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zm223.1 298L373 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.5z"]},Pa={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"]},cc={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"]},zd={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-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 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-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},_c={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"]},w3={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"]},D3={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-123zM96 128H0V352c0 17.7 14.3 32 32 32H64c17.7 0 32-14.3 32-32V128zM48 352c-8.8 0-16-7.2-16-16s7.2-16 16-16s16 7.2 16 16s-7.2 16-16 16zM544 128V352c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V128H544zm64 208c0 8.8-7.2 16-16 16s-16-7.2-16-16s7.2-16 16-16s16 7.2 16 16z"]},V6={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"]},y4={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M96 96c-17.7 0-32 14.3-32 32s-14.3 32-32 32s-32-14.3-32-32C0 75 43 32 96 32h97c70.1 0 127 56.9 127 127c0 52.4-32.2 99.4-81 118.4l-63 24.5 0 18.1c0 17.7-14.3 32-32 32s-32-14.3-32-32V301.9c0-26.4 16.2-50.1 40.8-59.6l63-24.5C240 208.3 256 185 256 159c0-34.8-28.2-63-63-63H96zm48 384c-22.1 0-40-17.9-40-40s17.9-40 40-40s40 17.9 40 40s-17.9 40-40 40z"]},pa={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"]},Ps={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"]},Nc={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"]},Vl={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"]},P4={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.5zM104 432c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},Z4={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 336c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},D0={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104c13.3 0 24-10.7 24-24s-10.7-24-24-24S56 66.7 56 80s10.7 24 24 24zm80-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 0c0-13.3-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24s24-10.7 24-24zM80 456c13.3 0 24-10.7 24-24s-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24z"]},J4={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 256s96-96 96-160c0-53-43-96-96-96s-96 43-96 96c0 29.4 20.2 65.5 42.1 96H320c-53 0-96 43-96 96s43 96 96 96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H188.6c-6.2 9.6-12.6 18.8-19 27.2c-10.7 14.2-21.3 26.9-30 36.8H416c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32-14.3-32-32s14.3-32 32-32h96zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32zM149.9 448c21.9-30.5 42.1-66.6 42.1-96c0-53-43-96-96-96s-96 43-96 96c0 64 96 160 96 160s3.5-3.5 9.2-9.6c.4-.4 .7-.8 1.1-1.2c3.3-3.5 7.1-7.8 11.4-12.8c.2-.2 .4-.4 .6-.6c9.4-10.8 20.7-24.6 31.6-39.8zM96 384c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},Sn={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 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},_p={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.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.5c0-26.5-21.5-48-48.1-48s-48.1 21.5-48.1 48s21.5 48 48.1 48s48.1-21.5 48.1-48z"]},Up={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"]},jp={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 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-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},M5={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M112 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32V224v64V416c0 17.7-14.3 32-32 32H144c-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-32h48V96zm416 0v32h48c17.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 32H528v32c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},bf={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-64h64v64zM400 256c0 61.9-50.1 112-112 112s-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112zM252 208c0 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"]},Sf={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 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"]},Z5={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"]},F8={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 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},Ld={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"]},Dn={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0S96 57.3 96 128s57.3 128 128 128zm-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"]},W7={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM256 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 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM96 288c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm352-32c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},kg={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"]},q7={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 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},e9={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.2-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.2 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"]},f9={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"]},p9={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"]},zg={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"]},v9={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},D9={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 128c0-35.3-28.7-64-64-64S0 92.7 0 128s28.7 64 64 64s64-28.7 64-64zM384 384c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64z"]},U9={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"]},e_={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"]},u_={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 32zM125.8 177.3L51.1 320H204.9L130.2 177.3c-.4-.8-1.3-1.3-2.2-1.3s-1.7 .5-2.2 1.3zM128 128c18.8 0 36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C210.9 402.6 178.2 416 128 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L83.3 155c8.7-16.6 25.9-27 44.7-27zm384 48c-.9 0-1.7 .5-2.2 1.3L435.1 320H588.9L514.2 177.3c-.4-.8-1.3-1.3-2.2-1.3zm-44.7-21c8.7-16.6 25.9-27 44.7-27s36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C594.9 402.6 562.2 416 512 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L467.3 155z"]},b_={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 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},M_={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"]},S_={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M367.2 412.5C335.9 434.9 297.5 448 256 448s-79.9-13.1-111.2-35.5l58-58c15.8 8.6 34 13.5 53.3 13.5s37.4-4.9 53.3-13.5l58 58zm91 .5c33.7-43.3 53.8-97.8 53.8-157s-20.1-113.6-53.8-157l12.4-12.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L413 53.8C369.6 20.1 315.2 0 256 0S142.4 20.1 99 53.8L86.6 41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L53.8 99C20.1 142.4 0 196.8 0 256s20.1 113.6 53.8 157L41.4 425.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L99 458.2c43.3 33.7 97.8 53.8 157 53.8s113.6-20.1 157-53.8l12.4 12.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L458.2 413zm-45.7-45.7l-58-58c8.6-15.8 13.5-34 13.5-53.3s-4.9-37.4-13.5-53.3l58-58C434.9 176.1 448 214.5 448 256s-13.1 79.9-35.5 111.2zM367.2 99.5l-58 58c-15.8-8.6-34-13.5-53.3-13.5s-37.4 4.9-53.3 13.5l-58-58C176.1 77.1 214.5 64 256 64s79.9 13.1 111.2 35.5zM157.5 309.3l-58 58C77.1 335.9 64 297.5 64 256s13.1-79.9 35.5-111.2l58 58c-8.6 15.8-13.5 34-13.5 53.3s4.9 37.4 13.5 53.3zM304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48z"]},N_={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.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 304zM640 368c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM496 288c-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"]}},6642:(ze,K,p)=>{"use strict";p.d(K,{eX:()=>ue,sQ:()=>Nt,GW:()=>i,l4:()=>xe});var t=p(5620),e=p(6451),f=p(8306),M=p(7579),s=p(515),b=p(9646),d=p(2843),R=p(576);class L{constructor(Oe,ce,ve){this.kind=Oe,this.value=ce,this.error=ve,this.hasValue="N"===Oe}observe(Oe){return w(this,Oe)}do(Oe,ce,ve){const{kind:ht,value:mt,error:Ht}=this;return"N"===ht?null==Oe?void 0:Oe(mt):"E"===ht?null==ce?void 0:ce(Ht):null==ve?void 0:ve()}accept(Oe,ce,ve){var ht;return(0,R.m)(null===(ht=Oe)||void 0===ht?void 0:ht.next)?this.observe(Oe):this.do(Oe,ce,ve)}toObservable(){const{kind:Oe,value:ce,error:ve}=this,ht="N"===Oe?(0,b.of)(ce):"E"===Oe?(0,d._)(()=>ve):"C"===Oe?s.E:0;if(!ht)throw new TypeError(`Unexpected notification kind ${Oe}`);return ht}static createNext(Oe){return new L("N",Oe)}static createError(Oe){return new L("E",void 0,Oe)}static createComplete(){return L.completeNotification}}function w(Re,Oe){var ce,ve,ht;const{kind:mt,value:Ht,error:it}=Re;if("string"!=typeof mt)throw new TypeError('Invalid notification, missing "kind"');"N"===mt?null===(ce=Oe.next)||void 0===ce||ce.call(Oe,Ht):"E"===mt?null===(ve=Oe.error)||void 0===ve||ve.call(Oe,it):null===(ht=Oe.complete)||void 0===ht||ht.call(Oe)}L.completeNotification=new L("C");var D=p(4482),S=p(5403),E=p(8421);function U(Re,Oe,ce,ve){return(0,D.e)((ht,mt)=>{let Ht;Oe&&"function"!=typeof Oe?({duration:ce,element:Ht,connector:ve}=Oe):Ht=Oe;const it=new Map,Ne=lt=>{it.forEach(lt),lt(mt)},nt=lt=>Ne(Ct=>Ct.error(lt));let Xe=0,Ee=!1;const Ge=new S.Q(mt,lt=>{try{const Ct=Re(lt);let mi=it.get(Ct);if(!mi){it.set(Ct,mi=ve?ve():new M.x);const Jt=function ot(lt,Ct){const mi=new f.y(Jt=>{Xe++;const $t=Ct.subscribe(Jt);return()=>{$t.unsubscribe(),0==--Xe&&Ee&&Ge.unsubscribe()}});return mi.key=lt,mi}(Ct,mi);if(mt.next(Jt),ce){const $t=(0,S.x)(mi,()=>{mi.complete(),null==$t||$t.unsubscribe()},void 0,void 0,()=>it.delete(Ct));Ge.add((0,E.Xf)(ce(Jt)).subscribe($t))}}mi.next(Ht?Ht(lt):lt)}catch(Ct){nt(Ct)}},()=>Ne(lt=>lt.complete()),nt,()=>it.clear(),()=>(Ee=!0,0===Xe));ht.subscribe(Ge)})}var W=p(4004);function j(Re,Oe){return Oe?ce=>ce.pipe(j((ve,ht)=>(0,E.Xf)(Re(ve,ht)).pipe((0,W.U)((mt,Ht)=>Oe(ve,mt,ht,Ht))))):(0,D.e)((ce,ve)=>{let ht=0,mt=null,Ht=!1;ce.subscribe((0,S.x)(ve,it=>{mt||(mt=(0,S.x)(ve,void 0,()=>{mt=null,Ht&&ve.complete()}),(0,E.Xf)(Re(it,ht++)).subscribe(mt))},()=>{Ht=!0,!mt&&ve.complete()}))})}var ee=p(8502),de=p(262),te=p(9300),ie=p(5577),le=p(5698),$=p(5e3);const ge={dispatch:!0,useEffectsErrorHandler:!0},C="__@ngrx/effects_create__";function i(Re,Oe){const ce=Re(),ve=Object.assign(Object.assign({},ge),Oe);return Object.defineProperty(ce,C,{value:ve}),ce}function r(Re){return Object.getOwnPropertyNames(Re).filter(ve=>!(!Re[ve]||!Re[ve].hasOwnProperty(C))&&Re[ve][C].hasOwnProperty("dispatch")).map(ve=>Object.assign({propertyName:ve},Re[ve][C]))}function u(Re){return Object.getPrototypeOf(Re)}const c="__@ngrx/effects__";function T(Re){return(0,t.qC)(n,u)(Re)}function n(Re){return function I(Re){return Re.constructor.hasOwnProperty(c)}(Re)?Re.constructor[c]:[]}function N(Re,Oe,ce){const ve=u(Re).constructor.name,ht=function B(Re){return[T,r].reduce((ce,ve)=>ce.concat(ve(Re)),[])}(Re).map(({propertyName:mt,dispatch:Ht,useEffectsErrorHandler:it})=>{const Ne="function"==typeof Re[mt]?Re[mt]():Re[mt],nt=it?ce(Ne,Oe):Ne;return!1===Ht?nt.pipe((0,ee.l)()):nt.pipe(function k(){return(0,D.e)((Re,Oe)=>{Re.subscribe((0,S.x)(Oe,ce=>{Oe.next(L.createNext(ce))},()=>{Oe.next(L.createComplete()),Oe.complete()},ce=>{Oe.next(L.createError(ce)),Oe.complete()}))})}()).pipe((0,W.U)(Ee=>({effect:Re[mt],notification:Ee,propertyName:mt,sourceName:ve,sourceInstance:Re})))});return(0,e.T)(...ht)}function J(Re,Oe,ce=10){return Re.pipe((0,de.K)(ve=>(Oe&&Oe.handleError(ve),ce<=1?Re:J(Re,Oe,ce-1))))}let ue=(()=>{class Re extends f.y{constructor(ce){super(),ce&&(this.source=ce)}lift(ce){const ve=new Re;return ve.source=this,ve.operator=ce,ve}}return Re.\u0275fac=function(ce){return new(ce||Re)($.LFG(t.Y$))},Re.\u0275prov=$.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function xe(...Re){return(0,te.h)(Oe=>Re.some(ce=>"string"==typeof ce?ce===Oe.type:ce.type===Oe.type))}function De(Re){return ae(Re,"ngrxOnInitEffects")}function ae(Re,Oe){return Re&&Oe in Re&&"function"==typeof Re[Oe]}const we=new $.OlP("@ngrx/effects Internal Root Guard"),ye=new $.OlP("@ngrx/effects User Provided Effects"),Y=new $.OlP("@ngrx/effects Internal Root Effects"),z=new $.OlP("@ngrx/effects Root Effects"),be=new $.OlP("@ngrx/effects Internal Feature Effects"),fe=new $.OlP("@ngrx/effects Feature Effects"),He=new $.OlP("@ngrx/effects Effects Error Handler");let pt=(()=>{class Re extends M.x{constructor(ce,ve){super(),this.errorHandler=ce,this.effectsErrorHandler=ve}addEffects(ce){this.next(ce)}toActions(){return this.pipe(U(u),(0,ie.z)(ce=>ce.pipe(U(et))),(0,ie.z)(ce=>{const ve=ce.pipe(j(mt=>function Lt(Re,Oe){return ce=>{const ve=N(ce,Re,Oe);return function ut(Re){return ae(Re,"ngrxOnRunEffects")}(ce)?ce.ngrxOnRunEffects(ve):ve}}(this.errorHandler,this.effectsErrorHandler)(mt)),(0,W.U)(mt=>(function Pe(Re,Oe){if("N"===Re.notification.kind){const ce=Re.notification.value;!function Se(Re){return"function"!=typeof Re&&Re&&Re.type&&"string"==typeof Re.type}(ce)&&Oe.handleError(new Error(`Effect ${function Q({propertyName:Re,sourceInstance:Oe,sourceName:ce}){const ve="function"==typeof Oe[Re];return`"${ce}.${String(Re)}${ve?"()":""}"`}(Re)} dispatched an invalid action: ${function Ue(Re){try{return JSON.stringify(Re)}catch(Oe){return Re}}(ce)}`))}}(mt,this.errorHandler),mt.notification)),(0,te.h)(mt=>"N"===mt.kind&&null!=mt.value),function ne(){return(0,D.e)((Re,Oe)=>{Re.subscribe((0,S.x)(Oe,ce=>w(ce,Oe)))})}()),ht=ce.pipe((0,le.q)(1),(0,te.h)(De),(0,W.U)(mt=>mt.ngrxOnInitEffects()));return(0,e.T)(ve,ht)}))}}return Re.\u0275fac=function(ce){return new(ce||Re)($.LFG($.qLn),$.LFG(He))},Re.\u0275prov=$.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function et(Re){return function q(Re){return ae(Re,"ngrxOnIdentifyEffects")}(Re)?Re.ngrxOnIdentifyEffects():""}let di=(()=>{class Re{constructor(ce,ve){this.effectSources=ce,this.store=ve,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Re.\u0275fac=function(ce){return new(ce||Re)($.LFG(pt),$.LFG(t.yh))},Re.\u0275prov=$.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Wt="@ngrx/effects/init";(0,t.PH)(Wt);let ui=(()=>{class Re{constructor(ce,ve,ht,mt,Ht,it,Ne){this.sources=ce,ve.start(),mt.forEach(nt=>ce.addEffects(nt)),ht.dispatch({type:Wt})}addEffects(ce){this.sources.addEffects(ce)}}return Re.\u0275fac=function(ce){return new(ce||Re)($.LFG(pt),$.LFG(di),$.LFG(t.yh),$.LFG(z),$.LFG(t.cr,8),$.LFG(t.CK,8),$.LFG(we,8))},Re.\u0275mod=$.oAB({type:Re}),Re.\u0275inj=$.cJS({}),Re})(),Ot=(()=>{class Re{constructor(ce,ve,ht,mt){ve.forEach(Ht=>Ht.forEach(it=>ce.addEffects(it)))}}return Re.\u0275fac=function(ce){return new(ce||Re)($.LFG(ui),$.LFG(fe),$.LFG(t.cr,8),$.LFG(t.CK,8))},Re.\u0275mod=$.oAB({type:Re}),Re.\u0275inj=$.cJS({}),Re})(),Nt=(()=>{class Re{static forFeature(ce=[]){return{ngModule:Ot,providers:[ce,{provide:be,multi:!0,useValue:ce},{provide:ye,multi:!0,useValue:[]},{provide:fe,multi:!0,useFactory:gt,deps:[$.zs3,be,ye]}]}}static forRoot(ce=[]){return{ngModule:ui,providers:[{provide:He,useValue:J},di,pt,ue,ce,{provide:Y,useValue:[ce]},{provide:we,useFactory:xt,deps:[[di,new $.FiY,new $.tp0],[Y,new $.PiD]]},{provide:ye,multi:!0,useValue:[]},{provide:z,useFactory:gt,deps:[$.zs3,Y,ye]}]}}}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=$.oAB({type:Re}),Re.\u0275inj=$.cJS({}),Re})();function gt(Re,Oe,ce){const ve=[];for(const ht of Oe)ve.push(...ht);for(const ht of ce)ve.push(...ht);return function tt(Re,Oe){return Oe.map(ce=>Re.get(ce))}(Re,ve)}function xt(Re,Oe){if((1!==Oe.length||0!==Oe[0].length)&&Re)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(ze){const K={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},p="function"==typeof ze?ze():ze,f=Object.assign({},K,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||K.features},p);if(f.maxAge&&f.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${f.maxAge}`);return f}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(K,p){if(this.action=K,this.timestamp=p,this.type=PERFORM_ACTION,void 0===K.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(K){this.timestamp=K,this.type=RESET}}class Rollback{constructor(K){this.timestamp=K,this.type=ROLLBACK}}class Commit{constructor(K){this.timestamp=K,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(K){this.id=K,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(K,p,t=!0){this.start=K,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(K){this.index=K,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(K){this.actionId=K,this.type=JUMP_TO_ACTION}}class ImportState{constructor(K){this.nextLiftedState=K,this.type=IMPORT_STATE}}class LockChanges{constructor(K){this.status=K,this.type=LOCK_CHANGES}}class PauseRecording{constructor(K){this.status=K,this.type=PAUSE_RECORDING}}function difference(ze,K){return ze.filter(p=>K.indexOf(p)<0)}function unliftState(ze){const{computedStates:K,currentStateIndex:p}=ze;if(p>=K.length){const{state:e}=K[K.length-1];return e}const{state:t}=K[p];return t}function unliftAction(ze){return ze.actionsById[ze.nextActionId-1]}function liftAction(ze){return new PerformAction(ze,+Date.now())}function sanitizeActions(ze,K){return Object.keys(K).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(ze,K[e],e),p},{})}function sanitizeAction(ze,K,p){return Object.assign(Object.assign({},K),{action:ze(K.action,p)})}function sanitizeStates(ze,K){return K.map((p,t)=>({state:sanitizeState(ze,p.state,t),error:p.error}))}function sanitizeState(ze,K,p){return ze(K,p)}function shouldFilterActions(ze){return ze.predicate||ze.actionsSafelist||ze.actionsBlocklist}function filterLiftedState(ze,K,p,t){const e=[],f={},M=[];return ze.stagedActionIds.forEach((s,b)=>{const d=ze.actionsById[s];!d||b&&isActionFiltered(ze.computedStates[b],d,K,p,t)||(f[s]=d,e.push(s),M.push(ze.computedStates[b]))}),Object.assign(Object.assign({},ze),{stagedActionIds:e,actionsById:f,computedStates:M})}function isActionFiltered(ze,K,p,t,e){const f=p&&!p(ze,K.action),M=t&&!K.action.type.match(t.map(b=>escapeRegExp(b)).join("|")),s=e&&K.action.type.match(e.map(b=>escapeRegExp(b)).join("|"));return f||M||s}function escapeRegExp(ze){return ze.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(ze,K,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let M,f=p;try{f=ze(p,K)}catch(s){M=s.toString(),e.handleError(s)}return{state:f,error:M}}function recomputeStates(ze,K,p,t,e,f,M,s,b){if(K>=ze.length&&ze.length===f.length)return ze;const d=ze.slice(0,K),R=f.length-(b?1:0);for(let h=K;h<R;h++){const L=f[h],w=e[L].action,D=d[h-1],S=D?D.state:t,k=D?D.error:void 0,U=M.indexOf(L)>-1?D:computeNextEntry(p,w,S,k,s);d.push(U)}return b&&d.push(ze[ze.length-1]),d}function liftInitialState(ze,K){return{monitorState:K(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:ze,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(ze,K,p,t,e={}){return f=>(M,s)=>{let{monitorState:b,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}=M||K;function U(ne){let ee=ne,de=h.slice(1,ee+1);for(let te=0;te<de.length;te++){if(S[te+1].error){ee=te,de=h.slice(1,ee+1);break}delete d[de[te]]}L=L.filter(te=>-1===de.indexOf(te)),h=[0,...h.slice(ee+1)],w=S[ee].state,S=S.slice(ee),D=D>ee?D-ee:0}function W(){d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],w=S[D].state,D=0,S=[]}M||(d=Object.create(d));let j=0;switch(s.type){case LOCK_CHANGES:k=s.status,j=1/0;break;case PAUSE_RECORDING:E=s.status,E?(h=[...h,R],d[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,j=h.length-1,S=S.concat(S[S.length-1]),D===h.length-2&&D++,j=1/0):W();break;case RESET:d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],w=ze,D=0,S=[];break;case COMMIT:W();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],D=0,S=[];break;case TOGGLE_ACTION:{const{id:ne}=s;L=-1===L.indexOf(ne)?[ne,...L]:L.filter(de=>de!==ne),j=h.indexOf(ne);break}case SET_ACTIONS_ACTIVE:{const{start:ne,end:ee,active:de}=s,te=[];for(let ie=ne;ie<ee;ie++)te.push(ie);L=de?difference(L,te):[...L,...te],j=h.indexOf(ne);break}case JUMP_TO_STATE:D=s.index,j=1/0;break;case JUMP_TO_ACTION:{const ne=h.indexOf(s.actionId);-1!==ne&&(D=ne),j=1/0;break}case SWEEP:h=difference(h,L),L=[],D=Math.min(D,h.length-1);break;case PERFORM_ACTION:{if(k)return M||K;if(E||M&&isActionFiltered(M.computedStates[D],s,e.predicate,e.actionsSafelist,e.actionsBlocklist)){const ee=S[S.length-1];S=[...S.slice(0,-1),computeNextEntry(f,s.action,ee.state,ee.error,p)],j=1/0;break}e.maxAge&&h.length===e.maxAge&&U(1),D===h.length-1&&D++;const ne=R++;d[ne]=s,h=[...h,ne],j=h.length-1;break}case IMPORT_STATE:({monitorState:b,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}=s.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:j=0,e.maxAge&&h.length>e.maxAge&&(S=recomputeStates(S,j,f,w,d,h,L,p,E),U(h.length-e.maxAge),j=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(S.filter(ee=>ee.error).length>0)j=0,e.maxAge&&h.length>e.maxAge&&(S=recomputeStates(S,j,f,w,d,h,L,p,E),U(h.length-e.maxAge),j=1/0);else{if(!E&&!k){D===h.length-1&&D++;const ee=R++;d[ee]=new PerformAction(s,+Date.now()),h=[...h,ee],j=h.length-1,S=recomputeStates(S,j,f,w,d,h,L,p,E)}S=S.map(ee=>Object.assign(Object.assign({},ee),{state:f(ee.state,RECOMPUTE_ACTION)})),D=h.length-1,e.maxAge&&h.length>e.maxAge&&U(h.length-e.maxAge),j=1/0}break;default:j=1/0}return S=recomputeStates(S,j,f,w,d,h,L,p,E),b=t(b,s),{monitorState:b,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}}}let DevtoolsDispatcher=(()=>{class ze extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return ze.\u0275fac=function(){let K;return function(t){return(K||(K=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(ze)))(t||ze)}}(),ze.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ze,factory:ze.\u0275fac}),ze})();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(ze,K,p){this.config=K,this.dispatcher=p,this.devtoolsExtension=ze,this.createActionStreams()}notify(ze,K){if(this.devtoolsExtension)if(ze.type===PERFORM_ACTION){if(K.isLocked||K.isPaused)return;const p=unliftState(K);if(shouldFilterActions(this.config)&&isActionFiltered(p,ze,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,K.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,ze,K.nextActionId):ze;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p=Object.assign(Object.assign({},K),{stagedActionIds:K.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,K.actionsById):K.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,K.computedStates):K.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(ze=>{const K=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=K,K.init(),K.subscribe(p=>ze.next(p)),K.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const ze=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),K=ze.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),p=ze.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),t=ze.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)(b=>b.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>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))),f=ze.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)(p)),M=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=K.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>f)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>M))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(ze){var K;const p={name:ze.name,features:ze.features,serialize:ze.serialize,autoPause:null!==(K=ze.autoPause)&&void 0!==K&&K};return!1!==ze.maxAge&&(p.maxAge=ze.maxAge),p}sendToReduxDevtools(ze){try{ze()}catch(K){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",K)}}}return DevtoolsExtension.\u0275fac=function ze(K){return new(K||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class ze{constructor(p,t,e,f,M,s,b,d){const R=liftInitialState(b,d.monitor),h=liftReducerWith(b,R,s,d.monitor,d),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),f.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,f.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),w=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(h)),D=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),S=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(w),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:W},[j,ne])=>{let ee=ne(W,j);return j.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(ee=filterLiftedState(ee,d.predicate,d.actionsSafelist,d.actionsBlocklist)),f.notify(j,ee),{state:ee,action:j}},{state:R,action:null})).subscribe(({state:W,action:j})=>{D.next(W),j.type===PERFORM_ACTION&&M.next(j.action)}),k=f.start$.subscribe(()=>{this.refresh()}),E=D.asObservable(),U=E.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=S,this.dispatcher=p,this.liftedState=E,this.state=U}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return ze.\u0275fac=function(p){return new(p||ze)(_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))},ze.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:ze,factory:ze.\u0275fac}),ze})();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(ze,K){return Boolean(ze)||K.monitor!==noMonitor}function createReduxDevtoolsExtension(){const ze="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[ze]?window[ze]:null}function createStateObservable(ze){return ze.state}let StoreDevtoolsModule=(()=>{class ze{static instrument(p={}){return{ngModule:ze,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return ze.\u0275fac=function(p){return new(p||ze)},ze.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:ze}),ze.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),ze})()},5620:(ze,K,p)=>{"use strict";p.d(K,{UO:()=>le,qg:()=>ie,Y6:()=>i,mK:()=>De,n$:()=>Ie,Y$:()=>Y,FR:()=>be,yh:()=>et,CK:()=>bt,Aw:()=>Vt,cr:()=>qe,wb:()=>ae,qC:()=>q,PH:()=>k,ZF:()=>ot,Lq:()=>Pi,P1:()=>Xe,on:()=>ti,Ky:()=>E});var t=p(5e3),e=p(1135),f=p(8306),M=p(7579),s=p(233),b=p(4004),R=p(5363),h=p(1365),L=p(5026),w=p(1884);const D={};function k(st,Rt){if(D[st]=(D[st]||0)+1,"function"==typeof Rt)return W(st,(...fi)=>Object.assign(Object.assign({},Rt(...fi)),{type:st}));switch(Rt?Rt._as:"empty"){case"empty":return W(st,()=>({type:st}));case"props":return W(st,fi=>Object.assign(Object.assign({},fi),{type:st}));default:throw new Error("Unexpected config.")}}function E(){return{_as:"props",_p:void 0}}function W(st,Rt){return Object.defineProperty(Rt,"type",{value:st,writable:!1})}const ie="@ngrx/store/init";let le=(()=>{class st extends e.X{constructor(){super({type:ie})}next(Zt){if("function"==typeof Zt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===Zt)throw new TypeError("Actions must be objects");if(void 0===Zt.type)throw new TypeError("Actions must have a type property");super.next(Zt)}complete(){}ngOnDestroy(){super.complete()}}return st.\u0275fac=function(Zt){return new(Zt||st)},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const $=[le],ge=new t.OlP("@ngrx/store Internal Root Guard"),C=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),r=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new t.OlP("@ngrx/store Initial Reducers"),v=new t.OlP("@ngrx/store Internal Initial Reducers"),T=new t.OlP("@ngrx/store Store Features"),I=new t.OlP("@ngrx/store Internal Store Reducers"),y=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),_=new t.OlP("@ngrx/store Internal Store Features"),B=new t.OlP("@ngrx/store Internal Feature Reducers Token"),N=new t.OlP("@ngrx/store Feature Reducers"),H=new t.OlP("@ngrx/store User Provided Meta Reducers"),J=new t.OlP("@ngrx/store Meta Reducers"),ue=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),xe=new t.OlP("@ngrx/store User Runtime Checks Config"),Pe=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),Se=new t.OlP("@ngrx/store Internal Runtime Checks"),Q=new t.OlP("@ngrx/store Check if Action types are unique");function Ue(st,Rt={}){const Zt=Object.keys(st),fi={};for(let ki=0;ki<Zt.length;ki++){const un=Zt[ki];"function"==typeof st[un]&&(fi[un]=st[un])}const Ni=Object.keys(fi);return function(un,jn){un=void 0===un?Rt:un;let Nn=!1;const $n={};for(let _n=0;_n<Ni.length;_n++){const Si=Ni[_n],wn=un[Si],Kn=(0,fi[Si])(wn,jn);$n[Si]=Kn,Nn=Nn||Kn!==wn}return Nn?$n:un}}function q(...st){return function(Rt){if(0===st.length)return Rt;const Zt=st[st.length-1];return st.slice(0,-1).reduceRight((Ni,ki)=>ki(Ni),Zt(Rt))}}function Ae(st,Rt){return Array.isArray(Rt)&&Rt.length>0&&(st=q.apply(null,[...Rt,st])),(Zt,fi)=>{const Ni=st(Zt);return(ki,un)=>Ni(ki=void 0===ki?fi:ki,un)}}class Ie extends f.y{}class De extends le{}const ae="@ngrx/store/update-reducers";let we=(()=>{class st extends e.X{constructor(Zt,fi,Ni,ki){super(ki(Ni,fi)),this.dispatcher=Zt,this.initialState=fi,this.reducers=Ni,this.reducerFactory=ki}get currentReducers(){return this.reducers}addFeature(Zt){this.addFeatures([Zt])}addFeatures(Zt){const fi=Zt.reduce((Ni,{reducers:ki,reducerFactory:un,metaReducers:jn,initialState:Nn,key:$n})=>{const _n="function"==typeof ki?function ut(st){const Rt=Array.isArray(st)&&st.length>0?q(...st):Zt=>Zt;return(Zt,fi)=>(Zt=Rt(Zt),(Ni,ki)=>Zt(Ni=void 0===Ni?fi:Ni,ki))}(jn)(ki,Nn):Ae(un,jn)(ki,Nn);return Ni[$n]=_n,Ni},{});this.addReducers(fi)}removeFeature(Zt){this.removeFeatures([Zt])}removeFeatures(Zt){this.removeReducers(Zt.map(fi=>fi.key))}addReducer(Zt,fi){this.addReducers({[Zt]:fi})}addReducers(Zt){this.reducers=Object.assign(Object.assign({},this.reducers),Zt),this.updateReducers(Object.keys(Zt))}removeReducer(Zt){this.removeReducers([Zt])}removeReducers(Zt){Zt.forEach(fi=>{this.reducers=function Ce(st,Rt){return Object.keys(st).filter(Zt=>Zt!==Rt).reduce((Zt,fi)=>Object.assign(Zt,{[fi]:st[fi]}),{})}(this.reducers,fi)}),this.updateReducers(Zt)}updateReducers(Zt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ae,features:Zt})}ngOnDestroy(){this.complete()}}return st.\u0275fac=function(Zt){return new(Zt||st)(t.LFG(De),t.LFG(i),t.LFG(c),t.LFG(r))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const ye=[we,{provide:Ie,useExisting:we},{provide:De,useExisting:le}];let Y=(()=>{class st extends M.x{ngOnDestroy(){this.complete()}}return st.\u0275fac=function(){let Rt;return function(fi){return(Rt||(Rt=t.n5z(st)))(fi||st)}}(),st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const z=[Y];class be extends f.y{}let fe=(()=>{class st extends e.X{constructor(Zt,fi,Ni,ki){super(ki);const $n=Zt.pipe((0,R.Q)(s.N)).pipe((0,h.M)(fi)).pipe((0,L.R)(He,{state:ki}));this.stateSubscription=$n.subscribe(({state:_n,action:Si})=>{this.next(_n),Ni.next(Si)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return st.INIT=ie,st.\u0275fac=function(Zt){return new(Zt||st)(t.LFG(le),t.LFG(Ie),t.LFG(Y),t.LFG(i))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();function He(st={state:void 0},[Rt,Zt]){const{state:fi}=st;return{state:Zt(fi,Rt),action:Rt}}const pt=[fe,{provide:be,useExisting:fe}];let et=(()=>{class st extends f.y{constructor(Zt,fi,Ni){super(),this.actionsObserver=fi,this.reducerManager=Ni,this.source=Zt}select(Zt,...fi){return di.call(null,Zt,...fi)(this)}lift(Zt){const fi=new st(this,this.actionsObserver,this.reducerManager);return fi.operator=Zt,fi}dispatch(Zt){this.actionsObserver.next(Zt)}next(Zt){this.actionsObserver.next(Zt)}error(Zt){this.actionsObserver.error(Zt)}complete(){this.actionsObserver.complete()}addReducer(Zt,fi){this.reducerManager.addReducer(Zt,fi)}removeReducer(Zt){this.reducerManager.removeReducer(Zt)}}return st.\u0275fac=function(Zt){return new(Zt||st)(t.LFG(be),t.LFG(le),t.LFG(we))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const Lt=[et];function di(st,Rt,...Zt){return function(Ni){let ki;if("string"==typeof st){const un=[Rt,...Zt].filter(Boolean);ki=Ni.pipe(function d(...st){const Rt=st.length;if(0===Rt)throw new Error("list of properties cannot be empty.");return(0,b.U)(Zt=>{let fi=Zt;for(let Ni=0;Ni<Rt;Ni++){const ki=null==fi?void 0:fi[st[Ni]];if(void 0===ki)return;fi=ki}return fi})}(st,...un))}else{if("function"!=typeof st)throw new TypeError(`Unexpected type '${typeof st}' in select operator, expected 'string' or 'function'`);ki=Ni.pipe((0,b.U)(un=>st(un,Rt)))}return ki.pipe((0,w.x)())}}const Wt="https://ngrx.io/guide/store/configuration/runtime-checks";function Gt(st){return void 0===st}function ui(st){return null===st}function Ot(st){return Array.isArray(st)}function xt(st){return"object"==typeof st&&null!==st}function Re(st){return"function"==typeof st}function Ht(st,Rt){return st===Rt}function it(st,Rt,Zt){for(let fi=0;fi<st.length;fi++)if(!Zt(st[fi],Rt[fi]))return!0;return!1}function nt(st,Rt=Ht,Zt=Ht){let ki,fi=null,Ni=null;return{memoized:function $n(){if(void 0!==ki)return ki.result;if(!fi)return Ni=st.apply(null,arguments),fi=arguments,Ni;if(!it(arguments,fi,Rt))return Ni;const _n=st.apply(null,arguments);return fi=arguments,Zt(Ni,_n)?Ni:(Ni=_n,_n)},reset:function un(){fi=null,Ni=null},setResult:function jn(_n){ki={result:_n}},clearResult:function Nn(){ki=void 0}}}function Xe(...st){return function Ge(st,Rt={stateFn:Ee}){return function(...Zt){let fi=Zt;if(Array.isArray(fi[0])){const[_n,...Si]=fi;fi=[..._n,...Si]}const Ni=fi.slice(0,fi.length-1),ki=fi[fi.length-1],un=Ni.filter(_n=>_n.release&&"function"==typeof _n.release),jn=st(function(..._n){return ki.apply(null,_n)}),Nn=nt(function(_n,Si){return Rt.stateFn.apply(null,[_n,Ni,Si,jn])});return Object.assign(Nn.memoized,{release:function $n(){Nn.reset(),jn.reset(),un.forEach(_n=>_n.release())},projector:jn.memoized,setResult:Nn.setResult,clearResult:Nn.clearResult})}}(nt)(...st)}function Ee(st,Rt,Zt,fi){if(void 0===Zt){const ki=Rt.map(un=>un(st));return fi.memoized.apply(null,ki)}const Ni=Rt.map(ki=>ki(st,Zt));return fi.memoized.apply(null,[...Ni,Zt])}function ot(st){return Xe(Rt=>{const Zt=Rt[st];return(0,t.X6Q)()&&!(st in Rt)&&console.warn(`@ngrx/store: The feature name "${st}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${st}', ...) or StoreModule.forFeature('${st}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Zt},Rt=>Rt)}function $t(st){Object.freeze(st);const Rt=Re(st);return Object.getOwnPropertyNames(st).forEach(Zt=>{if(!Zt.startsWith("\u0275")&&function ce(st,Rt){return Object.prototype.hasOwnProperty.call(st,Rt)}(st,Zt)&&(!Rt||"caller"!==Zt&&"callee"!==Zt&&"arguments"!==Zt)){const fi=st[Zt];(xt(fi)||Re(fi))&&!Object.isFrozen(fi)&&$t(fi)}}),st}function hi(st,Rt=[]){return(Gt(st)||ui(st))&&0===Rt.length?{path:["root"],value:st}:Object.keys(st).reduce((fi,Ni)=>{if(fi)return fi;const ki=st[Ni];return function Oe(st){return Re(st)&&st.hasOwnProperty("\u0275cmp")}(ki)?fi:!(Gt(ki)||ui(ki)||function tt(st){return"number"==typeof st}(ki)||function gt(st){return"boolean"==typeof st}(ki)||function Nt(st){return"string"==typeof st}(ki)||Ot(ki))&&(function Kt(st){if(!function ei(st){return xt(st)&&!Ot(st)}(st))return!1;const Rt=Object.getPrototypeOf(st);return Rt===Object.prototype||null===Rt}(ki)?hi(ki,[...Rt,Ni]):{path:[...Rt,Ni],value:ki})},!1)}function ai(st,Rt){if(!1===st)return;const Zt=st.path.join("."),fi=new Error(`Detected unserializable ${Rt} at "${Zt}". ${Wt}#strict${Rt}serializability`);throw fi.value=st.value,fi.unserializablePath=Zt,fi}function Gi(st){return(0,t.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},st):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function zi({strictActionSerializability:st,strictStateSerializability:Rt}){return Zt=>st||Rt?function Ki(st,Rt){return function(Zt,fi){Rt.action(fi)&&ai(hi(fi),"action");const Ni=st(Zt,fi);return Rt.state()&&ai(hi(Ni),"state"),Ni}}(Zt,{action:fi=>st&&!Be(fi),state:()=>Rt}):Zt}function Ui({strictActionImmutability:st,strictStateImmutability:Rt}){return Zt=>st||Rt?function Jt(st,Rt){return function(Zt,fi){const Ni=Rt.action(fi)?$t(fi):fi,ki=st(Zt,Ni);return Rt.state()?$t(ki):ki}}(Zt,{action:fi=>st&&!Be(fi),state:()=>Rt}):Zt}function Be(st){return st.type.startsWith("@ngrx")}function Tt({strictActionWithinNgZone:st}){return Rt=>st?function Ji(st,Rt){return function(Zt,fi){if(Rt.action(fi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${fi.type}' running outside NgZone. ${Wt}#strictactionwithinngzone`);return st(Zt,fi)}}(Rt,{action:Zt=>st&&!Be(Zt)}):Rt}function _e(st){return[{provide:Pe,useValue:st},{provide:xe,useFactory:yt,deps:[Pe]},{provide:Se,deps:[xe],useFactory:Gi},{provide:J,multi:!0,deps:[Se],useFactory:Ui},{provide:J,multi:!0,deps:[Se],useFactory:zi},{provide:J,multi:!0,deps:[Se],useFactory:Tt}]}function Ke(){return[{provide:Q,multi:!0,deps:[Se],useFactory:re}]}function yt(st){return st}function re(st){if(!st.strictActionTypeUniqueness)return;const Rt=Object.entries(D).filter(([,Zt])=>Zt>1).map(([Zt])=>Zt);if(Rt.length)throw new Error(`Action types are registered more than once, ${Rt.map(Zt=>`"${Zt}"`).join(", ")}. ${Wt}#strictactiontypeuniqueness`)}let qe=(()=>{class st{constructor(Zt,fi,Ni,ki,un,jn){}}return st.\u0275fac=function(Zt){return new(Zt||st)(t.LFG(le),t.LFG(Ie),t.LFG(Y),t.LFG(et),t.LFG(ge,8),t.LFG(Q,8))},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})(),bt=(()=>{class st{constructor(Zt,fi,Ni,ki,un){this.features=Zt,this.featureReducers=fi,this.reducerManager=Ni;const jn=Zt.map((Nn,$n)=>{const Si=fi.shift()[$n];return Object.assign(Object.assign({},Nn),{reducers:Si,initialState:Zi(Nn.initialState)})});Ni.addFeatures(jn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return st.\u0275fac=function(Zt){return new(Zt||st)(t.LFG(_),t.LFG(N),t.LFG(we),t.LFG(qe),t.LFG(Q,8))},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})(),Vt=(()=>{class st{static forRoot(Zt,fi={}){return{ngModule:qe,providers:[{provide:ge,useFactory:mn,deps:[[et,new t.FiY,new t.tp0]]},{provide:C,useValue:fi.initialState},{provide:i,useFactory:Zi,deps:[C]},{provide:v,useValue:Zt},{provide:I,useExisting:Zt instanceof t.OlP?Zt:v},{provide:c,deps:[t.zs3,v,[new t.tBr(I)]],useFactory:bi},{provide:H,useValue:fi.metaReducers?fi.metaReducers:[]},{provide:ue,deps:[J,H],useFactory:on},{provide:u,useValue:fi.reducerFactory?fi.reducerFactory:Ue},{provide:r,deps:[u,ue],useFactory:Ae},$,ye,z,pt,Lt,_e(fi.runtimeChecks),Ke()]}}static forFeature(Zt,fi,Ni={}){return{ngModule:bt,providers:[{provide:n,multi:!0,useValue:Zt instanceof Object?{}:Ni},{provide:T,multi:!0,useValue:{key:Zt instanceof Object?Zt.name:Zt,reducerFactory:Ni instanceof t.OlP||!Ni.reducerFactory?Ue:Ni.reducerFactory,metaReducers:Ni instanceof t.OlP||!Ni.metaReducers?[]:Ni.metaReducers,initialState:Ni instanceof t.OlP||!Ni.initialState?void 0:Ni.initialState}},{provide:_,deps:[t.zs3,n,T],useFactory:wi},{provide:y,multi:!0,useValue:Zt instanceof Object?Zt.reducer:fi},{provide:B,multi:!0,useExisting:fi instanceof t.OlP?fi:y},{provide:N,multi:!0,deps:[t.zs3,y,[new t.tBr(B)]],useFactory:Xi},Ke()]}}}return st.\u0275fac=function(Zt){return new(Zt||st)},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})();function bi(st,Rt){return Rt instanceof t.OlP?st.get(Rt):Rt}function wi(st,Rt,Zt){return Zt.map((fi,Ni)=>{if(Rt[Ni]instanceof t.OlP){const ki=st.get(Rt[Ni]);return{key:fi.key,reducerFactory:ki.reducerFactory?ki.reducerFactory:Ue,metaReducers:ki.metaReducers?ki.metaReducers:[],initialState:ki.initialState}}return fi})}function Xi(st,Rt){return Rt.map(fi=>fi instanceof t.OlP?st.get(fi):fi)}function Zi(st){return"function"==typeof st?st():st}function on(st,Rt){return st.concat(Rt)}function mn(st){if(st)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function ti(...st){return{reducer:st.pop(),types:st.map(fi=>fi.type)}}function Pi(st,...Rt){const Zt=new Map;for(const fi of Rt)for(const Ni of fi.types){const ki=Zt.get(Ni);Zt.set(Ni,ki?(jn,Nn)=>fi.reducer(ki(jn,Nn),Nn):fi.reducer)}return function(fi=st,Ni){const ki=Zt.get(Ni.type);return ki?ki(fi,Ni):fi}}},1210:(ze,K,p)=>{"use strict";p.d(K,{H5:()=>F4,K$:()=>Fh,a4:()=>rf});var t=p(5e3),e=p(9808),f=p(655),M=p(7429),s=p(4968),b=p(8372),d=p(1777);function R(){}function h(m){return null==m?R:function(){return this.querySelector(m)}}function w(m){return"object"==typeof m&&"length"in m?m:Array.from(m)}function D(){return[]}function S(m){return null==m?D:function(){return this.querySelectorAll(m)}}function U(m){return function(){return this.matches(m)}}function W(m){return function(O){return O.matches(m)}}var j=Array.prototype.find;function ee(){return this.firstElementChild}var te=Array.prototype.filter;function ie(){return this.children}function C(m){return new Array(m.length)}function r(m,O){this.ownerDocument=m.ownerDocument,this.namespaceURI=m.namespaceURI,this._next=null,this._parent=m,this.__data__=O}function u(m){return function(){return m}}function c(m,O,o,x,V,X){for(var dt,ke=0,Ut=O.length,Bt=X.length;ke<Bt;++ke)(dt=O[ke])?(dt.__data__=X[ke],x[ke]=dt):o[ke]=new r(m,X[ke]);for(;ke<Ut;++ke)(dt=O[ke])&&(V[ke]=dt)}function v(m,O,o,x,V,X,ke){var dt,Ut,Ti,Bt=new Map,oi=O.length,xi=X.length,Ci=new Array(oi);for(dt=0;dt<oi;++dt)(Ut=O[dt])&&(Ci[dt]=Ti=ke.call(Ut,Ut.__data__,dt,O)+"",Bt.has(Ti)?V[dt]=Ut:Bt.set(Ti,Ut));for(dt=0;dt<xi;++dt)Ti=ke.call(m,X[dt],dt,X)+"",(Ut=Bt.get(Ti))?(x[dt]=Ut,Ut.__data__=X[dt],Bt.delete(Ti)):o[dt]=new r(m,X[dt]);for(dt=0;dt<oi;++dt)(Ut=O[dt])&&Bt.get(Ci[dt])===Ut&&(V[dt]=Ut)}function T(m){return m.__data__}function H(m,O){return m<O?-1:m>O?1:m>=O?0:NaN}r.prototype={constructor:r,appendChild:function(m){return this._parent.insertBefore(m,this._next)},insertBefore:function(m,O){return this._parent.insertBefore(m,O)},querySelector:function(m){return this._parent.querySelector(m)},querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};var Ue="http://www.w3.org/1999/xhtml";const Ce={svg:"http://www.w3.org/2000/svg",xhtml:Ue,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function q(m){var O=m+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=m.slice(0,o))&&(m=m.slice(o+1)),Ce.hasOwnProperty(O)?{space:Ce[O],local:m}:m}function Ae(m){return function(){this.removeAttribute(m)}}function ut(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Ie(m,O){return function(){this.setAttribute(m,O)}}function De(m,O){return function(){this.setAttributeNS(m.space,m.local,O)}}function ae(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(m):this.setAttribute(m,o)}}function we(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,o)}}function Y(m){return m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView}function z(m){return function(){this.style.removeProperty(m)}}function be(m,O,o){return function(){this.style.setProperty(m,O,o)}}function fe(m,O,o){return function(){var x=O.apply(this,arguments);null==x?this.style.removeProperty(m):this.style.setProperty(m,x,o)}}function pt(m,O){return m.style.getPropertyValue(O)||Y(m).getComputedStyle(m,null).getPropertyValue(O)}function et(m){return function(){delete this[m]}}function Lt(m,O){return function(){this[m]=O}}function di(m,O){return function(){var o=O.apply(this,arguments);null==o?delete this[m]:this[m]=o}}function Gt(m){return m.trim().split(/^|\s+/)}function ui(m){return m.classList||new Ot(m)}function Ot(m){this._node=m,this._names=Gt(m.getAttribute("class")||"")}function Nt(m,O){for(var o=ui(m),x=-1,V=O.length;++x<V;)o.add(O[x])}function gt(m,O){for(var o=ui(m),x=-1,V=O.length;++x<V;)o.remove(O[x])}function tt(m){return function(){Nt(this,m)}}function xt(m){return function(){gt(this,m)}}function ei(m,O){return function(){(O.apply(this,arguments)?Nt:gt)(this,m)}}function Re(){this.textContent=""}function Oe(m){return function(){this.textContent=m}}function ce(m){return function(){var O=m.apply(this,arguments);this.textContent=null==O?"":O}}function ht(){this.innerHTML=""}function mt(m){return function(){this.innerHTML=m}}function Ht(m){return function(){var O=m.apply(this,arguments);this.innerHTML=null==O?"":O}}function Ne(){this.nextSibling&&this.parentNode.appendChild(this)}function Xe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ge(m){return function(){var O=this.ownerDocument,o=this.namespaceURI;return o===Ue&&O.documentElement.namespaceURI===Ue?O.createElement(m):O.createElementNS(o,m)}}function ot(m){return function(){return this.ownerDocument.createElementNS(m.space,m.local)}}function lt(m){var O=q(m);return(O.local?ot:Ge)(O)}function mi(){return null}function $t(){var m=this.parentNode;m&&m.removeChild(this)}function hi(){var m=this.cloneNode(!1),O=this.parentNode;return O?O.insertBefore(m,this.nextSibling):m}function ai(){var m=this.cloneNode(!0),O=this.parentNode;return O?O.insertBefore(m,this.nextSibling):m}function Ui(m){return m.trim().split(/^|\s+/).map(function(O){var o="",x=O.indexOf(".");return x>=0&&(o=O.slice(x+1),O=O.slice(0,x)),{type:O,name:o}})}function Be(m){return function(){var O=this.__on;if(O){for(var X,o=0,x=-1,V=O.length;o<V;++o)X=O[o],m.type&&X.type!==m.type||X.name!==m.name?O[++x]=X:this.removeEventListener(X.type,X.listener,X.options);++x?O.length=x:delete this.__on}}}function Tt(m,O,o){return function(){var V,x=this.__on,X=function zi(m){return function(O){m.call(this,O,this.__data__)}}(O);if(x)for(var ke=0,dt=x.length;ke<dt;++ke)if((V=x[ke]).type===m.type&&V.name===m.name)return this.removeEventListener(V.type,V.listener,V.options),this.addEventListener(V.type,V.listener=X,V.options=o),void(V.value=O);this.addEventListener(m.type,X,o),V={type:m.type,name:m.name,value:O,listener:X,options:o},x?x.push(V):this.__on=[V]}}function Ke(m,O,o){var x=Y(m),V=x.CustomEvent;"function"==typeof V?V=new V(O,o):(V=x.document.createEvent("Event"),o?(V.initEvent(O,o.bubbles,o.cancelable),V.detail=o.detail):V.initEvent(O,!1,!1)),m.dispatchEvent(V)}function yt(m,O){return function(){return Ke(this,m,O)}}function re(m,O){return function(){return Ke(this,m,O.apply(this,arguments))}}Ot.prototype={add:function(m){this._names.indexOf(m)<0&&(this._names.push(m),this._node.setAttribute("class",this._names.join(" ")))},remove:function(m){var O=this._names.indexOf(m);O>=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(m){return this._names.indexOf(m)>=0}};var Vt=[null];function bi(m,O){this._groups=m,this._parents=O}function wi(){return new bi([[document.documentElement]],Vt)}bi.prototype=wi.prototype={constructor:bi,select:function L(m){"function"!=typeof m&&(m=h(m));for(var O=this._groups,o=O.length,x=new Array(o),V=0;V<o;++V)for(var Ut,Bt,X=O[V],ke=X.length,dt=x[V]=new Array(ke),oi=0;oi<ke;++oi)(Ut=X[oi])&&(Bt=m.call(Ut,Ut.__data__,oi,X))&&("__data__"in Ut&&(Bt.__data__=Ut.__data__),dt[oi]=Bt);return new bi(x,this._parents)},selectAll:function E(m){m="function"==typeof m?function k(m){return function(){var O=m.apply(this,arguments);return null==O?[]:w(O)}}(m):S(m);for(var O=this._groups,o=O.length,x=[],V=[],X=0;X<o;++X)for(var Ut,ke=O[X],dt=ke.length,Bt=0;Bt<dt;++Bt)(Ut=ke[Bt])&&(x.push(m.call(Ut,Ut.__data__,Bt,ke)),V.push(Ut));return new bi(x,V)},selectChild:function de(m){return this.select(null==m?ee:function ne(m){return function(){return j.call(this.children,m)}}("function"==typeof m?m:W(m)))},selectChildren:function $(m){return this.selectAll(null==m?ie:function le(m){return function(){return te.call(this.children,m)}}("function"==typeof m?m:W(m)))},filter:function ge(m){"function"!=typeof m&&(m=U(m));for(var O=this._groups,o=O.length,x=new Array(o),V=0;V<o;++V)for(var Ut,X=O[V],ke=X.length,dt=x[V]=[],Bt=0;Bt<ke;++Bt)(Ut=X[Bt])&&m.call(Ut,Ut.__data__,Bt,X)&&dt.push(Ut);return new bi(x,this._parents)},data:function I(m,O){if(!arguments.length)return Array.from(this,T);var o=O?v:c,x=this._parents,V=this._groups;"function"!=typeof m&&(m=u(m));for(var X=V.length,ke=new Array(X),dt=new Array(X),Ut=new Array(X),Bt=0;Bt<X;++Bt){var oi=x[Bt],xi=V[Bt],Ci=xi.length,Ti=w(m.call(oi,oi&&oi.__data__,Bt,x)),nn=Ti.length,Mn=dt[Bt]=new Array(nn),Ai=ke[Bt]=new Array(nn),gn=Ut[Bt]=new Array(Ci);o(oi,xi,Mn,Ai,gn,Ti,O);for(var Un,Rn,Cn=0,vn=0;Cn<nn;++Cn)if(Un=Mn[Cn]){for(Cn>=vn&&(vn=Cn+1);!(Rn=Ai[vn])&&++vn<nn;);Un._next=Rn||null}}return(ke=new bi(ke,x))._enter=dt,ke._exit=Ut,ke},enter:function i(){return new bi(this._enter||this._groups.map(C),this._parents)},exit:function y(){return new bi(this._exit||this._groups.map(C),this._parents)},join:function n(m,O,o){var x=this.enter(),V=this,X=this.exit();return x="function"==typeof m?m(x):x.append(m+""),null!=O&&(V=O(V)),null==o?X.remove():o(X),x&&V?x.merge(V).order():V},merge:function _(m){if(!(m instanceof bi))throw new Error("invalid merge");for(var O=this._groups,o=m._groups,x=O.length,X=Math.min(x,o.length),ke=new Array(x),dt=0;dt<X;++dt)for(var Ci,Ut=O[dt],Bt=o[dt],oi=Ut.length,xi=ke[dt]=new Array(oi),Ti=0;Ti<oi;++Ti)(Ci=Ut[Ti]||Bt[Ti])&&(xi[Ti]=Ci);for(;dt<x;++dt)ke[dt]=O[dt];return new bi(ke,this._parents)},selection:function Xi(){return this},order:function B(){for(var m=this._groups,O=-1,o=m.length;++O<o;)for(var ke,x=m[O],V=x.length-1,X=x[V];--V>=0;)(ke=x[V])&&(X&&4^ke.compareDocumentPosition(X)&&X.parentNode.insertBefore(ke,X),X=ke);return this},sort:function N(m){function O(xi,Ci){return xi&&Ci?m(xi.__data__,Ci.__data__):!xi-!Ci}m||(m=H);for(var o=this._groups,x=o.length,V=new Array(x),X=0;X<x;++X){for(var Bt,ke=o[X],dt=ke.length,Ut=V[X]=new Array(dt),oi=0;oi<dt;++oi)(Bt=ke[oi])&&(Ut[oi]=Bt);Ut.sort(O)}return new bi(V,this._parents).order()},call:function J(){var m=arguments[0];return arguments[0]=this,m.apply(null,arguments),this},nodes:function ue(){return Array.from(this)},node:function xe(){for(var m=this._groups,O=0,o=m.length;O<o;++O)for(var x=m[O],V=0,X=x.length;V<X;++V){var ke=x[V];if(ke)return ke}return null},size:function Pe(){let m=0;for(const O of this)++m;return m},empty:function Se(){return!this.node()},each:function Q(m){for(var O=this._groups,o=0,x=O.length;o<x;++o)for(var dt,V=O[o],X=0,ke=V.length;X<ke;++X)(dt=V[X])&&m.call(dt,dt.__data__,X,V);return this},attr:function ye(m,O){var o=q(m);if(arguments.length<2){var x=this.node();return o.local?x.getAttributeNS(o.space,o.local):x.getAttribute(o)}return this.each((null==O?o.local?ut:Ae:"function"==typeof O?o.local?we:ae:o.local?De:Ie)(o,O))},style:function He(m,O,o){return arguments.length>1?this.each((null==O?z:"function"==typeof O?fe:be)(m,O,null==o?"":o)):pt(this.node(),m)},property:function Wt(m,O){return arguments.length>1?this.each((null==O?et:"function"==typeof O?di:Lt)(m,O)):this.node()[m]},classed:function Kt(m,O){var o=Gt(m+"");if(arguments.length<2){for(var x=ui(this.node()),V=-1,X=o.length;++V<X;)if(!x.contains(o[V]))return!1;return!0}return this.each(("function"==typeof O?ei:O?tt:xt)(o,O))},text:function ve(m){return arguments.length?this.each(null==m?Re:("function"==typeof m?ce:Oe)(m)):this.node().textContent},html:function it(m){return arguments.length?this.each(null==m?ht:("function"==typeof m?Ht:mt)(m)):this.node().innerHTML},raise:function nt(){return this.each(Ne)},lower:function Ee(){return this.each(Xe)},append:function Ct(m){var O="function"==typeof m?m:lt(m);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},insert:function Jt(m,O){var o="function"==typeof m?m:lt(m),x=null==O?mi:"function"==typeof O?O:h(O);return this.select(function(){return this.insertBefore(o.apply(this,arguments),x.apply(this,arguments)||null)})},remove:function Ki(){return this.each($t)},clone:function Ji(m){return this.select(m?ai:hi)},datum:function Gi(m){return arguments.length?this.property("__data__",m):this.node().__data__},on:function _e(m,O,o){var V,ke,x=Ui(m+""),X=x.length;if(!(arguments.length<2)){for(dt=O?Tt:Be,V=0;V<X;++V)this.each(dt(x[V],O,o));return this}var dt=this.node().__on;if(dt)for(var oi,Ut=0,Bt=dt.length;Ut<Bt;++Ut)for(V=0,oi=dt[Ut];V<X;++V)if((ke=x[V]).type===oi.type&&ke.name===oi.name)return oi.value},dispatch:function qe(m,O){return this.each(("function"==typeof O?re:yt)(m,O))},[Symbol.iterator]:function*bt(){for(var m=this._groups,O=0,o=m.length;O<o;++O)for(var ke,x=m[O],V=0,X=x.length;V<X;++V)(ke=x[V])&&(yield ke)}};const Zi=wi;var mn={value:()=>{}};function ti(){for(var x,m=0,O=arguments.length,o={};m<O;++m){if(!(x=arguments[m]+"")||x in o||/[\s.]/.test(x))throw new Error("illegal type: "+x);o[x]=[]}return new Pi(o)}function Pi(m){this._=m}function st(m,O){return m.trim().split(/^|\s+/).map(function(o){var x="",V=o.indexOf(".");if(V>=0&&(x=o.slice(V+1),o=o.slice(0,V)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:x}})}function Rt(m,O){for(var V,o=0,x=m.length;o<x;++o)if((V=m[o]).name===O)return V.value}function Zt(m,O,o){for(var x=0,V=m.length;x<V;++x)if(m[x].name===O){m[x]=mn,m=m.slice(0,x).concat(m.slice(x+1));break}return null!=o&&m.push({name:O,value:o}),m}Pi.prototype=ti.prototype={constructor:Pi,on:function(m,O){var V,o=this._,x=st(m+"",o),X=-1,ke=x.length;if(!(arguments.length<2)){if(null!=O&&"function"!=typeof O)throw new Error("invalid callback: "+O);for(;++X<ke;)if(V=(m=x[X]).type)o[V]=Zt(o[V],m.name,O);else if(null==O)for(V in o)o[V]=Zt(o[V],m.name,null);return this}for(;++X<ke;)if((V=(m=x[X]).type)&&(V=Rt(o[V],m.name)))return V},copy:function(){var m={},O=this._;for(var o in O)m[o]=O[o].slice();return new Pi(m)},call:function(m,O){if((V=arguments.length-2)>0)for(var V,X,o=new Array(V),x=0;x<V;++x)o[x]=arguments[x+2];if(!this._.hasOwnProperty(m))throw new Error("unknown type: "+m);for(x=0,V=(X=this._[m]).length;x<V;++x)X[x].value.apply(O,o)},apply:function(m,O,o){if(!this._.hasOwnProperty(m))throw new Error("unknown type: "+m);for(var x=this._[m],V=0,X=x.length;V<X;++V)x[V].value.apply(O,o)}};const fi=ti;function Nn(m,O,o){m.prototype=O.prototype=o,o.constructor=m}function $n(m,O){var o=Object.create(m.prototype);for(var x in O)o[x]=O[x];return o}function _n(){}var ji=1/.7,wn="\\s*([+-]?\\d+)\\s*",Kn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lr=/^#([0-9a-f]{3,8})$/,qr=new RegExp("^rgb\\("+[wn,wn,wn]+"\\)$"),zr=new RegExp("^rgb\\("+[nr,nr,nr]+"\\)$"),ls=new RegExp("^rgba\\("+[wn,wn,wn,Kn]+"\\)$"),Jr=new RegExp("^rgba\\("+[nr,nr,nr,Kn]+"\\)$"),zs=new RegExp("^hsl\\("+[Kn,nr,nr]+"\\)$"),Ms=new RegExp("^hsla\\("+[Kn,nr,nr,Kn]+"\\)$"),cs={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 Xr(){return this.rgb().formatHex()}function ws(){return this.rgb().formatRgb()}function ds(m){var O,o;return m=(m+"").trim().toLowerCase(),(O=lr.exec(m))?(o=O[1].length,O=parseInt(O[1],16),6===o?Ws(O):3===o?new cr(O>>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?Dr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?Dr(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=qr.exec(m))?new cr(O[1],O[2],O[3],1):(O=zr.exec(m))?new cr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=ls.exec(m))?Dr(O[1],O[2],O[3],O[4]):(O=Jr.exec(m))?Dr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=zs.exec(m))?ms(O[1],O[2]/100,O[3]/100,1):(O=Ms.exec(m))?ms(O[1],O[2]/100,O[3]/100,O[4]):cs.hasOwnProperty(m)?Ws(cs[m]):"transparent"===m?new cr(NaN,NaN,NaN,0):null}function Ws(m){return new cr(m>>16&255,m>>8&255,255&m,1)}function Dr(m,O,o,x){return x<=0&&(m=O=o=NaN),new cr(m,O,o,x)}function Zn(m){return m instanceof _n||(m=ds(m)),m?new cr((m=m.rgb()).r,m.g,m.b,m.opacity):new cr}function Vr(m,O,o,x){return 1===arguments.length?Zn(m):new cr(m,O,o,null==x?1:x)}function cr(m,O,o,x){this.r=+m,this.g=+O,this.b=+o,this.opacity=+x}function Ys(){return"#"+js(this.r)+js(this.g)+js(this.b)}function Zr(){var m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===m?")":", "+m+")")}function js(m){return((m=Math.max(0,Math.min(255,Math.round(m)||0)))<16?"0":"")+m.toString(16)}function ms(m,O,o,x){return x<=0?m=O=o=NaN:o<=0||o>=1?m=O=NaN:O<=0&&(m=NaN),new Ir(m,O,o,x)}function dr(m){if(m instanceof Ir)return new Ir(m.h,m.s,m.l,m.opacity);if(m instanceof _n||(m=ds(m)),!m)return new Ir;if(m instanceof Ir)return m;var O=(m=m.rgb()).r/255,o=m.g/255,x=m.b/255,V=Math.min(O,o,x),X=Math.max(O,o,x),ke=NaN,dt=X-V,Ut=(X+V)/2;return dt?(ke=O===X?(o-x)/dt+6*(o<x):o===X?(x-O)/dt+2:(O-o)/dt+4,dt/=Ut<.5?X+V:2-X-V,ke*=60):dt=Ut>0&&Ut<1?0:ke,new Ir(ke,dt,Ut,m.opacity)}function Ir(m,O,o,x){this.h=+m,this.s=+O,this.l=+o,this.opacity=+x}function Tr(m,O,o){return 255*(m<60?O+(o-O)*m/60:m<180?o:m<240?O+(o-O)*(240-m)/60:O)}function is(m,O,o,x,V){var X=m*m,ke=X*m;return((1-3*m+3*X-ke)*O+(4-6*X+3*ke)*o+(1+3*m+3*X-3*ke)*x+ke*V)/6}Nn(_n,ds,{copy:function(m){return Object.assign(new this.constructor,this,m)},displayable:function(){return this.rgb().displayable()},hex:Xr,formatHex:Xr,formatHsl:function $r(){return dr(this).formatHsl()},formatRgb:ws,toString:ws}),Nn(cr,Vr,$n(_n,{brighter:function(m){return m=null==m?ji:Math.pow(ji,m),new cr(this.r*m,this.g*m,this.b*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new cr(this.r*m,this.g*m,this.b*m,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ys,formatHex:Ys,formatRgb:Zr,toString:Zr})),Nn(Ir,function gs(m,O,o,x){return 1===arguments.length?dr(m):new Ir(m,O,o,null==x?1:x)},$n(_n,{brighter:function(m){return m=null==m?ji:Math.pow(ji,m),new Ir(this.h,this.s,this.l*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new Ir(this.h,this.s,this.l*m,this.opacity)},rgb:function(){var m=this.h%360+360*(this.h<0),O=isNaN(m)||isNaN(this.s)?0:this.s,o=this.l,x=o+(o<.5?o:1-o)*O,V=2*o-x;return new cr(Tr(m>=240?m-240:m+120,V,x),Tr(m,V,x),Tr(m<120?m+240:m-120,V,x),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===m?")":", "+m+")")}}));const _s=m=>()=>m;function rs(m,O){var o=O-m;return o?function or(m,O){return function(o){return m+o*O}}(m,o):_s(isNaN(m)?O:m)}const Wr=function m(O){var o=function er(m){return 1==(m=+m)?rs:function(O,o){return o-O?function ns(m,O,o){return m=Math.pow(m,o),O=Math.pow(O,o)-m,o=1/o,function(x){return Math.pow(m+x*O,o)}}(O,o,m):_s(isNaN(O)?o:O)}}(O);function x(V,X){var ke=o((V=Vr(V)).r,(X=Vr(X)).r),dt=o(V.g,X.g),Ut=o(V.b,X.b),Bt=rs(V.opacity,X.opacity);return function(oi){return V.r=ke(oi),V.g=dt(oi),V.b=Ut(oi),V.opacity=Bt(oi),V+""}}return x.gamma=m,x}(1);function Or(m){return function(O){var ke,dt,o=O.length,x=new Array(o),V=new Array(o),X=new Array(o);for(ke=0;ke<o;++ke)dt=Vr(O[ke]),x[ke]=dt.r||0,V[ke]=dt.g||0,X[ke]=dt.b||0;return x=m(x),V=m(V),X=m(X),dt.opacity=1,function(Ut){return dt.r=x(Ut),dt.g=V(Ut),dt.b=X(Ut),dt+""}}}function Vn(m,O){var ke,o=O?O.length:0,x=m?Math.min(o,m.length):0,V=new Array(x),X=new Array(o);for(ke=0;ke<x;++ke)V[ke]=li(m[ke],O[ke]);for(;ke<o;++ke)X[ke]=O[ke];return function(dt){for(ke=0;ke<x;++ke)X[ke]=V[ke](dt);return X}}function je(m,O){var o=new Date;return m=+m,O=+O,function(x){return o.setTime(m*(1-x)+O*x),o}}function Et(m,O){return m=+m,O=+O,function(o){return m*(1-o)+O*o}}function Je(m,O){var V,o={},x={};for(V in(null===m||"object"!=typeof m)&&(m={}),(null===O||"object"!=typeof O)&&(O={}),O)V in m?o[V]=li(m[V],O[V]):x[V]=O[V];return function(X){for(V in o)x[V]=o[V](X);return x}}Or(function Ss(m){var O=m.length-1;return function(o){var x=o<=0?o=0:o>=1?(o=1,O-1):Math.floor(o*O),V=m[x],X=m[x+1];return is((o-x/O)*O,x>0?m[x-1]:2*V-X,V,X,x<O-1?m[x+2]:2*X-V)}}),Or(function Rs(m){var O=m.length;return function(o){var x=Math.floor(((o%=1)<0?++o:o)*O);return is((o-x/O)*O,m[(x+O-1)%O],m[x%O],m[(x+1)%O],m[(x+2)%O])}});var Pt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ri=new RegExp(Pt.source,"g");function tn(m,O){var x,V,X,o=Pt.lastIndex=ri.lastIndex=0,ke=-1,dt=[],Ut=[];for(m+="",O+="";(x=Pt.exec(m))&&(V=ri.exec(O));)(X=V.index)>o&&(X=O.slice(o,X),dt[ke]?dt[ke]+=X:dt[++ke]=X),(x=x[0])===(V=V[0])?dt[ke]?dt[ke]+=V:dt[++ke]=V:(dt[++ke]=null,Ut.push({i:ke,x:Et(x,V)})),o=ri.lastIndex;return o<O.length&&(X=O.slice(o),dt[ke]?dt[ke]+=X:dt[++ke]=X),dt.length<2?Ut[0]?function Ii(m){return function(O){return m(O)+""}}(Ut[0].x):function Mi(m){return function(){return m}}(O):(O=Ut.length,function(Bt){for(var xi,oi=0;oi<O;++oi)dt[(xi=Ut[oi]).i]=xi.x(Bt);return dt.join("")})}function tr(m,O){O||(O=[]);var V,o=m?Math.min(O.length,m.length):0,x=O.slice();return function(X){for(V=0;V<o;++V)x[V]=m[V]*(1-X)+O[V]*X;return x}}function li(m,O){var x,o=typeof O;return null==O||"boolean"===o?_s(O):("number"===o?Et:"string"===o?(x=ds(O))?(O=x,Wr):tn:O instanceof ds?Wr:O instanceof Date?je:function It(m){return ArrayBuffer.isView(m)&&!(m instanceof DataView)}(O)?tr:Array.isArray(O)?Vn:"function"!=typeof O.valueOf&&"function"!=typeof O.toString||isNaN(O)?Je:Et)(m,O)}var Fe,Dt,Ei=0,Wi=0,$e=0,yi=0,qi=0,Bn=0,Br="object"==typeof performance&&performance.now?performance:Date,ta="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(m){setTimeout(m,17)};function ys(){return qi||(ta(Es),qi=Br.now()+Bn)}function Es(){qi=0}function Hi(){this._call=this._time=this._next=null}function Wn(m,O,o){var x=new Hi;return x.restart(m,O,o),x}function wr(){qi=(yi=Br.now())+Bn,Ei=Wi=0;try{!function Fa(){ys(),++Ei;for(var O,m=Fe;m;)(O=qi-m._time)>=0&&m._call.call(null,O),m=m._next;--Ei}()}finally{Ei=0,function va(){for(var m,o,O=Fe,x=1/0;O;)O._call?(x>O._time&&(x=O._time),m=O,O=O._next):(o=O._next,O._next=null,O=m?m._next=o:Fe=o);Dt=m,Ts(x)}(),qi=0}}function $a(){var m=Br.now(),O=m-yi;O>1e3&&(Bn-=O,yi=m)}function Ts(m){Ei||(Wi&&(Wi=clearTimeout(Wi)),m-qi>24?(m<1/0&&(Wi=setTimeout(wr,m-Br.now()-Bn)),$e&&($e=clearInterval($e))):($e||(yi=Br.now(),$e=setInterval($a,1e3)),Ei=1,ta(wr)))}function La(m,O,o){var x=new Hi;return x.restart(V=>{x.stop(),m(V+O)},O=null==O?0:+O,o),x}Hi.prototype=Wn.prototype={constructor:Hi,restart:function(m,O,o){if("function"!=typeof m)throw new TypeError("callback is not a function");o=(null==o?ys():+o)+(null==O?0:+O),!this._next&&Dt!==this&&(Dt?Dt._next=this:Fe=this,Dt=this),this._call=m,this._time=o,Ts()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ts())}};var Da=fi("start","end","cancel","interrupt"),za=[];function pe(m,O,o,x,V,X){var ke=m.__transition;if(ke){if(o in ke)return}else m.__transition={};!function ii(m,O,o){var V,x=m.__transition;function ke(Bt){var oi,xi,Ci,Ti;if(1!==o.state)return Ut();for(oi in x)if((Ti=x[oi]).name===o.name){if(3===Ti.state)return La(ke);4===Ti.state?(Ti.state=6,Ti.timer.stop(),Ti.on.call("interrupt",m,m.__data__,Ti.index,Ti.group),delete x[oi]):+oi<O&&(Ti.state=6,Ti.timer.stop(),Ti.on.call("cancel",m,m.__data__,Ti.index,Ti.group),delete x[oi])}if(La(function(){3===o.state&&(o.state=4,o.timer.restart(dt,o.delay,o.time),dt(Bt))}),o.state=2,o.on.call("start",m,m.__data__,o.index,o.group),2===o.state){for(o.state=3,V=new Array(Ci=o.tween.length),oi=0,xi=-1;oi<Ci;++oi)(Ti=o.tween[oi].value.call(m,m.__data__,o.index,o.group))&&(V[++xi]=Ti);V.length=xi+1}}function dt(Bt){for(var oi=Bt<o.duration?o.ease.call(null,Bt/o.duration):(o.timer.restart(Ut),o.state=5,1),xi=-1,Ci=V.length;++xi<Ci;)V[xi].call(m,oi);5===o.state&&(o.on.call("end",m,m.__data__,o.index,o.group),Ut())}function Ut(){for(var Bt in o.state=6,o.timer.stop(),delete x[O],x)return;delete m.__transition}x[O]=o,o.timer=Wn(function X(Bt){o.state=1,o.timer.restart(ke,o.delay,o.time),o.delay<=Bt&&ke(Bt-o.delay)},0,o.time)}(m,o,{name:O,index:x,group:V,on:Da,tween:za,time:X.time,delay:X.delay,duration:X.duration,ease:X.ease,timer:null,state:0})}function Ye(m,O){var o=zt(m,O);if(o.state>0)throw new Error("too late; already scheduled");return o}function Mt(m,O){var o=zt(m,O);if(o.state>3)throw new Error("too late; already running");return o}function zt(m,O){var o=m.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var Ln,Oi=180/Math.PI,en={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hn(m,O,o,x,V,X){var ke,dt,Ut;return(ke=Math.sqrt(m*m+O*O))&&(m/=ke,O/=ke),(Ut=m*o+O*x)&&(o-=m*Ut,x-=O*Ut),(dt=Math.sqrt(o*o+x*x))&&(o/=dt,x/=dt,Ut/=dt),m*x<O*o&&(m=-m,O=-O,Ut=-Ut,ke=-ke),{translateX:V,translateY:X,rotate:Math.atan2(O,m)*Oi,skewX:Math.atan(Ut)*Oi,scaleX:ke,scaleY:dt}}function kn(m,O,o,x){function V(Bt){return Bt.length?Bt.pop()+" ":""}return function(Bt,oi){var xi=[],Ci=[];return Bt=m(Bt),oi=m(oi),function X(Bt,oi,xi,Ci,Ti,nn){if(Bt!==xi||oi!==Ci){var Mn=Ti.push("translate(",null,O,null,o);nn.push({i:Mn-4,x:Et(Bt,xi)},{i:Mn-2,x:Et(oi,Ci)})}else(xi||Ci)&&Ti.push("translate("+xi+O+Ci+o)}(Bt.translateX,Bt.translateY,oi.translateX,oi.translateY,xi,Ci),function ke(Bt,oi,xi,Ci){Bt!==oi?(Bt-oi>180?oi+=360:oi-Bt>180&&(Bt+=360),Ci.push({i:xi.push(V(xi)+"rotate(",null,x)-2,x:Et(Bt,oi)})):oi&&xi.push(V(xi)+"rotate("+oi+x)}(Bt.rotate,oi.rotate,xi,Ci),function dt(Bt,oi,xi,Ci){Bt!==oi?Ci.push({i:xi.push(V(xi)+"skewX(",null,x)-2,x:Et(Bt,oi)}):oi&&xi.push(V(xi)+"skewX("+oi+x)}(Bt.skewX,oi.skewX,xi,Ci),function Ut(Bt,oi,xi,Ci,Ti,nn){if(Bt!==xi||oi!==Ci){var Mn=Ti.push(V(Ti)+"scale(",null,",",null,")");nn.push({i:Mn-4,x:Et(Bt,xi)},{i:Mn-2,x:Et(oi,Ci)})}else(1!==xi||1!==Ci)&&Ti.push(V(Ti)+"scale("+xi+","+Ci+")")}(Bt.scaleX,Bt.scaleY,oi.scaleX,oi.scaleY,xi,Ci),Bt=oi=null,function(Ti){for(var Ai,nn=-1,Mn=Ci.length;++nn<Mn;)xi[(Ai=Ci[nn]).i]=Ai.x(Ti);return xi.join("")}}}var rr=kn(function zn(m){const O=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(m+"");return O.isIdentity?en:hn(O.a,O.b,O.c,O.d,O.e,O.f)},"px, ","px)","deg)"),Pr=kn(function En(m){return null!=m&&(Ln||(Ln=document.createElementNS("http://www.w3.org/2000/svg","g")),Ln.setAttribute("transform",m),m=Ln.transform.baseVal.consolidate())?hn((m=m.matrix).a,m.b,m.c,m.d,m.e,m.f):en},", ",")",")");function Sr(m,O){var o,x;return function(){var V=Mt(this,m),X=V.tween;if(X!==o)for(var ke=0,dt=(x=o=X).length;ke<dt;++ke)if(x[ke].name===O){(x=x.slice()).splice(ke,1);break}V.tween=x}}function Nr(m,O,o){var x,V;if("function"!=typeof o)throw new Error;return function(){var X=Mt(this,m),ke=X.tween;if(ke!==x){V=(x=ke).slice();for(var dt={name:O,value:o},Ut=0,Bt=V.length;Ut<Bt;++Ut)if(V[Ut].name===O){V[Ut]=dt;break}Ut===Bt&&V.push(dt)}X.tween=V}}function br(m,O,o){var x=m._id;return m.each(function(){var V=Mt(this,x);(V.value||(V.value={}))[O]=o.apply(this,arguments)}),function(V){return zt(V,x).value[O]}}function Yr(m,O){var o;return("number"==typeof O?Et:O instanceof ds?Wr:(o=ds(O))?(O=o,Wr):tn)(m,O)}function Gn(m){return function(){this.removeAttribute(m)}}function yr(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Ks(m,O,o){var x,X,V=o+"";return function(){var ke=this.getAttribute(m);return ke===V?null:ke===x?X:X=O(x=ke,o)}}function Hs(m,O,o){var x,X,V=o+"";return function(){var ke=this.getAttributeNS(m.space,m.local);return ke===V?null:ke===x?X:X=O(x=ke,o)}}function wa(m,O,o){var x,V,X;return function(){var ke,Ut,dt=o(this);return null==dt?void this.removeAttribute(m):(ke=this.getAttribute(m))===(Ut=dt+"")?null:ke===x&&Ut===V?X:(V=Ut,X=O(x=ke,dt))}}function Qs(m,O,o){var x,V,X;return function(){var ke,Ut,dt=o(this);return null==dt?void this.removeAttributeNS(m.space,m.local):(ke=this.getAttributeNS(m.space,m.local))===(Ut=dt+"")?null:ke===x&&Ut===V?X:(V=Ut,X=O(x=ke,dt))}}function ya(m,O){return function(o){this.setAttribute(m,O.call(this,o))}}function xa(m,O){return function(o){this.setAttributeNS(m.space,m.local,O.call(this,o))}}function dn(m,O){var o,x;function V(){var X=O.apply(this,arguments);return X!==x&&(o=(x=X)&&xa(m,X)),o}return V._value=O,V}function xn(m,O){var o,x;function V(){var X=O.apply(this,arguments);return X!==x&&(o=(x=X)&&ya(m,X)),o}return V._value=O,V}function Jn(m,O){return function(){Ye(this,m).delay=+O.apply(this,arguments)}}function gr(m,O){return O=+O,function(){Ye(this,m).delay=O}}function Gr(m,O){return function(){Mt(this,m).duration=+O.apply(this,arguments)}}function ia(m,O){return O=+O,function(){Mt(this,m).duration=O}}function rt(m,O){if("function"!=typeof O)throw new Error;return function(){Mt(this,m).ease=O}}function Di(m,O,o){var x,V,X=function _i(m){return(m+"").trim().split(/^|\s+/).every(function(O){var o=O.indexOf(".");return o>=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Ye:Mt;return function(){var ke=X(this,m),dt=ke.on;dt!==x&&(V=(x=dt).copy()).on(O,o),ke.on=V}}var ir=Zi.prototype.constructor;function Me(m){return function(){this.style.removeProperty(m)}}function Qt(m,O,o){return function(x){this.style.setProperty(m,O.call(this,x),o)}}function si(m,O,o){var x,V;function X(){var ke=O.apply(this,arguments);return ke!==V&&(x=(V=ke)&&Qt(m,ke,o)),x}return X._value=O,X}function _r(m){return function(O){this.textContent=m.call(this,O)}}function hr(m){var O,o;function x(){var V=m.apply(this,arguments);return V!==o&&(O=(o=V)&&_r(V)),O}return x._value=m,x}var Qo=0;function Ds(m,O,o,x){this._groups=m,this._parents=O,this._name=o,this._id=x}function Bc(){return++Qo}var eo=Zi.prototype;Ds.prototype=function Ua(m){return Zi().transition(m)}.prototype={constructor:Ds,select:function fn(m){var O=this._name,o=this._id;"function"!=typeof m&&(m=h(m));for(var x=this._groups,V=x.length,X=new Array(V),ke=0;ke<V;++ke)for(var oi,xi,dt=x[ke],Ut=dt.length,Bt=X[ke]=new Array(Ut),Ci=0;Ci<Ut;++Ci)(oi=dt[Ci])&&(xi=m.call(oi,oi.__data__,Ci,dt))&&("__data__"in oi&&(xi.__data__=oi.__data__),Bt[Ci]=xi,pe(Bt[Ci],O,o,Ci,Bt,zt(oi,o)));return new Ds(X,this._parents,O,o)},selectAll:function Qn(m){var O=this._name,o=this._id;"function"!=typeof m&&(m=S(m));for(var x=this._groups,V=x.length,X=[],ke=[],dt=0;dt<V;++dt)for(var oi,Ut=x[dt],Bt=Ut.length,xi=0;xi<Bt;++xi)if(oi=Ut[xi]){for(var Ti,Ci=m.call(oi,oi.__data__,xi,Ut),nn=zt(oi,o),Mn=0,Ai=Ci.length;Mn<Ai;++Mn)(Ti=Ci[Mn])&&pe(Ti,O,o,Mn,Ci,nn);X.push(Ci),ke.push(oi)}return new Ds(X,ke,O,o)},filter:function Xt(m){"function"!=typeof m&&(m=U(m));for(var O=this._groups,o=O.length,x=new Array(o),V=0;V<o;++V)for(var Ut,X=O[V],ke=X.length,dt=x[V]=[],Bt=0;Bt<ke;++Bt)(Ut=X[Bt])&&m.call(Ut,Ut.__data__,Bt,X)&&dt.push(Ut);return new Ds(x,this._parents,this._name,this._id)},merge:function pi(m){if(m._id!==this._id)throw new Error;for(var O=this._groups,o=m._groups,x=O.length,X=Math.min(x,o.length),ke=new Array(x),dt=0;dt<X;++dt)for(var Ci,Ut=O[dt],Bt=o[dt],oi=Ut.length,xi=ke[dt]=new Array(oi),Ti=0;Ti<oi;++Ti)(Ci=Ut[Ti]||Bt[Ti])&&(xi[Ti]=Ci);for(;dt<x;++dt)ke[dt]=O[dt];return new Ds(ke,this._parents,this._name,this._id)},selection:function ss(){return new ir(this._groups,this._parents)},transition:function Ia(){for(var m=this._name,O=this._id,o=Bc(),x=this._groups,V=x.length,X=0;X<V;++X)for(var Ut,ke=x[X],dt=ke.length,Bt=0;Bt<dt;++Bt)if(Ut=ke[Bt]){var oi=zt(Ut,O);pe(Ut,m,o,Bt,ke,{time:oi.time+oi.delay+oi.duration,delay:0,duration:oi.duration,ease:oi.ease})}return new Ds(x,this._parents,m,o)},call:eo.call,nodes:eo.nodes,node:eo.node,size:eo.size,empty:eo.empty,each:eo.each,on:function Fi(m,O){var o=this._id;return arguments.length<2?zt(this.node(),o).on.on(m):this.each(Di(o,m,O))},attr:function As(m,O){var o=q(m),x="transform"===o?Pr:Yr;return this.attrTween(m,"function"==typeof O?(o.local?Qs:wa)(o,x,br(this,"attr."+m,O)):null==O?(o.local?yr:Gn)(o):(o.local?Hs:Ks)(o,x,O))},attrTween:function Tn(m,O){var o="attr."+m;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==O)return this.tween(o,null);if("function"!=typeof O)throw new Error;var x=q(m);return this.tween(o,(x.local?dn:xn)(x,O))},style:function kt(m,O,o){var x="transform"==(m+="")?rr:Yr;return null==O?this.styleTween(m,function Ve(m,O){var o,x,V;return function(){var X=pt(this,m),ke=(this.style.removeProperty(m),pt(this,m));return X===ke?null:X===o&&ke===x?V:V=O(o=X,x=ke)}}(m,x)).on("end.style."+m,Me(m)):"function"==typeof O?this.styleTween(m,function Qe(m,O,o){var x,V,X;return function(){var ke=pt(this,m),dt=o(this),Ut=dt+"";return null==dt&&(this.style.removeProperty(m),Ut=dt=pt(this,m)),ke===Ut?null:ke===x&&Ut===V?X:(V=Ut,X=O(x=ke,dt))}}(m,x,br(this,"style."+m,O))).each(function ct(m,O){var o,x,V,dt,X="style."+O,ke="end."+X;return function(){var Ut=Mt(this,m),Bt=Ut.on,oi=null==Ut.value[X]?dt||(dt=Me(O)):void 0;(Bt!==o||V!==oi)&&(x=(o=Bt).copy()).on(ke,V=oi),Ut.on=x}}(this._id,m)):this.styleTween(m,function me(m,O,o){var x,X,V=o+"";return function(){var ke=pt(this,m);return ke===V?null:ke===x?X:X=O(x=ke,o)}}(m,x,O),o).on("end.style."+m,null)},styleTween:function Li(m,O,o){var x="style."+(m+="");if(arguments.length<2)return(x=this.tween(x))&&x._value;if(null==O)return this.tween(x,null);if("function"!=typeof O)throw new Error;return this.tween(x,si(m,O,null==o?"":o))},text:function bn(m){return this.tween("text","function"==typeof m?function In(m){return function(){var O=m(this);this.textContent=null==O?"":O}}(br(this,"text",m)):function an(m){return function(){this.textContent=m}}(null==m?"":m+""))},textTween:function oa(m){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(null==m)return this.tween(O,null);if("function"!=typeof m)throw new Error;return this.tween(O,hr(m))},remove:function rn(){return this.on("end.remove",function ln(m){return function(){var O=this.parentNode;for(var o in this.__transition)if(+o!==m)return;O&&O.removeChild(this)}}(this._id))},tween:function es(m,O){var o=this._id;if(m+="",arguments.length<2){for(var ke,x=zt(this.node(),o).tween,V=0,X=x.length;V<X;++V)if((ke=x[V]).name===m)return ke.value;return null}return this.each((null==O?Sr:Nr)(o,m,O))},delay:function Ls(m){var O=this._id;return arguments.length?this.each(("function"==typeof m?Jn:gr)(O,m)):zt(this.node(),O).delay},duration:function ur(m){var O=this._id;return arguments.length?this.each(("function"==typeof m?Gr:ia)(O,m)):zt(this.node(),O).duration},ease:function St(m){var O=this._id;return arguments.length?this.each(rt(O,m)):zt(this.node(),O).ease},easeVarying:function Ft(m){if("function"!=typeof m)throw new Error;return this.each(function wt(m,O){return function(){var o=O.apply(this,arguments);if("function"!=typeof o)throw new Error;Mt(this,m).ease=o}}(this._id,m))},end:function Ko(){var m,O,o=this,x=o._id,V=o.size();return new Promise(function(X,ke){var dt={value:ke},Ut={value:function(){0==--V&&X()}};o.each(function(){var Bt=Mt(this,x),oi=Bt.on;oi!==m&&((O=(m=oi).copy())._.cancel.push(dt),O._.interrupt.push(dt),O._.end.push(Ut)),Bt.on=O}),0===V&&X()})},[Symbol.iterator]:eo[Symbol.iterator]};var pl={time:null,delay:0,duration:250,ease:function Zl(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}};function Wl(m,O){for(var o;!(o=m.__transition)||!(o=o[O]);)if(!(m=m.parentNode))throw new Error(`transition ${O} not found`);return o}Zi.prototype.interrupt=function gi(m){return this.each(function(){!function ni(m,O){var x,V,ke,o=m.__transition,X=!0;if(o){for(ke in O=null==O?null:O+"",o)(x=o[ke]).name===O?(V=x.state>2&&x.state<5,x.state=6,x.timer.stop(),x.on.call(V?"interrupt":"cancel",m,m.__data__,x.index,x.group),delete o[ke]):X=!1;X&&delete m.__transition}}(this,m)})},Zi.prototype.transition=function po(m){var O,o;m instanceof Ds?(O=m._id,m=m._name):(O=Bc(),(o=pl).time=ys(),m=null==m?null:m+"");for(var x=this._groups,V=x.length,X=0;X<V;++X)for(var Ut,ke=x[X],dt=ke.length,Bt=0;Bt<dt;++Bt)(Ut=ke[Bt])&&pe(Ut,m,O,Bt,ke,o||Wl(Ut,O));return new Ds(x,this._parents,m,O)};Math;function sr(m){return{type:m}}function el(m,O){return m<O?-1:m>O?1:m>=O?0:NaN}function io(m){let O=m,o=m;function x(ke,dt,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);Ut<Bt;){const oi=Ut+Bt>>>1;o(ke[oi],dt)<0?Ut=oi+1:Bt=oi}return Ut}return 1===m.length&&(O=(ke,dt)=>m(ke)-dt,o=function G0(m){return(O,o)=>el(m(O),o)}(m)),{left:x,center:function X(ke,dt,Ut,Bt){null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);const oi=x(ke,dt,Ut,Bt-1);return oi>Ut&&O(ke[oi-1],dt)>-O(ke[oi],dt)?oi-1:oi},right:function V(ke,dt,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=ke.length);Ut<Bt;){const oi=Ut+Bt>>>1;o(ke[oi],dt)>0?Bt=oi:Ut=oi+1}return Ut}}}["w","e"].map(sr),["n","s"].map(sr),["n","w","e","s","nw","ne","sw","se"].map(sr);var mo=Math.sqrt(50),Ql=Math.sqrt(10),ql=Math.sqrt(2);function Gc(m,O,o){var x=(O-m)/Math.max(0,o),V=Math.floor(Math.log(x)/Math.LN10),X=x/Math.pow(10,V);return V>=0?(X>=mo?10:X>=Ql?5:X>=ql?2:1)*Math.pow(10,V):-Math.pow(10,-V)/(X>=mo?10:X>=Ql?5:X>=ql?2:1)}function vl(m,O,o){var x=Math.abs(O-m)/Math.max(0,o),V=Math.pow(10,Math.floor(Math.log(x)/Math.LN10)),X=x/V;return X>=mo?V*=10:X>=Ql?V*=5:X>=ql&&(V*=2),O<m?-V:V}const Oa=1e3,na=6e4,ba=60*na,ko=24*ba,go=7*ko,yl=30*ko,Po=365*ko;var Jl=new Date,Xl=new Date;function Is(m,O,o,x){function V(X){return m(X=0===arguments.length?new Date:new Date(+X)),X}return V.floor=function(X){return m(X=new Date(+X)),X},V.ceil=function(X){return m(X=new Date(X-1)),O(X,1),m(X),X},V.round=function(X){var ke=V(X),dt=V.ceil(X);return X-ke<dt-X?ke:dt},V.offset=function(X,ke){return O(X=new Date(+X),null==ke?1:Math.floor(ke)),X},V.range=function(X,ke,dt){var Bt,Ut=[];if(X=V.ceil(X),dt=null==dt?1:Math.floor(dt),!(X<ke&&dt>0))return Ut;do{Ut.push(Bt=new Date(+X)),O(X,dt),m(X)}while(Bt<X&&X<ke);return Ut},V.filter=function(X){return Is(function(ke){if(ke>=ke)for(;m(ke),!X(ke);)ke.setTime(ke-1)},function(ke,dt){if(ke>=ke)if(dt<0)for(;++dt<=0;)for(;O(ke,-1),!X(ke););else for(;--dt>=0;)for(;O(ke,1),!X(ke););})},o&&(V.count=function(X,ke){return Jl.setTime(+X),Xl.setTime(+ke),m(Jl),m(Xl),Math.floor(o(Jl,Xl))},V.every=function(X){return X=Math.floor(X),isFinite(X)&&X>0?X>1?V.filter(x?function(ke){return x(ke)%X==0}:function(ke){return V.count(0,ke)%X==0}):V:null}),V}var tl=Is(function(){},function(m,O){m.setTime(+m+O)},function(m,O){return O-m});tl.every=function(m){return m=Math.floor(m),isFinite(m)&&m>0?m>1?Is(function(O){O.setTime(Math.floor(O/m)*m)},function(O,o){O.setTime(+O+o*m)},function(O,o){return(o-O)/m}):tl:null};const e2=tl;const Ro=Is(function(m){m.setTime(m-m.getMilliseconds())},function(m,O){m.setTime(+m+O*Oa)},function(m,O){return(O-m)/Oa},function(m){return m.getUTCSeconds()});const ec=Is(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Oa)},function(m,O){m.setTime(+m+O*na)},function(m,O){return(O-m)/na},function(m){return m.getMinutes()});const Wc=Is(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Oa-m.getMinutes()*na)},function(m,O){m.setTime(+m+O*ba)},function(m,O){return(O-m)/ba},function(m){return m.getHours()});const Us=Is(m=>m.setHours(0,0,0,0),(m,O)=>m.setDate(m.getDate()+O),(m,O)=>(O-m-(O.getTimezoneOffset()-m.getTimezoneOffset())*na)/ko,m=>m.getDate()-1);function no(m){return Is(function(O){O.setDate(O.getDate()-(O.getDay()+7-m)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*na)/go})}var Xs=no(0),Cl=no(1),Ga=(no(2),no(3),no(4));const rl=(no(5),no(6),Is(function(m){m.setDate(1),m.setHours(0,0,0,0)},function(m,O){m.setMonth(m.getMonth()+O)},function(m,O){return O.getMonth()-m.getMonth()+12*(O.getFullYear()-m.getFullYear())},function(m){return m.getMonth()}));var rc=Is(function(m){m.setMonth(0,1),m.setHours(0,0,0,0)},function(m,O){m.setFullYear(m.getFullYear()+O)},function(m,O){return O.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});rc.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Is(function(O){O.setFullYear(Math.floor(O.getFullYear()/m)*m),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*m)}):null};const ka=rc;const a2=Is(function(m){m.setUTCSeconds(0,0)},function(m,O){m.setTime(+m+O*na)},function(m,O){return(O-m)/na},function(m){return m.getUTCMinutes()});const Ml=Is(function(m){m.setUTCMinutes(0,0,0)},function(m,O){m.setTime(+m+O*ba)},function(m,O){return(O-m)/ba},function(m){return m.getUTCHours()});const wl=Is(function(m){m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCDate(m.getUTCDate()+O)},function(m,O){return(O-m)/ko},function(m){return m.getUTCDate()-1});function ca(m){return Is(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-m)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/go})}var oc=ca(0),sl=ca(1),Ho=(ca(2),ca(3),ca(4));const cc=(ca(5),ca(6),Is(function(m){m.setUTCDate(1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCMonth(m.getUTCMonth()+O)},function(m,O){return O.getUTCMonth()-m.getUTCMonth()+12*(O.getUTCFullYear()-m.getUTCFullYear())},function(m){return m.getUTCMonth()}));var dc=Is(function(m){m.setUTCMonth(0,1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCFullYear(m.getUTCFullYear()+O)},function(m,O){return O.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});dc.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Is(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/m)*m),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*m)}):null};const zo=dc;function yo(m,O,o,x,V,X){const ke=[[Ro,1,Oa],[Ro,5,5e3],[Ro,15,15e3],[Ro,30,3e4],[X,1,na],[X,5,5*na],[X,15,15*na],[X,30,30*na],[V,1,ba],[V,3,3*ba],[V,6,6*ba],[V,12,12*ba],[x,1,ko],[x,2,2*ko],[o,1,go],[O,1,yl],[O,3,3*yl],[m,1,Po]];function Ut(Bt,oi,xi){const Ci=Math.abs(oi-Bt)/xi,Ti=io(([,,Ai])=>Ai).right(ke,Ci);if(Ti===ke.length)return m.every(vl(Bt/Po,oi/Po,xi));if(0===Ti)return e2.every(Math.max(vl(Bt,oi,xi),1));const[nn,Mn]=ke[Ci/ke[Ti-1][2]<ke[Ti][2]/Ci?Ti-1:Ti];return nn.every(Mn)}return[function dt(Bt,oi,xi){const Ci=oi<Bt;Ci&&([Bt,oi]=[oi,Bt]);const Ti=xi&&"function"==typeof xi.range?xi:Ut(Bt,oi,xi),nn=Ti?Ti.range(Bt,+oi+1):[];return Ci?nn.reverse():nn},Ut]}const[Jc,Za]=yo(zo,cc,oc,wl,Ml,a2),[xo,Xc]=yo(ka,rl,Xs,Us,Wc,ec);function Z(m){if(0<=m.y&&m.y<100){var O=new Date(-1,m.m,m.d,m.H,m.M,m.S,m.L);return O.setFullYear(m.y),O}return new Date(m.y,m.m,m.d,m.H,m.M,m.S,m.L)}function Le(m){if(0<=m.y&&m.y<100){var O=new Date(Date.UTC(-1,m.m,m.d,m.H,m.M,m.S,m.L));return O.setUTCFullYear(m.y),O}return new Date(Date.UTC(m.y,m.m,m.d,m.H,m.M,m.S,m.L))}function P(m,O,o){return{y:m,m:O,d:o,H:0,M:0,S:0,L:0}}var at={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,Vi=/^%/,On=/[\\^$*+?|[\]().{}]/g;function $i(m,O,o){var x=m<0?"-":"",V=(x?-m:m)+"",X=V.length;return x+(X<o?new Array(o-X+1).join(O)+V:V)}function vr(m){return m.replace(On,"\\$&")}function fs(m){return new RegExp("^(?:"+m.map(vr).join("|")+")","i")}function $s(m){return new Map(m.map((O,o)=>[O.toLowerCase(),o]))}function da(m,O,o){var x=jt.exec(O.slice(o,o+1));return x?(m.w=+x[0],o+x[0].length):-1}function ua(m,O,o){var x=jt.exec(O.slice(o,o+1));return x?(m.u=+x[0],o+x[0].length):-1}function ar(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.U=+x[0],o+x[0].length):-1}function ea(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.V=+x[0],o+x[0].length):-1}function Pn(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.W=+x[0],o+x[0].length):-1}function fr(m,O,o){var x=jt.exec(O.slice(o,o+4));return x?(m.y=+x[0],o+x[0].length):-1}function ks(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.y=+x[0]+(+x[0]>68?1900:2e3),o+x[0].length):-1}function Rd(m,O,o){var x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return x?(m.Z=x[1]?0:-(x[2]+(x[3]||"00")),o+x[0].length):-1}function bs(m,O,o){var x=jt.exec(O.slice(o,o+1));return x?(m.q=3*x[0]-3,o+x[0].length):-1}function q0(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.m=x[0]-1,o+x[0].length):-1}function J0(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.d=+x[0],o+x[0].length):-1}function g2(m,O,o){var x=jt.exec(O.slice(o,o+3));return x?(m.m=0,m.d=+x[0],o+x[0].length):-1}function _2(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.H=+x[0],o+x[0].length):-1}function X0(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.M=+x[0],o+x[0].length):-1}function Hd(m,O,o){var x=jt.exec(O.slice(o,o+2));return x?(m.S=+x[0],o+x[0].length):-1}function $0(m,O,o){var x=jt.exec(O.slice(o,o+3));return x?(m.L=+x[0],o+x[0].length):-1}function Fd(m,O,o){var x=jt.exec(O.slice(o,o+6));return x?(m.L=Math.floor(x[0]/1e3),o+x[0].length):-1}function e3(m,O,o){var x=Vi.exec(O.slice(o,o+1));return x?o+x[0].length:-1}function s6(m,O,o){var x=jt.exec(O.slice(o));return x?(m.Q=+x[0],o+x[0].length):-1}function zd(m,O,o){var x=jt.exec(O.slice(o));return x?(m.s=+x[0],o+x[0].length):-1}function Sl(m,O){return $i(m.getDate(),O,2)}function ha(m,O){return $i(m.getHours(),O,2)}function $c(m,O){return $i(m.getHours()%12||12,O,2)}function t3(m,O){return $i(1+Us.count(ka(m),m),O,3)}function v2(m,O){return $i(m.getMilliseconds(),O,3)}function ra(m,O){return v2(m,O)+"000"}function uc(m,O){return $i(m.getMonth()+1,O,2)}function e1(m,O){return $i(m.getMinutes(),O,2)}function Vd(m,O){return $i(m.getSeconds(),O,2)}function Bd(m){var O=m.getDay();return 0===O?7:O}function i3(m,O){return $i(Xs.count(ka(m)-1,m),O,2)}function y2(m){var O=m.getDay();return O>=4||0===O?Ga(m):Ga.ceil(m)}function n3(m,O){return m=y2(m),$i(Ga.count(ka(m),m)+(4===ka(m).getDay()),O,2)}function r3(m){return m.getDay()}function s3(m,O){return $i(Cl.count(ka(m)-1,m),O,2)}function Ud(m,O){return $i(m.getFullYear()%100,O,2)}function Gd(m,O){return $i((m=y2(m)).getFullYear()%100,O,2)}function x2(m,O){return $i(m.getFullYear()%1e4,O,4)}function Zd(m,O){var o=m.getDay();return $i((m=o>=4||0===o?Ga(m):Ga.ceil(m)).getFullYear()%1e4,O,4)}function Wd(m){var O=m.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+$i(O/60|0,"0",2)+$i(O%60,"0",2)}function t1(m,O){return $i(m.getUTCDate(),O,2)}function a3(m,O){return $i(m.getUTCHours(),O,2)}function Yd(m,O){return $i(m.getUTCHours()%12||12,O,2)}function hc(m,O){return $i(1+wl.count(zo(m),m),O,3)}function o3(m,O){return $i(m.getUTCMilliseconds(),O,3)}function l3(m,O){return o3(m,O)+"000"}function jd(m,O){return $i(m.getUTCMonth()+1,O,2)}function Kd(m,O){return $i(m.getUTCMinutes(),O,2)}function c3(m,O){return $i(m.getUTCSeconds(),O,2)}function d3(m){var O=m.getUTCDay();return 0===O?7:O}function Qd(m,O){return $i(oc.count(zo(m)-1,m),O,2)}function b2(m){var O=m.getUTCDay();return O>=4||0===O?Ho(m):Ho.ceil(m)}function qd(m,O){return m=b2(m),$i(Ho.count(zo(m),m)+(4===zo(m).getUTCDay()),O,2)}function Jd(m){return m.getUTCDay()}function u3(m,O){return $i(sl.count(zo(m)-1,m),O,2)}function h3(m,O){return $i(m.getUTCFullYear()%100,O,2)}function Xd(m,O){return $i((m=b2(m)).getUTCFullYear()%100,O,2)}function $d(m,O){return $i(m.getUTCFullYear()%1e4,O,4)}function al(m,O){var o=m.getUTCDay();return $i((m=o>=4||0===o?Ho(m):Ho.ceil(m)).getUTCFullYear()%1e4,O,4)}function ro(){return"+0000"}function f3(){return"%"}function eu(m){return+m}function n1(m){return Math.floor(+m/1e3)}function El(m){return null===m?NaN:+m}!function w2(m){(function he(m){var O=m.dateTime,o=m.date,x=m.time,V=m.periods,X=m.days,ke=m.shortDays,dt=m.months,Ut=m.shortMonths,Bt=fs(V),oi=$s(V),xi=fs(X),Ci=$s(X),Ti=fs(ke),nn=$s(ke),Mn=fs(dt),Ai=$s(dt),gn=fs(Ut),Cn=$s(Ut),vn={a:function cn(pn){return ke[pn.getDay()]},A:function ga(pn){return X[pn.getDay()]},b:function Er(pn){return Ut[pn.getMonth()]},B:function Fs(pn){return dt[pn.getMonth()]},c:null,d:Sl,e:Sl,f:ra,g:Gd,G:Zd,H:ha,I:$c,j:t3,L:v2,m:uc,M:e1,p:function Qr(pn){return V[+(pn.getHours()>=12)]},q:function Cs(pn){return 1+~~(pn.getMonth()/3)},Q:eu,s:n1,S:Vd,u:Bd,U:i3,V:n3,w:r3,W:s3,x:null,X:null,y:Ud,Y:x2,Z:Wd,"%":f3},Un={a:function Yo(pn){return ke[pn.getUTCDay()]},A:function ho(pn){return X[pn.getUTCDay()]},b:function Fr(pn){return Ut[pn.getUTCMonth()]},B:function Rc(pn){return dt[pn.getUTCMonth()]},c:null,d:t1,e:t1,f:l3,g:Xd,G:al,H:a3,I:Yd,j:hc,L:o3,m:jd,M:Kd,p:function Zs(pn){return V[+(pn.getUTCHours()>=12)]},q:function H1(pn){return 1+~~(pn.getUTCMonth()/3)},Q:eu,s:n1,S:c3,u:d3,U:Qd,V:qd,w:Jd,W:u3,x:null,X:null,y:h3,Y:$d,Z:ro,"%":f3},Rn={a:function Rr(pn,qn,pr){var Yi=Ti.exec(qn.slice(pr));return Yi?(pn.w=nn.get(Yi[0].toLowerCase()),pr+Yi[0].length):-1},A:function Hn(pn,qn,pr){var Yi=xi.exec(qn.slice(pr));return Yi?(pn.w=Ci.get(Yi[0].toLowerCase()),pr+Yi[0].length):-1},b:function Ns(pn,qn,pr){var Yi=gn.exec(qn.slice(pr));return Yi?(pn.m=Cn.get(Yi[0].toLowerCase()),pr+Yi[0].length):-1},B:function xr(pn,qn,pr){var Yi=Mn.exec(qn.slice(pr));return Yi?(pn.m=Ai.get(Yi[0].toLowerCase()),pr+Yi[0].length):-1},c:function Hr(pn,qn,pr){return Ar(pn,O,qn,pr)},d:J0,e:J0,f:Fd,g:ks,G:fr,H:_2,I:_2,j:g2,L:$0,m:q0,M:X0,p:function ma(pn,qn,pr){var Yi=Bt.exec(qn.slice(pr));return Yi?(pn.p=oi.get(Yi[0].toLowerCase()),pr+Yi[0].length):-1},q:bs,Q:s6,s:zd,S:Hd,u:ua,U:ar,V:ea,w:da,W:Pn,x:function Ma(pn,qn,pr){return Ar(pn,o,qn,pr)},X:function Kr(pn,qn,pr){return Ar(pn,x,qn,pr)},y:ks,Y:fr,Z:Rd,"%":e3};function Sn(pn,qn){return function(pr){var sa,Fn,ps,Yi=[],os=-1,Mr=0,_a=pn.length;for(pr instanceof Date||(pr=new Date(+pr));++os<_a;)37===pn.charCodeAt(os)&&(Yi.push(pn.slice(Mr,os)),null!=(Fn=at[sa=pn.charAt(++os)])?sa=pn.charAt(++os):Fn="e"===sa?" ":"0",(ps=qn[sa])&&(sa=ps(pr,Fn)),Yi.push(sa),Mr=os+1);return Yi.push(pn.slice(Mr,os)),Yi.join("")}}function Cr(pn,qn){return function(pr){var Mr,_a,Yi=P(1900,void 0,1);if(Ar(Yi,pn,pr+="",0)!=pr.length)return null;if("Q"in Yi)return new Date(Yi.Q);if("s"in Yi)return new Date(1e3*Yi.s+("L"in Yi?Yi.L:0));if(qn&&!("Z"in Yi)&&(Yi.Z=0),"p"in Yi&&(Yi.H=Yi.H%12+12*Yi.p),void 0===Yi.m&&(Yi.m="q"in Yi?Yi.q:0),"V"in Yi){if(Yi.V<1||Yi.V>53)return null;"w"in Yi||(Yi.w=1),"Z"in Yi?(_a=(Mr=Le(P(Yi.y,0,1))).getUTCDay(),Mr=_a>4||0===_a?sl.ceil(Mr):sl(Mr),Mr=wl.offset(Mr,7*(Yi.V-1)),Yi.y=Mr.getUTCFullYear(),Yi.m=Mr.getUTCMonth(),Yi.d=Mr.getUTCDate()+(Yi.w+6)%7):(_a=(Mr=Z(P(Yi.y,0,1))).getDay(),Mr=_a>4||0===_a?Cl.ceil(Mr):Cl(Mr),Mr=Us.offset(Mr,7*(Yi.V-1)),Yi.y=Mr.getFullYear(),Yi.m=Mr.getMonth(),Yi.d=Mr.getDate()+(Yi.w+6)%7)}else("W"in Yi||"U"in Yi)&&("w"in Yi||(Yi.w="u"in Yi?Yi.u%7:"W"in Yi?1:0),_a="Z"in Yi?Le(P(Yi.y,0,1)).getUTCDay():Z(P(Yi.y,0,1)).getDay(),Yi.m=0,Yi.d="W"in Yi?(Yi.w+6)%7+7*Yi.W-(_a+5)%7:Yi.w+7*Yi.U-(_a+6)%7);return"Z"in Yi?(Yi.H+=Yi.Z/100|0,Yi.M+=Yi.Z%100,Le(Yi)):Z(Yi)}}function Ar(pn,qn,pr,Yi){for(var sa,Fn,os=0,Mr=qn.length,_a=pr.length;os<Mr;){if(Yi>=_a)return-1;if(37===(sa=qn.charCodeAt(os++))){if(sa=qn.charAt(os++),!(Fn=Rn[sa in at?qn.charAt(os++):sa])||(Yi=Fn(pn,pr,Yi))<0)return-1}else if(sa!=pr.charCodeAt(Yi++))return-1}return Yi}return vn.x=Sn(o,vn),vn.X=Sn(x,vn),vn.c=Sn(O,vn),Un.x=Sn(o,Un),Un.X=Sn(x,Un),Un.c=Sn(O,Un),{format:function(pn){var qn=Sn(pn+="",vn);return qn.toString=function(){return pn},qn},parse:function(pn){var qn=Cr(pn+="",!1);return qn.toString=function(){return pn},qn},utcFormat:function(pn){var qn=Sn(pn+="",Un);return qn.toString=function(){return pn},qn},utcParse:function(pn){var qn=Cr(pn+="",!0);return qn.toString=function(){return pn},qn}}})(m)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const E2=io(el).right,ru=(io(El),E2);function Tl(m,O){return m=+m,O=+O,function(o){return Math.round(m*(1-o)+O*o)}}function m3(m){return+m}var T2=[0,1];function Vo(m){return m}function A2(m,O){return(O-=m=+m)?function(o){return(o-m)/O}:function r1(m){return function(){return m}}(isNaN(O)?NaN:.5)}function g3(m,O,o){var x=m[0],V=m[1],X=O[0],ke=O[1];return V<x?(x=A2(V,x),X=o(ke,X)):(x=A2(x,V),X=o(X,ke)),function(dt){return X(x(dt))}}function au(m,O,o){var x=Math.min(m.length,O.length)-1,V=new Array(x),X=new Array(x),ke=-1;for(m[x]<m[0]&&(m=m.slice().reverse(),O=O.slice().reverse());++ke<x;)V[ke]=A2(m[ke],m[ke+1]),X[ke]=o(O[ke],O[ke+1]);return function(dt){var Ut=ru(m,dt,1,x)-1;return X[Ut](V[Ut](dt))}}function s1(m,O){return O.domain(m.domain()).range(m.range()).interpolate(m.interpolate()).clamp(m.clamp()).unknown(m.unknown())}function L2(){return function ou(){var x,V,X,dt,Ut,Bt,m=T2,O=T2,o=li,ke=Vo;function oi(){var Ci=Math.min(m.length,O.length);return ke!==Vo&&(ke=function su(m,O){var o;return m>O&&(o=m,m=O,O=o),function(x){return Math.max(m,Math.min(O,x))}}(m[0],m[Ci-1])),dt=Ci>2?au:g3,Ut=Bt=null,xi}function xi(Ci){return null==Ci||isNaN(Ci=+Ci)?X:(Ut||(Ut=dt(m.map(x),O,o)))(x(ke(Ci)))}return xi.invert=function(Ci){return ke(V((Bt||(Bt=dt(O,m.map(x),Et)))(Ci)))},xi.domain=function(Ci){return arguments.length?(m=Array.from(Ci,m3),oi()):m.slice()},xi.range=function(Ci){return arguments.length?(O=Array.from(Ci),oi()):O.slice()},xi.rangeRound=function(Ci){return O=Array.from(Ci),o=Tl,oi()},xi.clamp=function(Ci){return arguments.length?(ke=!!Ci||Vo,oi()):ke!==Vo},xi.interpolate=function(Ci){return arguments.length?(o=Ci,oi()):o},xi.unknown=function(Ci){return arguments.length?(X=Ci,xi):X},function(Ci,Ti){return x=Ci,V=Ti,oi()}}()(Vo,Vo)}function Bo(m,O){switch(arguments.length){case 0:break;case 1:this.range(m);break;default:this.range(O).domain(m)}return this}var o1,ol=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pc(m){if(!(O=ol.exec(m)))throw new Error("invalid format: "+m);var O;return new a1({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function a1(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}function ll(m,O){if((o=(m=O?m.toExponential(O-1):m.toExponential()).indexOf("e"))<0)return null;var o,x=m.slice(0,o);return[x.length>1?x[0]+x.slice(2):x,+m.slice(o+1)]}function cl(m){return(m=ll(Math.abs(m)))?m[1]:NaN}function mc(m,O){var o=ll(m,O);if(!o)return m+"";var x=o[0],V=o[1];return V<0?"0."+new Array(-V).join("0")+x:x.length>V+1?x.slice(0,V+1)+"."+x.slice(V+1):x+new Array(V-x.length+2).join("0")}pc.prototype=a1.prototype,a1.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 c1={"%":(m,O)=>(100*m).toFixed(O),b:m=>Math.round(m).toString(2),c:m=>m+"",d:function du(m){return Math.abs(m=Math.round(m))>=1e21?m.toLocaleString("en").replace(/,/g,""):m.toString(10)},e:(m,O)=>m.toExponential(O),f:(m,O)=>m.toFixed(O),g:(m,O)=>m.toPrecision(O),o:m=>Math.round(m).toString(8),p:(m,O)=>mc(100*m,O),r:mc,s:function l1(m,O){var o=ll(m,O);if(!o)return m+"";var x=o[0],V=o[1],X=V-(o1=3*Math.max(-8,Math.min(8,Math.floor(V/3))))+1,ke=x.length;return X===ke?x:X>ke?x+new Array(X-ke+1).join("0"):X>0?x.slice(0,X)+"."+x.slice(X):"0."+new Array(1-X).join("0")+ll(m,Math.max(0,O+X-1))[0]},X:m=>Math.round(m).toString(16).toUpperCase(),x:m=>Math.round(m).toString(16)};function d1(m){return m}var h1,N2,b3,P2=Array.prototype.map,u1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function a6(m){var O=m.domain;return m.ticks=function(o){var x=O();return function $1(m,O,o){var x,X,ke,dt,V=-1;if(o=+o,(m=+m)==(O=+O)&&o>0)return[m];if((x=O<m)&&(X=m,m=O,O=X),0===(dt=Gc(m,O,o))||!isFinite(dt))return[];if(dt>0){let Ut=Math.round(m/dt),Bt=Math.round(O/dt);for(Ut*dt<m&&++Ut,Bt*dt>O&&--Bt,ke=new Array(X=Bt-Ut+1);++V<X;)ke[V]=(Ut+V)*dt}else{dt=-dt;let Ut=Math.round(m*dt),Bt=Math.round(O*dt);for(Ut/dt<m&&++Ut,Bt/dt>O&&--Bt,ke=new Array(X=Bt-Ut+1);++V<X;)ke[V]=(Ut+V)/dt}return x&&ke.reverse(),ke}(x[0],x[x.length-1],null==o?10:o)},m.tickFormat=function(o,x){var V=O();return function F2(m,O,o,x){var X,V=vl(m,O,o);switch((x=pc(null==x?",f":x)).type){case"s":var ke=Math.max(Math.abs(m),Math.abs(O));return null==x.precision&&!isNaN(X=function y3(m,O){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cl(O)/3)))-cl(Math.abs(m)))}(V,ke))&&(x.precision=X),b3(x,ke);case"":case"e":case"g":case"p":case"r":null==x.precision&&!isNaN(X=function R2(m,O){return m=Math.abs(m),O=Math.abs(O)-m,Math.max(0,cl(O)-cl(m))+1}(V,Math.max(Math.abs(m),Math.abs(O))))&&(x.precision=X-("e"===x.type));break;case"f":case"%":null==x.precision&&!isNaN(X=function H2(m){return Math.max(0,-cl(Math.abs(m)))}(V))&&(x.precision=X-2*("%"===x.type))}return N2(x)}(V[0],V[V.length-1],null==o?10:o,x)},m.nice=function(o){null==o&&(o=10);var Ut,Bt,x=O(),V=0,X=x.length-1,ke=x[V],dt=x[X],oi=10;for(dt<ke&&(Bt=ke,ke=dt,dt=Bt,Bt=V,V=X,X=Bt);oi-- >0;){if((Bt=Gc(ke,dt,o))===Ut)return x[V]=ke,x[X]=dt,O(x);if(Bt>0)ke=Math.floor(ke/Bt)*Bt,dt=Math.ceil(dt/Bt)*Bt;else{if(!(Bt<0))break;ke=Math.ceil(ke*Bt)/Bt,dt=Math.floor(dt*Bt)/Bt}Ut=Bt}return m},m}function bo(){var m=L2();return m.copy=function(){return s1(m,bo())},Bo.apply(m,arguments),a6(m)}function C3(m,O,o){m=+m,O=+O,o=(V=arguments.length)<2?(O=m,m=0,1):V<3?1:+o;for(var x=-1,V=0|Math.max(0,Math.ceil((O-m)/o)),X=new Array(V);++x<V;)X[x]=m+x*o;return X}!function uu(m){h1=function gc(m){var O=void 0===m.grouping||void 0===m.thousands?d1:function O2(m,O){return function(o,x){for(var V=o.length,X=[],ke=0,dt=m[0],Ut=0;V>0&&dt>0&&(Ut+dt+1>x&&(dt=Math.max(1,x-Ut)),X.push(o.substring(V-=dt,V+dt)),!((Ut+=dt+1)>x));)dt=m[ke=(ke+1)%m.length];return X.reverse().join(O)}}(P2.call(m.grouping,Number),m.thousands+""),o=void 0===m.currency?"":m.currency[0]+"",x=void 0===m.currency?"":m.currency[1]+"",V=void 0===m.decimal?".":m.decimal+"",X=void 0===m.numerals?d1:function x3(m){return function(O){return O.replace(/[0-9]/g,function(o){return m[+o]})}}(P2.call(m.numerals,String)),ke=void 0===m.percent?"%":m.percent+"",dt=void 0===m.minus?"\u2212":m.minus+"",Ut=void 0===m.nan?"NaN":m.nan+"";function Bt(xi){var Ci=(xi=pc(xi)).fill,Ti=xi.align,nn=xi.sign,Mn=xi.symbol,Ai=xi.zero,gn=xi.width,Cn=xi.comma,vn=xi.precision,Un=xi.trim,Rn=xi.type;"n"===Rn?(Cn=!0,Rn="g"):c1[Rn]||(void 0===vn&&(vn=12),Un=!0,Rn="g"),(Ai||"0"===Ci&&"="===Ti)&&(Ai=!0,Ci="0",Ti="=");var Sn="$"===Mn?o:"#"===Mn&&/[boxX]/.test(Rn)?"0"+Rn.toLowerCase():"",Cr="$"===Mn?x:/[%p]/.test(Rn)?ke:"",Ar=c1[Rn],ma=/[defgprs%]/.test(Rn);function Rr(Hn){var Hr,Ma,Kr,Ns=Sn,xr=Cr;if("c"===Rn)xr=Ar(Hn)+xr,Hn="";else{var cn=(Hn=+Hn)<0||1/Hn<0;if(Hn=isNaN(Hn)?Ut:Ar(Math.abs(Hn),vn),Un&&(Hn=function k2(m){e:for(var V,O=m.length,o=1,x=-1;o<O;++o)switch(m[o]){case".":x=V=o;break;case"0":0===x&&(x=o),V=o;break;default:if(!+m[o])break e;x>0&&(x=0)}return x>0?m.slice(0,x)+m.slice(V+1):m}(Hn)),cn&&0==+Hn&&"+"!==nn&&(cn=!1),Ns=(cn?"("===nn?nn:dt:"-"===nn||"("===nn?"":nn)+Ns,xr=("s"===Rn?u1[8+o1/3]:"")+xr+(cn&&"("===nn?")":""),ma)for(Hr=-1,Ma=Hn.length;++Hr<Ma;)if(48>(Kr=Hn.charCodeAt(Hr))||Kr>57){xr=(46===Kr?V+Hn.slice(Hr+1):Hn.slice(Hr))+xr,Hn=Hn.slice(0,Hr);break}}Cn&&!Ai&&(Hn=O(Hn,1/0));var ga=Ns.length+Hn.length+xr.length,Er=ga<gn?new Array(gn-ga+1).join(Ci):"";switch(Cn&&Ai&&(Hn=O(Er+Hn,Er.length?gn-xr.length:1/0),Er=""),Ti){case"<":Hn=Ns+Hn+xr+Er;break;case"=":Hn=Ns+Er+Hn+xr;break;case"^":Hn=Er.slice(0,ga=Er.length>>1)+Ns+Hn+xr+Er.slice(ga);break;default:Hn=Er+Ns+Hn+xr}return X(Hn)}return vn=void 0===vn?6:/[gprs]/.test(Rn)?Math.max(1,Math.min(21,vn)):Math.max(0,Math.min(20,vn)),Rr.toString=function(){return xi+""},Rr}return{format:Bt,formatPrefix:function oi(xi,Ci){var Ti=Bt(((xi=pc(xi)).type="f",xi)),nn=3*Math.max(-8,Math.min(8,Math.floor(cl(Ci)/3))),Mn=Math.pow(10,-nn),Ai=u1[8+nn/3];return function(gn){return Ti(Mn*gn)+Ai}}}}(m),N2=h1.format,b3=h1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const z2=Symbol("implicit");function _c(){var m=new Map,O=[],o=[],x=z2;function V(X){var ke=X+"",dt=m.get(ke);if(!dt){if(x!==z2)return x;m.set(ke,dt=O.push(X))}return o[(dt-1)%o.length]}return V.domain=function(X){if(!arguments.length)return O.slice();O=[],m=new Map;for(const ke of X){const dt=ke+"";m.has(dt)||m.set(dt,O.push(ke))}return V},V.range=function(X){return arguments.length?(o=Array.from(X),V):o.slice()},V.unknown=function(X){return arguments.length?(x=X,V):x},V.copy=function(){return _c(O,o).unknown(x)},Bo.apply(V,arguments),V}function Al(){var X,ke,m=_c().unknown(void 0),O=m.domain,o=m.range,x=0,V=1,dt=!1,Ut=0,Bt=0,oi=.5;function xi(){var Ci=O().length,Ti=V<x,nn=Ti?V:x,Mn=Ti?x:V;X=(Mn-nn)/Math.max(1,Ci-Ut+2*Bt),dt&&(X=Math.floor(X)),nn+=(Mn-nn-X*(Ci-Ut))*oi,ke=X*(1-Ut),dt&&(nn=Math.round(nn),ke=Math.round(ke));var Ai=C3(Ci).map(function(gn){return nn+X*gn});return o(Ti?Ai.reverse():Ai)}return delete m.unknown,m.domain=function(Ci){return arguments.length?(O(Ci),xi()):O()},m.range=function(Ci){return arguments.length?([x,V]=Ci,x=+x,V=+V,xi()):[x,V]},m.rangeRound=function(Ci){return[x,V]=Ci,x=+x,V=+V,dt=!0,xi()},m.bandwidth=function(){return ke},m.step=function(){return X},m.round=function(Ci){return arguments.length?(dt=!!Ci,xi()):dt},m.padding=function(Ci){return arguments.length?(Ut=Math.min(1,Bt=+Ci),xi()):Ut},m.paddingInner=function(Ci){return arguments.length?(Ut=Math.min(1,Ci),xi()):Ut},m.paddingOuter=function(Ci){return arguments.length?(Bt=+Ci,xi()):Bt},m.align=function(Ci){return arguments.length?(oi=Math.max(0,Math.min(1,Ci)),xi()):oi},m.copy=function(){return Al(O(),[x,V]).round(dt).paddingInner(Ut).paddingOuter(Bt).align(oi)},Bo.apply(xi(),arguments)}function pu(m,O,o=El){if(x=m.length){if((O=+O)<=0||x<2)return+o(m[0],0,m);if(O>=1)return+o(m[x-1],x-1,m);var x,V=(x-1)*O,X=Math.floor(V),ke=+o(m[X],X,m);return ke+(+o(m[X+1],X+1,m)-ke)*(V-X)}}function V2(){var x,m=[],O=[],o=[];function V(){var ke=0,dt=Math.max(1,O.length);for(o=new Array(dt-1);++ke<dt;)o[ke-1]=pu(m,ke/dt);return X}function X(ke){return null==ke||isNaN(ke=+ke)?x:O[ru(o,ke)]}return X.invertExtent=function(ke){var dt=O.indexOf(ke);return dt<0?[NaN,NaN]:[dt>0?o[dt-1]:m[0],dt<o.length?o[dt]:m[m.length-1]]},X.domain=function(ke){if(!arguments.length)return m.slice();m=[];for(let dt of ke)null!=dt&&!isNaN(dt=+dt)&&m.push(dt);return m.sort(el),V()},X.range=function(ke){return arguments.length?(O=Array.from(ke),V()):O.slice()},X.unknown=function(ke){return arguments.length?(x=ke,X):x},X.quantiles=function(){return o.slice()},X.copy=function(){return V2().domain(m).range(O).unknown(x)},Bo.apply(X,arguments)}p(7293);const mu=["caretElm"];function M3(m,O){}const w3=function(m){return{model:m}};function S3(m,O){if(1&m&&(t.TgZ(0,"span"),t.YNc(1,M3,0,0,"ng-template",5),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",o.template)("ngTemplateOutletContext",t.VKq(2,w3,o.context))}}function gu(m,O){if(1&m&&t._UZ(0,"span",6),2&m){const o=t.oxw();t.Q6J("innerHTML",o.title,t.oJD)}}function Yn(m,O){if(1&m&&(t.TgZ(0,"header",4)(1,"span",5),t._uU(2),t.qZA()()),2&m){const o=t.oxw();t.xp6(2),t.Oqu(o.title)}}function E3(m,O){if(1&m){const o=t.EpF();t.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),t.NdJ("select",function(V){return t.CHM(o),t.oxw().labelClick.emit(V)})("activate",function(V){return t.CHM(o),t.oxw().activate(V)})("deactivate",function(V){return t.CHM(o),t.oxw().deactivate(V)}),t.qZA()()}if(2&m){const o=O.$implicit,x=t.oxw();t.xp6(1),t.Q6J("label",o.label)("formattedLabel",o.formattedLabel)("color",o.color)("isActive",x.isActive(o))}}function T3(m,O){if(1&m&&(t.O4$(),t.kcU(),t._UZ(0,"ngx-charts-scale-legend",4)),2&m){const o=t.oxw();t.Q6J("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("valueRange",o.legendOptions.domain)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)}}function A3(m,O){if(1&m){const o=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"ngx-charts-legend",5),t.NdJ("labelClick",function(V){return t.CHM(o),t.oxw().legendLabelClick.emit(V)})("labelActivate",function(V){return t.CHM(o),t.oxw().legendLabelActivate.emit(V)})("labelDeactivate",function(V){return t.CHM(o),t.oxw().legendLabelDeactivate.emit(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("data",o.legendOptions.domain)("title",o.legendOptions.title)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)("activeEntries",o.activeEntries)}}const vc=["*"],Ya=["ngx-charts-axis-label",""],B2=["ticksel"],_u=["ngx-charts-x-axis-ticks",""];function U2(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g",3)(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",4),t._uU(4),t.qZA()()),2&m){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.tickTransform(o)),t.xp6(2),t.Oqu(x.tickFormat(o)),t.xp6(1),t.Udp("font-size","12px"),t.uIk("text-anchor",x.textAnchor)("transform",x.textTransform),t.xp6(1),t.hij(" ",x.tickTrim(x.tickFormat(o))," ")}}function Co(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",6),t.qZA()),2&m){const o=t.oxw(2);t.uIk("transform",o.gridLineTransform()),t.xp6(1),t.uIk("y1",-o.gridLineHeight)}}function G2(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Co,2,2,"g",5),t.qZA()),2&m){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.tickTransform(o)),t.xp6(1),t.Q6J("ngIf",x.showGridLines)}}const L3=["ngx-charts-x-axis",""];function f1(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(V){return t.CHM(o),t.oxw().emitTicksHeight(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("trimTicks",o.trimTicks)("rotateTicks",o.rotateTicks)("maxTickLength",o.maxTickLength)("tickFormatting",o.tickFormatting)("tickArguments",o.tickArguments)("tickStroke",o.tickStroke)("scale",o.xScale)("orient",o.xOrient)("showGridLines",o.showGridLines)("gridLineHeight",o.dims.height)("width",o.dims.width)("tickValues",o.ticks)}}function l6(m,O){if(1&m&&(t.O4$(),t._UZ(0,"g",3)),2&m){const o=t.oxw();t.Q6J("label",o.labelText)("offset",o.labelOffset)("orient",o.orientation.Bottom)("height",o.dims.height)("width",o.dims.width)}}const yc=["ngx-charts-y-axis-ticks",""];function c6(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g",4)(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",5),t._uU(4),t.qZA()()),2&m){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.transform(o)),t.xp6(2),t.Oqu(x.tickFormat(o)),t.xp6(1),t.Udp("font-size","12px"),t.uIk("dy",x.dy)("x",x.x1)("y",x.y1)("text-anchor",x.textAnchor),t.xp6(1),t.hij(" ",x.tickTrim(x.tickFormat(o))," ")}}function p1(m,O){if(1&m&&(t.O4$(),t._UZ(0,"path",6)),2&m){const o=t.oxw();t.uIk("d",o.referenceAreaPath)("transform",o.gridLineTransform())}}function m1(m,O){if(1&m&&(t.O4$(),t._UZ(0,"line",9)),2&m){const o=t.oxw(3);t.uIk("x2",o.gridLineWidth)}}function g1(m,O){if(1&m&&(t.O4$(),t._UZ(0,"line",9)),2&m){const o=t.oxw(3);t.uIk("x2",-o.gridLineWidth)}}function Z2(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,m1,1,1,"line",8),t.YNc(2,g1,1,1,"line",8),t.qZA()),2&m){const o=t.oxw(2);t.uIk("transform",o.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",o.orient===o.Orientation.Left),t.xp6(1),t.Q6J("ngIf",o.orient===o.Orientation.Right)}}function W2(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Z2,3,3,"g",7),t.qZA()),2&m){const o=O.$implicit,x=t.oxw();t.uIk("transform",x.transform(o)),t.xp6(1),t.Q6J("ngIf",x.showGridLines)}}function d6(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g")(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",11),t._uU(4),t.qZA()()),2&m){const o=t.oxw(2).$implicit,x=t.oxw();t.xp6(2),t.Oqu(x.tickTrim(x.tickFormat(o.value))),t.xp6(1),t.uIk("dy",x.dy)("y",-6)("x",x.gridLineWidth)("text-anchor",x.textAnchor),t.xp6(1),t.hij(" ",o.name," ")}}function D3(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",10),t.YNc(2,d6,5,6,"g",7),t.qZA()),2&m){const o=t.oxw().$implicit,x=t.oxw();t.uIk("transform",x.transform(o.value)),t.xp6(1),t.uIk("x2",x.gridLineWidth)("transform",x.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",x.showRefLabels)}}function vu(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,D3,3,4,"g",7),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.showRefLines)}}const I3=["ngx-charts-y-axis",""];function yu(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(V){return t.CHM(o),t.oxw().emitTicksWidth(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("trimTicks",o.trimTicks)("maxTickLength",o.maxTickLength)("tickFormatting",o.tickFormatting)("tickArguments",o.tickArguments)("tickValues",o.ticks)("tickStroke",o.tickStroke)("scale",o.yScale)("orient",o.yOrient)("showGridLines",o.showGridLines)("gridLineWidth",o.dims.width)("referenceLines",o.referenceLines)("showRefLines",o.showRefLines)("showRefLabels",o.showRefLabels)("height",o.dims.height)}}function O3(m,O){if(1&m&&(t.O4$(),t._UZ(0,"g",3)),2&m){const o=t.oxw();t.Q6J("label",o.labelText)("offset",o.labelOffset)("orient",o.yOrient)("height",o.dims.height)("width",o.dims.width)}}const xu=["ngx-charts-svg-linear-gradient",""];function bu(m,O){if(1&m&&(t.O4$(),t._UZ(0,"stop")),2&m){const o=O.$implicit;t.Udp("stop-color",o.color)("stop-opacity",o.opacity),t.uIk("offset",o.offset+"%")}}const h6=["ngx-charts-grid-panel",""],f6=["ngx-charts-grid-panel-series",""];function p6(m,O){if(1&m&&(t.O4$(),t._UZ(0,"g",1)),2&m){const o=O.$implicit;t.ekj("grid-panel",!0)("odd","odd"===o.class)("even","even"===o.class),t.Q6J("height",o.height)("width",o.width)("x",o.x)("y",o.y)}}const B3=["tooltipTemplate"],so=function(m,O){return[m,O]},X2=".ngx-charts-outer{-webkit-animation:chartFadeIn linear .6s;animation:chartFadeIn linear .6s}@-webkit-keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}@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",K3=["ngx-charts-bar",""];function Ta(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"defs"),t._UZ(1,"g",2),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("orientation",o.orientation)("name",o.gradientId)("stops",o.gradientStops)}}const Q3=["ngx-charts-bar-label",""],t0=["ngx-charts-series-vertical",""];function Gu(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(V){return t.CHM(o),t.oxw(2).onClick(V)})("activate",function(V){return t.CHM(o),t.oxw(2).activate.emit(V)})("deactivate",function(V){return t.CHM(o),t.oxw(2).deactivate.emit(V)}),t.qZA()}if(2&m){const o=O.$implicit,x=t.oxw(2);t.Q6J("@animationState","active")("@.disabled",!x.animations)("width",o.width)("height",o.height)("x",o.x)("y",o.y)("fill",o.color)("stops",o.gradientStops)("data",o.data)("orientation",x.barOrientation.Vertical)("roundEdges",o.roundEdges)("gradient",x.gradient)("ariaLabel",o.ariaLabel)("isActive",x.isActive(o.data))("tooltipDisabled",x.tooltipDisabled)("tooltipPlacement",x.tooltipPlacement)("tooltipType",x.tooltipType)("tooltipTitle",x.tooltipTemplate?void 0:o.tooltipText)("tooltipTemplate",x.tooltipTemplate)("tooltipContext",o.data)("noBarWhenZero",x.noBarWhenZero)("animations",x.animations)}}function $3(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Gu,1,22,"g",1),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.bars)("ngForTrackBy",o.trackBy)}}function Zu(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(V){return t.CHM(o),t.oxw(2).onClick(V)})("activate",function(V){return t.CHM(o),t.oxw(2).activate.emit(V)})("deactivate",function(V){return t.CHM(o),t.oxw(2).deactivate.emit(V)}),t.qZA()}if(2&m){const o=O.$implicit,x=t.oxw(2);t.Q6J("width",o.width)("height",o.height)("x",o.x)("y",o.y)("fill",o.color)("stops",o.gradientStops)("data",o.data)("orientation",x.barOrientation.Vertical)("roundEdges",o.roundEdges)("gradient",x.gradient)("ariaLabel",o.ariaLabel)("isActive",x.isActive(o.data))("tooltipDisabled",x.tooltipDisabled)("tooltipPlacement",x.tooltipPlacement)("tooltipType",x.tooltipType)("tooltipTitle",x.tooltipTemplate?void 0:o.tooltipText)("tooltipTemplate",x.tooltipTemplate)("tooltipContext",o.data)("noBarWhenZero",x.noBarWhenZero)("animations",x.animations)}}function n0(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Zu,1,20,"g",1),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.bars)("ngForTrackBy",o.trackBy)}}function Wu(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",4),t.NdJ("dimensionsChanged",function(V){const ke=t.CHM(o).index;return t.oxw(2).dataLabelHeightChanged.emit({size:V,index:ke})}),t.qZA()}if(2&m){const o=O.$implicit,x=t.oxw(2);t.Q6J("barX",o.x)("barY",o.y)("barWidth",o.width)("barHeight",o.height)("value",o.total)("valueFormatting",x.dataLabelFormatting)("orientation",x.barOrientation.Vertical)}}function Yu(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Wu,1,7,"g",3),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.barsForDataLabels)("ngForTrackBy",o.trackDataLabelBy)}}function Dl(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",5),t.NdJ("dimensionsChanged",function(V){return t.CHM(o),t.oxw().updateXAxisHeight(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("xScale",o.xScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showXAxisLabel)("labelText",o.xAxisLabel)("trimTicks",o.trimXAxisTicks)("rotateTicks",o.rotateXAxisTicks)("maxTickLength",o.maxXAxisTickLength)("tickFormatting",o.xAxisTickFormatting)("ticks",o.xAxisTicks)("xAxisOffset",o.dataLabelMaxHeight.negative)}}function r0(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(V){return t.CHM(o),t.oxw().updateYAxisWidth(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("yScale",o.yScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showYAxisLabel)("labelText",o.yAxisLabel)("trimTicks",o.trimYAxisTicks)("maxTickLength",o.maxYAxisTickLength)("tickFormatting",o.yAxisTickFormatting)("ticks",o.yAxisTicks)}}function ju(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(V){return t.CHM(o),t.oxw().updateXAxisHeight(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("xScale",o.groupScale)("dims",o.dims)("showLabel",o.showXAxisLabel)("labelText",o.xAxisLabel)("trimTicks",o.trimXAxisTicks)("rotateTicks",o.rotateXAxisTicks)("maxTickLength",o.maxXAxisTickLength)("tickFormatting",o.xAxisTickFormatting)("ticks",o.xAxisTicks)("xAxisOffset",o.dataLabelMaxHeight.negative)}}function bc(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",7),t.NdJ("dimensionsChanged",function(V){return t.CHM(o),t.oxw().updateYAxisWidth(V)}),t.qZA()}if(2&m){const o=t.oxw();t.Q6J("yScale",o.valueScale)("dims",o.dims)("showGridLines",o.showGridLines)("showLabel",o.showYAxisLabel)("labelText",o.yAxisLabel)("trimTicks",o.trimYAxisTicks)("maxTickLength",o.maxYAxisTickLength)("tickFormatting",o.yAxisTickFormatting)("ticks",o.yAxisTicks)}}function s0(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(V){const ke=t.CHM(o).$implicit;return t.oxw(2).onClick(V,ke)})("activate",function(V){const ke=t.CHM(o).$implicit;return t.oxw(2).onActivate(V,ke)})("deactivate",function(V){const ke=t.CHM(o).$implicit;return t.oxw(2).onDeactivate(V,ke)})("dataLabelHeightChanged",function(V){const ke=t.CHM(o).index;return t.oxw(2).onDataLabelMaxHeightChanged(V,ke)}),t.qZA()}if(2&m){const o=O.$implicit,x=t.oxw(2);t.Q6J("@animationState","active")("activeEntries",x.activeEntries)("xScale",x.innerScale)("yScale",x.valueScale)("colors",x.colors)("series",o.series)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("seriesName",o.name)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero),t.uIk("transform",x.groupTransform(o))}}function e4(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,s0,1,17,"g",8),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.results)("ngForTrackBy",o.trackBy)}}function T6(m,O){if(1&m){const o=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(V){const ke=t.CHM(o).$implicit;return t.oxw(2).onClick(V,ke)})("activate",function(V){const ke=t.CHM(o).$implicit;return t.oxw(2).onActivate(V,ke)})("deactivate",function(V){const ke=t.CHM(o).$implicit;return t.oxw(2).onDeactivate(V,ke)})("dataLabelHeightChanged",function(V){const ke=t.CHM(o).index;return t.oxw(2).onDataLabelMaxHeightChanged(V,ke)}),t.qZA()}if(2&m){const o=O.$implicit,x=t.oxw(2);t.Q6J("activeEntries",x.activeEntries)("xScale",x.innerScale)("yScale",x.valueScale)("colors",x.colors)("series",o.series)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("seriesName",o.name)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero),t.uIk("transform",x.groupTransform(o))}}function A6(m,O){if(1&m&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,T6,1,16,"g",8),t.qZA()),2&m){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.results)("ngForTrackBy",o.trackBy)}}function b4(m,O,o){o=o||{};let x,V,X,ke=null,dt=0;function Ut(){dt=!1===o.leading?0:+new Date,ke=null,X=m.apply(x,V)}return function(){const Bt=+new Date;!dt&&!1===o.leading&&(dt=Bt);const oi=O-(Bt-dt);return x=this,V=arguments,oi<=0?(clearTimeout(ke),ke=null,dt=Bt,X=m.apply(x,V)):!ke&&!1!==o.trailing&&(ke=setTimeout(Ut,oi)),X}}function C4(m,O){return function(x,V,X){return{configurable:!0,enumerable:X.enumerable,get:function(){return Object.defineProperty(this,V,{configurable:!0,enumerable:X.enumerable,value:b4(X.value,m,O)}),this[V]}}}}var Xn=(()=>{return(m=Xn||(Xn={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",m.Center="center",Xn;var m})();function w1(m,O,o){return o===Xn.Top?m.top-7:o===Xn.Bottom?m.top+m.height-O.height+7:o===Xn.Center?m.top+m.height/2-O.height/2:void 0}function M4(m,O,o){return o===Xn.Left?m.left-7:o===Xn.Right?m.left+m.width-O.width+7:o===Xn.Center?m.left+m.width/2-O.width/2:void 0}class pa{static calculateVerticalAlignment(O,o,x){let V=w1(O,o,x);return V+o.height>window.innerHeight&&(V=window.innerHeight-o.height),V}static calculateVerticalCaret(O,o,x,V){let X;V===Xn.Top&&(X=O.height/2-x.height/2+7),V===Xn.Bottom&&(X=o.height-O.height/2-x.height/2-7),V===Xn.Center&&(X=o.height/2-x.height/2);const ke=w1(O,o,V);return ke+o.height>window.innerHeight&&(X+=ke+o.height-window.innerHeight),X}static calculateHorizontalAlignment(O,o,x){let V=M4(O,o,x);return V+o.width>window.innerWidth&&(V=window.innerWidth-o.width),V}static calculateHorizontalCaret(O,o,x,V){let X;V===Xn.Left&&(X=O.width/2-x.width/2+7),V===Xn.Right&&(X=o.width-O.width/2-x.width/2-7),V===Xn.Center&&(X=o.width/2-x.width/2);const ke=M4(O,o,V);return ke+o.width>window.innerWidth&&(X+=ke+o.width-window.innerWidth),X}static shouldFlip(O,o,x,V){let X=!1;return x===Xn.Right&&O.left+O.width+o.width+V>window.innerWidth&&(X=!0),x===Xn.Left&&O.left-o.width-V<0&&(X=!0),x===Xn.Top&&O.top-o.height-V<0&&(X=!0),x===Xn.Bottom&&O.top+O.height+o.height+V>window.innerHeight&&(X=!0),X}static positionCaret(O,o,x,V,X){let ke=0,dt=0;return O===Xn.Right?(dt=-7,ke=pa.calculateVerticalCaret(x,o,V,X)):O===Xn.Left?(dt=o.width,ke=pa.calculateVerticalCaret(x,o,V,X)):O===Xn.Top?(ke=o.height,dt=pa.calculateHorizontalCaret(x,o,V,X)):O===Xn.Bottom&&(ke=-7,dt=pa.calculateHorizontalCaret(x,o,V,X)),{top:ke,left:dt}}static positionContent(O,o,x,V,X){let ke=0,dt=0;return O===Xn.Right?(dt=x.left+x.width+V,ke=pa.calculateVerticalAlignment(x,o,X)):O===Xn.Left?(dt=x.left-o.width-V,ke=pa.calculateVerticalAlignment(x,o,X)):O===Xn.Top?(ke=x.top-o.height-V,dt=pa.calculateHorizontalAlignment(x,o,X)):O===Xn.Bottom&&(ke=x.top+x.height+V,dt=pa.calculateHorizontalAlignment(x,o,X)),{top:ke,left:dt}}static determinePlacement(O,o,x,V){if(pa.shouldFlip(x,o,O,V)){if(O===Xn.Right)return Xn.Left;if(O===Xn.Left)return Xn.Right;if(O===Xn.Top)return Xn.Bottom;if(O===Xn.Bottom)return Xn.Top}return O}}let d0=(()=>{class m{constructor(o,x,V){this.element=o,this.renderer=x,this.platformId=V}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const o=this.element.nativeElement,x=this.host.nativeElement.getBoundingClientRect();if(!x.height&&!x.width)return;const V=o.getBoundingClientRect();this.checkFlip(x,V),this.positionContent(o,x,V),this.showCaret&&this.positionCaret(x,V),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,x,V){const{top:X,left:ke}=pa.positionContent(this.placement,V,x,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${X}px`),this.renderer.setStyle(o,"left",`${ke}px`)}positionCaret(o,x){const V=this.caretElm.nativeElement,X=V.getBoundingClientRect(),{top:ke,left:dt}=pa.positionCaret(this.placement,x,o,X,this.alignment);this.renderer.setStyle(V,"top",`${ke}px`),this.renderer.setStyle(V,"left",`${dt}px`)}checkFlip(o,x){this.placement=pa.determinePlacement(this.placement,x,o,this.spacing)}onWindowResize(){this.position()}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,x){if(1&o&&t.Gf(mu,5),2&o){let V;t.iGM(V=t.CRH())&&(x.caretElm=V.first)}},hostVars:2,hostBindings:function(o,x){1&o&&t.NdJ("resize",function(){return x.onWindowResize()},!1,t.Jf7),2&o&&t.Tol(x.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(o,x){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,S3,2,4,"span",3),t.YNc(5,gu,1,1,"span",4),t.qZA()()),2&o&&(t.xp6(1),t.Gre("tooltip-caret position-",x.placement,""),t.Q6J("hidden",!x.showCaret),t.xp6(3),t.Q6J("ngIf",!x.title),t.xp6(1),t.Q6J("ngIf",x.title))},directives:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,f.gn)([C4(100)],m.prototype,"onWindowResize",null),m})(),u0=(()=>{class m{constructor(o,x,V){this.applicationRef=o,this.componentFactoryResolver=x,this.injector=V}static setGlobalRootViewContainer(o){m.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(m.globalRootViewContainer)return m.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(o){this._container=o}getComponentRootNode(o){return function wh(m){return m.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,x){if(x){if(void 0!==x.inputs){const V=Object.getOwnPropertyNames(x.inputs);for(const X of V)o.instance[X]=x.inputs[X]}if(void 0!==x.outputs){const V=Object.getOwnPropertyNames(x.outputs);for(const X of V)o.instance[X]=x.outputs[X]}}return o}appendComponent(o,x={},V){V||(V=this.getRootViewContainer());const X=this.getComponentRootNode(V),ke=new M.u0(X,this.componentFactoryResolver,this.applicationRef,this.injector),dt=new M.C5(o),Ut=ke.attach(dt);return this.projectComponentBindings(Ut,x),Ut}}return m.globalRootViewContainer=null,m.\u0275fac=function(o){return new(o||m)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})(),S1=(()=>{class m extends class Mh{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const x=this.injectComponent(O,o);return this.register(O,x),x}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const x=o.indexOf(O);x>-1&&(o[x].destroy(),o.splice(x,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let x=o.length-1;for(;x>=0;)this.destroy(o[x--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),x=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),x&&(O.outputs=Object.assign(Object.assign({},x),O.outputs)),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=d0}}return m.\u0275fac=function(o){return new(o||m)(t.LFG(u0))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})();var Ka=(()=>{return(m=Ka||(Ka={})).Right="right",m.Below="below",Ka;var m})(),ul=(()=>{return(m=ul||(ul={})).ScaleLegend="scaleLegend",m.Legend="legend",ul;var m})(),An=(()=>{return(m=An||(An={})).Time="time",m.Linear="linear",m.Ordinal="ordinal",m.Quantile="quantile",An;var m})();let Sh=(()=>{class m{constructor(){this.horizontal=!1}ngOnChanges(o){const x=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${x})`}gradientString(o,x){x.push(1);const V=[];return o.reverse().forEach((X,ke)=>{V.push(`${X} ${Math.round(100*x[ke])}%`)}),V.join(", ")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,x){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&o&&(t.Udp("height",x.horizontal?void 0:x.height,"px")("width",x.width,"px"),t.ekj("horizontal-legend",x.horizontal),t.xp6(3),t.Oqu(x.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",x.gradient),t.xp6(3),t.Oqu(x.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),m})();function Oc(m){return m instanceof Date?m.toLocaleDateString():m.toLocaleString()}let E1=(()=>{class m{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,x){1&o&&t.NdJ("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(o,x){1&o&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return x.select.emit(x.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return x.toggle.emit(x.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&o&&(t.ekj("active",x.isActive),t.Q6J("title",x.formattedLabel),t.xp6(1),t.Udp("background-color",x.color),t.xp6(2),t.hij(" ",x.trimmedLabel," "))},encapsulation:2,changeDetection:0}),m})(),w4=(()=>{class m{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const x of this.data){const V=Oc(x);-1===o.findIndex(ke=>ke.label===V)&&o.push({label:x,formattedLabel:V,color:this.colors.getColor(x)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(V=>o.label===V.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,x){return x.label}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.sBO))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(o,x){1&o&&(t.TgZ(0,"div"),t.YNc(1,Yn,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,E3,2,4,"li",3),t.qZA()()()),2&o&&(t.Udp("width",x.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==x.title?null:x.title.length)>0),t.xp6(2),t.Udp("max-height",x.height-45,"px"),t.ekj("horizontal-legend",x.horizontal),t.xp6(1),t.Q6J("ngForOf",x.legendEntries)("ngForTrackBy",x.trackBy))},directives:[E1,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),m})(),S4=(()=>{class m{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Ka,this.LegendType=ul}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ka.Right)&&(o=this.legendType===ul.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ka.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===An.Linear?ul.ScaleLegend:ul.Legend}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([S1]),t.TTD],ngContentSelectors:vc,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(o,x){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,T3,1,5,"ngx-charts-scale-legend",2),t.YNc(4,A3,1,7,"ngx-charts-legend",3),t.qZA()),2&o&&(t.Udp("width",x.view[0],"px"),t.xp6(1),t.uIk("width",x.chartWidth)("height",x.view[1]),t.xp6(2),t.Q6J("ngIf",x.showLegend&&x.legendType===x.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",x.showLegend&&x.legendType===x.LegendType.Legend))},directives:[Sh,w4,e.O5],encapsulation:2,changeDetection:0}),m})(),K6=(()=>{class m{constructor(o,x){this.element=o,this.zone=x,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:x,offsetWidth:V}=this.element.nativeElement;x&&V?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b))},m.\u0275dir=t.lG2({type:m,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),m})();function E4(m){return"[object Date]"===toString.call(m)}let T1=(()=>{class m{constructor(o,x,V,X){this.chartElement=o,this.zone=x,this.cd=V,this.platformId=X,this.scheme="cool",this.schemeType=An.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new K6(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(o){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const o=this.getContainerDims();o&&(this.width=o.width,this.height=o.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let o,x;const V=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==V.parentNode){const X=V.parentNode.getBoundingClientRect();o=X.width,x=X.height}return o&&x?{width:o,height:x}:null}formatDates(){for(let o=0;o<this.results.length;o++){const x=this.results[o];if(x.label=x.name,E4(x.label)&&(x.label=x.label.toLocaleDateString()),x.series)for(let V=0;V<x.series.length;V++){const X=x.series[V];X.label=X.name,E4(X.label)&&(X.label=X.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,e.NF)(this.platformId))return;const x=(0,s.R)(window,"resize").pipe((0,b.b)(200)).subscribe(V=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=x}cloneData(o){const x=[];for(const V of o){const X={name:V.name};if(void 0!==V.value&&(X.value=V.value),void 0!==V.series){X.series=[];for(const ke of V.series){const dt=Object.assign({},ke);X.series.push(dt)}}void 0!==V.extra&&(X.extra=JSON.parse(JSON.stringify(V.extra))),x.push(X)}return x}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(o,x){1&o&&t._UZ(0,"div")},encapsulation:2}),m})();var Ps=(()=>{return(m=Ps||(Ps={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",Ps;var m})();let T4=(()=>{class m{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Ps.Top:case Ps.Bottom:this.y=this.offset,this.x=this.width/2;break;case Ps.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Ps.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Ya,decls:2,vars:6,template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&o&&(t.uIk("stroke-width",x.strokeWidth)("x",x.x)("y",x.y)("text-anchor",x.textAnchor)("transform",x.transform),t.xp6(1),t.hij(" ",x.label," "))},encapsulation:2,changeDetection:0}),m})();function Wo(m,O=16){return"string"!=typeof m?"number"==typeof m?m+"":"":(m=m.trim()).length<=O?m:`${m.slice(0,O)}...`}function A4(m,O){if(m.length>O){const o=[],x=Math.floor(m.length/O);for(let V=0;V<m.length;V++)V%x==0&&o.push(m[V]);m=o}return m}var Ra=(()=>{return(m=Ra||(Ra={})).Start="start",m.Middle="middle",m.End="end",Ra;var m})();let L4=(()=>{class m{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Ra.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(V){return"Date"===V.constructor.name?V.toLocaleDateString():V.toLocaleString()};const x=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(V){return this.scale(V)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",x&&0!==x?(this.textTransform=`rotate(${x})`,this.textAnchor=Ra.End,this.verticalSpacing=10):this.textAnchor=Ra.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let x=0;this.maxTicksLength=0;for(let Bt=0;Bt<o.length;Bt++){const oi=this.tickFormat(o[Bt]).toString();let xi=oi.length;this.trimTicks&&(xi=this.tickTrim(oi).length),xi>this.maxTicksLength&&(this.maxTicksLength=xi)}const ke=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let dt=ke;const Ut=Math.floor(this.width/o.length);for(;dt>Ut&&x>-90;)x-=30,dt=Math.cos(x*(Math.PI/180))*ke;return this.approxHeight=Math.max(Math.abs(Math.sin(x*(Math.PI/180))*ke),10),x}getTicks(){let o;const x=this.getMaxTicks(20),V=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[V]):(o=this.scale.domain(),o=A4(o,x)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?Wo(o,this.maxTickLength):o}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,x){if(1&o&&t.Gf(B2,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksElement=V.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:_u,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,U2,5,7,"g",1),t.qZA(),t.YNc(3,G2,2,2,"g",2)),2&o&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.ticks))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),h0=(()=>{class m{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Ps.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new t.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Ps}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const x=o+25+5;x!==this.labelOffset&&(this.labelOffset=x,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,x){if(1&o&&t.Gf(L4,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksComponent=V.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:L3,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,f1,1,12,"g",0),t.YNc(2,l6,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",x.xAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},directives:[L4,T4,e.O5],encapsulation:2,changeDetection:0}),m})();function Qa(m,O,o,x,V,[X,ke,dt,Ut]){let Bt="";return Bt=`M${[m+V,O]}`,Bt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*V),Bt+=ke?`a${[V,V]} 0 0 1 ${[V,V]}`:`h${V}v${V}`,Bt+="v"+((x=0===(x=Math.floor(x))?1:x)-2*V),Bt+=Ut?`a${[V,V]} 0 0 1 ${[-V,V]}`:`v${V}h${-V}`,Bt+="h"+(2*V-o),Bt+=dt?`a${[V,V]} 0 0 1 ${[-V,-V]}`:`h${-V}v${-V}`,Bt+="v"+(2*V-x),Bt+=X?`a${[V,V]} 0 0 1 ${[V,-V]}`:`v${-V}h${V}`,Bt+="z",Bt}let f0=(()=>{class m{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Ra.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Ps}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const x=this.orient===Ps.Top||this.orient===Ps.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(V){return"Date"===V.constructor.name?V.toLocaleDateString():V.toLocaleString()},this.adjustedScale=o.bandwidth?function(V){return o(V)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Ps.Top:case Ps.Bottom:this.transform=function(V){return"translate("+this.adjustedScale(V)+",0)"},this.textAnchor=Ra.Middle,this.y2=this.innerTickSize*x,this.y1=this.tickSpacing*x,this.dy=x<0?"0em":".71em";break;case Ps.Left:this.transform=function(V){return"translate(0,"+this.adjustedScale(V)+")"},this.textAnchor=Ra.End,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,this.dy=".32em";break;case Ps.Right:this.transform=function(V){return"translate(0,"+this.adjustedScale(V)+")"},this.textAnchor=Ra.Start,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Qa(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const x=this.getMaxTicks(20),V=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[V]):(o=this.scale.domain(),o=A4(o,x)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?Wo(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(V=>this.tickTrim(this.tickFormat(V)).length))}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,x){if(1&o&&t.Gf(B2,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksElement=V.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:yc,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,c6,5,9,"g",1),t.qZA(),t.YNc(3,p1,1,2,"path",2),t.YNc(4,W2,2,2,"g",3),t.YNc(5,vu,2,1,"g",3)),2&o&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngIf",x.referenceLineLength>1&&x.refMax&&x.refMin&&x.showRefLines),t.xp6(1),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.referenceLines))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),p0=(()=>{class m{constructor(){this.showGridLines=!1,this.yOrient=Ps.Left,this.yAxisOffset=0,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Ps.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:o}){o!==this.labelOffset&&this.yOrient===Ps.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,x){if(1&o&&t.Gf(f0,5),2&o){let V;t.iGM(V=t.CRH())&&(x.ticksComponent=V.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:I3,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,yu,1,14,"g",0),t.YNc(2,O3,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",x.yAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.yScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},directives:[f0,T4,e.O5],encapsulation:2,changeDetection:0}),m})(),D4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez]]}),m})();var hl=(()=>{return(m=hl||(hl={})).popover="popover",m.tooltip="tooltip",hl;var m})(),So=(()=>{return(m=So||(So={}))[m.all="all"]="all",m[m.focus="focus"]="focus",m[m.mouseover="mouseover"]="mouseover",So;var m})();let m0=(()=>{class m{constructor(o,x,V){this.tooltipService=o,this.viewContainerRef=x,this.renderer=V,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Xn.Top,this.tooltipAlignment=Xn.Center,this.tooltipType=hl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=So.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===So.all||this.tooltipShowEvent===So.focus}get listensForHover(){return this.tooltipShowEvent===So.all||this.tooltipShowEvent===So.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const x=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const V=this.createBoundOptions();this.component=this.tooltipService.create(V),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},x)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",x=>{o.contains(x.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const x=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),o?x():this.timeout=setTimeout(x,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(S1),t.Y36(t.s_b),t.Y36(t.Qsj))},m.\u0275dir=t.lG2({type:m,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,x){1&o&&t.NdJ("focusin",function(){return x.onFocus()})("blur",function(){return x.onBlur()})("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(X){return x.onMouseLeave(X.target)})("click",function(){return x.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),m})(),I4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({providers:[u0,S1],imports:[[e.ez]]}),m})();const g0={};function fl(){let m=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return m=`a${m}`,g0[m]?fl():(g0[m]=!0,m)}var as=(()=>{return(m=as||(as={})).Vertical="vertical",m.Horizontal="horizontal",as;var m})();let Pc=(()=>{class m{constructor(){this.orientation=as.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===as.Horizontal?this.x2="100%":this.orientation===as.Vertical&&(this.y1="100%")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:xu,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,bu,1,5,"stop",1),t.qZA()),2&o&&(t.Q6J("id",x.name),t.uIk("x1",x.x1)("y1",x.y1)("x2",x.x2)("y2",x.y2),t.xp6(1),t.Q6J("ngForOf",x.stops))},directives:[e.sg],encapsulation:2,changeDetection:0}),m})(),O4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:h6,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,x){1&o&&(t.O4$(),t._UZ(0,"rect",0)),2&o&&t.uIk("height",x.height)("width",x.width)("x",x.x)("y",x.y)},encapsulation:2,changeDetection:0}),m})();var Hl=(()=>{return(m=Hl||(Hl={})).Odd="odd",m.Even="even",Hl;var m})();let Vl,Fl=(()=>{class m{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let x,V,X,ke,dt,Ut=Hl.Odd;if(this.orient===as.Vertical){const Bt=this.xScale(o.name);Number.parseInt((Bt/this.xScale.step()).toString(),10)%2==1&&(Ut=Hl.Even),x=this.xScale.bandwidth()*this.xScale.paddingInner(),V=this.xScale.bandwidth()+x,X=this.dims.height,ke=this.xScale(o.name)-x/2,dt=0}else if(this.orient===as.Horizontal){const Bt=this.yScale(o.name);Number.parseInt((Bt/this.yScale.step()).toString(),10)%2==1&&(Ut=Hl.Even),x=this.yScale.bandwidth()*this.yScale.paddingInner(),V=this.dims.width,X=this.yScale.bandwidth()+x,ke=0,dt=this.yScale(o.name)-x/2}return{name:o.name,class:Ut,height:X,width:V,x:ke,y:dt}})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:f6,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(o,x){1&o&&t.YNc(0,p6,1,10,"g",0),2&o&&t.Q6J("ngForOf",x.gridPanels)},directives:[O4,e.sg],encapsulation:2,changeDetection:0}),m})();"undefined"!=typeof window?Vl=window:"undefined"!=typeof global&&(Vl=global);let Ca=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez,D4,I4],e.ez,D4,I4]}),m})();function C0({width:m,height:O,margins:o,showXAxis:x=!1,showYAxis:V=!1,xAxisHeight:X=0,yAxisWidth:ke=0,showXLabel:dt=!1,showYLabel:Ut=!1,showLegend:Bt=!1,legendType:oi=An.Ordinal,legendPosition:xi=Ka.Right,columns:Ci=12}){let Ti=o[3],nn=m,Mn=O-o[0]-o[2];return Bt&&xi===Ka.Right&&(Ci-=oi===An.Ordinal?2:1),nn=nn*Ci/12,nn=nn-o[1]-o[3],x&&(Mn-=5,Mn-=X,dt&&(Mn-=30)),V&&(nn-=5,nn-=ke,Ti+=ke,Ti+=10,Ut&&(nn-=30,Ti+=30)),nn=Math.max(0,nn),Mn=Math.max(0,Mn),{width:Math.floor(nn),height:Math.floor(Mn),xOffset:Math.floor(Ti)}}let M0=[{name:"vivid",selectable:!0,group:An.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:An.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:An.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:An.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:An.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:An.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:An.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:An.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:An.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:An.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:An.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:An.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:An.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:An.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:An.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class I1{constructor(O,o,x,V){"string"==typeof O&&(O=M0.find(X=>X.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=x,this.customColors=V,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,x){let V;switch("string"==typeof O&&(O=M0.find(X=>X.name===O)),o){case An.Quantile:V=V2().range(O.domain).domain(x);break;case An.Ordinal:V=_c().range(O.domain).domain(x);break;case An.Linear:{const X=[...O.domain];1===X.length&&(X.push(X[0]),this.colorDomain=X);const ke=C3(0,1,1/X.length);V=bo().range(X).domain(ke)}}return V}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===An.Linear){const o=bo().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let x;return this.customColors&&this.customColors.length>0&&(x=this.customColors.find(V=>V.name.toLowerCase()===o.toLowerCase())),x?x.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const x=bo().domain(this.domain).range([0,1]),V=Al().domain(this.colorDomain).range([0,1]),X=this.getColor(O),ke=x(o),dt=this.getColor(o),Ut=x(O);let Bt=1,oi=ke;const xi=[];for(xi.push({color:dt,offset:ke,originalOffset:ke,opacity:1});oi<Ut&&Bt<this.colorDomain.length;){const Ci=this.colorDomain[Bt],Ti=V(Ci);if(Ti<=ke)Bt++;else{if(Ti.toFixed(4)>=(Ut-V.bandwidth()).toFixed(4))break;xi.push({color:Ci,offset:Ti,opacity:1}),oi=Ti,Bt++}}if(xi[xi.length-1].offset<100&&xi.push({color:X,offset:Ut,opacity:1}),Ut===ke)xi[0].offset=0,xi[1].offset=100;else if(100!==xi[xi.length-1].offset)for(const Ci of xi)Ci.offset=(Ci.offset-ke)/(Ut-ke)*100;return xi}}let O1=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),N4=(()=>{class m{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+fl().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const o=function on(m){return"string"==typeof m?new bi([[document.querySelector(m)]],[document.documentElement]):new bi([[m]],Vt)}(this.element).select(".bar"),x=this.getPath();this.animations?o.transition().duration(500).attr("d",x):o.attr("d",x)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let x,o=this.getRadius();return this.roundEdges?this.orientation===as.Vertical?(o=Math.min(this.height,o),x=Qa(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===as.Horizontal&&(o=Math.min(this.width,o),x=Qa(this.x,this.y,1,this.height,0,this.edges)):this.orientation===as.Vertical?x=Qa(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===as.Horizontal&&(x=Qa(this.x,this.y,1,this.height,0,this.edges)),x}getPath(){let x,o=this.getRadius();return this.roundEdges?this.orientation===as.Vertical?(o=Math.min(this.height,o),x=Qa(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===as.Horizontal&&(o=Math.min(this.width,o),x=Qa(this.x,this.y,this.width,this.height,o,this.edges)):x=Qa(this.x,this.y,this.width,this.height,o,this.edges),x}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===as.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===as.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===as.Vertical&&0===this.height||this.orientation===as.Horizontal&&0===this.width)}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,x){1&o&&t.NdJ("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:K3,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(o,x){1&o&&(t.YNc(0,Ta,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return x.select.emit(x.data)}),t.qZA()),2&o&&(t.Q6J("ngIf",x.hasGradient),t.xp6(1),t.ekj("active",x.isActive)("hidden",x.hideBar),t.uIk("d",x.path)("aria-label",x.ariaLabel)("fill",x.hasGradient?x.gradientFill:x.fill))},directives:[Pc,e.O5],encapsulation:2,changeDetection:0}),m})();var Ha=(()=>{return(m=Ha||(Ha={})).Standard="standard",m.Normalized="normalized",m.Stacked="stacked",Ha;var m})(),Eo=(()=>{return(m=Eo||(Eo={})).positive="positive",m.negative="negative",Eo;var m})();let R4=(()=>{class m{constructor(o){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Oc(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Q3,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,x){1&o&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&o&&(t.uIk("text-anchor",x.textAnchor)("transform",x.transform)("x",x.x)("y",x.y),t.xp6(1),t.hij(" ",x.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),m})(),H4=(()=>{class m{constructor(o){this.platformId=o,this.type=Ha.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=as,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const x=Math.max(this.yScale.domain()[0],0),V={[Eo.positive]:0,[Eo.negative]:0};let ke,X=Eo.positive;this.type===Ha.Normalized&&(ke=this.series.map(dt=>dt.value).reduce((dt,Ut)=>dt+Ut,0)),this.bars=this.series.map((dt,Ut)=>{let Bt=dt.value;const oi=this.getLabel(dt),xi=Oc(oi);X=Bt>0?Eo.positive:Eo.negative;const Ti={value:Bt,label:oi,roundEdges:this.roundEdges,data:dt,width:o,formattedLabel:xi,height:0,x:0,y:0};if(this.type===Ha.Standard)Ti.height=Math.abs(this.yScale(Bt)-this.yScale(x)),Ti.x=this.xScale(oi),Ti.y=this.yScale(Bt<0?0:Bt);else if(this.type===Ha.Stacked){const Mn=V[X],Ai=Mn+Bt;V[X]+=Bt,Ti.height=this.yScale(Mn)-this.yScale(Ai),Ti.x=0,Ti.y=this.yScale(Ai),Ti.offset0=Mn,Ti.offset1=Ai}else if(this.type===Ha.Normalized){let Mn=V[X],Ai=Mn+Bt;V[X]+=Bt,ke>0?(Mn=100*Mn/ke,Ai=100*Ai/ke):(Mn=0,Ai=0),Ti.height=this.yScale(Mn)-this.yScale(Ai),Ti.x=0,Ti.y=this.yScale(Ai),Ti.offset0=Mn,Ti.offset1=Ai,Bt=(Ai-Mn).toFixed(2)+"%"}this.colors.scaleType===An.Ordinal?Ti.color=this.colors.getColor(oi):this.type===Ha.Standard?(Ti.color=this.colors.getColor(Bt),Ti.gradientStops=this.colors.getLinearGradientStops(Bt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let nn=xi;return Ti.ariaLabel=xi+" "+Bt.toLocaleString(),null!=this.seriesName&&(nn=`${this.seriesName} \u2022 ${xi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function kc(m){return m.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[O]))}(nn)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(Bt):Bt.toLocaleString()}</span>\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===Ha.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const x=this.series.map(X=>X.value).reduce((X,ke)=>ke>0?X+ke:X,0),V=this.series.map(X=>X.value).reduce((X,ke)=>ke<0?X+ke:X,0);o.total=x+V,o.x=0,o.y=0,o.height=this.yScale(o.total>0?x:V),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var x;const V={};return V.series=null!==(x=this.seriesName)&&void 0!==x?x:o.label,V.total=o.value,V.x=this.xScale(o.label),V.y=this.yScale(0),V.height=this.yScale(V.total)-this.yScale(0),V.width=this.xScale.bandwidth(),V})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Xn.Top,this.tooltipType=this.tooltipDisabled?void 0:hl.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(V=>o.name===V.name&&o.value===V.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,x){return x.label}trackDataLabelBy(o,x){return o+"#"+x.series+"#"+x.total}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:t0,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(o,x){1&o&&(t.YNc(0,$3,2,2,"g",0),t.YNc(1,n0,2,2,"g",0),t.YNc(2,Yu,2,2,"g",0)),2&o&&(t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR),t.xp6(1),t.Q6J("ngIf",x.showDataLabel))},directives:[N4,R4,e.O5,e.sg,m0],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1}),(0,d.jt)(500,(0,d.oB)({opacity:0}))])])]},changeDetection:0}),m})(),Fh=(()=>{class m extends T1{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ka.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=C0({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const o=this.xDomain.length/(this.dims.width/this.barPadding+1);return Al().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=bo().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map(X=>X.value);let x=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(x=Math.min(x,...this.yAxisTicks));let V=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(V=Math.max(V,...this.yAxisTicks)),[x,V]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===An.Ordinal?this.xDomain:this.yDomain,this.colors=new I1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===An.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,x=!1){o=this.results.find(X=>x?X.label===o.name:X.name===o.name),!(this.activeEntries.findIndex(X=>X.name===o.name&&X.value===o.value&&X.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,x=!1){o=this.results.find(X=>x?X.label===o.name:X.name===o.name);const V=this.activeEntries.findIndex(X=>X.name===o.name&&X.value===o.value&&X.series===o.series);this.activeEntries.splice(V,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(x){return(O||(O=t.n5z(m)))(x||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,x,V){if(1&o&&t.Suo(V,B3,5),2&o){let X;t.iGM(X=t.CRH())&&(x.tooltipTemplate=X.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(o,x){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(X){return x.onClick(X)})("legendLabelActivate",function(X){return x.onActivate(X,!0)})("legendLabelDeactivate",function(X){return x.onDeactivate(X,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,Dl,1,11,"g",2),t.YNc(3,r0,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(X){return x.onActivate(X)})("deactivate",function(X){return x.onDeactivate(X)})("select",function(X){return x.onClick(X)})("dataLabelHeightChanged",function(X){return x.onDataLabelMaxHeightChanged(X)}),t.qZA()()()),2&o&&(t.Q6J("view",t.WLB(22,so,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),t.xp6(1),t.uIk("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xAxis),t.xp6(1),t.Q6J("ngIf",x.yAxis),t.xp6(1),t.Q6J("xScale",x.xScale)("yScale",x.yScale)("colors",x.colors)("series",x.results)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("activeEntries",x.activeEntries)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero))},directives:[S4,h0,p0,H4,e.O5],styles:[X2],encapsulation:2,changeDetection:0}),m})(),F4=(()=>{class m extends T1{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ka.Right,this.tooltipDisabled=!1,this.scaleType=An.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=as,this.trackBy=(o,x)=>x.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=C0({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(o,x){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),x===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Al().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),x=this.innerDomain.length/(o/this.barPadding+1);return Al().rangeRound([0,o]).paddingInner(x).domain(this.innerDomain)}getValueScale(){const o=bo().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const x of this.results)o.includes(x.label)||o.push(x.label);return o}getInnerDomain(){const o=[];for(const x of this.results)for(const V of x.series)o.includes(V.label)||o.push(V.label);return o}getValueDomain(){const o=[];for(const X of this.results)for(const ke of X.series)o.includes(ke.value)||o.push(ke.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,x){x&&(o.series=x.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===An.Ordinal?this.innerDomain:this.valueDomain,this.colors=new I1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===An.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,x,V=!1){const X=Object.assign({},o);x&&(X.series=x.name);const ke=this.results.map(dt=>dt.series).flat().filter(dt=>V?dt.label===X.name:dt.name===X.name&&dt.series===X.series);this.activeEntries=[...ke],this.activate.emit({value:X,entries:this.activeEntries})}onDeactivate(o,x,V=!1){const X=Object.assign({},o);x&&(X.series=x.name),this.activeEntries=this.activeEntries.filter(ke=>V?ke.label!==X.name:!(ke.name===X.name&&ke.series===X.series)),this.deactivate.emit({value:X,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(x){return(O||(O=t.n5z(m)))(x||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,x,V){if(1&o&&t.Suo(V,B3,5),2&o){let X;t.iGM(X=t.CRH())&&(x.tooltipTemplate=X.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(o,x){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(X){return x.onActivate(X,void 0,!0)})("legendLabelDeactivate",function(X){return x.onDeactivate(X,void 0,!0)})("legendLabelClick",function(X){return x.onClick(X)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,ju,1,10,"g",3),t.YNc(4,bc,1,9,"g",4),t.YNc(5,e4,2,2,"g",5),t.qZA(),t.YNc(6,A6,2,2,"g",5),t.qZA()),2&o&&(t.Q6J("view",t.WLB(15,so,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),t.xp6(1),t.uIk("transform",x.transform),t.xp6(1),t.Q6J("xScale",x.groupScale)("yScale",x.valueScale)("data",x.results)("dims",x.dims)("orient",x.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",x.xAxis),t.xp6(1),t.Q6J("ngIf",x.yAxis),t.xp6(1),t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR))},directives:[S4,Fl,h0,p0,H4,e.O5,e.sg],styles:[X2],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1,transform:"*"}),(0,d.jt)(500,(0,d.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),m})(),T0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),z4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),Uh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),Wh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),U4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})();Math;let N1=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),Kh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca,N1,U4]]}),m})(),R1=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),q4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca]]}),m})(),tf=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[Ca,N1,T0]]}),m})(),rf=(()=>{class m{constructor(){!function nf(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[Ca,O1,T0,z4,Uh,Wh,U4,Kh,R1,N1,q4,tf]}),m})()},159:(ze,K,p)=>{"use strict";p.d(K,{OF:()=>L,uU:()=>h});var t=p(5e3),e=p(9808),f=p(655),M=p(3259);function s(w,D){if(1&w&&t._UZ(0,"canvas",1),2&w){const S=t.oxw();t.Q6J("qrCode",S.value)("qrCodeErrorCorrectionLevel",S.errorCorrectionLevel)("qrCodeCenterImageSrc",S.centerImageSrc)("qrCodeCenterImageWidth",S.centerImageSize)("qrCodeCenterImageHeight",S.centerImageSize)("qrCodeMargin",S.margin)("width",S.size)("height",S.size)("darkColor",S.darkColor)("lightColor",S.lightColor)}}const b=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class w{constructor(S){this.viewContainerRef=S,this.errorCorrectionLevel=w.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var S,k;return(0,f.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const E=this.viewContainerRef.element.nativeElement;if(!E)return;const U=E.getContext("2d");U&&U.clearRect(0,0,U.canvas.width,U.canvas.height);const W=null!==(S=this.errorCorrectionLevel)&&void 0!==S?S:w.DEFAULT_ERROR_CORRECTION_LEVEL,j=b.test(this.darkColor)?this.darkColor:void 0,ne=b.test(this.lightColor)?this.lightColor:void 0;(0,t.X6Q)()&&(!j&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ne&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield M.toCanvas(E,this.value,{version:this.version,errorCorrectionLevel:W,width:this.width,margin:this.margin,color:{dark:j,light:ne}});const ee=this.centerImageSrc,de=R(this.centerImageWidth,w.DEFAULT_CENTER_IMAGE_SIZE),te=R(this.centerImageHeight,w.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&U){this.centerImage||(this.centerImage=new Image(de,te)),ee!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=ee),de!==this.centerImage.width&&(this.centerImage.width=de),te!==this.centerImage.height&&(this.centerImage.height=te);const ie=this.centerImage;ie.onload=()=>{U.drawImage(ie,E.width/2-de/2,E.height/2-te/2,de,te)}}})}}return w.DEFAULT_ERROR_CORRECTION_LEVEL="M",w.DEFAULT_CENTER_IMAGE_SIZE=40,w.\u0275fac=function(S){return new(S||w)(t.Y36(t.s_b))},w.\u0275dir=t.lG2({type:w,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[t.TTD]}),w})();function R(w,D){return void 0===w||""===w?D:"string"==typeof w?parseInt(w,10):w}let h=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(S,k){1&S&&t.YNc(0,s,1,10,"canvas",0),2&S&&t.Q6J("ngIf",k.value)},directives:[e.O5,d],encapsulation:2}),w})(),L=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[e.ez]]}),w})()},8129:(ze,K,p)=>{"use strict";p.d(K,{op:()=>ei,$V:()=>ve,Xd:()=>Ht});var t=p(7579),e=p(4968),f=p(3601),M=p(2722),s=p(5e3),b=p(9808);function d(it){return getComputedStyle(it)}function R(it,Ne){for(var nt in Ne){var Xe=Ne[nt];"number"==typeof Xe&&(Xe+="px"),it.style[nt]=Xe}return it}function h(it){var Ne=document.createElement("div");return Ne.className=it,Ne}var L="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function w(it,Ne){if(!L)throw new Error("No element matching method supported");return L.call(it,Ne)}function D(it){it.remove?it.remove():it.parentNode&&it.parentNode.removeChild(it)}function S(it,Ne){return Array.prototype.filter.call(it.children,function(nt){return w(nt,Ne)})}var k_element_thumb=function(it){return"ps__thumb-"+it},k_element_rail=function(it){return"ps__rail-"+it},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(it){return"ps--active-"+it},k_state_scrolling=function(it){return"ps--scrolling-"+it},E={x:null,y:null};function U(it,Ne){var nt=it.element.classList,Xe=k_state_scrolling(Ne);nt.contains(Xe)?clearTimeout(E[Ne]):nt.add(Xe)}function W(it,Ne){E[Ne]=setTimeout(function(){return it.isAlive&&it.element.classList.remove(k_state_scrolling(Ne))},it.settings.scrollingThreshold)}var ne=function(Ne){this.element=Ne,this.handlers={}},ee={isEmpty:{configurable:!0}};ne.prototype.bind=function(Ne,nt){void 0===this.handlers[Ne]&&(this.handlers[Ne]=[]),this.handlers[Ne].push(nt),this.element.addEventListener(Ne,nt,!1)},ne.prototype.unbind=function(Ne,nt){var Xe=this;this.handlers[Ne]=this.handlers[Ne].filter(function(Ee){return!(!nt||Ee===nt)||(Xe.element.removeEventListener(Ne,Ee,!1),!1)})},ne.prototype.unbindAll=function(){for(var Ne in this.handlers)this.unbind(Ne)},ee.isEmpty.get=function(){var it=this;return Object.keys(this.handlers).every(function(Ne){return 0===it.handlers[Ne].length})},Object.defineProperties(ne.prototype,ee);var de=function(){this.eventElements=[]};function te(it){if("function"==typeof window.CustomEvent)return new CustomEvent(it);var Ne=document.createEvent("CustomEvent");return Ne.initCustomEvent(it,!1,!1,void 0),Ne}function ie(it,Ne,nt,Xe,Ee){var Ge;if(void 0===Xe&&(Xe=!0),void 0===Ee&&(Ee=!1),"top"===Ne)Ge=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ne)throw new Error("A proper axis should be provided");Ge=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function le(it,Ne,nt,Xe,Ee){var Ge=nt[0],ot=nt[1],lt=nt[2],Ct=nt[3],mi=nt[4],Jt=nt[5];void 0===Xe&&(Xe=!0),void 0===Ee&&(Ee=!1);var $t=it.element;it.reach[Ct]=null,$t[lt]<1&&(it.reach[Ct]="start"),$t[lt]>it[Ge]-it[ot]-1&&(it.reach[Ct]="end"),Ne&&($t.dispatchEvent(te("ps-scroll-"+Ct)),Ne<0?$t.dispatchEvent(te("ps-scroll-"+mi)):Ne>0&&$t.dispatchEvent(te("ps-scroll-"+Jt)),Xe&&function j(it,Ne){U(it,Ne),W(it,Ne)}(it,Ct)),it.reach[Ct]&&(Ne||Ee)&&$t.dispatchEvent(te("ps-"+Ct+"-reach-"+it.reach[Ct]))}(it,nt,Ge,Xe,Ee)}function $(it){return parseInt(it,10)||0}de.prototype.eventElement=function(Ne){var nt=this.eventElements.filter(function(Xe){return Xe.element===Ne})[0];return nt||(nt=new ne(Ne),this.eventElements.push(nt)),nt},de.prototype.bind=function(Ne,nt,Xe){this.eventElement(Ne).bind(nt,Xe)},de.prototype.unbind=function(Ne,nt,Xe){var Ee=this.eventElement(Ne);Ee.unbind(nt,Xe),Ee.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ee),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(Ne){return Ne.unbindAll()}),this.eventElements=[]},de.prototype.once=function(Ne,nt,Xe){var Ee=this.eventElement(Ne),Ge=function(ot){Ee.unbind(nt,Ge),Xe(ot)};Ee.bind(nt,Ge)};var i={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function r(it){var Ne=it.element,nt=Math.floor(Ne.scrollTop),Xe=Ne.getBoundingClientRect();it.containerWidth=Math.round(Xe.width),it.containerHeight=Math.round(Xe.height),it.contentWidth=Ne.scrollWidth,it.contentHeight=Ne.scrollHeight,Ne.contains(it.scrollbarXRail)||(S(Ne,k_element_rail("x")).forEach(function(Ee){return D(Ee)}),Ne.appendChild(it.scrollbarXRail)),Ne.contains(it.scrollbarYRail)||(S(Ne,k_element_rail("y")).forEach(function(Ee){return D(Ee)}),Ne.appendChild(it.scrollbarYRail)),!it.settings.suppressScrollX&&it.containerWidth+it.settings.scrollXMarginOffset<it.contentWidth?(it.scrollbarXActive=!0,it.railXWidth=it.containerWidth-it.railXMarginWidth,it.railXRatio=it.containerWidth/it.railXWidth,it.scrollbarXWidth=u(it,$(it.railXWidth*it.containerWidth/it.contentWidth)),it.scrollbarXLeft=$((it.negativeScrollAdjustment+Ne.scrollLeft)*(it.railXWidth-it.scrollbarXWidth)/(it.contentWidth-it.containerWidth))):it.scrollbarXActive=!1,!it.settings.suppressScrollY&&it.containerHeight+it.settings.scrollYMarginOffset<it.contentHeight?(it.scrollbarYActive=!0,it.railYHeight=it.containerHeight-it.railYMarginHeight,it.railYRatio=it.containerHeight/it.railYHeight,it.scrollbarYHeight=u(it,$(it.railYHeight*it.containerHeight/it.contentHeight)),it.scrollbarYTop=$(nt*(it.railYHeight-it.scrollbarYHeight)/(it.contentHeight-it.containerHeight))):it.scrollbarYActive=!1,it.scrollbarXLeft>=it.railXWidth-it.scrollbarXWidth&&(it.scrollbarXLeft=it.railXWidth-it.scrollbarXWidth),it.scrollbarYTop>=it.railYHeight-it.scrollbarYHeight&&(it.scrollbarYTop=it.railYHeight-it.scrollbarYHeight),function c(it,Ne){var nt={width:Ne.railXWidth},Xe=Math.floor(it.scrollTop);nt.left=Ne.isRtl?Ne.negativeScrollAdjustment+it.scrollLeft+Ne.containerWidth-Ne.contentWidth:it.scrollLeft,Ne.isScrollbarXUsingBottom?nt.bottom=Ne.scrollbarXBottom-Xe:nt.top=Ne.scrollbarXTop+Xe,R(Ne.scrollbarXRail,nt);var Ee={top:Xe,height:Ne.railYHeight};Ne.isScrollbarYUsingRight?Ee.right=Ne.isRtl?Ne.contentWidth-(Ne.negativeScrollAdjustment+it.scrollLeft)-Ne.scrollbarYRight-Ne.scrollbarYOuterWidth-9:Ne.scrollbarYRight-it.scrollLeft:Ee.left=Ne.isRtl?Ne.negativeScrollAdjustment+it.scrollLeft+2*Ne.containerWidth-Ne.contentWidth-Ne.scrollbarYLeft-Ne.scrollbarYOuterWidth:Ne.scrollbarYLeft+it.scrollLeft,R(Ne.scrollbarYRail,Ee),R(Ne.scrollbarX,{left:Ne.scrollbarXLeft,width:Ne.scrollbarXWidth-Ne.railBorderXWidth}),R(Ne.scrollbarY,{top:Ne.scrollbarYTop,height:Ne.scrollbarYHeight-Ne.railBorderYWidth})}(Ne,it),it.scrollbarXActive?Ne.classList.add(k_state_active("x")):(Ne.classList.remove(k_state_active("x")),it.scrollbarXWidth=0,it.scrollbarXLeft=0,Ne.scrollLeft=!0===it.isRtl?it.contentWidth:0),it.scrollbarYActive?Ne.classList.add(k_state_active("y")):(Ne.classList.remove(k_state_active("y")),it.scrollbarYHeight=0,it.scrollbarYTop=0,Ne.scrollTop=0)}function u(it,Ne){return it.settings.minScrollbarLength&&(Ne=Math.max(Ne,it.settings.minScrollbarLength)),it.settings.maxScrollbarLength&&(Ne=Math.min(Ne,it.settings.maxScrollbarLength)),Ne}function I(it,Ne){var nt=Ne[0],Xe=Ne[1],Ee=Ne[2],Ge=Ne[3],ot=Ne[4],lt=Ne[5],Ct=Ne[6],mi=Ne[7],Jt=Ne[8],$t=it.element,Ki=null,hi=null,ai=null;function Ji(Ui){Ui.touches&&Ui.touches[0]&&(Ui[Ee]=Ui.touches[0].pageY),$t[Ct]=Ki+ai*(Ui[Ee]-hi),U(it,mi),r(it),Ui.stopPropagation(),Ui.type.startsWith("touch")&&Ui.changedTouches.length>1&&Ui.preventDefault()}function Gi(){W(it,mi),it[Jt].classList.remove(k_state_clicking),it.event.unbind(it.ownerDocument,"mousemove",Ji)}function zi(Ui,Be){Ki=$t[Ct],Be&&Ui.touches&&(Ui[Ee]=Ui.touches[0].pageY),hi=Ui[Ee],ai=(it[Xe]-it[nt])/(it[Ge]-it[lt]),Be?it.event.bind(it.ownerDocument,"touchmove",Ji):(it.event.bind(it.ownerDocument,"mousemove",Ji),it.event.once(it.ownerDocument,"mouseup",Gi),Ui.preventDefault()),it[Jt].classList.add(k_state_clicking),Ui.stopPropagation()}it.event.bind(it[ot],"mousedown",function(Ui){zi(Ui)}),it.event.bind(it[ot],"touchstart",function(Ui){zi(Ui,!0)})}var N={"click-rail":function v(it){it.event.bind(it.scrollbarY,"mousedown",function(nt){return nt.stopPropagation()}),it.event.bind(it.scrollbarYRail,"mousedown",function(nt){var Xe=nt.pageY-window.pageYOffset-it.scrollbarYRail.getBoundingClientRect().top;it.element.scrollTop+=(Xe>it.scrollbarYTop?1:-1)*it.containerHeight,r(it),nt.stopPropagation()}),it.event.bind(it.scrollbarX,"mousedown",function(nt){return nt.stopPropagation()}),it.event.bind(it.scrollbarXRail,"mousedown",function(nt){var Xe=nt.pageX-window.pageXOffset-it.scrollbarXRail.getBoundingClientRect().left;it.element.scrollLeft+=(Xe>it.scrollbarXLeft?1:-1)*it.containerWidth,r(it),nt.stopPropagation()})},"drag-thumb":function T(it){I(it,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(it,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function y(it){var Ne=it.element;it.event.bind(it.ownerDocument,"keydown",function(Ge){if(!(Ge.isDefaultPrevented&&Ge.isDefaultPrevented()||Ge.defaultPrevented)&&(w(Ne,":hover")||w(it.scrollbarX,":focus")||w(it.scrollbarY,":focus"))){var ot=document.activeElement?document.activeElement:it.ownerDocument.activeElement;if(ot){if("IFRAME"===ot.tagName)ot=ot.contentDocument.activeElement;else for(;ot.shadowRoot;)ot=ot.shadowRoot.activeElement;if(function ge(it){return w(it,"input,[contenteditable]")||w(it,"select,[contenteditable]")||w(it,"textarea,[contenteditable]")||w(it,"button,[contenteditable]")}(ot))return}var lt=0,Ct=0;switch(Ge.which){case 37:lt=Ge.metaKey?-it.contentWidth:Ge.altKey?-it.containerWidth:-30;break;case 38:Ct=Ge.metaKey?it.contentHeight:Ge.altKey?it.containerHeight:30;break;case 39:lt=Ge.metaKey?it.contentWidth:Ge.altKey?it.containerWidth:30;break;case 40:Ct=Ge.metaKey?-it.contentHeight:Ge.altKey?-it.containerHeight:-30;break;case 32:Ct=Ge.shiftKey?it.containerHeight:-it.containerHeight;break;case 33:Ct=it.containerHeight;break;case 34:Ct=-it.containerHeight;break;case 36:Ct=it.contentHeight;break;case 35:Ct=-it.contentHeight;break;default:return}it.settings.suppressScrollX&&0!==lt||it.settings.suppressScrollY&&0!==Ct||(Ne.scrollTop-=Ct,Ne.scrollLeft+=lt,r(it),function Ee(Ge,ot){var lt=Math.floor(Ne.scrollTop);if(0===Ge){if(!it.scrollbarYActive)return!1;if(0===lt&&ot>0||lt>=it.contentHeight-it.containerHeight&&ot<0)return!it.settings.wheelPropagation}var Ct=Ne.scrollLeft;if(0===ot){if(!it.scrollbarXActive)return!1;if(0===Ct&&Ge<0||Ct>=it.contentWidth-it.containerWidth&&Ge>0)return!it.settings.wheelPropagation}return!0}(lt,Ct)&&Ge.preventDefault())}})},wheel:function n(it){var Ne=it.element;function Ge(ot){var lt=function Xe(ot){var lt=ot.deltaX,Ct=-1*ot.deltaY;return(void 0===lt||void 0===Ct)&&(lt=-1*ot.wheelDeltaX/6,Ct=ot.wheelDeltaY/6),ot.deltaMode&&1===ot.deltaMode&&(lt*=10,Ct*=10),lt!=lt&&Ct!=Ct&&(lt=0,Ct=ot.wheelDelta),ot.shiftKey?[-Ct,-lt]:[lt,Ct]}(ot),Ct=lt[0],mi=lt[1];if(!function Ee(ot,lt,Ct){if(!i.isWebKit&&Ne.querySelector("select:focus"))return!0;if(!Ne.contains(ot))return!1;for(var mi=ot;mi&&mi!==Ne;){if(mi.classList.contains(k_element_consuming))return!0;var Jt=d(mi);if(Ct&&Jt.overflowY.match(/(scroll|auto)/)){var $t=mi.scrollHeight-mi.clientHeight;if($t>0&&(mi.scrollTop>0&&Ct<0||mi.scrollTop<$t&&Ct>0))return!0}if(lt&&Jt.overflowX.match(/(scroll|auto)/)){var Ki=mi.scrollWidth-mi.clientWidth;if(Ki>0&&(mi.scrollLeft>0&&lt<0||mi.scrollLeft<Ki&&lt>0))return!0}mi=mi.parentNode}return!1}(ot.target,Ct,mi)){var Jt=!1;it.settings.useBothWheelAxes?it.scrollbarYActive&&!it.scrollbarXActive?(mi?Ne.scrollTop-=mi*it.settings.wheelSpeed:Ne.scrollTop+=Ct*it.settings.wheelSpeed,Jt=!0):it.scrollbarXActive&&!it.scrollbarYActive&&(Ct?Ne.scrollLeft+=Ct*it.settings.wheelSpeed:Ne.scrollLeft-=mi*it.settings.wheelSpeed,Jt=!0):(Ne.scrollTop-=mi*it.settings.wheelSpeed,Ne.scrollLeft+=Ct*it.settings.wheelSpeed),r(it),Jt=Jt||function nt(ot,lt){var Ct=Math.floor(Ne.scrollTop),mi=0===Ne.scrollTop,Jt=Ct+Ne.offsetHeight===Ne.scrollHeight,$t=0===Ne.scrollLeft,Ki=Ne.scrollLeft+Ne.offsetWidth===Ne.scrollWidth;return!(Math.abs(lt)>Math.abs(ot)?mi||Jt:$t||Ki)||!it.settings.wheelPropagation}(Ct,mi),Jt&&!ot.ctrlKey&&(ot.stopPropagation(),ot.preventDefault())}}void 0!==window.onwheel?it.event.bind(Ne,"wheel",Ge):void 0!==window.onmousewheel&&it.event.bind(Ne,"mousewheel",Ge)},touch:function _(it){if(i.supportsTouch||i.supportsIePointer){var Ne=it.element,Ee={},Ge=0,ot={},lt=null;i.supportsTouch?(it.event.bind(Ne,"touchstart",Jt),it.event.bind(Ne,"touchmove",Ki),it.event.bind(Ne,"touchend",hi)):i.supportsIePointer&&(window.PointerEvent?(it.event.bind(Ne,"pointerdown",Jt),it.event.bind(Ne,"pointermove",Ki),it.event.bind(Ne,"pointerup",hi)):window.MSPointerEvent&&(it.event.bind(Ne,"MSPointerDown",Jt),it.event.bind(Ne,"MSPointerMove",Ki),it.event.bind(Ne,"MSPointerUp",hi)))}function Xe(ai,Ji){Ne.scrollTop-=Ji,Ne.scrollLeft-=ai,r(it)}function Ct(ai){return ai.targetTouches?ai.targetTouches[0]:ai}function mi(ai){return!(ai.pointerType&&"pen"===ai.pointerType&&0===ai.buttons||!(ai.targetTouches&&1===ai.targetTouches.length||ai.pointerType&&"mouse"!==ai.pointerType&&ai.pointerType!==ai.MSPOINTER_TYPE_MOUSE))}function Jt(ai){if(mi(ai)){var Ji=Ct(ai);Ee.pageX=Ji.pageX,Ee.pageY=Ji.pageY,Ge=(new Date).getTime(),null!==lt&&clearInterval(lt)}}function Ki(ai){if(mi(ai)){var Ji=Ct(ai),Gi={pageX:Ji.pageX,pageY:Ji.pageY},zi=Gi.pageX-Ee.pageX,Ui=Gi.pageY-Ee.pageY;if(function $t(ai,Ji,Gi){if(!Ne.contains(ai))return!1;for(var zi=ai;zi&&zi!==Ne;){if(zi.classList.contains(k_element_consuming))return!0;var Ui=d(zi);if(Gi&&Ui.overflowY.match(/(scroll|auto)/)){var Be=zi.scrollHeight-zi.clientHeight;if(Be>0&&(zi.scrollTop>0&&Gi<0||zi.scrollTop<Be&&Gi>0))return!0}if(Ji&&Ui.overflowX.match(/(scroll|auto)/)){var Tt=zi.scrollWidth-zi.clientWidth;if(Tt>0&&(zi.scrollLeft>0&&Ji<0||zi.scrollLeft<Tt&&Ji>0))return!0}zi=zi.parentNode}return!1}(ai.target,zi,Ui))return;Xe(zi,Ui),Ee=Gi;var Be=(new Date).getTime(),Tt=Be-Ge;Tt>0&&(ot.x=zi/Tt,ot.y=Ui/Tt,Ge=Be),function nt(ai,Ji){var Gi=Math.floor(Ne.scrollTop),zi=Ne.scrollLeft,Ui=Math.abs(ai),Be=Math.abs(Ji);if(Be>Ui){if(Ji<0&&Gi===it.contentHeight-it.containerHeight||Ji>0&&0===Gi)return 0===window.scrollY&&Ji>0&&i.isChrome}else if(Ui>Be&&(ai<0&&zi===it.contentWidth-it.containerWidth||ai>0&&0===zi))return!0;return!0}(zi,Ui)&&ai.preventDefault()}}function hi(){it.settings.swipeEasing&&(clearInterval(lt),lt=setInterval(function(){it.isInitialized?clearInterval(lt):ot.x||ot.y?Math.abs(ot.x)<.01&&Math.abs(ot.y)<.01?clearInterval(lt):it.element?(Xe(30*ot.x,30*ot.y),ot.x*=.8,ot.y*=.8):clearInterval(lt):clearInterval(lt)},10))}}},H=function(Ne,nt){var Xe=this;if(void 0===nt&&(nt={}),"string"==typeof Ne&&(Ne=document.querySelector(Ne)),!Ne||!Ne.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ee in this.element=Ne,Ne.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},nt)this.settings[Ee]=nt[Ee];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Jt,mi,Ge=function(){return Ne.classList.add(k_state_focus)},ot=function(){return Ne.classList.remove(k_state_focus)};this.isRtl="rtl"===d(Ne).direction,!0===this.isRtl&&Ne.classList.add("ps__rtl"),this.isNegativeScroll=(mi=Ne.scrollLeft,Ne.scrollLeft=-1,Jt=Ne.scrollLeft<0,Ne.scrollLeft=mi,Jt),this.negativeScrollAdjustment=this.isNegativeScroll?Ne.scrollWidth-Ne.clientWidth:0,this.event=new de,this.ownerDocument=Ne.ownerDocument||document,this.scrollbarXRail=h(k_element_rail("x")),Ne.appendChild(this.scrollbarXRail),this.scrollbarX=h(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ge),this.event.bind(this.scrollbarX,"blur",ot),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var lt=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt(lt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=$(lt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=$(lt.borderLeftWidth)+$(lt.borderRightWidth),R(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=$(lt.marginLeft)+$(lt.marginRight),R(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=h(k_element_rail("y")),Ne.appendChild(this.scrollbarYRail),this.scrollbarY=h(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ge),this.event.bind(this.scrollbarY,"blur",ot),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Ct=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(Ct.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=$(Ct.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function C(it){var Ne=d(it);return $(Ne.width)+$(Ne.paddingLeft)+$(Ne.paddingRight)+$(Ne.borderLeftWidth)+$(Ne.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=$(Ct.borderTopWidth)+$(Ct.borderBottomWidth),R(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=$(Ct.marginTop)+$(Ct.marginBottom),R(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Ne.scrollLeft<=0?"start":Ne.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ne.scrollTop<=0?"start":Ne.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mi){return N[mi](Xe)}),this.lastScrollTop=Math.floor(Ne.scrollTop),this.lastScrollLeft=Ne.scrollLeft,this.event.bind(this.element,"scroll",function(mi){return Xe.onScroll(mi)}),r(this)};H.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,R(this.scrollbarXRail,{display:"block"}),R(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=$(d(this.scrollbarXRail).marginLeft)+$(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=$(d(this.scrollbarYRail).marginTop)+$(d(this.scrollbarYRail).marginBottom),R(this.scrollbarXRail,{display:"none"}),R(this.scrollbarYRail,{display:"none"}),r(this),ie(this,"top",0,!1,!0),ie(this,"left",0,!1,!0),R(this.scrollbarXRail,{display:""}),R(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(Ne){!this.isAlive||(r(this),ie(this,"top",this.element.scrollTop-this.lastScrollTop),ie(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),D(this.scrollbarX),D(this.scrollbarY),D(this.scrollbarXRail),D(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ne){return!Ne.match(/^ps([-_].+|)$/)}).join(" ")};const J=H;var ue=function(){if("undefined"!=typeof Map)return Map;function it(Ne,nt){var Xe=-1;return Ne.some(function(Ee,Ge){return Ee[0]===nt&&(Xe=Ge,!0)}),Xe}return function(){function Ne(){this.__entries__=[]}return Object.defineProperty(Ne.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ne.prototype.get=function(nt){var Xe=it(this.__entries__,nt),Ee=this.__entries__[Xe];return Ee&&Ee[1]},Ne.prototype.set=function(nt,Xe){var Ee=it(this.__entries__,nt);~Ee?this.__entries__[Ee][1]=Xe:this.__entries__.push([nt,Xe])},Ne.prototype.delete=function(nt){var Xe=this.__entries__,Ee=it(Xe,nt);~Ee&&Xe.splice(Ee,1)},Ne.prototype.has=function(nt){return!!~it(this.__entries__,nt)},Ne.prototype.clear=function(){this.__entries__.splice(0)},Ne.prototype.forEach=function(nt,Xe){void 0===Xe&&(Xe=null);for(var Ee=0,Ge=this.__entries__;Ee<Ge.length;Ee++){var ot=Ge[Ee];nt.call(Xe,ot[1],ot[0])}},Ne}()}(),xe="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Pe="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Se="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Pe):function(it){return setTimeout(function(){return it(Date.now())},1e3/60)},q=["top","right","bottom","left","width","height","size","weight"],Ae="undefined"!=typeof MutationObserver,ut=function(){function it(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function Ue(it,Ne){var nt=!1,Xe=!1,Ee=0;function Ge(){nt&&(nt=!1,it()),Xe&&lt()}function ot(){Se(Ge)}function lt(){var Ct=Date.now();if(nt){if(Ct-Ee<2)return;Xe=!0}else nt=!0,Xe=!1,setTimeout(ot,Ne);Ee=Ct}return lt}(this.refresh.bind(this),20)}return it.prototype.addObserver=function(Ne){~this.observers_.indexOf(Ne)||this.observers_.push(Ne),this.connected_||this.connect_()},it.prototype.removeObserver=function(Ne){var nt=this.observers_,Xe=nt.indexOf(Ne);~Xe&&nt.splice(Xe,1),!nt.length&&this.connected_&&this.disconnect_()},it.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},it.prototype.updateObservers_=function(){var Ne=this.observers_.filter(function(nt){return nt.gatherActive(),nt.hasActive()});return Ne.forEach(function(nt){return nt.broadcastActive()}),Ne.length>0},it.prototype.connect_=function(){!xe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ae?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},it.prototype.disconnect_=function(){!xe||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},it.prototype.onTransitionEnd_=function(Ne){var nt=Ne.propertyName,Xe=void 0===nt?"":nt;q.some(function(Ge){return!!~Xe.indexOf(Ge)})&&this.refresh()},it.getInstance=function(){return this.instance_||(this.instance_=new it),this.instance_},it.instance_=null,it}(),Ie=function(it,Ne){for(var nt=0,Xe=Object.keys(Ne);nt<Xe.length;nt++){var Ee=Xe[nt];Object.defineProperty(it,Ee,{value:Ne[Ee],enumerable:!1,writable:!1,configurable:!0})}return it},De=function(it){return it&&it.ownerDocument&&it.ownerDocument.defaultView||Pe},ae=Lt(0,0,0,0);function we(it){return parseFloat(it)||0}function ye(it){for(var Ne=[],nt=1;nt<arguments.length;nt++)Ne[nt-1]=arguments[nt];return Ne.reduce(function(Xe,Ee){return Xe+we(it["border-"+Ee+"-width"])},0)}var fe="undefined"!=typeof SVGGraphicsElement?function(it){return it instanceof De(it).SVGGraphicsElement}:function(it){return it instanceof De(it).SVGElement&&"function"==typeof it.getBBox};function pt(it){return xe?fe(it)?function z(it){var Ne=it.getBBox();return Lt(0,0,Ne.width,Ne.height)}(it):function be(it){var Ne=it.clientWidth,nt=it.clientHeight;if(!Ne&&!nt)return ae;var Xe=De(it).getComputedStyle(it),Ee=function Y(it){for(var nt={},Xe=0,Ee=["top","right","bottom","left"];Xe<Ee.length;Xe++){var Ge=Ee[Xe];nt[Ge]=we(it["padding-"+Ge])}return nt}(Xe),Ge=Ee.left+Ee.right,ot=Ee.top+Ee.bottom,lt=we(Xe.width),Ct=we(Xe.height);if("border-box"===Xe.boxSizing&&(Math.round(lt+Ge)!==Ne&&(lt-=ye(Xe,"left","right")+Ge),Math.round(Ct+ot)!==nt&&(Ct-=ye(Xe,"top","bottom")+ot)),!function He(it){return it===De(it).document.documentElement}(it)){var mi=Math.round(lt+Ge)-Ne,Jt=Math.round(Ct+ot)-nt;1!==Math.abs(mi)&&(lt-=mi),1!==Math.abs(Jt)&&(Ct-=Jt)}return Lt(Ee.left,Ee.top,lt,Ct)}(it):ae}function Lt(it,Ne,nt,Xe){return{x:it,y:Ne,width:nt,height:Xe}}var di=function(){function it(Ne){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lt(0,0,0,0),this.target=Ne}return it.prototype.isActive=function(){var Ne=pt(this.target);return this.contentRect_=Ne,Ne.width!==this.broadcastWidth||Ne.height!==this.broadcastHeight},it.prototype.broadcastRect=function(){var Ne=this.contentRect_;return this.broadcastWidth=Ne.width,this.broadcastHeight=Ne.height,Ne},it}(),Wt=function it(Ne,nt){var Xe=function et(it){var Ne=it.x,nt=it.y,Xe=it.width,Ee=it.height,Ge="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,ot=Object.create(Ge.prototype);return Ie(ot,{x:Ne,y:nt,width:Xe,height:Ee,top:nt,right:Ne+Xe,bottom:Ee+nt,left:Ne}),ot}(nt);Ie(this,{target:Ne,contentRect:Xe})},Gt=function(){function it(Ne,nt,Xe){if(this.activeObservations_=[],this.observations_=new ue,"function"!=typeof Ne)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Ne,this.controller_=nt,this.callbackCtx_=Xe}return it.prototype.observe=function(Ne){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Ne instanceof De(Ne).Element))throw new TypeError('parameter 1 is not of type "Element".');var nt=this.observations_;nt.has(Ne)||(nt.set(Ne,new di(Ne)),this.controller_.addObserver(this),this.controller_.refresh())}},it.prototype.unobserve=function(Ne){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Ne instanceof De(Ne).Element))throw new TypeError('parameter 1 is not of type "Element".');var nt=this.observations_;!nt.has(Ne)||(nt.delete(Ne),nt.size||this.controller_.removeObserver(this))}},it.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},it.prototype.gatherActive=function(){var Ne=this;this.clearActive(),this.observations_.forEach(function(nt){nt.isActive()&&Ne.activeObservations_.push(nt)})},it.prototype.broadcastActive=function(){if(this.hasActive()){var Ne=this.callbackCtx_,nt=this.activeObservations_.map(function(Xe){return new Wt(Xe.target,Xe.broadcastRect())});this.callback_.call(Ne,nt,Ne),this.clearActive()}},it.prototype.clearActive=function(){this.activeObservations_.splice(0)},it.prototype.hasActive=function(){return this.activeObservations_.length>0},it}(),ui="undefined"!=typeof WeakMap?new WeakMap:new ue,Ot=function it(Ne){if(!(this instanceof it))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var nt=ut.getInstance(),Xe=new Gt(Ne,nt,this);ui.set(this,Xe)};["observe","unobserve","disconnect"].forEach(function(it){Ot.prototype[it]=function(){var Ne;return(Ne=ui.get(this))[it].apply(Ne,arguments)}});const gt=void 0!==Pe.ResizeObserver?Pe.ResizeObserver:Ot,ei=new s.OlP("PERFECT_SCROLLBAR_CONFIG");class Kt{constructor(Ne,nt,Xe,Ee){this.x=Ne,this.y=nt,this.w=Xe,this.h=Ee}}class Re{constructor(Ne,nt){this.x=Ne,this.y=nt}}const Oe=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ce{constructor(Ne={}){this.assign(Ne)}assign(Ne={}){for(const nt in Ne)this[nt]=Ne[nt]}}let ve=(()=>{class it{constructor(nt,Xe,Ee,Ge,ot){this.zone=nt,this.differs=Xe,this.elementRef=Ee,this.platformId=Ge,this.defaults=ot,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 s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){if(!this.disabled&&(0,b.NF)(this.platformId)){const nt=new ce(this.defaults);nt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new J(this.elementRef.nativeElement,nt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new gt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Oe.forEach(Xe=>{const Ee=Xe.replace(/([A-Z])/g,Ge=>`-${Ge.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Ee).pipe((0,f.e)(20),(0,M.R)(this.ngDestroy)).subscribe(Ge=>{this[Xe].emit(Ge)})})})}}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(nt){nt.disabled&&!nt.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&nt.disabled.currentValue!==nt.disabled.previousValue&&(!0===nt.disabled.currentValue?this.ngOnDestroy():!1===nt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(nt){}},0))}geometry(nt="scroll"){return new Kt(this.elementRef.nativeElement[nt+"Left"],this.elementRef.nativeElement[nt+"Top"],this.elementRef.nativeElement[nt+"Width"],this.elementRef.nativeElement[nt+"Height"])}position(nt=!1){return!nt&&this.instance?new Re(this.instance.reach.x||0,this.instance.reach.y||0):new Re(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(nt="any"){const Xe=this.elementRef.nativeElement;return"any"===nt?Xe.classList.contains("ps--active-x")||Xe.classList.contains("ps--active-y"):"both"===nt?Xe.classList.contains("ps--active-x")&&Xe.classList.contains("ps--active-y"):Xe.classList.contains("ps--active-"+nt)}scrollTo(nt,Xe,Ee){this.disabled||(null==Xe&&null==Ee?this.animateScrolling("scrollTop",nt,Ee):(null!=nt&&this.animateScrolling("scrollLeft",nt,Ee),null!=Xe&&this.animateScrolling("scrollTop",Xe,Ee)))}scrollToX(nt,Xe){this.animateScrolling("scrollLeft",nt,Xe)}scrollToY(nt,Xe){this.animateScrolling("scrollTop",nt,Xe)}scrollToTop(nt,Xe){this.animateScrolling("scrollTop",nt||0,Xe)}scrollToLeft(nt,Xe){this.animateScrolling("scrollLeft",nt||0,Xe)}scrollToRight(nt,Xe){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(nt||0),Xe)}scrollToBottom(nt,Xe){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(nt||0),Xe)}scrollToElement(nt,Xe,Ee){if("string"==typeof nt&&(nt=this.elementRef.nativeElement.querySelector(nt)),nt){const Ge=nt.getBoundingClientRect(),ot=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Ge.left-ot.left+this.elementRef.nativeElement.scrollLeft+(Xe||0),Ee),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Ge.top-ot.top+this.elementRef.nativeElement.scrollTop+(Xe||0),Ee)}}animateScrolling(nt,Xe,Ee){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Ee&&"undefined"!=typeof window){if(Xe!==this.elementRef.nativeElement[nt]){let Ge=0,ot=0,lt=performance.now(),Ct=this.elementRef.nativeElement[nt];const mi=(Ct-Xe)/2,Jt=$t=>{ot+=Math.PI/(Ee/($t-lt)),Ge=Math.round(Xe+mi+mi*Math.cos(ot)),this.elementRef.nativeElement[nt]===Ct&&(ot>=Math.PI?this.animateScrolling(nt,Xe,0):(this.elementRef.nativeElement[nt]=Ge,Ct=this.elementRef.nativeElement[nt],lt=$t,this.animation=window.requestAnimationFrame(Jt)))};window.requestAnimationFrame(Jt)}}else this.elementRef.nativeElement[nt]=Xe}}return it.\u0275fac=function(nt){return new(nt||it)(s.Y36(s.R0b),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Lbi),s.Y36(ei,8))},it.\u0275dir=s.lG2({type:it,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[s.TTD]}),it})(),Ht=(()=>{class it{}return it.\u0275fac=function(nt){return new(nt||it)},it.\u0275mod=s.oAB({type:it}),it.\u0275inj=s.cJS({imports:[[b.ez],b.ez]}),it})()},4946:ze=>{"use strict";ze.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:ze=>{"use strict";ze.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:ze=>{"use strict";ze.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:ze=>{"use strict";ze.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:ze=>{"use strict";ze.exports={i8:"6.5.4"}},2562:ze=>{"use strict";ze.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"}')}},ze=>{ze(ze.s=6403)}]);